SlideShare une entreprise Scribd logo
1  sur  44
Chapter 1: 
Introduction to 
Expert Systems 
Expert Systems: Principles and 
Programming, Fourth Edition
Objectives 
• Learn the meaning of an expert system 
• Understand the problem domain and knowledge 
domain 
• Learn the advantages of an expert system 
• Understand the stages in the development of an 
expert system 
• Examine the general characteristics of an expert 
system 
Expert Systems: Principles and Programming, Fourth Edition 2
Objectives 
• Examine earlier expert systems which have given 
rise to today’s knowledge-based systems 
• Explore the applications of expert systems in use 
today 
• Examine the structure of a rule-based expert 
system 
• Learn the difference between procedural and 
nonprocedural paradigms 
• What are the characteristics of artificial neural 
systems 
Expert Systems: Principles and Programming, Fourth Edition 3
Artificial Intelligence 
• AI = “Making computers think like people.” 
Expert Systems: Principles and Programming, Fourth Edition 4
Areas of Artificial Intelligence 
Expert Systems: Principles and Programming, Fourth Edition 5
What is an expert system? 
“An expert system is a computer system 
that emulates, or acts in all respects, with 
the decision-making capabilities of a human 
expert.” 
Professor Edward Feigenbaum 
Stanford University 
• Expert Systems = knowledge-based systems 
= knowledge-based expert systems 
Expert Systems: Principles and Programming, Fourth Edition 6
What is an expert system? 
• Emulation (mimics cause/process) is stronger than 
simulation (mimics outward appearance) which is 
required to act like the real thing in only some 
aspects. 
• The basic idea is that if a human expert can specify 
the steps of reasoning by which a problem may be 
solved, so too can an expert system. 
• Restricted domain expert systems (extensive use of 
specialized knowledge at the level of human expert) 
function well which is not the case of general-purpose 
problem solver. 
Expert Systems: Principles and Programming, Fourth Edition 7
Expert system technology 
may include: 
• Special expert system languages – CLIPS 
• Programs 
• Hardware designed to facilitate the 
implementation of those systems (e.g., in 
medicine) 
Expert Systems: Principles and Programming, Fourth Edition 8
Expert System Main Components 
• Knowledge base – obtainable from books, 
magazines, knowledgeable persons, etc; or 
expertise knowledge. 
• Inference engine – draws conclusions from the 
knowledge base. 
Expert Systems: Principles and Programming, Fourth Edition 9
Basic Functions of Expert Systems 
Expert Systems: Principles and Programming, Fourth Edition 10
Problem Domain vs. Knowledge 
Domain 
• In general, the first step in solving any problem is 
defining the problem area or domain to be solved. 
• An expert’s knowledge is specific to one problem 
domain – medicine, finance, science, engineering, 
etc. 
• The expert’s knowledge about solving specific 
problems is called the knowledge domain. 
• The problem domain is always a superset of the 
knowledge domain. 
• Expert system reasons from knowledge domain. 
Expert Systems: Principles and Programming, Fourth Edition 11
Problem Domain vs. Knowledge 
Domain 
• Example: infections diseases diagnostic system 
does not have (or require) knowledge about other 
branches such as surgery. 
Expert Systems: Principles and Programming, Fourth Edition 12
Problem and Knowledge 
Domain Relationship 
Expert Systems: Principles and Programming, Fourth Edition 13
Advantages of Expert Systems 
• Increased availability: on suitable computer hardware 
• Reduced cost 
• Reduced danger: can be used in hazardous environment. 
• Permanence: last for ever, unlike human who may die, 
retire, quit. 
• Multiple expertise: several experts’ knowledge leads to 
• Increased reliability 
Expert Systems: Principles and Programming, Fourth Edition 14
Advantages Continued 
• Explanation: explain in detail how arrived at 
conclusions. 
• Fast response: (e.g. emergency situations). 
• Steady, unemotional, and complete responses at all 
times: unlike human who may be inefficient because 
of stress or fatigue. 
• Intelligent tutor: provides direct instructions (student 
may run sample programs and explaining the system’s 
reasoning). 
• Intelligent database: access a database intelligently 
(e.g. data mining). 
Expert Systems: Principles and Programming, Fourth Edition 15
Representing the Knowledge 
The knowledge of an expert system can be 
represented in a number of ways, including IF-THEN 
rules: 
IF the light is red THEN stop 
Expert Systems: Principles and Programming, Fourth Edition 16
Representing the Knowledge 
Car Failure Diagnosis 
IF the selection is 2 "Run-Stable State" 
AND the fuel is not burning well 
AND the engine running cycle is ok 
AND there is no blue gas 
AND the advance is bad 
THEN 
There is a Dirt in the injections/carburetor 
or The adjustment of ear and gasoline is 
not good, clear injections/carburetor and 
adjust the ear. 
Expert Systems: Principles and Programming, Fourth Edition 17
Knowledge Engineering 
The process of building an expert system: 
1. The knowledge engineer establishes a dialog 
with the human expert to elicit knowledge. 
2. The knowledge engineer codes the knowledge 
explicitly in the knowledge base. 
3. The expert evaluates the expert system and 
gives a critique to the knowledge engineer. 
Expert Systems: Principles and Programming, Fourth Edition 18
Development of an Expert System 
Expert Systems: Principles and Programming, Fourth Edition 19
The Role of AI 
• An algorithm is an ideal solution guaranteed to 
yield a solution in a finite amount of time. 
• When an algorithm is not available or is 
insufficient, we rely on artificial intelligence 
(AI). 
• Expert system relies on inference – we accept a 
“reasonable solution.” 
Expert Systems: Principles and Programming, Fourth Edition 20
Limitations of Expert Systems 
• Uncertainty = having limited knowledge (more 
than possible outcomes) 
• Both human experts and expert systems must be 
able to deal with uncertainty. 
• Limitation 1: most expert systems deals with 
shallow knowledge than with deep knowledge. 
• Shallow knowledge – based on empirical and 
heuristic knowledge. 
• Deep knowledge – based on basic structure, 
function, and behavior of objects. 
Expert Systems: Principles and Programming, Fourth Edition 21
Limitations of Expert Systems 
• Limitation 2: typical expert systems cannot 
generalize through analogy to reason about new 
situations in the way people can. 
• Solution 1 for limitation 2: repeating the cycle of 
interviewing the expert. 
• Limitation raised form Solution 1: A knowledge 
acquisition bottleneck results from the time-consuming 
and labor intensive task of building 
an expert system. 
Expert Systems: Principles and Programming, Fourth Edition 22
Early Expert Systems 
• DENDRAL – used in chemical mass 
spectroscopy to identify chemical constituents 
• MYCIN – medical diagnosis of illness 
• DIPMETER – geological data analysis for oil 
• PROSPECTOR – geological data analysis for 
minerals 
• XCON/R1 – configuring computer systems 
Expert Systems: Principles and Programming, Fourth Edition 23
Broad Classes of Expert Systems 
Expert Systems: Principles and Programming, Fourth Edition 24
Problems with Algorithmic 
Solutions 
• Conventional computer programs generally solve 
problems having algorithmic solutions. 
• Algorithmic languages include C, Java, and C#. 
• Classic AI languages include LISP and 
PROLOG. 
Expert Systems: Principles and Programming, Fourth Edition 25
Considerations for Building 
Expert Systems 
• Can the problem be solved effectively by 
conventional programming? (expert systems are 
suited for ill-structured problems- problems with no 
efficient algorithmic solution) 
• Is there a need and a desire for an expert system? 
• Is there at least one human expert who is willing to 
cooperate? 
• Can the expert explain the knowledge to the 
knowledge engineer in a way that can understand it. 
• Is the problem-solving knowledge mainly heuristic 
and uncertain? 
Expert Systems: Principles and Programming, Fourth Edition 26
Languages, Shells, and Tools 
• Expert system languages are post-third generation. 
• Expert system languages (e.g. CLIPS) focus on 
ways to represent knowledge. 
• Tool = language + utility program (code generator, 
graphics editor, debuggers, etc.). 
• Shell: is a special purpose tool designed for certain 
types of applications in which the user must supply 
the knowledge base. Example, EMYCIN (empty 
MYCIN) 
Expert Systems: Principles and Programming, Fourth Edition 27
Elements of an Expert System 
• User interface – mechanism by which user and 
system communicate. 
• Exploration facility – explains reasoning of 
expert system to user. 
• Working memory – global database of facts used 
by rules. 
• Inference engine – makes inferences deciding 
which rules are satisfied and prioritizing. 
Expert Systems: Principles and Programming, Fourth Edition 28
Elements Continued 
• Agenda – a prioritized list of rules created by the 
inference engine, whose patterns are satisfied by 
facts or objects in working memory. 
• Knowledge acquisition facility – automatic way 
for the user to enter knowledge in the system 
bypassing the explicit coding by knowledge 
engineer. 
Expert Systems: Principles and Programming, Fourth Edition 29
Structure of a 
Rule-Based Expert System 
Expert Systems: Principles and Programming, Fourth Edition 30
Production Rules 
• Knowledge base is also called production 
memory. 
• Production rules can be expressed in IF-THEN 
pseudocode format. 
• In rule-based systems, the inference engine 
determines which rule antecedents are satisfied 
by the facts. 
Expert Systems: Principles and Programming, Fourth Edition 31
Inference engine operates on 
recognize-act cycle 
While not done 
conflict resolution: 
act: 
match: 
check for halt: 
End-while 
Expert Systems: Principles and Programming, Fourth Edition 32
Inference engine operates on 
recognize-act cycle 
- conflict resolution: if there are activations then 
select the one with the highest priority. Else 
done. 
- act: sequentially perform the actions. Update the 
working memory. Remove the fired activations. 
- match: Update the agenda by checking if there 
are activation or remove activations if there LHS 
is no longer satisfied. 
- check for halt: if an halt action is performed or 
break command given, then done. 
Expert Systems: Principles and Programming, Fourth Edition 33
General Methods of Inferencing 
• Forward chaining – reasoning from facts to the 
conclusions resulting from those facts – best for 
prognosis, monitoring, and control. 
• Backward chaining – reasoning in reverse from a 
hypothesis, a potential conclusion to be proved to 
the facts that support the hypothesis – best for 
diagnosis problems. 
Expert Systems: Principles and Programming, Fourth Edition 34
Production Systems 
• Rule-based expert systems – most popular type 
today. 
• Knowledge is represented as multiple rules that 
specify what should/not be concluded from 
different situations. 
• Forward chaining – start w/facts and use rules do 
draw conclusions/take actions. 
• Backward chaining – start w/hypothesis and look 
for rules that allow hypothesis to be proven true. 
Expert Systems: Principles and Programming, Fourth Edition 35
Post Production System 
• Basic idea – any mathematical / logical system is 
simply a set of rules specifying how to change 
one string of symbols into another string of 
symbols. 
• Basic limitation – lack of control mechanism to 
guide the application of the rules. 
Expert Systems: Principles and Programming, Fourth Edition 36
Markov Algorithm 
• An ordered group of productions applied in order 
or priority to an input string. 
• If the highest priority rule is not applicable, we 
apply the next, and so on. 
• An inefficient algorithm for systems with many 
rules. 
Expert Systems: Principles and Programming, Fourth Edition 37
Rete Algorithm 
• Functions like a net – holding a lot of 
information. 
• Much faster response times and rule firings can 
occur compared to a large group of IF-THEN 
rules which would have to be checked one-by-one 
in conventional program. 
• Takes advantage of temporal redundancy and 
structural similarity. 
• Drawback is high memory space requirements. 
Expert Systems: Principles and Programming, Fourth Edition 38
Procedural Paradigms 
• Algorithm – method of solving a problem in a 
finite number of steps. 
• Procedural programs are also called sequential 
programs. 
• The programmer specifies exactly how a problem 
solution must be coded. 
Expert Systems: Principles and Programming, Fourth Edition 39
Procedural Languages 
Expert Systems: Principles and Programming, Fourth Edition 40
Imperative Programming 
• Focuses on the concept of modifiable store – 
variables and assignments. 
• During execution, program makes transition from 
the initial state to the final state by passing 
through series of intermediate states. 
• Provide for top-down-design. 
• Not efficient for directly implementing expert 
systems. 
Expert Systems: Principles and Programming, Fourth Edition 41
Nonprocedural Paradigms 
• Do not depend on the programmer giving exact 
details how the program is to be solved. 
• Declarative programming – goal is separated 
from the method to achieve it. 
• Object-oriented programming – partly imperative 
and partly declarative – uses objects and methods 
that act on those objects. 
• Inheritance – (OOP) subclasses derived from 
parent classes. 
Expert Systems: Principles and Programming, Fourth Edition 42
Nonprocedural Languages 
Expert Systems: Principles and Programming, Fourth Edition 43
What are Expert Systems? 
Can be considered declarative languages: 
• Programmer does not specify how to achieve a 
goal at the algorithm level. 
• Induction-based programming – the program 
learns by generalizing from a sample. 
Expert Systems: Principles and Programming, Fourth Edition 44

