SlideShare a Scribd company logo
1 of 21
Lecture 25
Case Study:
Designing Rule-based
Expert Systems
Automobile
Diagnosis Expert
System
Introduction
• Consider a small problem in automobile
diagnosis.
• Review the step involved in this task as an
example of typical course taken when
developing forward chaining rule based
systems.
Steps
• Define the problem
• Define the input data
• Define the structure (data driven)
• Write initial code
• Test
• Design the interface
• Expand the system
• Evaluate the system
Automobile Diagnosis
• Attractive area
– Useful
– Rules readily available
• Typically diagnostic systems are based on
backward chaining.
• Since there can be a number of problems
leading to a large set of facts hence it may
be advisable to use FWD chaining
• Inherently data driven approach to solving
automobile diagnosis problem, therefore
more natural to use forward chaining.
Task 1: Define the Problem
• Learn about automobile diagnostics. Possible
sources of information
– A good car mechanic
– A trouble-shooting manual
• Auto-repair manuals
– Series of tests to identify problem.
– Decision trees
– Checklist type tests
– Sections grouped by principal problems
– Narrowing down problems: subsystems
• Problem to diagnose is hard starting
Subsystems
• Cranking System
• Ignition System
• Fuel System
• Engine Compression System
Decision tree
Durkin Fig 10.1
Engine does not start
Cranking system good
Ignition system good
Fuel system good
Cranking system bad
Ignition system bad
Fuel system bad
Test Cranking
system
Test Ignition
system
Test Fuel
system
Test Compression
system
1 - Problem Specifications
• Scope
– ‘Engine does not start’ problems
– Address only cranking problems
2 - Define Input Data
• Start-up Rule (auto fire on start up)
Rule 1: Start
IF Task is Start
THEN Ask what is the problem?
3 - Define Structure
• Data driven structure
• Incorporate flow control into the premises
of rules, e.g.
IF Task is test engine --- Type of test
AND Lights are dim --- Result
THEN test battery --- Proceed to
4 - Write initial code
• Subset of rules that capture the general
structure.
• Purpose: To verify that we have effectively
captured the problems knowledge in our
rule structure.
• A good structure is one that not only
provides correct results but also a
template to follow for the development of
other rules
Knowledge Base
Rule 1: IF Task is start
THEN Ask problem
Rule 2: IF problem is car does not
start
THEN Task is to test
cranking system
Rule 3: IF problem is car gives
problem at high speeds
THEN Task is test fuel
system
Working Memory
Task is start
What is the problem?
-car does not start
-car gives problem at
at high speeds
Knowledge Base
Rule 1: IF Task is start
THEN Ask problem
Rule 2: IF problem is car does not
start
THEN Task is to test
cranking system
Rule 3: IF problem is car gives
problem at high speeds
THEN Task is test fuel
system
Working Memory
Task is start
Problem is car does
not start
Knowledge Base
Rule 1: IF Task is start
THEN Ask problem
Rule 2: IF problem is car does not
start
THEN Task is to test
cranking system
Rule 3: IF problem is car gives
problem at high speeds
THEN Task is test fuel
system
Working Memory
Problem is car does
not start
Task is to test
cranking system
Knowledge Base
Rule 4: IF Task is to test cranking
system
THEN Ask how engine turns
Rule 5: IF Task is to test cranking
system
AND engine turns slowly/doesn’t
turn
THEN Cranking system is not
working
AND Task is to test battery
connection
Rule 6: IF Task is to test cranking
system
AND Engine turns normally
THEN Cranking system is
working
AND Task is to test ignition
system
Working Memory
Problem is car does
not start
Task is to test
cranking system
How does the engine
turn upon ignition?
-slowly/doesn't turn
-normally
Knowledge Base
Rule 4: IF Task is to test cranking
system
THEN Ask how engine turns
Rule 5: IF Task is to test cranking
system
AND engine turns slowly/doesn’t
turn
THEN Cranking system is not
working
AND Task is to test battery
connection
Rule 6: IF Task is to test cranking
system
AND Engine turns normally
THEN Cranking system is
working
AND Task is to test ignition
system
Working Memory
Problem is car does
not start
Task is to test
cranking system
Engine turns
slowly/doesn’t turn
Knowledge Base
Rule 7: IF Task is to test battery connection
THEN Ask about Screwdriver test
Rule 8: IF Task is to test battery connection
AND Screwdriver test shows that
lights brighten
OR Screwdriver test shows that lights
do not turn on
THEN Problem is a bad battery
connection
Rule 9: IF Task is to test battery connection
AND Screwdriver test shows that
lights don’t brighten
THEN Battery connection is good
AND Task is test battery
Working Memory
Problem is car does
not start
Engine turns
slowly/doesn’t turn
•Cranking system is not
working
•Task is to test battery
connection
Do screwdriver test.
What happens to the
lights?
-brighten
-not on
-don’t brighten
Knowledge Base
Rule 7: IF Task is to test battery connection
THEN Ask about Screwdriver test
Rule 8: IF Task is to test battery connection
AND Screwdriver test shows that
lights brighten
OR Screwdriver test shows that lights
do not turn on
THEN Problem is a bad battery
connection
Rule 9: IF Task is to test battery connection
AND Screwdriver test shows that
lights don’t brighten
THEN Battery connection is good
AND Task is test battery
Working Memory
Problem is car does
not start
Engine turns
slowly/doesn’t turn
•Cranking system is not
working
•Task is to test battery
connection
•Screwdriver test shows
that lights brighten
Knowledge Base
Rule 7: IF Task is to test battery connection
THEN Ask about Screwdriver test
Rule 8: IF Task is to test battery connection
AND Screwdriver test shows that
lights brighten
OR Screwdriver test shows that lights
do not turn on
THEN Problem is a bad battery
connection
Rule 9: IF Task is to test battery connection
AND Screwdriver test shows that
lights don’t brighten
THEN Battery connection is good
AND Task is test battery
Working Memory
Problem is car does
not start
Engine turns
slowly/doesn’t turn
•Cranking system is not
working
•Task is to test battery
connection
•Screwdriver test shows
that lights brighten
•Problem is a bad
battery connection
Design the Interface
• Begin design of interfaces in parallel with
development of rules
• Interfaces interactive
• Graphical user interface
• Display screens
– Introduction screen
– Intermediate findings screen
– Conclusions
• Question screens

