Chapter 4 Expert Systems
Chapter 4 Expert Systems
1
Introduction
2
Introduction
5
Building Blocks of Expert Systems
Another widely used representation, called the unit (also
known as frame, schema, or list structure) is based upon a
more passive view of knowledge.
The unit is an assemblage of associated symbolic knowledge
about an entity to be represented. Typically, a unit consists of
a list of properties of the entity and associated values for
those properties.
Since every task domain consists of many entities that stand
in various relations, the properties can also be used to specify
relations, and the values of these properties are the names of
other units that are linked according to the relations.
One unit can also represent knowledge that is a "special case"
of another unit, or some units can be "parts of" another unit.
6
Building Blocks of Expert Systems
The problem-solving model, or paradigm, organizes and
controls the steps taken to solve the problem.
One common but powerful paradigm involves chaining of
IF-THEN rules to form a line of reasoning. If the chaining
starts from a set of conditions and moves toward some
conclusion, the method is called forward chaining.
If the conclusion is known (for example, a goal to be
achieved) but the path to that conclusion is not known, then
reasoning backwards is called for, and the method is
backward chaining.
These problem-solving methods are built into program
modules called inference engines or inference procedures
that manipulate and use knowledge in the knowledge base
to form a line of reasoning.
7
Building Blocks of Expert Systems
The knowledge base an expert uses is what he
learned at school, from colleagues, and from years
of experience. Presumably the more experience he
has, the larger his store of knowledge.
Knowledge allows him to interpret the information
in his databases to advantage in diagnosis, design,
and analysis.
Though an expert system consists primarily of a
knowledge base and an inference engine, a couple
of other features are worth mentioning: reasoning
with uncertainty, and explanation of the line of
reasoning.
8
Building Blocks of Expert Systems
Knowledge is almost always incomplete and uncertain. Thus a rule may
have associated with it a confidence factor or a weight.
The set of methods for using uncertain knowledge in combination with
uncertain data in reasoning is called reasoning with uncertainty.
A subclass of methods for reasoning with uncertainty is called "fuzzy
logic," and the systems are known as "fuzzy systems.”
10
User
Expertise
Knowledge Base
Facts / Observations
Knowledge / Rules
User Interface
Inference Engine
Expertise
Developer
11
Components of Expert Systems
knowledge base
• contains essential information about the problem domain
• often represented as facts and rules
inference engine
• mechanism to derive new knowledge from the knowledge base and the
information provided by the user
• often based on the use of rules
user interface
• interaction with end users
• development and maintenance of the knowledge base
12
Concepts & Characteristics of Expert Systems
knowledge acquisition
• transfer of knowledge from humans to computers
• sometimes knowledge can be acquired directly from the environment
– machine learning, neural networks
knowledge representation
• suitable for storing and processing knowledge in computers
inference
• mechanism that allows the generation of new conclusions from existing
knowledge in a computer
explanation
• illustrates to the user how and why a particular solution was generated
13
Rules and Humans
14
Keys to Expert Systems Success
convincing ideas
• rules, cognitive models
practical applications
• medicine, computer technology, …
separation of knowledge and inference
• expert system shell
– allows the re-use of the “machinery” for different domains
concentration on domain knowledge
• general reasoning is too complicated
15
When not to use an Expert System
16
Expert Systems Elements
knowledge base
inference engine
working memory
agenda
explanation facility
knowledge acquisition facility
user interface
17
Architecture of Expert Systems
Knowledge-Base / Rule-Base
store expert knowledge as condition-action-rules
(aka: if-then- or premise-consequence-rules)
Working Memory
stores initial facts and generated facts derived by
inference engine; maybe with additional parameters
like the “degree of trust” into the truth of a fact
certainty factor
18
Architecture of Expert Systems
Inference Engine
• matches condition-part of rules against facts stored in Working
Memory (pattern matching);
• rules with satisfied condition are active rules and are placed on the
agenda;
• among the active rules on the agenda, one is selected (see conflict
resolution, priorities of rules) as next rule for
• execution (“firing”) – consequence of rule is added as new fact(s)
to Working Memory
19
Architecture of Expert Systems
20
Expert Systems – Example Rules
IF … THEN Rules
Rule: Red_Light
IF the light is red (antecedent)
THENstop (consequent)
Rule: Green_Light
IF the light is green
THENgo
Production Rules
the light is red ==> stop (left-hand side - antecedent)
(right-hand side - consequent)
the light is green ==> go
21