Contenu connexe

Tendances

Expert system presentation
Expert system presentationExpert system presentation
Expert system presentationmaryam shaikh
 
Expert System - Artificial intelligence
Expert System - Artificial intelligenceExpert System - Artificial intelligence
Expert System - Artificial intelligenceDr. Abdul Ahad Abro
 
Introduction and architecture of expert system
Introduction  and architecture of expert systemIntroduction  and architecture of expert system
Introduction and architecture of expert systempremdeshmane
 
Artificial Intelligence Notes Unit 5
Artificial Intelligence Notes Unit 5Artificial Intelligence Notes Unit 5
Artificial Intelligence Notes Unit 5DigiGurukul
 
Expert Systems
Expert SystemsExpert Systems
Expert Systemsosmancikk
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
 
Lecture 06 production system
Lecture 06 production systemLecture 06 production system
Lecture 06 production systemHema Kashyap
 
Application of Expert Systems in System Analysis & Design
Application of Expert Systems inSystem Analysis & DesignApplication of Expert Systems inSystem Analysis & Design
Application of Expert Systems in System Analysis & Design faiza nahin
 
Knowledge based system
Knowledge based systemKnowledge based system
Knowledge based systemchauhankapil
 
Logics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiLogics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiShaishavShah8
 
fuzzy fuzzification and defuzzification
fuzzy fuzzification and defuzzificationfuzzy fuzzification and defuzzification
fuzzy fuzzification and defuzzificationNourhan Selem Salm
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AIvikas dhakane
 

