SlideShare a Scribd company logo
EXPERT SYSTEM
How computers gain expertise?
What is an EXPERT SYSTEM?
● An expert system is a computer expert that emulates the decision making
ability of a human expert.
● Expert system, a computer program that uses artificial intelligence methods
to solve complex problems within a specialized domain that ordinarily
requires human expertise.
Example: Making of a medical diagnosis expert
system
● A medical diagnosis expert system lets the user diagnose his disease without
going to a real doctor (but of course, user has to go to a real doctor for
treatment)
How does the EXPERT SYSTEM gain
EXPERTISE?
How does medical diagnosis expert system gain
expertise?
Components of an Expert System
1. Knowledge Base
2. Inference Engine
3. User Interface
1. Knowledge Base
● A knowledge base is an organized collection of facts about the system’s
domain.
● Facts for a knowledge base must be acquired from human experts through
interviews and observations.
● This knowledge is then usually represented in the form of “if-then” rules
(production rules): “If some condition is true, then the following inference can
be made (or some action taken).”
● A probability factor is often attached to the conclusion of each production
rule and to the ultimate recommendation, because the conclusion is not a
certainty.
Components of Knowledge Base
● Factual Knowledge − It is the information widely accepted by the Knowledge
Engineers and scholars in the task domain.
● Heuristic Knowledge − It is about practice, accurate judgement, one’s ability
of evaluation, and guessing.
Knowledge Acquisition
● The knowledge base is formed by readings from various experts, scholars,
and the Knowledge Engineers. The knowledge engineer is a person with the
qualities of empathy, quick learning, and case analyzing skills.
● He acquires information from subject expert by recording, interviewing, and
observing him at work, etc.
● He then categorizes and organizes the information in a meaningful way, in the
form of IF-THEN-ELSE rules, to be used by interference machine. The
knowledge engineer also monitors the development of the ES.
Knowledge Base for Medical Diagnosis Expert
system
Symptoms Disease
Fever, cough, conjunctivitis, running nose, rashes Measles
Fever,headache, ache, conjunctivitis, chills,sore
throat,cough,running nose
Flu
Headache, sneezing, sore throat, running nose,
chills
Cold
Fever, chills,ache,rashes Chickenpox
2. The Inference Engine
● An inference engine interprets and evaluates the facts in the knowledge
base in order to provide an answer or to reach a goal state
● For example, if the KB contains the production rules “if x, then y” and “if y, then
z,” the inference engine is able to deduce “if x, then z.”
● In medical diagnosis ES, if a user has Fever, chills,ache,rashes, then user
is suffering from chickenpox
● Strategies used by the inference engine
○ Forward chaining
○ Backward chaining
Forward Chaining
● “What can happen next?”
● It is a data-driven strategy.
● The inferencing process moves from the facts of the case to a goal
(conclusion).
● The inference engine attempts to match the condition (IF) part of each rule in
the knowledge base with the facts currently available in the working memory.
● If several rules match, a conflict resolution procedure is invoked;
Forward chaining diagram
Forward Chaining in Medical Diagnosis ES
● A user has fever, headache, ache, conjunctivitis, chills,sore
throat,cough,running nose.
● In forward chaining, the inference engine will use the symptoms specified to
conclude to the disease the user is suffering from.
● After going through the above symptoms, the inference engine concludes that
the user is suffering from flu by checking the knowledge base.
Backward Chaining
● “Why this happened?”
● On the basis of what has already happened, the Inference Engine tries to find
out which conditions could have happened in the past for this result.
● This strategy is followed for finding out cause or reason.
● The inference engine attempts to match the assumed (hypothesized)
conclusion - the goal or subgoal state - with the conclusion (THEN) part of the
rule.
● If such a rule is found, its premise becomes the new subgoal.
● In an ES with few possible goal states, this is a good strategy to pursue.
Backward Chaining Diagram
Backward Chaining in Medical Diagnosis ES
● Suppose a user has measles.
● Now, the inference engine will look up in the knowledge base to derive the
symptoms that could have resulted in measles.
● It inferred that the symptoms were fever, cough, conjunctivitis, running nose,
rashes.
● This worked as only few states were present.
3. User Interface
● User interface provides interaction between user of the ES and the ES itself.
● The user of the ES need not be necessarily an expert in Artificial Intelligence.
● It explains how the ES has arrived at a particular recommendation. The
explanation may appear in the following forms −
○ Natural language displayed on screen.
○ Verbal narrations in natural language.
○ Listing of rule numbers displayed on the screen.
Code for medical diagnosis ES: 1
#include <iostream>
using namespace std;
void measels(char,char,char,char,char);
void flu(char,char,char,char,char,char,char,char);
void cold(char,char,char,char,char);
void chickenpox(char,char,char,char);
Code for medical diagnosis ES: 2
int main()
{
char name[50];
char a,b,c,d,e,f,g,h,i,j,k;
cout << "Please enter your name.. " << endl;
cin>> name;
cout << "Do you have fever? (y/n)"<< endl;
cin>>a;
cout << "Do you have rashes? (y/n)"<< endl;
Code for medical diagnosis ES: 3
cin>>b;
cout << "Do you have headache? (y/n)"<< endl;
cin>>c;
cout << "Do you have running nose? (y/n)"<< endl;
cin>>d;
cout << "Do you have conjunctivitis? (y/n)"<< endl;
cin>>e;
cout << "Do you have cough? (y/n)"<< endl;
cin>>f;
cout << "Do you have ache? (y/n)"<< endl;
Code for medical diagnosis ES: 4
cin>>g;
cout << "Do you have chills? (y/n)"<< endl;
cin>>h;
cout << "Do you have swollen glands? (y/n)"<< endl;
cin>>i;
cout << "Do you have sneezing? (y/n)"<< endl;
cin>>j;
cout << "Do you have sore throat? (y/n)"<< endl;
cin>>k;
Code for medical diagnosis ES: 5
measles(a,f,e,d,b);
flu(a,c,g,e,h,k,f,d);
cold(c,j,k,d,h);
chickenpox(a,h,g,b);
return 0;
}
Code for medical diagnosis ES: 6
void measles(char q,char w,char r,char t,char y)
{
if(q=='y'&&w=='y'&& r=='y' && t=='y' && y== 'y')
cout<< "You may have measles"<< endl;
else
cout<< "";
}
Code for medical diagnosis ES: 7
void flu(char q,char w,char r,char t,char y,char p,char l,char x)
{
if(q=='y'&&w=='y'&& r=='y' && t=='y' && y== 'y'&& p=='y' && l=='y' && x=='y')
cout<< "You may have flu."<< endl;
else
cout<< "";
}
Output to the User Interface
Applications of Expert System
Limitations of Expert System
No technology offers an easy and total solution. Large systems are costly and
require significant development time and computer resources. ESs also have their
limitations which include:
● Limitations of the technology
● Problems with knowledge acquisition
● Maintaining human expertise in organizations

