03B219Lect Week05
03B219Lect Week05
What is knowledge?
IF <antecedent>
THEN <consequent>
§ 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
§ 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
§ 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
• must not only be confident in the expert system
performance but also feel comfortable using it
Conflict Resolution
§ Rule 1:
IF the ‘traffic light’ is green
THEN the action is go
§ Rule 2:
IF the ‘traffic light’ is red
THEN the action is stop
§ Rule 3:
IF the ‘traffic light’ is red
THEN the action is go
§ Fire the rule that uses the data most recently entered
in the database. This method relies on time tags
attached to each fact in the database. In the conflict
set, the expert system first fires the rule whose
antecedent uses the data most recently added to the
database.
§ Inability to learn
• In general, rule-based expert systems do not have
an ability to learn from the experience.
• Unlike human expert, who knows when to “break
the rules”, an expert system cannot automatically
modify its knowledge base, or adjust existing rules
or add new ones.
IF A is true IF A is false
THEN A is not false THEN A is not
true
Then
if P1 then P2: cf = C
cf(P2) = cf(P1) * C
Examples:
if it rains then John will catch a taxi: cf = 0.6
Suppose cf for ‘it rains’ is 0.5,
then cf of ‘John catching a taxi’
= 0.5 * 0.6 = 0.3