SlideShare a Scribd company logo
1 of 3
Download to read offline
1
JIMMA UNIVERSITY
INSTITUTE OF TECHNOLOGY
SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING
Artificial Intelligence
Vehicle Diagnosis system in AI
Name Id
Ramadan Hundessa………………RM0046/13-0
Submitted To:Instructor Habtamu Fanta (PhD)
Date:July/25/21
Jimma, Ethiopia
2
Inference tree for Vehicle(Car) diagnosis system
When abnormal situation arises in the car, the KBS makes inferences by deciding which rules are
satisfied by facts stored in the working memory and executes the rule with highest priority and
propose proper correcting solution.
Facts in the Working memory:
1. The engine is getting gas.
2. The engine will turn over.
3. The problem is spark plugs.
Rules:
1.IF the engine is getting gas, AND the
engine will turn over, THEN the
problem is spark plugs.
2. IF the engine does not turn over,
AND the lights do not come on, THEN
the problem is battery or cables.
3. IF the engine does not turn over,
AND the lights do not come on, THEN the problem is the starter motor.
4. IF there is gas in the fuel tank, AND there is gas in the carburetor, THEN the engine is getting
gas.
Prototype of Vehicle(Car) Diagnosis system
3
Prolog Program
% First Consult car.pl :
% To start it, give PROLOG the goal:
%solve(fix(X), CF).
rule((fix(Advice) :-
(bad_component(X),fix(X,
Advice))), 100).
% rules to infer bad component:
rule((bad_component(starter) :-
(bad_system(starter_system),lights(c
ome_on))),50).
rule((bad_component(battery) :-
(bad_system(starter_system),not(ligh
ts(come_on)))),90).
rule((bad_component(timing) :-
(bad_system(ignition_system),
not(tuned_recently))),80).
rule((bad_component(plugs) :-
(bad_system(ignition_system),plugs(
dirty))),90).
rule((bad_component(ignition_wires) :-
(bad_system(ignition_system),
not(plugs(dirty)),
tuned_recently)),80).
% Rules to infer system that failed.
rule((bad_system(starter_system) :-
(not(car_starts),
not(turns_over))),90).
rule((bad_system(ignition_system) :-
(not(car_starts),
turns_over,gas_in_carb)),80).
rule((bad_system(ignition_system) :-
(runs(rough),gas_in_carb)),80).
rule((bad_system(ignition_system) :-
(car_starts, runs(dies),gas_in_carb)),60).
% Rules to make reccommendation for
repairs.
rule(fix(starter, 'replace starter'),100).
rule(fix(battery, 'replace or recharge
battery'),100).
rule(fix(timing, 'get the timing
adjusted'),100).
rule(fix(plugs, 'replace spark plugs'),100).
rule(fix(ignition_wires, 'check ignition
wires'),100).
% askable descriptions
askable(car_starts).
askable(turns_over).
askable(lights(_)).
askable(runs(_)).
askable(gas_in_carb).
askable(tuned_recently).
askable(plugs(_)).

More Related Content

What's hot

An efficient automotive collision avoidance system for indian traffic conditions
An efficient automotive collision avoidance system for indian traffic conditionsAn efficient automotive collision avoidance system for indian traffic conditions
An efficient automotive collision avoidance system for indian traffic conditions
eSAT Journals
 
paper Presentation
paper Presentationpaper Presentation
paper Presentation
Pranesh nair
 

What's hot (20)

Ultrasonic Automatic Vehicle Braking System
Ultrasonic Automatic Vehicle Braking SystemUltrasonic Automatic Vehicle Braking System
Ultrasonic Automatic Vehicle Braking System
 
Cruise contro in car
Cruise contro in carCruise contro in car
Cruise contro in car
 
Collision mitigation
Collision mitigationCollision mitigation
Collision mitigation
 
Automobile collision avoidance system
Automobile collision avoidance systemAutomobile collision avoidance system
Automobile collision avoidance system
 
IRJET- Autonomous Emergency Braking System
IRJET- Autonomous Emergency Braking SystemIRJET- Autonomous Emergency Braking System
IRJET- Autonomous Emergency Braking System
 
Anti collision technology of crashless cars
Anti collision technology of crashless carsAnti collision technology of crashless cars
Anti collision technology of crashless cars
 
Automatic Braking System
Automatic Braking SystemAutomatic Braking System
Automatic Braking System
 
Automatic Braking System, Final review ppt presentation6 (1).pptx
Automatic Braking System, Final review ppt presentation6 (1).pptxAutomatic Braking System, Final review ppt presentation6 (1).pptx
Automatic Braking System, Final review ppt presentation6 (1).pptx
 
Advances in Automobile Safety Systems - Prashant Kumar
Advances in Automobile Safety Systems - Prashant KumarAdvances in Automobile Safety Systems - Prashant Kumar
Advances in Automobile Safety Systems - Prashant Kumar
 
collision avoidance system,automobile technology,safety systems in car
collision avoidance system,automobile technology,safety systems in carcollision avoidance system,automobile technology,safety systems in car
collision avoidance system,automobile technology,safety systems in car
 
Collision Warning with HMI
Collision Warning with HMICollision Warning with HMI
Collision Warning with HMI
 
An efficient automotive collision avoidance system for indian traffic conditions
An efficient automotive collision avoidance system for indian traffic conditionsAn efficient automotive collision avoidance system for indian traffic conditions
An efficient automotive collision avoidance system for indian traffic conditions
 
Adaptive Cruise control
Adaptive Cruise controlAdaptive Cruise control
Adaptive Cruise control
 
paper Presentation
paper Presentationpaper Presentation
paper Presentation
 
Ergonomic Considerations and safety of cars
Ergonomic Considerations and safety of carsErgonomic Considerations and safety of cars
Ergonomic Considerations and safety of cars
 
Ultrasonic Automatic Vehicle Braking System for Forward Collision Avoidance
Ultrasonic Automatic Vehicle Braking System for Forward Collision AvoidanceUltrasonic Automatic Vehicle Braking System for Forward Collision Avoidance
Ultrasonic Automatic Vehicle Braking System for Forward Collision Avoidance
 
Drive by wire ppt
Drive by wire pptDrive by wire ppt
Drive by wire ppt
 
Adaptive cruise control
Adaptive cruise controlAdaptive cruise control
Adaptive cruise control
 
Active safety system
Active safety systemActive safety system
Active safety system
 
Lane assist
Lane assistLane assist
Lane assist
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 

Vehicle(ramadan)

  • 1. 1 JIMMA UNIVERSITY INSTITUTE OF TECHNOLOGY SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING Artificial Intelligence Vehicle Diagnosis system in AI Name Id Ramadan Hundessa………………RM0046/13-0 Submitted To:Instructor Habtamu Fanta (PhD) Date:July/25/21 Jimma, Ethiopia
  • 2. 2 Inference tree for Vehicle(Car) diagnosis system When abnormal situation arises in the car, the KBS makes inferences by deciding which rules are satisfied by facts stored in the working memory and executes the rule with highest priority and propose proper correcting solution. Facts in the Working memory: 1. The engine is getting gas. 2. The engine will turn over. 3. The problem is spark plugs. Rules: 1.IF the engine is getting gas, AND the engine will turn over, THEN the problem is spark plugs. 2. IF the engine does not turn over, AND the lights do not come on, THEN the problem is battery or cables. 3. IF the engine does not turn over, AND the lights do not come on, THEN the problem is the starter motor. 4. IF there is gas in the fuel tank, AND there is gas in the carburetor, THEN the engine is getting gas. Prototype of Vehicle(Car) Diagnosis system
  • 3. 3 Prolog Program % First Consult car.pl : % To start it, give PROLOG the goal: %solve(fix(X), CF). rule((fix(Advice) :- (bad_component(X),fix(X, Advice))), 100). % rules to infer bad component: rule((bad_component(starter) :- (bad_system(starter_system),lights(c ome_on))),50). rule((bad_component(battery) :- (bad_system(starter_system),not(ligh ts(come_on)))),90). rule((bad_component(timing) :- (bad_system(ignition_system), not(tuned_recently))),80). rule((bad_component(plugs) :- (bad_system(ignition_system),plugs( dirty))),90). rule((bad_component(ignition_wires) :- (bad_system(ignition_system), not(plugs(dirty)), tuned_recently)),80). % Rules to infer system that failed. rule((bad_system(starter_system) :- (not(car_starts), not(turns_over))),90). rule((bad_system(ignition_system) :- (not(car_starts), turns_over,gas_in_carb)),80). rule((bad_system(ignition_system) :- (runs(rough),gas_in_carb)),80). rule((bad_system(ignition_system) :- (car_starts, runs(dies),gas_in_carb)),60). % Rules to make reccommendation for repairs. rule(fix(starter, 'replace starter'),100). rule(fix(battery, 'replace or recharge battery'),100). rule(fix(timing, 'get the timing adjusted'),100). rule(fix(plugs, 'replace spark plugs'),100). rule(fix(ignition_wires, 'check ignition wires'),100). % askable descriptions askable(car_starts). askable(turns_over). askable(lights(_)). askable(runs(_)). askable(gas_in_carb). askable(tuned_recently). askable(plugs(_)).