More Related Content

What's hot

Expert system
Expert systemExpert system
Expert system
Sayeed Far Ooqui
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
Hitesh Mohapatra
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
 
Artificial intelligence and expert system.ppt
Artificial intelligence and expert system.pptArtificial intelligence and expert system.ppt
Artificial intelligence and expert system.ppt
Jiwaji university
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
DataminingTools Inc
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence Projects
Dr. C.V. Suresh Babu
 
Knowledge based systems
Knowledge based systemsKnowledge based systems
Knowledge based systems
Yowan Rdotexe
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AI
Megha Sharma
 
Artificial intelligence agents and environment
Artificial intelligence agents and environmentArtificial intelligence agents and environment
Artificial intelligence agents and environment
Minakshi Atre
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
Dr. C.V. Suresh Babu
 
Expert Systems
Expert SystemsExpert Systems
Expert Systemsosmancikk
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
Hanif Ullah (Gold Medalist)
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
Megha Sharma
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
Dr. C.V. Suresh Babu
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
DigiGurukul
 
Predicate logic
 Predicate logic Predicate logic
Predicate logic
Harini Balamurugan
 
Agents in Artificial intelligence
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence
Lalit Birla
 
Types of Machine Learning
Types of Machine LearningTypes of Machine Learning
Types of Machine Learning
Samra Shahzadi
 

What's hot (20)

Expert system
Expert systemExpert system
Expert system
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
Artificial intelligence and expert system.ppt
Artificial intelligence and expert system.pptArtificial intelligence and expert system.ppt
Artificial intelligence and expert system.ppt
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Problem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence Projects
 
Knowledge based systems
Knowledge based systemsKnowledge based systems
Knowledge based systems
 
