CH 7 Expert System
CH 7 Expert System
Expert System
Artificial Intelligence
1
Overview
7.1. Definition and History of Expert System
7.2. Architecture of Expert Systems
7.3. Knowledge Representation in expert system
7.3.1. Logic based representation
7.3.2. Rule-based system
7.3.3. Semantic networks
7.3.4. Ontology-based Systems
7.3.5. Frame-based Systems
7.4. Inference Mechanisms
7.4.1. Forward Chaining
7.4.2. Backward Chaining
7.5. Knowledge Acquisition and Learning
7.6. Applications of Expert Systems
Pioneer work
Herbert Simon, Carnegie Mellon
Logic Theorist: proved theorems using
1955 Allen Newell
propositional logic
Marvin Minsky MIT
1960 John McCarthy Dartmouth LISP
Claude Shannon Bell Labs
1960 DENDRAL Feigenbaum & Identify chemical constituents
Buchanan (Stanford)
1967 ELIZA at MIT by Joseph an early natural language processing
Weizenbaum. computer program
Pioneer work
1970 MYCIN Stanford diagnosis of infectious
diseases
1970 MACSYMA MIT Math expert system
2011 IBM Watson IBM Research A hybrid expert system combining rule-
based reasoning, NLP, and machine
learning for decision-making.
2. Explanation
• A part of the expert system that allows a user or decision maker to
understand how the expert system arrived at certain conclusions or
results
• Explains the reasoning process or logic behind the system's conclusions
or recommendations.
• Builds trust by showing users how decisions were made.
(Studied in Chapter 4)
Premise: The sun has risen in the east every morning up until now.
Conclusion: The sun will also rise in the east tomorrow.
• A simple example of modus ponens "If you are human then you are
mortal”:
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 42
Knowledge Elicitation
• KE Methods by Interaction Type
1. Interviewing
2. Case Study
3. Protocols
4. Critiquing
5. Role Playing
6. Simulation
7. Prototyping
8. Teachback
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 43
Knowledge Elicitation
• Interviewing:
• Interviewing consists of asking the domain expert questions about
the domain of interest and how they perform their tasks.
• Interviews can be
• unstructured (open and exploratory; no fixed questions)
• semi-structured
• structured (involve the use of questionnaires to ensure
focus)
• Case study:
• In Case Study methods different examples of problems/tasks
within a domain are discussed.
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 44
Knowledge Elicitation
• Protocols:
• Protocol analysis involves asking the expert to perform a task while
"thinking aloud."
• The intent is to capture both the actions performed and the mental
process used to determine these actions.
• Critiquing:
• In Critiquing, an approach to the problem/task is evaluated by the expert.
• This is used to determine the validity of results of previous KE sessions.
• Role Playing:
• In Role Playing, the expert adapts a role and acts out a scenario where
their knowledge is used
• The intent is that by viewing a situation from a different perspective,
information will be revealed that was not discussed when the expert was
asked directly.
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 45
Knowledge Elicitation
• Simulation:
• In Simulation methods, the task is simulated using a computer
system or other means.
• This is used when it is not possible to actually perform the task.
• Prototyping:
• The expert is asked to evaluate a prototype of the proposed
system being developed.
• This is usually done iteratively as the system is refined.
• Teachback:
• In Teachback, the knowledge engineer attempts to teach the
information back to the expert, who then provides corrections
and fills in gaps.
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 46
Knowledge Elicitation
• Observations:
• The knowledge engineer observes the expert performing a task.
• This prevents the knowledge engineer from inadvertently
interfering in the process, but does not provide any insight into
why decisions are made.
• Goal related:
• In Goal Related methods, focused discussion techniques are used
to elicit information about goals and subgoals. .
• List related:
• The expert is asked to provide lists of information, usually
decisions.
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 47
Knowledge Elicitation
• Construct Elicitation:
• This method is used to obtain information about how the expert
discriminates between entities in the problem domain.
• e.g. Repertory Grid Analysis: the domain expert is presented with
a list of entities and is asked to describe the similarities and
differences between them
• These similarities and differences are used to determine the
important attributes of the entities.
• Sorting:
• The domain entities are sorted to determine how the expert
classifies their knowledge. (Classification)
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 48
Knowledge Elicitation
• Laddering:
• a hierarchical structure of the domain is formed by asking
questions designed to move up, down, and across the hierarchy.
• Document Analysis:
• The Document analysis involves gathering information from
existing documentation. May or may not involve interaction with
a human expert to confirm or add to this information.
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 49
Knowledge Elicitation
• KE Methods by Knowledge Type Obtained
• Procedures
• Problem Solving Strategy
• Goals/Subgoals
• Classification
• Dependencies/Relationships
• Evaluation
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 50
Knowledge Elicitation
• Procedures:
• These are methods that can be used to determine the steps
followed to complete a task.
• Problem Solving Strategy:
• These methods attempt to determine how the expert makes their
decisions
• Goals/Subgoals:
• These are methods that are concerned with extracting the goals
and subgoals for performing the task.
• These methods are listed separately from procedures since
ordering is not necessarily provided.
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 51
Knowledge Elicitation
• Classification:
• These methods are used to classify entities within a domain.
• Dependencies/Relationships:
• relationships between domain entities are obtained.
• Evaluation:
• evaluation of prototypes or other types of KE session results are
done
http://web.cs.wpi.edu/~jburge/thesis/kematrix.html#_Toc417957386
Dr. Udaya R. Dhungana, Pokhara University, Nepal. [email protected] 52
Knowledge Acquisition
• Knowledge acquisition is a difficult and time-consuming task that often
becomes the bottleneck in expert system development.
• You just studies various manual knowledge elicitation techniques such
as interviewing, case studies etc.
• Various techniques have been developed to automate the process by
using domain tailored environments containing well-defined domain
knowledge and specific problem-solving methods.
• Examples:
• OPAL is a program that expedites knowledge elicitation for the
expert system ONCOCIN that constructs treatment plans for
cancer patients.
• OPAL uses a model of the cancer domain to acquire knowledge
directly from an expert.
• Other Examples are PROTEGE, PROTEGE-II, SALT system etc.
:- dynamic(yes/1,no/1).
67