More Related Content

Viewers also liked

Hadware de connexió
Hadware de connexióHadware de connexió
Hadware de connexiócarolynagmez
 
Mantenimiento folleto instalación s.o1
Mantenimiento folleto instalación s.o1Mantenimiento folleto instalación s.o1
Mantenimiento folleto instalación s.o1natalialwl
 
Tarea 2
Tarea 2Tarea 2
Tarea 2lnagj
 
Plan de accion
Plan de accionPlan de accion
Plan de accionandolepi
 
Formato historia del_computador_2012_estudiante_0 (1)
Formato historia del_computador_2012_estudiante_0 (1)Formato historia del_computador_2012_estudiante_0 (1)
Formato historia del_computador_2012_estudiante_0 (1)natalialwl
 
Most common mistakes 3 e4 16 17
Most common mistakes 3 e4 16 17Most common mistakes 3 e4 16 17
Most common mistakes 3 e4 16 17jeanphilippeguy
 
Mantenimiento test
Mantenimiento testMantenimiento test
Mantenimiento testnatalialwl
 
CoLab Taller 1 Organizaciones Paradigma Co
CoLab Taller 1 Organizaciones Paradigma CoCoLab Taller 1 Organizaciones Paradigma Co
CoLab Taller 1 Organizaciones Paradigma CoNomadalab
 
Diapositivas
DiapositivasDiapositivas
Diapositivasnachoamor
 
Topologias de red
Topologias de redTopologias de red
Topologias de redVICKYBR
 
Redes sociales rafa
Redes sociales rafaRedes sociales rafa
Redes sociales rafaafartkd
 
Planificacion de desarrollo
Planificacion de desarrolloPlanificacion de desarrollo
Planificacion de desarrolloAndrés Cueva
 
Herramientas sincronas y asincronas
Herramientas sincronas y asincronasHerramientas sincronas y asincronas
Herramientas sincronas y asincronasLiss2794
 

Viewers also liked (17)

Hadware de connexió
Hadware de connexióHadware de connexió
Hadware de connexió
 
Mantenimiento folleto instalación s.o1
Mantenimiento folleto instalación s.o1Mantenimiento folleto instalación s.o1
Mantenimiento folleto instalación s.o1
 
Ley 1341 de 2009
Ley 1341 de 2009Ley 1341 de 2009
Ley 1341 de 2009
 
Tarea 2
Tarea 2Tarea 2
Tarea 2
 
Plan de accion
Plan de accionPlan de accion
Plan de accion
 
Formato historia del_computador_2012_estudiante_0 (1)
Formato historia del_computador_2012_estudiante_0 (1)Formato historia del_computador_2012_estudiante_0 (1)
Formato historia del_computador_2012_estudiante_0 (1)
 