Forward and Backward chaining in AI
Forward and Backward chaining in AIForward and Backward chaining in AI
Forward and Backward chaining in AI
 
Artificial intelligence agents and environment
Artificial intelligence agents and environmentArtificial intelligence agents and environment
Artificial intelligence agents and environment
 
Rule Based System
Rule Based SystemRule Based System
Rule Based System
 
Mycin
MycinMycin
Mycin
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
 
Predicate logic
 Predicate logic Predicate logic
Predicate logic
 
Agents in Artificial intelligence
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence
 
Types of Machine Learning
Types of Machine LearningTypes of Machine Learning
Types of Machine Learning
 

Similar to Expert systems Artificial Intelligence

Expert Systems
Expert SystemsExpert Systems
Expert Systems
Varunjeet Singh Rekhi
 
AI R16 - UNIT-5.pdf
AI R16 - UNIT-5.pdfAI R16 - UNIT-5.pdf
AI R16 - UNIT-5.pdf
JNTUK KAKINADA
 
Sensors Wield to Detect the Behavior of Humans
Sensors Wield to Detect the Behavior of HumansSensors Wield to Detect the Behavior of Humans
Sensors Wield to Detect the Behavior of Humans
IRJET Journal
 
Module -3 expert system.pptx
Module -3 expert system.pptxModule -3 expert system.pptx
Module -3 expert system.pptx
SyedRafiammal1
 
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
IJRTEMJOURNAL
 
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
journal ijrtem
 
Expert System in Artificial Intelligence
Expert System in Artificial IntelligenceExpert System in Artificial Intelligence
Expert System in Artificial Intelligence
s7118080008
 
Plug In Generator To Produce Variant Outputs For Unique Data.
Plug In Generator To Produce Variant Outputs For Unique Data.Plug In Generator To Produce Variant Outputs For Unique Data.
Plug In Generator To Produce Variant Outputs For Unique Data.
IJRES Journal
 
heart disease predction using machiine learning
heart disease predction using machiine learningheart disease predction using machiine learning
heart disease predction using machiine learning
PODILAPRAVALLIKA0576
 
The Role of Normware in Trustworthy and Explainable AI
The Role of Normware in Trustworthy and Explainable AIThe Role of Normware in Trustworthy and Explainable AI
The Role of Normware in Trustworthy and Explainable AI
Giovanni Sileno
 
AI System.pptx
AI System.pptxAI System.pptx
AI System.pptx
GloriaShweSinMinn
 
IRJET- Web-based Application to Detect Heart Attack using Machine Learning
IRJET- Web-based Application to Detect Heart Attack using Machine LearningIRJET- Web-based Application to Detect Heart Attack using Machine Learning
IRJET- Web-based Application to Detect Heart Attack using Machine Learning
IRJET Journal
 
Brain Fingerprinting
Brain FingerprintingBrain Fingerprinting
Brain Fingerprinting
Aradhya Kundu
 
Brain Fingerprinting
Brain FingerprintingBrain Fingerprinting
Brain Fingerprinting
Aradhya Kundu
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
Camille Santos
 
Spinesense: Advanced Pain Detection System for Spinal Cord
Spinesense: Advanced Pain Detection System for Spinal CordSpinesense: Advanced Pain Detection System for Spinal Cord
Spinesense: Advanced Pain Detection System for Spinal Cord
IRJET Journal
 

Similar to Expert systems Artificial Intelligence (20)

Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
AI R16 - UNIT-5.pdf
AI R16 - UNIT-5.pdfAI R16 - UNIT-5.pdf
AI R16 - UNIT-5.pdf
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Bfp final presentation
Bfp final presentationBfp final presentation
Bfp final presentation
 
Sensors Wield to Detect the Behavior of Humans
Sensors Wield to Detect the Behavior of HumansSensors Wield to Detect the Behavior of Humans
Sensors Wield to Detect the Behavior of Humans
 
Module -3 expert system.pptx
Module -3 expert system.pptxModule -3 expert system.pptx
Module -3 expert system.pptx
 
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
 
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
ApplyingElectroencephalography inEstablishing SafetyCriterion byMeasuring Men...
 
6.expert systems
6.expert systems6.expert systems
6.expert systems
 
Expert System in Artificial Intelligence
Expert System in Artificial IntelligenceExpert System in Artificial Intelligence
Expert System in Artificial Intelligence
 