Tendances (20)

Expert system presentation
Expert system presentationExpert system presentation
Expert system presentation
 
Expert System - Artificial intelligence
Expert System - Artificial intelligenceExpert System - Artificial intelligence
Expert System - Artificial intelligence
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Knowledge Representation in AI.pptx
Knowledge Representation in AI.pptxKnowledge Representation in AI.pptx
Knowledge Representation in AI.pptx
 
Introduction and architecture of expert system
Introduction  and architecture of expert systemIntroduction  and architecture of expert system
Introduction and architecture of expert system
 
Artificial Intelligence Notes Unit 5
Artificial Intelligence Notes Unit 5Artificial Intelligence Notes Unit 5
Artificial Intelligence Notes Unit 5
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
Predicate logic
 Predicate logic Predicate logic
Predicate logic
 
Lecture 06 production system
Lecture 06 production systemLecture 06 production system
Lecture 06 production system
 
Application of Expert Systems in System Analysis & Design
Application of Expert Systems inSystem Analysis & DesignApplication of Expert Systems inSystem Analysis & Design
Application of Expert Systems in System Analysis & Design
 
Knowledge based system
Knowledge based systemKnowledge based system
Knowledge based system
 
Fuzzy expert system
Fuzzy expert systemFuzzy expert system
Fuzzy expert system
 
