Expert System
Expert System
Pradeep abeygunawardhana
1
What is Knowledge
2
What is Knowledge
Heuristic knowledge - Knowledge regarding practice,
accurate judgment, one's ability of evaluation, and
guessing.
• Deep knowledge. Knowledge that is concerned with
underlying meanings and principles; integration of facts
and feelings with previously acquired knowledge.
• Meta-knowledge. knowledge about knowledge. This
includes explicit awareness both of the reliability of
particular knowledge, and of the strategy for using
knowledge
3
Using the Knowledge Base
Computer
Inputs Outputs
Knowledge Inferencing
Base Capability
4
Rule-Based Systems
one of the oldest kinds of reasoning: rule based
systems.
------------------------------------known as expert systems.
Idea: to capture the knowledge of a human expert in
a specialized domain and embody it within a
software system.
The knowledge is stored as rules of the form IF
condition THEN action
For example: If income < 1000 THEN deny-mortgage
Rule based systems were invented in the early 1970’s
and are still in use today.
2
Rule-Based Systems: early
history
Early AI (1956-late 1960s): great expectations,
followed by disappointment and disillusion. Early
efforts were too ambitious, attempting to tackle
large, difficult problems.
6
Knowledge
engineering
“....an engineering discipline that involves integrating
knowledge into computer systems in order to solve
complex
problems normally requiring a high level of human
expertise.” – Feigenbaum and McCorduck
- Knowlege engineering is the process used to create a
RBS:
Assessing the problem and selecting an appropriate task for
the RBS
Interviewing the domain expert to find out how the problem
is solved
Representing the domain knowledge as facts or rules
Choosing appropriate development software such as a RBS
“shell” and encoding the knowledge within that software
Testing, revising, and integrating the system in the
Knowlege engineering team structure
8
Expert system
shells
Modern RBS are usually implemented by customizing
an off-the-shelf expert system “shell”.
These are also known as “rule engines”.
The shell provides the inference engine, explanation
facility, and infrastructure for populating the
knowledge base and database. The shell provides
interfaces for developers and (maybe) for end users.
The RBS is built by populating the knowledge base
and database with suitable rules and facts, and (if
necessary) creating suitable user interfaces.
Examples of shells: JESS “the rule engine for the Java
platform”; CLIPS; Drools, RulesEngine, e2glite
(which we will look at next)
9
E2glite: building a knowledge base
10
Anatomy of a rule
Here is the rule we just
saw:
RULE [Is the car out of petrol?]
If [the petrol tank] = "empty"
Then [the recommended action] = "refuel the
car"
•The part of the rule after the If is called the premise or
•antecedent . It contains what will be “subgoals”.
•The part of the rule after the Then is called the
consequent
•or conclusion.
•The name of this rule is [Is the car out of
petrol?]
11
Using and and or in
rules
The body of a rule may contain several subgoals,
combined with and or or. Here is an example
using and:
12
Using and and or in rules
Here is an example of a rule using or:
REM********************************************
REM THE GOAL SECTION
REM The goal is to find the recommended action
REM********************************************
Inference in a Rule-Based
KBS
The inference process used in a rule-based system is
deductive inference. Recall that this means that the
rules of logic are used to deduce new knowledge
from existing knowledge and rules.
29
The Knowledge Engineer
• Helps the expert(s) structure the
problem area by interpreting and
integrating human answers to
questions, drawing analogies,
posing counterexamples, and
bringing to light conceptual
difficulties
30
The User
• Possible Classes of Users
• A non-expert client seeking direct
advice (ES acts as a Consultant or
Advisor)
• A student who wants to learn
(Instructor)
• An ES builder improving or
increasing the knowledge base
(Partner)
• An expert (Colleague or Assistant)
• The Expert and the Knowledge
Engineer Should Anticipate Users'
Needs and Limitations When Designing
31
ES
Other Participants
• System Builder
• Systems Analyst
• Tool Builder
• Vendors
• Support Staff
• Network Expert
32
How Expert Systems Work
Major Activities of
ES Construction and Use
• Development
• Consultation
• Improvement
33
ES Development
• Knowledge base development
• Knowledge separated into
• Declarative (factual) knowledge and
• Procedural knowledge
• Development (or Acquisition) of an inference
engine, blackboard, explanation facility, or any
other software
• Determine knowledge representations
34
Participants
• Domain Expert
• Knowledge Engineer and
• (Possibly) Information System Analysts and
Programmers
35
ES Shell
• Includes All Generic ES Components
• But No Knowledge
• EMYCIN from MYCIN
• (E=Empty)
36
Expert Systems Shells
Software Development Packages
• Exsys
• InstantTea
• K-Vision
• KnowledgePro
37
Consultation
• Deploy ES to Users (Typically Novices)
• ES Must be Very Easy to Use
• ES Improvement
• By Rapid Prototyping
38
Problem Areas Addressed
by Expert Systems
• Interpretation systems
• Prediction systems
• Diagnostic systems
• Design systems
• Planning systems
• Monitoring systems
• Debugging systems
• Repair systems
• Instruction systems
• Control systems
39
Expert Systems
Benefits
• Increased Output and Productivity
• Decreased Decision Making Time
• Increased Process(es) and Product
Quality
• Reduced Downtime
• Capture Scarce Expertise
• Flexibility
• Easier Equipment Operation
• Elimination of Expensive Equipment
40
• Operation in Hazardous Environments
• Accessibility to Knowledge and Help Desks
• Integration of Several Experts' Opinions
• Can Work with Incomplete or Uncertain Information
• Provide Training
• Enhancement of Problem Solving and Decision
Making
• Improved Decision Making Processes
• Improved Decision Quality
• Ability to Solve Complex Problems
• Knowledge Transfer to Remote Locations
• Enhancement of Other MIS
41
Lead to
• Improved decision making
• Improved products and customer service
• Sustainable strategic advantage
42
Problems and Limitations of
Expert Systems
• Knowledge is not always readily available
• Expertise can be hard to extract from humans
• Each expert’s approach may be different, yet correct
• Hard, even for a highly skilled expert, to work under
time pressure
• Expert system users have natural cognitive limits
• ES work well only in a narrow domain of knowledge
43
• Most experts have no independent
means to validate their conclusions
• Experts’ vocabulary often limited and
highly technical
• Knowledge engineers are rare and
expensive
• Lack of trust by end-users
• Knowledge transfer subject to a host
of perceptual and judgmental biases
• ES may not be able to arrive at valid
conclusions
• ES sometimes produce incorrect
recommendations 44
Expert System
Success Factors
• Most Critical Factors
• Champion in Management
• User Involvement and Training
• Plus
• The level of knowledge must be sufficiently high
• There must be (at least) one cooperative expert
• The problem to be solved must be qualitative (fuzzy), not
quantitative
• The problem must be sufficiently narrow in scope
• The ES shell must be high quality, and naturally store and
manipulate the knowledge
45
• A friendly user interface
• The problem must be important and difficult
enough
• Need knowledgeable and high quality system
developers with good people skills
• The impact of ES as a source of end-users’ job
improvement must be favorable. End user
attitudes and expectations must be considered
• Management support must be cultivated.
46
For Success
1. Business applications justified by strategic
impact (competitive advantage)
2. Well-defined and structured applications
47
Longevity of Commercial
Expert Systems
• Only about one-third survived five years
• Generally ES Failed Due to Managerial Issues
• Lack of system acceptance by users
• Inability to retain developers
• Problems in transitioning from development to
maintenance
• Shifts in organizational priorities
• Proper management of ES development and
deployment could resolve most
48
Expert Systems Types
• Expert Systems Versus Knowledge-based
Systems
• Rule-based Expert Systems
• Frame-based Systems
• Hybrid Systems
• Model-based Systems
• Ready-made (Off-the-Shelf) Systems
• Real-time Expert Systems
49
Expert Systems and the
Web/Internet/Intranets
1. Use of ES on the Net
2. Support ES (and other AI methods)
50
Using ES on the Web
• Provide knowledge and advice
• Help desks
• Knowledge acquisition
• Spread of multimedia-based expert
systems (Intelimedia systems)
51