Plug In Generator To Produce Variant Outputs For Unique Data.
Plug In Generator To Produce Variant Outputs For Unique Data.Plug In Generator To Produce Variant Outputs For Unique Data.
Plug In Generator To Produce Variant Outputs For Unique Data.
 
heart disease predction using machiine learning
heart disease predction using machiine learningheart disease predction using machiine learning
heart disease predction using machiine learning
 
06.09.26
06.09.2606.09.26
06.09.26
 
The Role of Normware in Trustworthy and Explainable AI
The Role of Normware in Trustworthy and Explainable AIThe Role of Normware in Trustworthy and Explainable AI
The Role of Normware in Trustworthy and Explainable AI
 
AI System.pptx
AI System.pptxAI System.pptx
AI System.pptx
 
IRJET- Web-based Application to Detect Heart Attack using Machine Learning
IRJET- Web-based Application to Detect Heart Attack using Machine LearningIRJET- Web-based Application to Detect Heart Attack using Machine Learning
IRJET- Web-based Application to Detect Heart Attack using Machine Learning
 
Brain Fingerprinting
Brain FingerprintingBrain Fingerprinting
Brain Fingerprinting
 
Brain Fingerprinting
Brain FingerprintingBrain Fingerprinting
Brain Fingerprinting
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Spinesense: Advanced Pain Detection System for Spinal Cord
Spinesense: Advanced Pain Detection System for Spinal CordSpinesense: Advanced Pain Detection System for Spinal Cord
Spinesense: Advanced Pain Detection System for Spinal Cord
 

Recently uploaded

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 

Recently uploaded (20)

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 