Repasomatesverano
RepasomatesveranoRepasomatesverano
Repasomatesverano
 
Most common mistakes 3 e4 16 17
Most common mistakes 3 e4 16 17Most common mistakes 3 e4 16 17
Most common mistakes 3 e4 16 17
 
Mantenimiento test
Mantenimiento testMantenimiento test
Mantenimiento test
 
CoLab Taller 1 Organizaciones Paradigma Co
CoLab Taller 1 Organizaciones Paradigma CoCoLab Taller 1 Organizaciones Paradigma Co
CoLab Taller 1 Organizaciones Paradigma Co
 
Rai
RaiRai
Rai
 
Diapositivas
DiapositivasDiapositivas
Diapositivas
 
Topologias de red
Topologias de redTopologias de red
Topologias de red
 
Redes sociales rafa
Redes sociales rafaRedes sociales rafa
Redes sociales rafa
 
Planificacion de desarrollo
Planificacion de desarrolloPlanificacion de desarrollo
Planificacion de desarrollo
 
Herramientas sincronas y asincronas
Herramientas sincronas y asincronasHerramientas sincronas y asincronas
Herramientas sincronas y asincronas
 
Es el mundo verde, o es azul
Es el mundo verde, o es azulEs el mundo verde, o es azul
Es el mundo verde, o es azul
 

Similar to Automobile Diagnosis Expert System

Introduction to Vehicle Electronic Systems and Fault Diagnosis
Introduction to Vehicle Electronic Systems and Fault DiagnosisIntroduction to Vehicle Electronic Systems and Fault Diagnosis
Introduction to Vehicle Electronic Systems and Fault DiagnosisPraneel Chand
 
19 creamer et workshop-agile2019-wash_pp_16-9_1
19 creamer et workshop-agile2019-wash_pp_16-9_119 creamer et workshop-agile2019-wash_pp_16-9_1
19 creamer et workshop-agile2019-wash_pp_16-9_1Lanette Creamer
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systemsTianlu Wang
 
Network Management Fundamentals
Network Management FundamentalsNetwork Management Fundamentals
Network Management FundamentalsSolarWinds
 
Intro to Power Mechanics 9
Intro to Power Mechanics 9Intro to Power Mechanics 9
Intro to Power Mechanics 9twiga2002
 
BMW Not Starting It Could Be One Of These Issues
BMW Not Starting It Could Be One Of These IssuesBMW Not Starting It Could Be One Of These Issues
BMW Not Starting It Could Be One Of These IssuesAndres Auto Service
 
A lean automation blueprint for testing in continuous delivery
A lean automation blueprint for testing in continuous deliveryA lean automation blueprint for testing in continuous delivery
A lean automation blueprint for testing in continuous deliverySauce Labs
 
RCM made simple for stress free Implementation
RCM  made simple for stress free  ImplementationRCM  made simple for stress free  Implementation
RCM made simple for stress free ImplementationNyana Pragasam
 
How to manage your Ph.D. dissertation writing
How to manage your Ph.D. dissertation writingHow to manage your Ph.D. dissertation writing
How to manage your Ph.D. dissertation writingJung-woo Sohn
 
Root Cause Analysis - Tools, Tips and Tricks to Get to the Bottom of Root Cause
Root Cause Analysis - Tools, Tips and Tricks to Get to the Bottom of Root CauseRoot Cause Analysis - Tools, Tips and Tricks to Get to the Bottom of Root Cause
Root Cause Analysis - Tools, Tips and Tricks to Get to the Bottom of Root CauseCraig Thornton
 
'A critique of testing' UK TMF forum January 2015
'A critique of testing' UK TMF forum January 2015 'A critique of testing' UK TMF forum January 2015
'A critique of testing' UK TMF forum January 2015 Georgina Tilby
 
LPP application and problem formulation
LPP application and problem formulationLPP application and problem formulation
LPP application and problem formulationKarishma Chaudhary
 
Chapter 63
Chapter 63Chapter 63
Chapter 63mcfalltj
 
[PDF] ISTQB Test Manager (CTAL-TM) Exam
[PDF] ISTQB Test Manager (CTAL-TM) Exam[PDF] ISTQB Test Manager (CTAL-TM) Exam
[PDF] ISTQB Test Manager (CTAL-TM) ExamMeghna Arora
 
