artificial intelligence - student help62.com › 2017 › 03 › lecture-8.pdf · artificial...

55
ARTIFICIAL INTELLIGENCE LECTURE # 08 Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 1

Upload: others

Post on 28-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

ARTIFICIAL

INTELLIGENCE

LECTURE # 08

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 1

Page 2: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Review of Last Lectures

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 2

Page 3: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Today’s agenda

• Exert system and Human expert

• History and evolution of ES

• Definitions

• Description

• Expert Systems are good for

• Expert Systems are not good for

• Basic Concepts of Expert System

• Structure of ES

• The Human Element in Expert Systems

• Working of Expert Systems

• Advantages of Expert System

• disadvantages of Expert System

• Expert system shell

• Application of Expert system

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 3

Page 4: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Exert system and Human expert

• Human expert ??????????

• Expert system:

• “A computer program designed to model the problem solving ability

of a human expert.”

• Problem solving ability:

• Knowledge

• Reasoning

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 4

Page 5: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

History and evolution of ES

• Dendral (1960)

• Developed by NASA to perform chemical analysis of Martian soil

for space mission.

• MYCIN (1970)

• ES designed to aid physicians in diagnosing and treating patients

with a particular blood diseases, as there are few experts of these

diseases.

• R1/XCON (1970)

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 5

Page 6: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Definitions

• Expert systems are computerized advisory programs that attempt to imitate

the reasoning processes and knowledge of experts in solving specific types of

problems.

• It is a system that employs human knowledge captured in a computer to solve

problems that ordinarily require human expertise.

• Expert systems are complex AI programs.

• A computer program that simulates human intelligence and behavior in

specific and limited domains.

• Its used either as help for human experts or in place of human experts.

• Solves problems with tricks, shortcuts and heuristics (rule of thumb) to solve a

problem.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 6

Page 7: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Description

• Well designed expert systems imitate the reasoning process

experts use to solve specific problems. Such systems can

be used by nonexperts to improve their problem solving

capabilities. Experts system can be used by experts as

knowledgeable assistants.

• These systems are used to propagate scarce knowledge

resources for improved, consistent results. Ultimately, such

systems could function better than any single human

experts in making judgments in a specific, usually narrow,

area of expertise (domain).

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 7

Page 8: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Description (cont…)

• To solve expert-level problems , expert systems need

access to a substantial domain knowledge base, which

must be built as efficiently as possible. They also need to

exploit one or more reasoning mechanisms to apply their

knowledge to the problems they are given. Then they need

a mechanism for explaining what they have done to the

users who rely on them .

• The most widely used way of representing domain

knowledge in expert system is as a set of productions rules.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 8

Page 9: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

9

Expert Systems

• Provide Direct Application of Expertise

• Expert Systems Do Not Replace Experts, But They

• Make their Knowledge and Experience More Widely Available

• Permit Nonexperts to Work Better

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal

Page 10: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Expert Systems are good for

• Limited domains where expert knowledge is available.

• Providing expert opinion in remote sites.

• Enhance the performance of tasks by applying heuristic

expert knowledge.

Expert Systems are not good for

• Performing commonsense reasoning

• Recognizing the limits of their ability

• Handling inconsistent knowledge Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 10

Page 11: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 11

Page 12: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Appropriate domains for expert systems

• Can the problem be effectively solved by conventional

programming? If not, an ES may be the choice, because ES

are especially suited to ill structured problems.

• • Is the domain well-bounded? e.g. a headache diagnosis

system may eventually have to contain domain knowledge of

many areas of medicine because it is not easy to limit

diagnosis to one area. In such cases where the domain is too

wide, building an ES may be not be a feasible proposition.

• • What are the practical issues involved? Is some human

expert willing to cooperate? Is the expert’s knowledge

especially uncertain and heuristic? If so, ES may be useful.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 12

Page 13: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

13

User

KB Editor

Inference

Engine

Explanation

Subsystem

User

Interface

may

employ:

Question

and answer,

Menu driven,

Natural

language,

Graphics

interfaces

General

knowledge

base,

Case-specific

data

Page 14: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Expert system structure

• let us delve into the structure of expert systems. To

facilitate this, we use the analogy of an expert (say a

doctor) solving a problem. The expert has the following:

• Focused area of expertise

• Specialized Knowledge (Long-term Memory, LTM)

• Case facts (Short-term Memory, STM)

• Reasons with these to form new knowledge

• Solves the given problem

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 14