Expert systems Artificial Intelligence

  • 1. EXPERT SYSTEM How computers gain expertise?
  • 2. What is an EXPERT SYSTEM? ● An expert system is a computer expert that emulates the decision making ability of a human expert. ● Expert system, a computer program that uses artificial intelligence methods to solve complex problems within a specialized domain that ordinarily requires human expertise.
  • 3. Example: Making of a medical diagnosis expert system ● A medical diagnosis expert system lets the user diagnose his disease without going to a real doctor (but of course, user has to go to a real doctor for treatment)
  • 4. How does the EXPERT SYSTEM gain EXPERTISE?
  • 5. How does medical diagnosis expert system gain expertise?
  • 6. Components of an Expert System 1. Knowledge Base 2. Inference Engine 3. User Interface
  • 7. 1. Knowledge Base ● A knowledge base is an organized collection of facts about the system’s domain. ● Facts for a knowledge base must be acquired from human experts through interviews and observations. ● This knowledge is then usually represented in the form of “if-then” rules (production rules): “If some condition is true, then the following inference can be made (or some action taken).” ● A probability factor is often attached to the conclusion of each production rule and to the ultimate recommendation, because the conclusion is not a certainty.
  • 8. Components of Knowledge Base ● Factual Knowledge − It is the information widely accepted by the Knowledge Engineers and scholars in the task domain. ● Heuristic Knowledge − It is about practice, accurate judgement, one’s ability of evaluation, and guessing.
  • 9. Knowledge Acquisition ● The knowledge base is formed by readings from various experts, scholars, and the Knowledge Engineers. The knowledge engineer is a person with the qualities of empathy, quick learning, and case analyzing skills. ● He acquires information from subject expert by recording, interviewing, and observing him at work, etc. ● He then categorizes and organizes the information in a meaningful way, in the form of IF-THEN-ELSE rules, to be used by interference machine. The knowledge engineer also monitors the development of the ES.
  • 10. Knowledge Base for Medical Diagnosis Expert system Symptoms Disease Fever, cough, conjunctivitis, running nose, rashes Measles Fever,headache, ache, conjunctivitis, chills,sore throat,cough,running nose Flu Headache, sneezing, sore throat, running nose, chills Cold Fever, chills,ache,rashes Chickenpox
  • 11. 2. The Inference Engine ● An inference engine interprets and evaluates the facts in the knowledge base in order to provide an answer or to reach a goal state ● For example, if the KB contains the production rules “if x, then y” and “if y, then z,” the inference engine is able to deduce “if x, then z.” ● In medical diagnosis ES, if a user has Fever, chills,ache,rashes, then user is suffering from chickenpox ● Strategies used by the inference engine ○ Forward chaining ○ Backward chaining
  • 12. Forward Chaining ● “What can happen next?” ● It is a data-driven strategy. ● The inferencing process moves from the facts of the case to a goal (conclusion). ● The inference engine attempts to match the condition (IF) part of each rule in the knowledge base with the facts currently available in the working memory. ● If several rules match, a conflict resolution procedure is invoked;
  • 14. Forward Chaining in Medical Diagnosis ES ● A user has fever, headache, ache, conjunctivitis, chills,sore throat,cough,running nose. ● In forward chaining, the inference engine will use the symptoms specified to conclude to the disease the user is suffering from. ● After going through the above symptoms, the inference engine concludes that the user is suffering from flu by checking the knowledge base.
  • 15. Backward Chaining ● “Why this happened?” ● On the basis of what has already happened, the Inference Engine tries to find out which conditions could have happened in the past for this result. ● This strategy is followed for finding out cause or reason. ● The inference engine attempts to match the assumed (hypothesized) conclusion - the goal or subgoal state - with the conclusion (THEN) part of the rule. ● If such a rule is found, its premise becomes the new subgoal. ● In an ES with few possible goal states, this is a good strategy to pursue.
  • 17. Backward Chaining in Medical Diagnosis ES ● Suppose a user has measles. ● Now, the inference engine will look up in the knowledge base to derive the symptoms that could have resulted in measles. ● It inferred that the symptoms were fever, cough, conjunctivitis, running nose, rashes. ● This worked as only few states were present.
  • 18. 3. User Interface ● User interface provides interaction between user of the ES and the ES itself. ● The user of the ES need not be necessarily an expert in Artificial Intelligence. ● It explains how the ES has arrived at a particular recommendation. The explanation may appear in the following forms − ○ Natural language displayed on screen. ○ Verbal narrations in natural language. ○ Listing of rule numbers displayed on the screen.
  • 19. Code for medical diagnosis ES: 1 #include <iostream> using namespace std; void measels(char,char,char,char,char); void flu(char,char,char,char,char,char,char,char); void cold(char,char,char,char,char); void chickenpox(char,char,char,char);
  • 20. Code for medical diagnosis ES: 2 int main() { char name[50]; char a,b,c,d,e,f,g,h,i,j,k; cout << "Please enter your name.. " << endl; cin>> name; cout << "Do you have fever? (y/n)"<< endl; cin>>a; cout << "Do you have rashes? (y/n)"<< endl;
  • 21. Code for medical diagnosis ES: 3 cin>>b; cout << "Do you have headache? (y/n)"<< endl; cin>>c; cout << "Do you have running nose? (y/n)"<< endl; cin>>d; cout << "Do you have conjunctivitis? (y/n)"<< endl; cin>>e; cout << "Do you have cough? (y/n)"<< endl; cin>>f; cout << "Do you have ache? (y/n)"<< endl;
  • 22. Code for medical diagnosis ES: 4 cin>>g; cout << "Do you have chills? (y/n)"<< endl; cin>>h; cout << "Do you have swollen glands? (y/n)"<< endl; cin>>i; cout << "Do you have sneezing? (y/n)"<< endl; cin>>j; cout << "Do you have sore throat? (y/n)"<< endl; cin>>k;
  • 23. Code for medical diagnosis ES: 5 measles(a,f,e,d,b); flu(a,c,g,e,h,k,f,d); cold(c,j,k,d,h); chickenpox(a,h,g,b); return 0; }
  • 24. Code for medical diagnosis ES: 6 void measles(char q,char w,char r,char t,char y) { if(q=='y'&&w=='y'&& r=='y' && t=='y' && y== 'y') cout<< "You may have measles"<< endl; else cout<< ""; }
  • 25. Code for medical diagnosis ES: 7 void flu(char q,char w,char r,char t,char y,char p,char l,char x) { if(q=='y'&&w=='y'&& r=='y' && t=='y' && y== 'y'&& p=='y' && l=='y' && x=='y') cout<< "You may have flu."<< endl; else cout<< ""; }
  • 26. Output to the User Interface
  • 28. Limitations of Expert System No technology offers an easy and total solution. Large systems are costly and require significant development time and computer resources. ESs also have their limitations which include: ● Limitations of the technology ● Problems with knowledge acquisition ● Maintaining human expertise in organizations