ARTIFICIAL INTELLIGENCE
Dr. P V Siva Teja
Associate Professor
UNIT-5: Expert Systems
Architecture of expert systems, Roles of expert systems Knowledge Acquisition Meta knowledge Heuristics. Typical expert systems - MYCIN, DART, XCON: Expert systems shells.
Artificial Intelligence
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?).
The Difference Between Natural & Artificial Intelligence
| | |
Use Sensors | High | Low |
Creativity and Imagination | High | Low |
Learn from Experience | High | Low |
Adaptability | High | Low |
Access external information | High | Low |
Make complex calculations | Low | High |
Transfer information | Low | High |
4
The Major Branches of AI(application of AI)
Viîon Systems
Natural language
Processing
5
Expert Systems (ES)
What are Expert Systems?
he expert systems are the computer applications developed to solve complex problems in a
particular domain, at the level of extra-ordinary human intelligence and expertise.
An expert system compared wlth tradltlonal computer :
Inference engine Knowledge = Expert system
( Algorithm -I- Data structures = Program in traditional computer )
First expert system, called DENDRAL, was developed in the early 70's at
Stanford University.
Characteristics of Expert Systems
7
Capabilities of Expert System
he expert systems are capable of —
hey are incapable of —
Possessing human capabilities
Components of Expert System
10
Components of Expert Systems
The components of ES include —
Components of ES
11
Domain
Expert
Expertise
User
Knowledge Engineer
Encoded
Expertise
Components of Expert System
System
Engineer
Component of an expert system
User
Expert System shell
Inter
face
Explanation System
Inference ence
Knowledge
base editor
11
Case specific data: Worlfing storage
Knowledge base
The Knowledge Base
13
relationships used by the expert system
^ Assembling human experts
^ Use of rules
or outcomes
* Use of cases
Components of Knowledge Base
14
*The knowledge Dase of an ES is a store of both, factual and heuristic knowledge.
Factual Knowledge — It is the information widely accepted by the Knowledge Engineers and scholars in the task domain.
Heuristic Knowledge — It is about practice, accurate judgement, one's a bility of evaluation,
and guessing.
Knowledge representation
It is the method used to organize and formalize the knowledqe in the knowledge base. It is in the form of IT-THEN-ELSE ru es.
Knowledge Acquisition
The success of any expert system majorly depends on the quality, completeness, and accuracy of the information stored in the knowledge base.
The knowledge base is formed by readings from various experts, scholars, and the Knowledge Engineers. The knowledge engineer is a person with the qualities of empathy, quick learning, and case analyzinq skills.
He and observin him at
work.
The Inference Engine
14
Figure : Rules for a Credit Application
Nortgaga Application for Loans money Ct00,000 to
$200.0iX/
If there are no previous credit problems and
If monthly net income is prior than
If down payment is t5% of the total value of the property and
If net assets of borrower are greater than
$25.000 and
If employment is greater than three years at
the
Then accept loan application
Else check ether credit rules
16
To recommend a solution, the interface engine uses the following strategies —
17
Forward Chaining
It is a strategy of an expert system to answer the question,"What can happen naxt?"
Here, the interface engine follows the chain of conditions and derivations and finally deduces the
outcome. It considers all be facts and ales, and sorb them before concluding to a solution.
This strategy is followed for working on conclusion, result, or effect. For example, prediction of share market status as an effect of changes in interest rates.
Fact 1
AND
Fact3
OR
Fact4
Backward Chaining
18
JitL this strategy, ar expert system finds out the answer to the question, “Why this happened?"
3n the basis of what has already Lappered, the interface engine tries to find out which conditions c0UId have tappered ir the past f0r this resu t.ThiS stratepy iS f0IIoweü for finding out cavse or reas0r For example, diagnosis of bl cd cancer in humans.
OR
Expert system Technology
Expert System Development Environment — The ES development environment includes haroware and tools. They are —
Large databases.
Powerful editors and debu tools with multi-windows.
1993. It enables knowledge encoding in the form of IF-THEN rules.
Expert Systems Development
Determining requirements
Identifying experts
Constructing expert
Implementing results
components
Figure : Steps in the Expert System Development Process
and reviewing system
19
Participants in Expert System
Development
system
expert system
20
Application of ES
21
Design Domain
Pledical Domain
Monitoring Systems
Process Control Systems Knowledge Domaln Finance/Commerce
Description
Camera lens design, automobile design.
Diagnosis Systems to deduce cause of disease from observed data, conduction medical operabons on humans.
Comparing data continuously wlth observed system or with prescribed behavior such as leakage monitoring in long petroleum pipeline.
Controlling a physical process based on monitoring. Finding out faulb in vehicles, computers.
Detection of possible fraud, suspicious transactions, stock market trading, Airline scheduling, cargo scheduling.
Benefits of Expert System
Limitations of an Expert System
23
Expert System Shells
^ In the 1980s, expert system "shells were introduced and supported the development o1 expert systems in a
of LISP code was
wide variety of application areas.
^ During the work ,a large amount
written for different modules:
Expert System Shells
An Expert system shell is a software development environment. It contains the basic components of expert systems. A shell is associated with a prescribed method for building applications by configuring and
instantiating these components.
The generic components of a shell :
knowledge Base, the reasoning,
the knowledge
the explanation
acquisition, the
and the user
interface are
are the core
shown below. The
components.
knowledge base and reasoning engine
MYCIN
28
29
^ recommend antibiotics, with the dosage adjusted for patient's body weight
+ The MYCIN system was also used for the diagnosis of blood clotting diseases.
+ It was written in Lisp
30
* It would query the physician running the program via
a long series of simple yes/no or textual questions.
Tasks and Domain
31
^ Disease DIAGNOSIS and Therapy
SELECTION
^ Advice for non-expert physicians with time
considerations and incomplete evidence on:
MYCIN Architecture
32
Consultation
Knowledge Acquisition System
Rułes
Tables, Lłsts
Consultation System
33
Consultation “Control
Structure”
34
Goal-directed Backward-chaining Depth-first
Tree Search
High-level Algorithm:
4. Select best drug or coverage of drugs
tatic Database
35
^ Rule Properties
ynamic Database
36
+ Built by Consultation System
xplanation System
37
+ Provides reasoning why a conclusion has been made, or why a question is being asked
Checker
DART
38
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 practical goal
an automated
the construction
of pinpointing the
units
diagnostician capable responsible for
observed malfunctions in
functional arbitrary system
configurations.
Dynamic Analysis and Replanning Tool
39
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.
Xcon
40
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 Hampshife. 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.
41
printing out a coherent and workable system specification/order slip.
XCON: Expert Configurer
42
Stages of Expert System building
< Identif cation:
Problems, data, goals, company, people...
Conceptualization:
Characterize different kinds of concepts and relations
Forma ization:
Express character of search
Imp ementation:
Build the system in executable form
Test ng and Eva uat
Does it do what we wanted?
Maintenance
Adapt to changing environment or requirements
Phase 1: Identification
43
Large computer manufacturer, started 1957
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
Phase 2: Conceptualization
44
Phase 3: Formalization
45
^ 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
Phase 4: Implementation into system R1
46
II Two rules perform the task
II of barification per se
THEN retract barify // Termination when
47
No more pre-assembly nos necessary!
Buyers are happier because they see better products
Quicker change of production
Phase 5: Quality and Testing of R1
48
Users of XCON
Key Roles
together, goals realistic
Knowledge
knowledge
and ensure technical va lidity of orders (XSEL)
at customer's site
(XFL)
integration problems for new prod ucts
The system found more use
than what it was desig ned for
Biological System Components