Testing a movingtarget_quest_dynatrace
Testing a movingtarget_quest_dynatraceTesting a movingtarget_quest_dynatrace
Testing a movingtarget_quest_dynatracePeter Varhol
 
WVU Summit Address_Breton_‌final
WVU Summit Address_Breton_‌finalWVU Summit Address_Breton_‌final
WVU Summit Address_Breton_‌finalLeo Breton
 
PAC 2019 virtual Joerek Van Gaalen
PAC 2019 virtual Joerek Van GaalenPAC 2019 virtual Joerek Van Gaalen
PAC 2019 virtual Joerek Van GaalenNeotys
 
Principles of Lean Maintenance
Principles of Lean Maintenance Principles of Lean Maintenance
Principles of Lean Maintenance PlantEngineering
 
Lecture 06 production system
Lecture 06 production systemLecture 06 production system
Lecture 06 production systemHema Kashyap
 

Similar to Automobile Diagnosis Expert System (20)

Introduction to Vehicle Electronic Systems and Fault Diagnosis
Introduction to Vehicle Electronic Systems and Fault DiagnosisIntroduction to Vehicle Electronic Systems and Fault Diagnosis
Introduction to Vehicle Electronic Systems and Fault Diagnosis
 
pega unit testing
pega unit testingpega unit testing
pega unit testing
 
19 creamer et workshop-agile2019-wash_pp_16-9_1
19 creamer et workshop-agile2019-wash_pp_16-9_119 creamer et workshop-agile2019-wash_pp_16-9_1
19 creamer et workshop-agile2019-wash_pp_16-9_1
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
 
Network Management Fundamentals
Network Management FundamentalsNetwork Management Fundamentals
Network Management Fundamentals
 
Intro to Power Mechanics 9
Intro to Power Mechanics 9Intro to Power Mechanics 9
Intro to Power Mechanics 9
 
BMW Not Starting It Could Be One Of These Issues
BMW Not Starting It Could Be One Of These IssuesBMW Not Starting It Could Be One Of These Issues
BMW Not Starting It Could Be One Of These Issues
 
A lean automation blueprint for testing in continuous delivery
A lean automation blueprint for testing in continuous deliveryA lean automation blueprint for testing in continuous delivery
A lean automation blueprint for testing in continuous delivery
 
RCM made simple for stress free Implementation
RCM  made simple for stress free  ImplementationRCM  made simple for stress free  Implementation
RCM made simple for stress free Implementation
 
How to manage your Ph.D. dissertation writing
How to manage your Ph.D. dissertation writingHow to manage your Ph.D. dissertation writing
How to manage your Ph.D. dissertation writing
 
Root Cause Analysis - Tools, Tips and Tricks to Get to the Bottom of Root Cause
Root Cause Analysis - Tools, Tips and Tricks to Get to the Bottom of Root CauseRoot Cause Analysis - Tools, Tips and Tricks to Get to the Bottom of Root Cause
Root Cause Analysis - Tools, Tips and Tricks to Get to the Bottom of Root Cause
 
'A critique of testing' UK TMF forum January 2015
'A critique of testing' UK TMF forum January 2015 'A critique of testing' UK TMF forum January 2015
'A critique of testing' UK TMF forum January 2015
 
LPP application and problem formulation
LPP application and problem formulationLPP application and problem formulation
LPP application and problem formulation
 
Chapter 63
Chapter 63Chapter 63
Chapter 63
 
[PDF] ISTQB Test Manager (CTAL-TM) Exam
[PDF] ISTQB Test Manager (CTAL-TM) Exam[PDF] ISTQB Test Manager (CTAL-TM) Exam
[PDF] ISTQB Test Manager (CTAL-TM) Exam
 
Testing a movingtarget_quest_dynatrace
Testing a movingtarget_quest_dynatraceTesting a movingtarget_quest_dynatrace
Testing a movingtarget_quest_dynatrace
 
WVU Summit Address_Breton_‌final
WVU Summit Address_Breton_‌finalWVU Summit Address_Breton_‌final
WVU Summit Address_Breton_‌final
 
PAC 2019 virtual Joerek Van Gaalen
PAC 2019 virtual Joerek Van GaalenPAC 2019 virtual Joerek Van Gaalen
PAC 2019 virtual Joerek Van Gaalen
 
Principles of Lean Maintenance
Principles of Lean Maintenance Principles of Lean Maintenance
Principles of Lean Maintenance
 
Lecture 06 production system
Lecture 06 production systemLecture 06 production system
Lecture 06 production system
 

Recently uploaded

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 