Page 15: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Expert system structure

• Domain

• Domain Knowledge (stored in Knowledge Base)

• Case/Inferred Facts (stored in Working Memory)

• Inference Engine

• Conclusions

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 15

Page 16: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Basic Concepts of Expert System

• The basic concepts of expert systems are:

• Expertise,

• Experts,

• Transferring Expertise,

• Inferencing Rules, and

• Explanation capability.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 16

Page 17: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Expertise:

• It is the extensive, task specific knowledge acquired from training,

reading, and experience.

• The following types of knowledge are examples of what expertise

include:

• Facts about the problem area

• Theories about the problem area

• Hard-and-fast rules and procedures regarding the general problem area.

• Rules (heuristic) of what to do in a given problem situation (i.e. rules

regarding problem solving)

• Global strategies for solving different types of problems.

• Meta-knowledge.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 17

Page 18: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Experts:

• We can not define expert, but an expert is expressed w.r.t its degree of

expertise.

• Experts can take a problem stated in some arbitrary manner and

convert it internally to a form that lends itself to a rapid and effective

solution.

• Expert systems should be able to

1. explain the results

2. learn new things about the domain

3. restructure their knowledge whenever needed

4. break rules whenever necessary

5. determine whether their expertise is relevant

• All these activities must be done efficiently (quickly and at low cost) and

effectively (with high quality results).

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 18

Page 19: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Transferring Expertise:

• The objective of an expert system is to transfer expertise

from an expert to a computer and then to other nonexperts.

• This process involves four activities:

• Knowledge acquisition (from experts or other sources),

• knowledge representation (in the computer),

• knowledge Inferencing, and

• knowledge transfer to user.

• The knowledge is stored in the computer in a component

called a knowledge base. Two types of knowledge are

distinguished: facts and procedures regarding the problem

domain.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 19

Page 20: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Inferencing:

• A unique feature of an expert system is its ability to reason.

• Given that all the expertise is stored in the knowledge base

and that the entire program has accessibility to database,

the computer is programmed so that it can make

inferences.

• The Inferencing is performed in a component called the

Inference Engine.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 20

Page 21: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Rules:

• Most commercial expert systems are Rule Based

systems, that is, the knowledge is stored mainly

in the form of rules, as are the problem-solving

procedures.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 21

Page 22: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Explanation Capability:

• Another unique feature of experts systems is its

ability to explain its advice and recommendations

and even to justify why a certain action was not

recommended.

• The explanation and justification is done in a

subsystem called the justifier, or the explanation

subsystem.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 22

Page 23: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 23

Page 24: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Structure of Expert System

• Expert systems are composed of two main parts:

• The Development environment

• The Consultation environment

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 24

Page 25: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

The development environment:

It is used by the expert system builder to build the components and to introduce knowledge into the knowledge base.

The consultation environment:

It is used by a nonexpert to obtain expert knowledge and advice.

The following components may exist in an expert system:

1.Knowledge acquisition subsystem

2.Knowledge base

3.Inference engine

4.Blackboard ( Workplace )

5.User interface

6.Explanation subsystem ( Justifier )

7.Knowledge refining system. Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 25

Page 26: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Knowledge Acquisition Subsystem

• Knowledge acquisition is the accumulation, transfer and

transformation of problem-solving expertise from some

knowledge source to a computer program for constructing

or expanding the knowledge base.

• Potential sources of knowledge include human experts,

textbooks, databases, special research reports and

pictures.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 26

Page 27: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Knowledge Base

• The knowledge base contains knowledge necessary for

understanding, formulating, and solving problems.

• It includes two basic elements:

(1) facts, such as the problem situation and theory of the problem area,

and

(2) special heuristics or rules that direct the use of knowledge to solve

specific problems in a particular domain.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 27

Page 28: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Knowledge Representation

• Knowledge is the primary material of expert systems. The

information in the knowledge base is incorporated into a

computer program by a process called Knowledge

Representation.

• We have already discussed and practiced some of

techniques of Knowledge representation.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 28

Page 29: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Inference Engine

• It is the brain of expert systems.

• This is a computer program that provides a methodology for

reasoning about information in the knowledge base

• This component provides directions about how to use the

system’s knowledge by developing the agenda that

organizes and controls the steps taken to solve problems

whenever consultation is performed.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 29

Page 30: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

User Interface

• Expert systems contain a language processor for

friendly, problem-oriented communication

between the user and the computer.