Expert system
Expert systemExpert system
Expert system
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Logics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiLogics for non monotonic reasoning-ai
Logics for non monotonic reasoning-ai
 
fuzzy fuzzification and defuzzification
fuzzy fuzzification and defuzzificationfuzzy fuzzification and defuzzification
fuzzy fuzzification and defuzzification
 
Mycin
MycinMycin
Mycin
 
Artificial Intelligence - Reasoning in Uncertain Situations
Artificial Intelligence - Reasoning in Uncertain SituationsArtificial Intelligence - Reasoning in Uncertain Situations
Artificial Intelligence - Reasoning in Uncertain Situations
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 

En vedette

Expert systems
Expert systemsExpert systems
Expert systemsJithin Zcs
 
Rule Based Architecture System
Rule Based Architecture SystemRule Based Architecture System
Rule Based Architecture SystemFirdaus Adib
 
Ruled based expert system
Ruled based expert systemRuled based expert system
Ruled based expert systemAmit Dahal
 
Lecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial IntelligenceLecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial IntelligenceKodok Ngorex
 
TRANSFORMER DIAGNOSTICS BY AN EXPERT SYSTEM
TRANSFORMER DIAGNOSTICS BY AN EXPERT SYSTEMTRANSFORMER DIAGNOSTICS BY AN EXPERT SYSTEM
TRANSFORMER DIAGNOSTICS BY AN EXPERT SYSTEMGururaj B Rawoor
 
MIS 07 Expert Systems
MIS 07  Expert SystemsMIS 07  Expert Systems
MIS 07 Expert SystemsTushar B Kute
 
Introduction to Rule-based Applications
Introduction to  Rule-based ApplicationsIntroduction to  Rule-based Applications
Introduction to Rule-based Applicationsgiurca
 
Ch2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchCh2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchchandsek666
 
La Planeacion por Competencias en la Escuela ccesa007
La Planeacion por Competencias en la Escuela ccesa007La Planeacion por Competencias en la Escuela ccesa007
La Planeacion por Competencias en la Escuela ccesa007Demetrio Ccesa Rayme
 
A rule based system of indigenous knowledge for crop protectiion
A rule based system of indigenous knowledge for crop protectiionA rule based system of indigenous knowledge for crop protectiion
A rule based system of indigenous knowledge for crop protectiionhanshine64
 
Data mining using sql server v1.2
Data mining using sql server v1.2Data mining using sql server v1.2
Data mining using sql server v1.2Koray Kocabas
 

En vedette (20)

Rule Based System
Rule Based SystemRule Based System
Rule Based System
 
Expert system
Expert systemExpert system
Expert system
 
Topic 8 expert system
Topic 8 expert systemTopic 8 expert system
Topic 8 expert system
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Rule Based Architecture System
Rule Based Architecture SystemRule Based Architecture System
Rule Based Architecture System
 
Ruled based expert system
Ruled based expert systemRuled based expert system
Ruled based expert system
 
Lecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial IntelligenceLecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial Intelligence
 
6.expert systems
6.expert systems6.expert systems
6.expert systems
 
TRANSFORMER DIAGNOSTICS BY AN EXPERT SYSTEM
TRANSFORMER DIAGNOSTICS BY AN EXPERT SYSTEMTRANSFORMER DIAGNOSTICS BY AN EXPERT SYSTEM
TRANSFORMER DIAGNOSTICS BY AN EXPERT SYSTEM
 
