CSE440 Lec 2 Rule-Based
CSE440 Lec 2 Rule-Based
1
Contents
Expert System: Introduction
Expert System: Basic Characteristics
Expert System: Basic Architecture
Structure of Rule-Based Expert System
Advantages & Disadvantages of Rule-based Expert
System
Inference Process
Forward Chaining and Backward Chaining
Conflict Resolutions
Expert System: Introduction
Editor
Knowledge Working
Base Memory
Learning
module
The knowledge Base
Contains the domain knowledge useful for problem
solving. In a rule-based expert system, the knowledge is
represented as a set of rules.
Any rule consists of two parts: IF
(Antecedent/Condition)---------------THEN
(Consequent/Action).
IF –the ‘traffic light’ is green------THEN the action is ‘Go’
IF –the ‘traffic light’ is red------THEN the action is ‘Stop’
The Database includes a set of Facts used to match against
IF (condition) parts of rules stored in the knowledge base
Inference Engine
Database
Fact: A is X Fact: B is y
Match Fire
Knowledge base
Rule: IF A is x THEN B is y
X X L
Cycle #1
Inference Process: Forward Chaining
Database
Database
A B C D E
A B C D E
X L Y
X L Y Z
Match Fire
Match Fire
Knowledge-Base
Knowledge-Base
Y&D Z
Y&D Z
X&B&EY
X&B&EY
AX
AX
CL
CL
L&MN
L&MN
Cycle #2 Cycle #3
Inference Process: Backward Chaining
Z
Y
Knowledge-Base
Knowledge-Base
Y&D Z
Y&D Z
X&B&EY
X&B&EY
AX
AX
CL
CL
L&MN
L&MN
? X
X
Match Fire
Knowledge-Base
Knowledge-Base
Y&D Z
Y&D Z
X&B&EY
X&B&EY
AX
AX
CL
CL
L&MN
L&MN
Inference engine
Explanation facilities
User interface
User
Conflict Resolutions in
Rule-Based Systems
Rule 1 Rule 2
IF IF
The Agent has two legs The Agent has two legs
AND The Agent has two hands AND The Agent has two hands
AND The Agent can sleep AND The Agent can sleep
THEN THEN
It’s just an
example. I’ll say
later about this
robot.
Partner Ballroom Dance Robot
(OBDR).
The Kosuge-Wang Laboratory
in Tohoku Univ. (Division of
Mechanical Engineering, Dept.
of Bioengineering and
Robotics), Nomura Unison
Inc., and Torowazo Inc.
teamed up to develop this
Partner Ballroom Dance
Robot(OBDR).
THEN THEN
Rule 1 Rule 2
IF IF
The Agent is in the front The Agent is in the front
THEN THEN
2. Agent is a man
3. Agent is bowing
SO…..
Robot is bowing……..
Method 3
Let’s see a photograph of Mr.
Bob taken Last Year.
Date of photograph April 24, 2021
Now see a photograph of This
Year.
Date of photograph February 10, 2024
Method 3
Timestamp
Rule 1 Rule 2
IF IF
The Question is “Is Mr. Bob The Question is “Is Mr. Bob
bald?” bald?”
[08:16PM 10/02/2023] [08:16PM 10/02/2024]
THEN THEN
uniform structure
Disadvantages:
especially opaque relations between rules
inability to learn.
End of Presentation
Questions/Suggestions