Expert Systems
Expert Systems
Expert Systems
Expert Systems
Topics: 1.Expert Systems
2.Architecture of expert system
3.Roles of expert systems
4.Knowledge Acquisition
5.Meta knowledge
6.Typical expert systems-
MYCIN,DART,XOON, Expert systems shell
Artificial Intelligence
AI
The ability of computers to
duplicate the functions of
the human brain
2
Interesting Statistics
It has been estimated that
computers that can exhibit
humanlike intelligence
(including musical and
artistic aptitude, creativity,
physical movement
physically, and emotional
responsiveness) require
processing power of 20
million billion calculations
per second (by the year
2030?).
3
The Difference Between Natural
& Artificial Intelligence
4
The Major Branches of AI(application of AI)
5
Expert Systems (ES)
6
7
Capabilities of Expert System
8
Components of Expert System
9
Components of ES
10
Components of an Expert System
11
Components of an Expert System
Knowledge Base
Stores all relevant
information, data, rules,
cases, and relationships
used by the expert
system.
Uses
•Rules
•If-then Statements
•Fuzzy Logic
12
The Knowledge Base
Stores all relevant information, data, rules, cases, and
relationships used by the expert system
Assembling human experts
Use of fuzzy logic
A special research area in computer science that allows
shades of gray and does not require everything to be
simple black/white, yes/no, or true/false
Use of rules
Conditional statement that links given conditions to actions
or outcomes
E.g. if-then statements
Use of cases
13
14
Components of an Expert System
Inference Engine
Seeks information and
relationships from the
knowledge base and
provides answers,
predictions, and
suggestions the way a
human expert would.
Uses
•Backward Chaining
•Forward Chaining
15
The Inference Engine
Seeks information and relationships from the knowledge
base and provides answers, predictions, and
suggestions the way a human expert would
Forward chaining(Goal driven Reasoning)
Starting with the facts and working forwards to the
conclusions
Backward chaining(Data driven Reasoning )
Starting with conclusions and working backward to the
supporting facts
16
The Inference Engine
17
Figure 7.4: Rules for a Credit Application
To recommend a solution, the interface engine
uses the following strategies −
Forward Chaining
Backward Chaining
18
19
20
Components of an Expert System
Explanation Facility
Allows a user to
understand how the
expert system arrived at
certain conclusions or
results.
21
Components of an Expert System
Knowledge acquisition
facility
Provide convenient and
efficient means of
capturing and storing all
the components of the
knowledge base.
Acts as an interface
between experts and the
knowledge base.
22
Components of an Expert System
User Interface
Specialized user interface
software employed for
designing, creating,
updating, and using
expert systems.
23
Expert system Technology
24
Expert Systems Development
26
Participants in Expert System
Development
Domain
The area of knowledge addressed by the expert
system
Domain Expert
The individual or group who has the expertise or
knowledge one is trying to capture in the expert system
Knowledge Engineer
An individual who has training or expertise in the
design, development, implementation, and
maintenance of an expert system
Knowledge User
The individual or group who uses and benefits from the
expert system
27
Application of ES
28
Benefits of Expert System
29
Limitations of an Expert System
30
Expert System Shells
31
Expert System Shells
The shell is a piece of software which contains
the user interface,
a format for declarative knowledge in the
knowledge base, and
an inference engine.
The knowledge engineer uses the shell to build
a system for a particular problem domain.
“A collection of software packages and tools used to
develop expert systems”
32
33
Components of an expert system
34
Expert System Shells
37
MYCIN was an early expert system that used
artificial intelligence to identify bacteria
causing severe infections.
recommend antibiotics, with the dosage
adjusted for patient's body weight
The MYCIN system was also used for the
diagnosis of blood clotting diseases.
MYCIN was developed over five or six years
in the early 1970s at Stanford University.
It was written in Lisp
38
MYCIN was a standalone system that required a user
to enter all relevant information about a patient by
typing in responses to questions MYCIN posed.
MYCIN operated using a fairly simple inference
engine, and a knowledge base of ~600 rules.
It would query the physician running the program via
a long series of simple yes/no or textual questions.
39
Tasks and Domain
Disease DIAGNOSIS and Therapy
SELECTION
Advice for non-expert physicians with time
considerations and incomplete evidence on:
Bacterial infections of the blood
Expanded to meningitis and other ailments
Meet time constraints of the medical field
40
MYCIN Architecture
41
Consultation System
Performs Diagnosis
and Therapy Selection
Control Structure
reads Static DB (rules)
and read/writes to
Dynamic DB (patient,
context)
Linked to Explanations
Terminal interface to
Physician
42
Consultation “Control
Structure”
Goal-directed Backward-chaining Depth-first
Tree Search
High-level Algorithm:
1. Determine if Patient has significant infection
2. Determine likely identity of significant organisms
3. Decide which drugs are potentially useful
4. Select best drug or coverage of drugs
43
Static Database
Rules
Meta-Rules
Templates
Rule Properties
Context Properties
Fed from Knowledge
Acquisition System
44
Dynamic Database
Patient Data
Laboratory Data
Context Tree
Built by Consultation
System
Used by Explanation
System
45
Explanation System
Provides reasoning
why a conclusion has
been made, or why a
question is being
asked
Q-A Module
Reasoning Status
Checker
46
DART
DART is a joint project of the Heuristic Programming Project
and IBM that explores the application of artificial intelligence
techniques to the diagnosis of computer faults.
The primary goal of the DART Project is to develop programs
that capture the special design knowledge and diagnostic
abilities of these experts and to make them available to field
engineers.
The practical goal is the construction of an automated
diagnostician capable of pinpointing the functional units
responsible for observed malfunctions in arbitrary system
configurations.
47
Dynamic Analysis and Replanning Tool
DART uses intelligent agents to aid decision support system
Give planners the ability to rapidly evaluate plans for logistical
feasibility.
DART decreases the cost and time required to implement
decisions.
The field engineer is familiar with the diagnostic equipment and
software testing.
Access to information about the specific system hardware and
software configuration of the installation.
48
Xcon
The R1 (internally called XCON, for eXpert CONfigurer) program was a
production rule based system written in OPS5 by John P. McDermott of
CMU in 1978.
configuration of DEC VAX computer systems
ordering of DEC's VAX computer systems by automatically selecting
the computer system components based on the customer's
requirements.
XCON first went into use in 1980 in DEC's plant in Salem, New
Hampshire. It eventually had about 2500 rules.
By 1986, it had processed 80,000 orders, and achieved 9598%
accuracy.
It was estimated to be saving DEC $25M a year by reducing the need
to give customers free components when technicians made errors, by
speeding the assembly process, and by increasing customer
satisfaction.
49
XCON interacted with the sales person, asking critical questions before
printing out a coherent and workable system specification/order slip.
XCON's success led DEC to rewrite XCON as XSELa version of XCON
intended for use by DEC's salesforce to aid a customer in properly
configuring their VAX.
50
XCON: Expert Configurer
Stages of Expert System building
Identification:
Problems, data, goals, company, people…
Conceptualization:
Characterize different kinds of concepts and relations
Formalization:
Express character of search
Implementation:
Build the system in executable form
Testing and Evaluation:
Does it do what we wanted?
Maintenance
Adapt to changing environment or requirements
Expert Systems 14 51
Phase 1: Identification
DEC, Digital Equipment Corporation
Large computer manufacturer, started 1957
Catalogue has 40.000 different parts
Buyer (with Sales Rep) sends order, typically 100 parts
Delivery and assembly by DEC personnel
Too often, part collection does not allow installation
Too often, installed computer does not meet requirements
Remedy: Completely assemble and test system in factory
Automate configuration problem;
attempts with procedural languages were unsuccessful
XS approach started around 1980
Expert Systems 14 52
Phase 2: Conceptualization
Con .. what?
Expert Systems 14 53
Phase 3: Formalization
Configuration engineers could talk well to
Knowledge Engineers of the CSDG
Could explain in what stage which component
should be configured how
This was expressed in production rules
IF c1, c2 c3 THEN a1, a2, a3
Configuration stage was explicitly
represented as data: current goal or context
Changing contexts moved configuration
process through all stages
Expert Systems 14 54
Phase 4: Implementation into system R1
59
PART-A (2 marks)
1.Expert system(ES)?
2.Application of ES?
3.List advantage & disadvantage of ES?
4.List out the Components of ES?
5.Define inference engine?
6.What is knowledge base(KB)?
7.What is the role of expert engineer?
8.What is meant by knowledge acquisition?
9.Expert system shell?
10.MYCIN?
11.DART?
12.XCON?
60