Expert System
Expert SystemExpert System
Expert System
 
MIS 07 Expert Systems
MIS 07  Expert SystemsMIS 07  Expert Systems
MIS 07 Expert Systems
 
Expert system (mis)
Expert system (mis)Expert system (mis)
Expert system (mis)
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Expert system
Expert systemExpert system
Expert system
 
Introduction to Rule-based Applications
Introduction to  Rule-based ApplicationsIntroduction to  Rule-based Applications
Introduction to Rule-based Applications
 
Ch2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchCh2 3-informed (heuristic) search
Ch2 3-informed (heuristic) search
 
La Planeacion por Competencias en la Escuela ccesa007
La Planeacion por Competencias en la Escuela ccesa007La Planeacion por Competencias en la Escuela ccesa007
La Planeacion por Competencias en la Escuela ccesa007
 
A rule based system of indigenous knowledge for crop protectiion
A rule based system of indigenous knowledge for crop protectiionA rule based system of indigenous knowledge for crop protectiion
A rule based system of indigenous knowledge for crop protectiion
 
Data mining using sql server v1.2
Data mining using sql server v1.2Data mining using sql server v1.2
Data mining using sql server v1.2
 

Similaire à Expert system 21 sldes

Expert systems 1
Expert systems 1Expert systems 1
Expert systems 1AliNawaz567
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligenceKitty Soso
 
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...Madhav Mishra
 
ai-ruba.pptx presentation artificial intelligence
ai-ruba.pptx presentation artificial intelligenceai-ruba.pptx presentation artificial intelligence
ai-ruba.pptx presentation artificial intelligenceChellamuthuHaripriya
 
AI_Module_4_lecture_1.pptx
AI_Module_4_lecture_1.pptxAI_Module_4_lecture_1.pptx
AI_Module_4_lecture_1.pptxadityab33
 
LESSON 8 EXPERT SYSTEMS BASICS.ppt
LESSON 8 EXPERT SYSTEMS BASICS.pptLESSON 8 EXPERT SYSTEMS BASICS.ppt
LESSON 8 EXPERT SYSTEMS BASICS.pptJoyleenChemutai1
 
Expert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth EditionExpert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth Editionmercyzyada1999
 
Expert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth EditionExpert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth Editionmercyzyada1999
 
IS740 Chapter 11
IS740 Chapter 11IS740 Chapter 11
IS740 Chapter 11iDocs
 
A presentation on Expert System
A presentation on Expert SystemA presentation on Expert System
A presentation on Expert SystemVanga Naresh
 
Finalpresentation 120711124135-phpapp02
Finalpresentation 120711124135-phpapp02Finalpresentation 120711124135-phpapp02
Finalpresentation 120711124135-phpapp02Bhargava Dutt
 
Lecture 1. Introduction to Expert System.pptx
Lecture 1. Introduction to Expert System.pptxLecture 1. Introduction to Expert System.pptx
Lecture 1. Introduction to Expert System.pptxKunalSingh560957
 
BI UNIT V CHAPTER 12 Artificial Intelligence and Expert System.pptx
BI UNIT V CHAPTER 12   Artificial Intelligence and Expert System.pptxBI UNIT V CHAPTER 12   Artificial Intelligence and Expert System.pptx
BI UNIT V CHAPTER 12 Artificial Intelligence and Expert System.pptxTGCbsahil
 
1_Expertsystems.ppt
1_Expertsystems.ppt1_Expertsystems.ppt
1_Expertsystems.pptRISHI643981
 

Similaire à Expert system 21 sldes (20)

Lecture_8.ppt
Lecture_8.pptLecture_8.ppt
Lecture_8.ppt
 
Sh ch01
Sh ch01Sh ch01
Sh ch01
 
Expert systems 1
Expert systems 1Expert systems 1
Expert systems 1
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...
Applied Artificial Intelligence Unit 1 Semester 3 MSc IT Part 2 Mumbai Univer...
 
ai-ruba.pptx presentation artificial intelligence
ai-ruba.pptx presentation artificial intelligenceai-ruba.pptx presentation artificial intelligence
ai-ruba.pptx presentation artificial intelligence
 
AI_Module_4_lecture_1.pptx
AI_Module_4_lecture_1.pptxAI_Module_4_lecture_1.pptx
AI_Module_4_lecture_1.pptx
 
LESSON 8 EXPERT SYSTEMS BASICS.ppt
LESSON 8 EXPERT SYSTEMS BASICS.pptLESSON 8 EXPERT SYSTEMS BASICS.ppt
LESSON 8 EXPERT SYSTEMS BASICS.ppt
 
Expert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth EditionExpert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth Edition
 
1 Expert System.ppt
1 Expert System.ppt1 Expert System.ppt
1 Expert System.ppt
 
