Lec12
Lec12
Lecture 12
Knowledge Representation: Rule Based Expert System
• Domain expert?
• Production Rules
• Rule-based Representation
• Main players of a Rule-based system
• Basic structure of an Expert system
Introduction
Rule-based systems are the simplest form of artificial intelligence.
A rule based system uses rules as the knowledge representation for
knowledge coded into the system
It represents knowledge in terms of a set of rules that tells what to do or what
to conclude in different situations.
A rule-based system is a way of encoding a human expert's knowledge in a
fairly narrow area into an automated system.
A rule-based system can be simply created by using a set of assertions and a
set of rules that specify how to act on the assertion set.
Domain Expert
Condition-Action Pairs
IF P THEN Q
which is also equivalent to:
P⇒Q.
IF this condition occurs,
THEN some action will (or should) occur
IF <antecedent> IF <antecedent>
AND < antecedent> OR < antecedent>
. .
. .
. .
AND < antecedent> OR < antecedent>
IF <antecedent>
Object Value
operator
Rule-based representation
Expert systems can also used mathematical operators to define
an object as numerical and assign it to the numerical value.
Examples
IF (at bus stop AND bus arrives) THEN action (get into the bus)
IF (on the bus AND paid AND empty seat) THEN action (sit down).
IF (on bus AND unpaid) THEN action (pay charges).
IF (bus arrives at destination) THEN action (get down from the bus).
Rule-based representation
Rules can represent :
Relation
IF the fuel tanks is empty
THEN the car is dead
Recommendation
IF the season is autumn
AND the sky is cloudy
AND the forecast is drizzle
THEN the advice is take an umbrella
Directive
IF the car is dead
AND the fuel tank is empty
THEN refuel the car
Rule-based representation
Rules can represent
Strategy
IF the car is dead
THEN check the fuel tank;
step1 is complete
IF step1 is complete
AND the fuel tank is full
THEN check the battery;
step2 is complete
Heuristic
IF the spill is iquid
AND the spill pH < 6
AND the spill smell is vinegar
THEN the spill material is acetic acid
Main players of a Rule-based system
The most popular expert systems are rule-based systems. A great
number have been built and successfully applied in such areas as
business, engineering, medicine, geology, power systems and mining.
Domain expert
Knowledge Engineer
Programmer
Project Manager
End-user
The success of their expert system entirely depends on how well the
members work together.
Main players of a Rule-based system
Main players of a Rule-based system: Domain Expert
is a knowledgeable and skilled person capable of solving
problems in a specific area or domain
the person’s expertise is to be captured in the expert system
could be more than one expert that contribute to an expert
system
the expert must be able to communicate his or her
knowledge, be willing to participate in the expert system
development and commit a substantial amount of time to the
project
is the most important person in the expert system
development team
Main players of a Rule-based system: Knowledge
Engineer
is someone who is capable of designing, building and
testing an expert system
interviews the domain expert to find out how a particular
problem is solved
establishes what reasoning methods the expert uses to
handle facts and rules and decides how to represent them in
the expert system
choose some development software or an expert systems
shell, or look at programming languages for encoding the
knowledge
responsible for testing, revising and integrating the expert
system into the workplace
Main players of a Rule-based system: Programmer,
Project Manager, End user
Programmer:
is the person responsible for the actual programming, describing the
domain knowledge in terms that a computer can understand.
needs to have the skills in symbolic programming in such AI language
such as Prolog.
should also know conventional programming language like C, Pascal,
FORTRAN and Basic
Project Manager:
is the leader of the expert system development team, responsible for
keeping the project on track
makes sure that all deliverables and milestones are met, interacts with
the expert, knowledge engineer, programmer and end-user
End-user:
often called the user
is a person who uses the expert system when it is developed
Basic Structure of a rule-based expert system
Basic Structure of a rule-based expert system
Knowledge base:
contains the domain knowledge useful for
problem solving
Thank you