• This communication can best be carried out in a

natural language or supplemented by use of

menus and other graphics.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 30

Page 31: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Explanation Subsystem (Justifier)

• The ability to trace responsibility for conclusions to their

sources is crucial both in the transfer of expertise and in

problem solving.

• The explanation subsystem can trace such responsibility

and explain the expert system behavior by interactively

answering questions such as the following:

• Why was a certain questions asked by the expert system?

• How was a certain conclusion reached?

• Why was a certain alternative rejected?

• What is the plan to reach the solution?

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 31

Page 32: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Knowledge Refining System

• Human experts have a knowledge refining system, that is,

they can analyze their own performance, learn from it, and

improve it for future consultations.

• Similarly, such evaluation is necessary in computerized

learning so that the program will be able to analyze the

reasons for its success or failure.

• This could lead to improvements that result in a better

knowledge base and more effective reasoning.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32

Page 33: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Structure of an Expert System Consultation Environment Development Environment

Knowledge Base

Facts: what is known about the Domain Area

Rules: Logical Reference

Inference Engine

Draw Conclusions

Blackboard (Workplace)

Explanation

Facility

Recommended

Action

Knowledge

Refinement

User Interface

User

Knowledge

Engineer

Expert

Knowledge

Facts About

the Specific Incident

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 33

Page 34: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

The Human Element in Expert Systems

• At least two humans participate in the use and

development of an expert system.

• There is an expert and a user.

• Further, there is also a knowledge engineer and a

system builder.

• Each has a role to play.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 34

Page 35: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

The Expert

• The expert, commonly referred to as domain expert, is

a person who has the special knowledge, judgment,

experience, and methods along with the ability to apply

these talents to give advice and solve problems.

• Its an experts job to provide knowledge about the task

that the knowledge system will perform.

• The expert knows which facts are important and

understands the meaning of relationships among facts.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 35

Page 36: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

The knowledge Engineer

• The knowledge engineer helps the expert structure the

problem area by interpreting and integrating human

answers to questions, drawing analogies, posing

counterexamples, conducting interviews.

• The shortage of experienced knowledge engineers is a

major bottleneck in expert system construction.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 36

Page 37: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

The Users (End User)

An expert system has several possible types of users.

• A nonexpert client seeking direct advice. In such a case the

expert system acts as a consultant or advisor.

• A student who wants to learn. In such a case the expert

system acts as an instructor.

• An expert system builder who wants to improve or increase

the knowledge base. In such a case an expert system acts

as a partner.

• Working as an expert. In such a case expert system acts

as a colleague.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 37

Page 38: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

• The end-user usually sees an expert system through an

interactive dialog, an example of which follows:

• Q. Do you know which restaurant you want to go to?

A. No

Q. Is there any kind of food you would particularly like?

A. No

Q. Do you like spicy food?

A. No

Q. Do you usually drink cola with meals?

A. Yes

Q. When you drink cola, is it Pepsi cola?

A. Yes

The Users (End User)

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 38

Page 39: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Other Participants

• Several other participants may be involved in

expert system. For example,

• a system builder, he may assist in integrating the expert

system with other computerized systems.

• A tool builder, he may provide generic or build specific

tools.

• Vendors, they may provide tools and advice, and,

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 39

Page 40: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Use

Use

Use Build

provides Use

Build

Build

Test Acquire

Knowledge

Participants & Their Roles in Building Expert System

Knowledge

Engineer

Expert

System

Builder

Documented

Knowledge

Tool,

Languages

Tool

Builder

Vendor

EXPERT

SYSTEM

End User

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 40

Page 41: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Working of Expert Systems

• Three major activities are part of expert system

construction and use. They are:

(1) Development,

(2) Consultation, and

(3) Improvement.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 41

Page 42: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Development

• The development of an expert system involves the

construction of the knowledge base by acquiring knowledge

from experts and/or from documented sources.

• Development activity also includes the construction of an

inference engine, an explanation facility and other required

software for interfacing.

• The major participants in this activity are the domain expert,

the knowledge engineer, and possibly information system

programmer.

• A general toolkit that can be used to build a number of different

expert systems, depending on which knowledge-base is

added, it is known as expert system Shell. Shell includes all

the generic components of an expert system but they do not

include the knowledge. Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 42

Page 43: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Consultation • Once the system is developed and validated, it is

transferred to the users.

• When user wants advice from expert system, it conducts a

bidirectional dialogue with the user, asking to provide facts