Expert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth EditionExpert Systems: Principles and Programming, Fourth Edition
Expert Systems: Principles and Programming, Fourth Edition
 
IS740 Chapter 11
IS740 Chapter 11IS740 Chapter 11
IS740 Chapter 11
 
A presentation on Expert System
A presentation on Expert SystemA presentation on Expert System
A presentation on Expert System
 
Expert system
Expert systemExpert system
Expert system
 
Expert systems
Expert systemsExpert systems
Expert systems
 
expert systems
expert systemsexpert systems
expert systems
 
Finalpresentation 120711124135-phpapp02
Finalpresentation 120711124135-phpapp02Finalpresentation 120711124135-phpapp02
Finalpresentation 120711124135-phpapp02
 
Lecture 1. Introduction to Expert System.pptx
Lecture 1. Introduction to Expert System.pptxLecture 1. Introduction to Expert System.pptx
Lecture 1. Introduction to Expert System.pptx
 
BI UNIT V CHAPTER 12 Artificial Intelligence and Expert System.pptx
BI UNIT V CHAPTER 12   Artificial Intelligence and Expert System.pptxBI UNIT V CHAPTER 12   Artificial Intelligence and Expert System.pptx
BI UNIT V CHAPTER 12 Artificial Intelligence and Expert System.pptx
 
1_Expertsystems.ppt
1_Expertsystems.ppt1_Expertsystems.ppt
1_Expertsystems.ppt
 

Plus de Yasir Khan (20)

Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lec#1
Lec#1Lec#1
Lec#1
 
Ch10 (1)
Ch10 (1)Ch10 (1)
Ch10 (1)
 
Ch09
Ch09Ch09
Ch09
 
Ch05
Ch05Ch05
Ch05
 
Snooping protocols 3
Snooping protocols 3Snooping protocols 3
Snooping protocols 3
 
Snooping 2
Snooping 2Snooping 2
Snooping 2
 
Introduction 1
Introduction 1Introduction 1
Introduction 1
 
Hpc sys
Hpc sysHpc sys
Hpc sys
 
Hpc 6 7
Hpc 6 7Hpc 6 7
Hpc 6 7
 
Hpc 4 5
Hpc 4 5Hpc 4 5
Hpc 4 5
 
Hpc 3
Hpc 3Hpc 3
Hpc 3
 
Hpc 2
Hpc 2Hpc 2
Hpc 2
 
Hpc 1
Hpc 1Hpc 1
Hpc 1
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Dir based imp_5
Dir based imp_5Dir based imp_5
Dir based imp_5
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 