Automobile Diagnosis Expert System

  • 2. Case Study: Designing Rule-based Expert Systems Automobile Diagnosis Expert System
  • 3. Introduction • Consider a small problem in automobile diagnosis. • Review the step involved in this task as an example of typical course taken when developing forward chaining rule based systems.
  • 4. Steps • Define the problem • Define the input data • Define the structure (data driven) • Write initial code • Test • Design the interface • Expand the system • Evaluate the system
  • 5. Automobile Diagnosis • Attractive area – Useful – Rules readily available • Typically diagnostic systems are based on backward chaining. • Since there can be a number of problems leading to a large set of facts hence it may be advisable to use FWD chaining • Inherently data driven approach to solving automobile diagnosis problem, therefore more natural to use forward chaining.
  • 6. Task 1: Define the Problem • Learn about automobile diagnostics. Possible sources of information – A good car mechanic – A trouble-shooting manual • Auto-repair manuals – Series of tests to identify problem. – Decision trees – Checklist type tests – Sections grouped by principal problems – Narrowing down problems: subsystems • Problem to diagnose is hard starting
  • 7. Subsystems • Cranking System • Ignition System • Fuel System • Engine Compression System
  • 8. Decision tree Durkin Fig 10.1 Engine does not start Cranking system good Ignition system good Fuel system good Cranking system bad Ignition system bad Fuel system bad Test Cranking system Test Ignition system Test Fuel system Test Compression system
  • 9. 1 - Problem Specifications • Scope – ‘Engine does not start’ problems – Address only cranking problems
  • 10. 2 - Define Input Data • Start-up Rule (auto fire on start up) Rule 1: Start IF Task is Start THEN Ask what is the problem?
  • 11. 3 - Define Structure • Data driven structure • Incorporate flow control into the premises of rules, e.g. IF Task is test engine --- Type of test AND Lights are dim --- Result THEN test battery --- Proceed to
  • 12. 4 - Write initial code • Subset of rules that capture the general structure. • Purpose: To verify that we have effectively captured the problems knowledge in our rule structure. • A good structure is one that not only provides correct results but also a template to follow for the development of other rules
  • 13. Knowledge Base Rule 1: IF Task is start THEN Ask problem Rule 2: IF problem is car does not start THEN Task is to test cranking system Rule 3: IF problem is car gives problem at high speeds THEN Task is test fuel system Working Memory Task is start What is the problem? -car does not start -car gives problem at at high speeds
  • 14. Knowledge Base Rule 1: IF Task is start THEN Ask problem Rule 2: IF problem is car does not start THEN Task is to test cranking system Rule 3: IF problem is car gives problem at high speeds THEN Task is test fuel system Working Memory Task is start Problem is car does not start
  • 15. Knowledge Base Rule 1: IF Task is start THEN Ask problem Rule 2: IF problem is car does not start THEN Task is to test cranking system Rule 3: IF problem is car gives problem at high speeds THEN Task is test fuel system Working Memory Problem is car does not start Task is to test cranking system
  • 16. Knowledge Base Rule 4: IF Task is to test cranking system THEN Ask how engine turns Rule 5: IF Task is to test cranking system AND engine turns slowly/doesn’t turn THEN Cranking system is not working AND Task is to test battery connection Rule 6: IF Task is to test cranking system AND Engine turns normally THEN Cranking system is working AND Task is to test ignition system Working Memory Problem is car does not start Task is to test cranking system How does the engine turn upon ignition? -slowly/doesn't turn -normally
  • 17. Knowledge Base Rule 4: IF Task is to test cranking system THEN Ask how engine turns Rule 5: IF Task is to test cranking system AND engine turns slowly/doesn’t turn THEN Cranking system is not working AND Task is to test battery connection Rule 6: IF Task is to test cranking system AND Engine turns normally THEN Cranking system is working AND Task is to test ignition system Working Memory Problem is car does not start Task is to test cranking system Engine turns slowly/doesn’t turn
  • 18. Knowledge Base Rule 7: IF Task is to test battery connection THEN Ask about Screwdriver test Rule 8: IF Task is to test battery connection AND Screwdriver test shows that lights brighten OR Screwdriver test shows that lights do not turn on THEN Problem is a bad battery connection Rule 9: IF Task is to test battery connection AND Screwdriver test shows that lights don’t brighten THEN Battery connection is good AND Task is test battery Working Memory Problem is car does not start Engine turns slowly/doesn’t turn •Cranking system is not working •Task is to test battery connection Do screwdriver test. What happens to the lights? -brighten -not on -don’t brighten
  • 19. Knowledge Base Rule 7: IF Task is to test battery connection THEN Ask about Screwdriver test Rule 8: IF Task is to test battery connection AND Screwdriver test shows that lights brighten OR Screwdriver test shows that lights do not turn on THEN Problem is a bad battery connection Rule 9: IF Task is to test battery connection AND Screwdriver test shows that lights don’t brighten THEN Battery connection is good AND Task is test battery Working Memory Problem is car does not start Engine turns slowly/doesn’t turn •Cranking system is not working •Task is to test battery connection •Screwdriver test shows that lights brighten
  • 20. Knowledge Base Rule 7: IF Task is to test battery connection THEN Ask about Screwdriver test Rule 8: IF Task is to test battery connection AND Screwdriver test shows that lights brighten OR Screwdriver test shows that lights do not turn on THEN Problem is a bad battery connection Rule 9: IF Task is to test battery connection AND Screwdriver test shows that lights don’t brighten THEN Battery connection is good AND Task is test battery Working Memory Problem is car does not start Engine turns slowly/doesn’t turn •Cranking system is not working •Task is to test battery connection •Screwdriver test shows that lights brighten •Problem is a bad battery connection
  • 21. Design the Interface • Begin design of interfaces in parallel with development of rules • Interfaces interactive • Graphical user interface • Display screens – Introduction screen – Intermediate findings screen – Conclusions • Question screens

