02 Expert System
02 Expert System
ARTIFICIAL INTELLIGENCE
-
SYLLABUS
expert systems –
systems shells.
Expert Systems
Introduction
Reasoning by If-Then Rules
code.
Characteristic Features of Expert System
Characteristic Features of Expert System
Architecture of Expert Systems
-
Rule-Based System Architecture
Architecture of Expert Systems
USER EXPERT SYSTEM
Explanation
Module
Inference Case
Engine History File
Input
I/O
Interface
Output
Knowledge Working
Base Memory
KB Editor
Learning
Module
Major Components of Expert System
Defining Rules
Defining Rules
1 Match
Conflict Set
2 Select
3 Execute
Production System
Inference Cycle
Inference Engine Knowledge
Base
Working
Memory
1 Match
Conflict Set
2 Select
3 Execute
Production System
Inference Cycle
Inference Engine
Explanation Module (EM)
Other Components
– When they are provided, they are used to assist in building and refining the KB.
Knowledge Base (KB)
• Knowledge Base (KB) contains the facts & rules of current domain-specific knowledge
– Necessary for understanding, formulating, and solving problems.
• Knowledge base of expert systems contains both factual and heuristic knowledge.
– Factual knowledge is the general knowledge from textbook of domain that everyone agrees on
– Heuristic knowledge is not from textbooks of domain; it is come from one's experience.
• It can be seen as
knowledge of judgment & logical reasoning based on factual knowledge.
• Knowledge representation
– It is the method used to organize and formalize the knowledge in the KB.
C A or
machine.
contained in KB 2 Select
– When matches are found, the corresponding rules are
3 Execute
added to the conflict set
• In select stage,
– One of the rules in the conflict set is selected for execution Production System
– Criteria for selection may be Inference Cycle
• Most recent use, rule condition specificity, or the smallest rule number
• Forward Chaining starts with the initial or current state (with available facts)
– Apply rules one by one.
• Matching the premises of the rules (the IF parts), and
• If not, identify the actions (THEN parts) of the rules that will establish the sub-goals.
• And new sub-goals are set up for achieving the premises of those rules (the IF parts).
Explanation Module (EM)
• A how query or
• A why query
1. EM traces the chain of rules fired during a consultation with the user.
2. The sequence of rules that led to conclusion is then printed for the user.
– Example :
a system might be asked why it needs to know the status of the distributor spark.
• The user interface makes it easy to trace the credibility of the deductions.
Other Components
– When they are provided, they are used to assist in building and refining the KB.