about specific incident.

• After accepting the users answers, the system attempts to

reach a conclusion.

• This effort is made by the inference engine which decides

which heuristic search techniques should be used to

determine how the rules in the knowledge base are to be

applied to the problem.

• The consultation environment is also used by the builder

during the development phase to test the system. At that

time, the interface and the explanation facility may be

tested. Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 43

Page 44: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Improvement

• Experts systems are improved several times through a

process called rapid prototyping during their development.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 44

Page 45: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Advantages of Expert System

• Provides consistent answers for repetitive decisions,

processes and tasks

• Holds and maintains significant levels of information

• Encourages organizations to clarify the logic of their

decision-making

• Never "forgets" to ask a question, as a human might

• Can work round the clock

• Can be used by the user more frequently

• A multi-user expert system can serve more users at a time

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 45

Page 46: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Disadvantages of Expert System

• Domain experts not always able to explain their logic and

reasoning

• The cost of knowledge engineer and lost expert time

• Errors may occur in the knowledge base, and lead to

wrong decisions

• Cost to maintain large scale expert system is huge

• Lacks common sense needed in some decision making

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 46

Page 47: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Expert Systems Shells

• A shell is a complete development environment for

building and maintaining knowledge-based applications.

• It provides a step-by-step methodology for a knowledge

engineer that allows the domain experts themselves to be

directly involved in structuring and encoding the

knowledge.

• Many commercial shells are available.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 47

Page 48: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Expert System Available Shells • Freeware Tools

• CLIPS (C Language Integrated Production System)

• GEST (Generic Expert System Tool)

• DYNACLIPS (DYNAamic CLIPS Utilities)

• FuzzyCLIPS

• Commercial Tools • Aion Development System (ADS)

• ART*Enterprise

• Doctus KBS

• EXSYS Professional

• KEE (Knowledge Engineering Environment)

• M.4

• Nexpert Object

• RT-Expert

• XpertRule

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 48

Page 49: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Expert System Shells

• CLIPS

• Knowledge Representation

• Portability

• (Windows, Mac, Unix)

• Integration / Extensibility

• Interactive environment

• Fully documented

• Freeware

• Available for download at http://clipsrules.sourceforge.net/

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 49

Page 50: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Expert systems appear in many varieties. The following

classification of ES is not exclusive, that is, one ES can

appear in several categories:

1. Rule – based expert system

• Many commercial ES are rules based, because the

technology of rule-based system is relatively well

developed. In such systems the knowledge is represented

as a series of production rules.

• For example MYCIN is the best example of rule based ES.

Types of Expert systems

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 50

Page 51: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

2. Frame – based system

• In these systems, the knowledge is represented as frames, a

representation of the object – oriented programming

approach.

3. Hybrid Systems

• These systems include several knowledge representation

approaches, at minimum frames and rules, but usually more.

4. Real-time Expert Systems

• Real-time systems are systems in which there is a strict time

limit on the system's response time, which must be fast

enough for use to control the process being computerized.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 51

Page 52: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

5. Ready-made (Off-the-Shelf) Systems

• ES can be developed to meet the particular needs of a

user (custom made), or they can be purchased as ready-

made packages for any user.

• They can be used as soon as they are purchased.

Unfortunately, ready-made systems are very general in

nature, and the advice they render may not be of value to

a user involved in a complex situation.

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 52

Page 53: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

When to Use an Expert System (1) • Provide a high potential payoff or significantly reduced

downside risk

• Capture and preserve irreplaceable human expertise

• Provide expertise needed at a number of locations at the same time or in a hostile environment that is dangerous to human health

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 53

Page 54: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

When to Use an Expert System (2) • Provide expertise that is expensive or rare

• Develop a solution faster than human experts can

• Provide expertise needed for training and development to share

the wisdom of human experts with a large number of people

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 54

Page 55: ARTIFICIAL INTELLIGENCE - Student Help62.com › 2017 › 03 › lecture-8.pdf · Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 32 . Structure of an Expert System

Applications of Expert Systems and

Artificial Intelligence

• Credit granting

• Information management and retrieval

• AI and expert systems embedded in products

• Plant layout

• Hospitals and medical facilities

• Help desks and assistance

• Employee performance evaluation

• Loan analysis

• Virus detection

• Repair and maintenance

• Shipping

• Marketing

• Warehouse optimization

• Control systems

Artificial Intelligence 2012 Lecture 08 Delivered By Zahid Iqbal 55