Lecture 2.a Rule-Based Expert Systems
Lecture 2.a Rule-Based Expert Systems
a
Rule-based expert systems
Introduction, or what is knowledge?
Rules as a knowledge representation technique
The main players in the development team
Structure of a rule-based expert system
Characteristics of an expert system
Forward chaining and backward chaining
Conflict resolution
Summary
Negnevitsky, Pearson Education, 2005 1
Introduction, or what is knowledge?
Knowledge is a theoretical or practical
understanding of a subject or a domain.
Knowledge is also the sum of what is currently
known, and apparently knowledge is power. Those
who possess knowledge are called experts.
Anyone can be considered a domain expert if he or
she has deep knowledge (of both facts and rules)
and strong practical experience in a particular
domain. The area of the domain may be limited. In
general, an expert is a skilful person who can do
things other people cannot.
Negnevitsky, Pearson Education, 2005 2
The human mental process is internal, and it is too
complex to be represented as an algorithm.
However, most experts are capable of expressing
their knowledge in the form of rules for problem
solving.
IF antecedent 1 IF antecedent 1
AND antecedent 2 OR antecedent 2
.. ..
.
AND antecedent n OR .
antecedent n
THEN consequent THEN consequent
IF step1 is complete
AND the fuel tank is full
THEN the action is check the battery;
step2 is complete
Heuristic
IF the spill is liquid
AND the spill pH < 6
AND the spill smell is vinegar
THEN the spill material is acetic acid
Negnevitsky, Pearson Education, 2005 8
The main players in the development team
There are five members of the expert system
development team: the domain expert, the
knowledge engineer, the programmer, the
project manager and the end-user.
The success of their expert system entirely depends
on how well the members work together.
Expert System
End-user
ProductionRule Fact
REASONING
Conclusion
Inference Engine
Explanation Facilities
User Interface
User
Expert System
Knowledge Base Database
Inference Engine
Explanation Facilities
Developer
User Interface Interface
User
Knowledge Engineer
Expert
Database
Fact: A is x
Fact: B is y
Match Fire
Knowledge Base
Rule: IF A is x THEN B is y
and new
fact X is Cycle 1 Cycle 2 Cycle 3
added to
the
database
Rule 1:
IF the forecast is rain [08:16 PM 11/25/96]
THEN the advice is take an umbrella
Rule 2:
IF the weather is wet [10:18 AM 11/26/96]
THEN the advice is stay home