Expert Systems
Expert Systems
Introduction to
Expert Systems
2
Objectives
• Examine earlier expert systems which have given
rise to today’s knowledge-based systems
• Explore the applications of expert systems in use
today
• Examine the structure of a rule-based expert
system
• Learn the difference between procedural and
nonprocedural paradigms
• What are the characteristics of artificial neural
systems
3
What is an expert system?
4
Fig 1.1 Areas of Artificial
Intelligence
5
Expert system technology
may include:
• Special expert system languages – CLIPS
• Programs
6
Expert System Main Components
7
Figure 1.2 Basic Functions
of Expert Systems
8
Problem Domain vs. Knowledge
Domain
• An expert’s knowledge is specific to one problem
domain – medicine, finance, science,
engineering, etc.
• The expert’s knowledge about solving specific
problems is called the knowledge domain.
• The problem domain is always a superset of the
knowledge domain.
9
Figure 1.3 Problem and
Knowledge Domain Relationship
10
Advantages of Expert Systems
• Increased availability
• Reduced cost
• Reduced danger
• Performance
• Multiple expertise
• Increased reliability
11
Advantages Continued
• Explanation
• Fast response
• Intelligent tutor
• Intelligent database
12
Representing the Knowledge
13
Knowledge Engineering
14
Development of an Expert System
15
The Role of AI
• An algorithm is an ideal solution guaranteed to
yield a solution in a finite amount of time.
• When an algorithm is not available or is
insufficient, we rely on artificial intelligence
(AI).
• Expert system relies on inference – we accept a
“reasonable solution.”
16
Uncertainty
• Both human experts and expert systems must be
able to deal with uncertainty.
• It is easier to program expert systems with
shallow knowledge than with deep knowledge.
• Shallow knowledge – based on empirical and
heuristic knowledge.
• Deep knowledge – based on basic structure,
function, and behavior of objects.
17
Limitations of Expert Systems
• Typical expert systems cannot generalize through
analogy to reason about new situations in the way
people can.
18
Early Expert Systems
• DENDRAL – used in chemical mass
spectroscopy to identify chemical constituents
• MYCIN – medical diagnosis of illness
• DIPMETER – geological data analysis for oil
• PROSPECTOR – geological data analysis for
minerals
• XCON/R1 – configuring computer systems
19
Considerations for Building
Expert Systems
• Can the problem be solved effectively by
conventional programming?
• Is there a need and a desire for an expert system?
• Is there at least one human expert who is willing
to cooperate?
• Can the expert explain the knowledge to the
knowledge engineer can understand it.
• Is the problem-solving knowledge mainly
heuristic and uncertain?
20
Elements of an Expert System
• User interface – mechanism by which user and
system communicate.
• Exploration facility – explains reasoning of
expert system to user.
• Working memory – global database of facts used
by rules.
• Inference engine – makes inferences deciding
which rules are satisfied and prioritizing.
21
Elements Continued
• Agenda – a prioritized list of rules created by the
inference engine, whose patterns are satisfied by
facts or objects in working memory.
• Knowledge acquisition facility – automatic way
for the user to enter knowledge in the system
bypassing the explicit coding by knowledge
engineer.
• Knowledge Base – includes the rules of the
expert system
22
Production Rules
• Knowledge base is also called production
memory.
24
Rule-Based ES
25
Example Rules
26
Inference Engine Cycle
27
Production Systems
• Rule-based expert systems – most popular type
today.
• Knowledge is represented as multiple rules that
specify what should/not be concluded from
different situations.
• Forward chaining – start w/facts and use rules do
draw conclusions/take actions.
• Backward chaining – start w/hypothesis and look
for rules that allow hypothesis to be proven true.
28
What are Expert Systems?
29
Artificial Neural Systems
30
ANS Characteristics
• A complex pattern recognition problem –
computing the shortest route through a given list of
cities.
• ANS is similar to an analog computer using simple
processing elements connected in a highly parallel
manner.
• Processing elements perform Boolean / arithmetic
functions in the inputs
• Key feature is associating weights w/each element.
31
Table 1.13 Traveling
Salesman Problem
32
Advantages of ANS
• Storage is fault tolerant
• Quality of stored image degrades gracefully in
proportion to the amount of net removed.
• Nets can extrapolate (extend) and interpolate
(insert/estimate) from their stored information.
• Nets have plasticity.
• Excellent when functionality is needed long-term
w/o repair in hostile environment – low
maintenance.
33
Disadvantage of ANS
• ANS are not well suited for number crunching or
problems requiring optimum solution.
34
Figure 1.10 Neuron
Processing Element
35
Sigmoid Function
36
Figure 1.11 A
Back-Propagation Net
37
Figure 1.12 Hopfield
Artificial Neural Net
38
MACIE
• An inference engine called MACIE (Matrix
Controlled Inference Engine) uses ANS
knowledge base.
• Designed to classify disease from symptoms into
one of the known diseases the system has been
trained on.
• MACIE uses forward chaining to make
inferences and backward chaining to query user
for additional data to reach conclusions.
39
Summary
• During the 20th Century various definitions of AI
were proposed.
• In the 1960s, a special type of AI called expert
systems dealt with complex problems in a narrow
domain, e.g., medical disease diagnosis.
• Today, expert systems are used in a variety of
fields.
• Expert systems solve problems for which there
are no known algorithms.
40
Summary Continued
• Expert systems are knowledge-based – effective
for solving real-world problems.
• Expert systems are not suited for all applications.
• Future advances in expert systems will hinge on
the new quantum computers and those with
massive computational abilities in conjunction
with computers on the Internet.
41