Editor's Notes

  1. 1)Obtain a general understanding of the problem define the project objective major problem issues how experts deal with the information to reach a recommendation 2)Remember that unlike backward chaining systems that start with a goal and then works back through the rules to prove the goal, forward chaining systems work with the given information and rules to generate new information. 3)In backward chaining the inference engine directs the control from the goal to sub-goals. You as a programmer just write the rules and expect the inference engine to work out the strategy for using the rules to prove any given goal. This is not true for forward chaining rule based systems, where you have to explicitly lay down the control, since on its own the inference engine will simply match fire rules whose premises match the given information. You cannot allow this to happen in an unconstrained manner. As we will see in the course of this case study, we have to lay down a control strategy. 4)Designing an expert system is an ITERATIVE process. You start with a small set of rules, test them, and then incrementally add new knowledge to the system.
  2. Typically diagnostic problems are based on backward chaining, because intuitively you set the fault as your goal and ask the system to work with it. But when the number of possible faults grows large this is harder to do. E.g in the automobile diagnostic system, there may be hundreds of possible faults, you cannot make that many goal rules. It would be impractical. Instead an expert starts with some important information, then gathers other important clues along the course of the investigation to come up with a diagnosis. This style of problem solving is inherently data driven and best managed with a forward chaining rule based system.
  3. Manuals: For most diagnosis problems, e.g automobile, plumbing, clock repair, manuals exist that can aid in trouble shooting. They are developed by the relevant industry to aid technicians to carry out these tasks in a step-by-step methodical manner. Ease of availability and ease of use are two attributes a manual must have to be useful to us. Auto-repair manuals fortunately are readily available.
  4. Decision tree for ‘engine does not start problems’ Notice that this process is heuristic in nature. The order in which the various systems are tested follows a path that is heuristically most likely to find the fault. Durkin Fig10.1
  5. Every forward chaining rule based system needs to first obtain some initial data to get started. Therefore, we need to write a rule whose only task is to get some information about the problem. This type of rule is called a start-up rule and fires automatically upon starting the system. When it fires it asks a question. For our system we want it to ask the user about the general nature of the problem. Q) What is the problem; Car wont start, car hesitates at high speeds. After the user answers the initial question the systems directs the problems solving process. To keep our system simple, we will only ask to cater to the problems ‘car wont start’. Then the system interactively asks the user to answer questions to guide the system through to a logical conclusion
  6. In addition to lights don’t brighten, we add a premise that controls the firing of the rule (only when the engine is being tested, will this rule fire)
  7. Test our small set of rules. Lets dry run our set of rules to test our structure.
  8. Test our small set of rules. Lets dry run our set of rules to test our structure.
  9. Test our small set of rules. Lets dry run our set of rules to test our structure.
  10. Test our small set of rules. Lets dry run our set of rules to test our structure.
  11. Test our small set of rules. Lets dry run our set of rules to test our structure.
  12. Test our small set of rules. Lets dry run our set of rules to test our structure.
  13. Test our small set of rules. Lets dry run our set of rules to test our structure.
  14. Test our small set of rules. Lets dry run our set of rules to test our structure.