Expert system 21 sldes

  • 1. Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition
  • 2. Objectives • Learn the meaning of an expert system • Understand the problem domain and knowledge domain • Learn the advantages of an expert system • Understand the stages in the development of an expert system • Examine the general characteristics of an expert system Expert Systems: Principles and Programming, Fourth Edition 2
  • 3. Objectives • Examine earlier expert systems which have given rise to today’s knowledge-based systems • Explore the applications of expert systems in use today • Examine the structure of a rule-based expert system • Learn the difference between procedural and nonprocedural paradigms • What are the characteristics of artificial neural systems Expert Systems: Principles and Programming, Fourth Edition 3
  • 4. Artificial Intelligence • AI = “Making computers think like people.” Expert Systems: Principles and Programming, Fourth Edition 4
  • 5. Areas of Artificial Intelligence Expert Systems: Principles and Programming, Fourth Edition 5
  • 6. What is an expert system? “An expert system is a computer system that emulates, or acts in all respects, with the decision-making capabilities of a human expert.” Professor Edward Feigenbaum Stanford University • Expert Systems = knowledge-based systems = knowledge-based expert systems Expert Systems: Principles and Programming, Fourth Edition 6
  • 7. What is an expert system? • Emulation (mimics cause/process) is stronger than simulation (mimics outward appearance) which is required to act like the real thing in only some aspects. • The basic idea is that if a human expert can specify the steps of reasoning by which a problem may be solved, so too can an expert system. • Restricted domain expert systems (extensive use of specialized knowledge at the level of human expert) function well which is not the case of general-purpose problem solver. Expert Systems: Principles and Programming, Fourth Edition 7
  • 8. Expert system technology may include: • Special expert system languages – CLIPS • Programs • Hardware designed to facilitate the implementation of those systems (e.g., in medicine) Expert Systems: Principles and Programming, Fourth Edition 8
  • 9. Expert System Main Components • Knowledge base – obtainable from books, magazines, knowledgeable persons, etc; or expertise knowledge. • Inference engine – draws conclusions from the knowledge base. Expert Systems: Principles and Programming, Fourth Edition 9
  • 10. Basic Functions of Expert Systems Expert Systems: Principles and Programming, Fourth Edition 10
  • 11. Problem Domain vs. Knowledge Domain • In general, the first step in solving any problem is defining the problem area or domain to be solved. • An expert’s knowledge is specific to one problem domain – medicine, finance, science, engineering, etc. • The expert’s knowledge about solving specific problems is called the knowledge domain. • The problem domain is always a superset of the knowledge domain. • Expert system reasons from knowledge domain. Expert Systems: Principles and Programming, Fourth Edition 11
  • 12. Problem Domain vs. Knowledge Domain • Example: infections diseases diagnostic system does not have (or require) knowledge about other branches such as surgery. Expert Systems: Principles and Programming, Fourth Edition 12
  • 13. Problem and Knowledge Domain Relationship Expert Systems: Principles and Programming, Fourth Edition 13
  • 14. Advantages of Expert Systems • Increased availability: on suitable computer hardware • Reduced cost • Reduced danger: can be used in hazardous environment. • Permanence: last for ever, unlike human who may die, retire, quit. • Multiple expertise: several experts’ knowledge leads to • Increased reliability Expert Systems: Principles and Programming, Fourth Edition 14
  • 15. Advantages Continued • Explanation: explain in detail how arrived at conclusions. • Fast response: (e.g. emergency situations). • Steady, unemotional, and complete responses at all times: unlike human who may be inefficient because of stress or fatigue. • Intelligent tutor: provides direct instructions (student may run sample programs and explaining the system’s reasoning). • Intelligent database: access a database intelligently (e.g. data mining). Expert Systems: Principles and Programming, Fourth Edition 15
  • 16. Representing the Knowledge The knowledge of an expert system can be represented in a number of ways, including IF-THEN rules: IF the light is red THEN stop Expert Systems: Principles and Programming, Fourth Edition 16
  • 17. Representing the Knowledge Car Failure Diagnosis IF the selection is 2 "Run-Stable State" AND the fuel is not burning well AND the engine running cycle is ok AND there is no blue gas AND the advance is bad THEN There is a Dirt in the injections/carburetor or The adjustment of ear and gasoline is not good, clear injections/carburetor and adjust the ear. Expert Systems: Principles and Programming, Fourth Edition 17
  • 18. Knowledge Engineering The process of building an expert system: 1. The knowledge engineer establishes a dialog with the human expert to elicit knowledge. 2. The knowledge engineer codes the knowledge explicitly in the knowledge base. 3. The expert evaluates the expert system and gives a critique to the knowledge engineer. Expert Systems: Principles and Programming, Fourth Edition 18
  • 19. Development of an Expert System Expert Systems: Principles and Programming, Fourth Edition 19
  • 20. The Role of AI • An algorithm is an ideal solution guaranteed to yield a solution in a finite amount of time. • When an algorithm is not available or is insufficient, we rely on artificial intelligence (AI). • Expert system relies on inference – we accept a “reasonable solution.” Expert Systems: Principles and Programming, Fourth Edition 20
  • 21. Limitations of Expert Systems • Uncertainty = having limited knowledge (more than possible outcomes) • Both human experts and expert systems must be able to deal with uncertainty. • Limitation 1: most expert systems deals with shallow knowledge than with deep knowledge. • Shallow knowledge – based on empirical and heuristic knowledge. • Deep knowledge – based on basic structure, function, and behavior of objects. Expert Systems: Principles and Programming, Fourth Edition 21
  • 22. Limitations of Expert Systems • Limitation 2: typical expert systems cannot generalize through analogy to reason about new situations in the way people can. • Solution 1 for limitation 2: repeating the cycle of interviewing the expert. • Limitation raised form Solution 1: A knowledge acquisition bottleneck results from the time-consuming and labor intensive task of building an expert system. Expert Systems: Principles and Programming, Fourth Edition 22
  • 23. Early Expert Systems • DENDRAL – used in chemical mass spectroscopy to identify chemical constituents • MYCIN – medical diagnosis of illness • DIPMETER – geological data analysis for oil • PROSPECTOR – geological data analysis for minerals • XCON/R1 – configuring computer systems Expert Systems: Principles and Programming, Fourth Edition 23
  • 24. Broad Classes of Expert Systems Expert Systems: Principles and Programming, Fourth Edition 24
  • 25. Problems with Algorithmic Solutions • Conventional computer programs generally solve problems having algorithmic solutions. • Algorithmic languages include C, Java, and C#. • Classic AI languages include LISP and PROLOG. Expert Systems: Principles and Programming, Fourth Edition 25
  • 26. Considerations for Building Expert Systems • Can the problem be solved effectively by conventional programming? (expert systems are suited for ill-structured problems- problems with no efficient algorithmic solution) • Is there a need and a desire for an expert system? • Is there at least one human expert who is willing to cooperate? • Can the expert explain the knowledge to the knowledge engineer in a way that can understand it. • Is the problem-solving knowledge mainly heuristic and uncertain? Expert Systems: Principles and Programming, Fourth Edition 26
  • 27. Languages, Shells, and Tools • Expert system languages are post-third generation. • Expert system languages (e.g. CLIPS) focus on ways to represent knowledge. • Tool = language + utility program (code generator, graphics editor, debuggers, etc.). • Shell: is a special purpose tool designed for certain types of applications in which the user must supply the knowledge base. Example, EMYCIN (empty MYCIN) Expert Systems: Principles and Programming, Fourth Edition 27
  • 28. Elements of an Expert System • User interface – mechanism by which user and system communicate. • Exploration facility – explains reasoning of expert system to user. • Working memory – global database of facts used by rules. • Inference engine – makes inferences deciding which rules are satisfied and prioritizing. Expert Systems: Principles and Programming, Fourth Edition 28
  • 29. Elements Continued • Agenda – a prioritized list of rules created by the inference engine, whose patterns are satisfied by facts or objects in working memory. • Knowledge acquisition facility – automatic way for the user to enter knowledge in the system bypassing the explicit coding by knowledge engineer. Expert Systems: Principles and Programming, Fourth Edition 29
  • 30. Structure of a Rule-Based Expert System Expert Systems: Principles and Programming, Fourth Edition 30
  • 31. Production Rules • Knowledge base is also called production memory. • Production rules can be expressed in IF-THEN pseudocode format. • In rule-based systems, the inference engine determines which rule antecedents are satisfied by the facts. Expert Systems: Principles and Programming, Fourth Edition 31
  • 32. Inference engine operates on recognize-act cycle While not done conflict resolution: act: match: check for halt: End-while Expert Systems: Principles and Programming, Fourth Edition 32
  • 33. Inference engine operates on recognize-act cycle - conflict resolution: if there are activations then select the one with the highest priority. Else done. - act: sequentially perform the actions. Update the working memory. Remove the fired activations. - match: Update the agenda by checking if there are activation or remove activations if there LHS is no longer satisfied. - check for halt: if an halt action is performed or break command given, then done. Expert Systems: Principles and Programming, Fourth Edition 33
  • 34. General Methods of Inferencing • Forward chaining – reasoning from facts to the conclusions resulting from those facts – best for prognosis, monitoring, and control. • Backward chaining – reasoning in reverse from a hypothesis, a potential conclusion to be proved to the facts that support the hypothesis – best for diagnosis problems. Expert Systems: Principles and Programming, Fourth Edition 34
  • 35. Production Systems • Rule-based expert systems – most popular type today. • Knowledge is represented as multiple rules that specify what should/not be concluded from different situations. • Forward chaining – start w/facts and use rules do draw conclusions/take actions. • Backward chaining – start w/hypothesis and look for rules that allow hypothesis to be proven true. Expert Systems: Principles and Programming, Fourth Edition 35
  • 36. Post Production System • Basic idea – any mathematical / logical system is simply a set of rules specifying how to change one string of symbols into another string of symbols. • Basic limitation – lack of control mechanism to guide the application of the rules. Expert Systems: Principles and Programming, Fourth Edition 36
  • 37. Markov Algorithm • An ordered group of productions applied in order or priority to an input string. • If the highest priority rule is not applicable, we apply the next, and so on. • An inefficient algorithm for systems with many rules. Expert Systems: Principles and Programming, Fourth Edition 37
  • 38. Rete Algorithm • Functions like a net – holding a lot of information. • Much faster response times and rule firings can occur compared to a large group of IF-THEN rules which would have to be checked one-by-one in conventional program. • Takes advantage of temporal redundancy and structural similarity. • Drawback is high memory space requirements. Expert Systems: Principles and Programming, Fourth Edition 38
  • 39. Procedural Paradigms • Algorithm – method of solving a problem in a finite number of steps. • Procedural programs are also called sequential programs. • The programmer specifies exactly how a problem solution must be coded. Expert Systems: Principles and Programming, Fourth Edition 39
  • 40. Procedural Languages Expert Systems: Principles and Programming, Fourth Edition 40
  • 41. Imperative Programming • Focuses on the concept of modifiable store – variables and assignments. • During execution, program makes transition from the initial state to the final state by passing through series of intermediate states. • Provide for top-down-design. • Not efficient for directly implementing expert systems. Expert Systems: Principles and Programming, Fourth Edition 41
  • 42. Nonprocedural Paradigms • Do not depend on the programmer giving exact details how the program is to be solved. • Declarative programming – goal is separated from the method to achieve it. • Object-oriented programming – partly imperative and partly declarative – uses objects and methods that act on those objects. • Inheritance – (OOP) subclasses derived from parent classes. Expert Systems: Principles and Programming, Fourth Edition 42
  • 43. Nonprocedural Languages Expert Systems: Principles and Programming, Fourth Edition 43
  • 44. What are Expert Systems? Can be considered declarative languages: • Programmer does not specify how to achieve a goal at the algorithm level. • Induction-based programming – the program learns by generalizing from a sample. Expert Systems: Principles and Programming, Fourth Edition 44