of an expert system. introduction what is ai? intelligent in human & machine? what is expert...

80
Of Of An Expert System An Expert System

Upload: samantha-walton

Post on 26-Mar-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

OfOf

An Expert SystemAn Expert System

Page 2: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Introduction

What is AI? Intelligent in Human & Machine?• What is Expert System?• How are Expert System used?• Elements of ES• Who are people involved in an Expert System project ?

Comparison of expert systems with (( conventional systems and human

experts ))

Knowledge• Definition of Knowledge• Knowledge acquisition• Knowledge representation

Page 3: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

"Artificial intelligence is the study of how to make computers do things at which, at

moment, people are better“Elaine Rich (1983)

Artificial intelligence is the branch of computer science that focuses on the development of computer systems.

Artificial is also called machine intelligence

Page 4: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 5: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Computer Science

Computer Science

Page 6: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Expert systems are artificial intelligence (AI) tools that capture the expertise of knowledge workers “Experts” and provide advice to (usually) non-experts in a given domain.

Expert systems are implemented with artificial intelligence technology, often called expert system shells.

Expert System Shell : is an expert system but without knowledge “with empty knowledge”

Page 7: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 8: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Many expert systems are built using a generic ‘shell’. An expert system shell consists of the programming components of an expert system but without a KB. Using a shell, a knowledge engineer can quickly enter a new KB and, without the need for any programming, create a complete working expert system.

The expert system can be used many times with the same knowledge using that knowledge to solve different problems (just like a doctor uses their knowledge many times to diagnose and cure lots of patients).

Page 9: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 10: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 11: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 12: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 13: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

• Knowledge is a theoretical or practical understanding of a subject or a domain.

• Who owns knowledge are called experts.

• Domain expert is anyone has deep knowledge and strong practical experience in a particular domain.

• An expert is a skilful person who can do things other people cannot.

What is KnowledgeWhat is Knowledge? ?

Page 14: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

‘Knowledge engineering is the process of developing knowledge based systems in any field, whether it be in the

public or private sector, in commerce or in industry’(Debenham, 1988).

Knowledge engineering normally involves five distinct steps (listed below) in transferring human knowledge into some form of knowledge based system(KBS).

1. Knowledge acquisition

2. Knowledge validation

3. Knowledge representation

4. Inferencing

5. Explanation “Interface”

Page 15: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 16: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Knowledge acquisition  is the process of acquiring the knowledge from human experts or other sources (e.g. books, manuals) to solve the problem.

the knowledge acquisition process primarily involves a discussion between the knowledge engineer and the human expert.

A knowledge engineer can also use interviews as method of obtaining knowledge from human experts however they must also consider other sources of knowledge.

(( records of past case studies , standards documentation ,knowledge from other humans who are less

knowledgeable but more available then experts. ))

Page 17: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

An Interview is the easiest technique for Knowledge Acquisition.

To conduct a successful interview the knowledge engineer will need to:• plan• use appropriate stage management

techniques• consider and use appropriate social skills• maintain appropriate self-control during the

interview.

Page 18: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

The interview normally consists of three parts :

Page 19: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Questions useful to begin the interview process include:

Can you give me an overview of the subject?

Can you describe the last case you dealt with?

What facts or hypotheses do you try to establish when thinking about a problem?

What kinds of things do you like to know about when you begin to think about a problem?

Leading on to find a little more detail; tell me more about how this is achieved?

What do you do next?

How does that relate to . . . ?

How, why, when, do you do that?

Can you describe what you mean by that?

Closing an interview by reviewing the information obtained, and perhaps by Closing an interview by reviewing the information obtained, and perhaps by alertingalerting

the expert to the need for further interviews, is also important.the expert to the need for further interviews, is also important.

Page 20: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

By knowledge engineer

• Tutorial interviews “presentation”

• Twenty question interviews “Yes or No”

• Teach back interviews “past interviews”

• Observation studies Observation of an expert doing his task The cooperation with the expert can be difficult The time consuming for the knowledge engineer

No knowledge engineer necessary• Machine induction “ automated Knowledge Acquisition “

Rules are automatically induced from given examples Database is instable & Rules are complex

Page 21: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Dealing with Multiple Experts

Page 22: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 23: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Knowledge representation (KR) is an area of artificial intelligence whose fundamental goal is to represent knowledge in a manner that facilitates inferencing (i.e. drawing conclusions) from knowledge.

Different knowledge representation

schemes:1. Rules2. Semantic Networks3. Frames

Page 24: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Rules is the most commonly used type of knowledge representation in AI.

Format: IF .. THEN

Any rule consists of two parts: • IF part, called the premise (or condition)

and •THEN part, called the conclusion (or action).

Basic syntax of a rule is:• IF <condition>•THEN <action>

Page 25: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Other clauses such as OR, And and ELSE can also be used within this construct to show alternative conditions or different courses of action.

For example, a simple rule could be:

IF raining THEN you-should-carry-an-umbrella

IF Christmas day falls on a Monday, OR Christmas day falls on a Tuesday THEN many factories will close for the

whole of Christmas week.

Page 26: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Advantages:

1. Easy to understand2. Explanations and inference are easy to

get.3. Rules are independent of all others.4. Modification and maintenance are

relatively easy.5. Uncertainty is easily combined with

rules.

Page 27: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Disadvantages:

1. Hard to follow hierarchies2. Inefficient for large systems.3. Not all knowledge can be expressed as

rules.

Page 28: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

One of the oldest and easiest to understand knowledge representation schemes.

It is a graphical representation of knowledge that shows objects and their relationships.

They are often used as a communication tool between the knowledge engineer and the expert during the knowledge acquisition phase of a project.

In these networks, objects are shown by nodes, and links between the nodes describe the hierarchical relationships between objects.

Page 29: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

For example: Mary is an instance of trainer, and trainer is a

type of consultant. A trainer trains a programmer and a

programmer is an employee. Joe is an instance of programmer.

From this we can clearly see the relationship that may exist between Mary and Joe.

Page 30: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 31: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Inheritance is concerned with how one object inherits the properties of another object.

Page 32: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 33: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Advantages:

1. Flexible to add new nodes and links

2. The network is graphical and easy to understand.

3. They tend to be a powerful and adaptable method of representing knowledge because many different types of object can be included in the network.

4. Can be used as a common communication tool between the knowledge engineer and the human expert during the knowledge acquisition phase of designing an ES.

Page 34: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Disadvantages:

1. Meaning attached to nodes may be ambiguous.

2. Difficult to program.

Page 35: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Frames are a simplified version of a semantic network where only ‘is a’ relationships apply.

Frames provide a method of storing knowledge, collecting specific information about one object in an ES.

In essence they allow both data and procedures to be included within one structure.

Page 36: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Each frame has its own name and a set of attributes, or slots, associated with it.

Page 37: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

An example frame for a coffee mug object can be drawn as follows:

Page 38: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Three different types of slots are used:

1. Named slots having a standard filler value of certain data items. For example, the slot for number of wheels in a car frame will have a default value of four. This can be overwritten where the specific type of car being described (such as a three-wheel car) does not meet this default value. Range values can also be specified, e.g. the size must be small, medium or large.

Page 39: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

2. Slots showing relationships using the term IS A. For example, a car is a motor vehicle. The IS A motor vehicle slot will therefore link the frame for car with a frame describing the basic features of a motor vehicle.

3. Slots contain procedural code. For example, the number of miles that a car can travel, i.e., its range, is determined by the current petrol stored in its tank and by the engine size. The slot for range can therefore store procedural code to calculate the range (if needed) based on the slots for current petrol and engine size.

Page 40: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 41: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Inheritance:

One of the main advantages of using frames is the principle of inheritance.

This means that frames can inherit the attributes of other frames, in a hierarchical structure.

For example, a frame for a cup can provide some basic attributes in a number of slots about that object. These attributes can be given to other objects that share those attributes.

Page 42: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 43: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Advantages:1. be represented in the form of a table, making the

information easy to read.

2. be structured hierarchically and thus allow easy classification of knowledge.

3. reduce complexity by allowing a hierarchy of frames to be built up.

4. clearly document information using common formats and syntax.

5. combine procedural and declarative knowledge using one knowledge representation scheme.

6. constrain allowed values, or allow values to be entered within a specific range.

Page 44: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Disadvantages:

1. Difficult to program.2. Difficult for inference.3. Lack of inexpensive software

Page 45: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Inference Engine

Page 46: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Use information and relations to derive new facts to solve problems or predict possible outcomes.

Main reasoning component Find the right facts, apply the right

relations, etc. Ex: Facts: male(Ali), female(Mona) Relations: father(X, Y) => male(X) The engine can conclude that Mona cannot

be a father.

Inference Engine

Page 47: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Inference engine compares each rule stored in the knowledge base with facts contained in the database.

When the IF (condition) part of the rule matches a fact: •The rule is fired and its THEN (action) part

is executed. •Fired rule may change the set of facts by

adding a new fact.

Inference Engine

Page 48: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

General problem-solving knowledge or methods.

Interpreter analyzes and processes the rules.

Scheduler determines which rule to look at next.

The search portion of a rule-based system.

Page 49: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

In a rule-based expert system:

•Domain knowledge is represented by a set of IF-THEN production rules.

•Data is represented by a set of facts about the current situation.

Page 50: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

The inference engine cycles via a match-fire procedure

Page 51: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Forward chaining is a data-driven inference process.

Is a technique for gathering information and then inferring from it whatever can be inferred.

You start with facts and try to reach conclusions.

The user of the system has to give all the available data before the start of the inference.

The inference mechanism tries to establish the facts as they appear in the knowledge base until the goal is established.

Page 52: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Advantage

1-The forward chaining process is suitable only when there are very few initial states and many goal states.

2-If the data are sufficient the goal may be reached.

3-Forward chaining is going to be adopted for reasoning.

Page 53: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Disadvantage

1-If the data are sufficient the goal may be reached; otherwise it may exit stating that the goal is unreachable with the available data.

2-Many initial and goal states can exist. Also the User may not be able to give all the necessary data a priori, as

he/she may not be able to visualize the flow of the inference process. 3-Not efficient if our goal is to infer only one particular fact. Many rules

may be executed that have nothing to do with the established goal.

4-Many rules may be executed that have nothing to do with the established goal.

5-More expensive since it can generate many conclusions.

Page 54: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

You start with conclusions.

You want to find out if you can get to the conclusion from your facts.

Is a goal-driven process and the most frequently used inference mechanism.

It tries to establish goals in the order in which they appear in the knowledge base.

The goal variable defined in the rule base for selection of a structural.

Page 55: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Advantage

1. System is ‘floor system’, The inference process will stop once this variable gets a value.

2. It tries to establish goals in the order in which they appear in the knowledge base.

3. The inference process will stop once this variable gets a value.

Page 56: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Disadvantage

It will continue to follow a given line of reasoning even if it should drop it and switch to a different one.

Page 57: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

AttributeBackward ChainingForward Chaining

Also known asGoal-drivenData-driven

Starts fromPossible conclusionNew data

ProcessingEfficientSomewhat wasteful

Aims forNecessary dataAny conclusion (s)

Approach Conservative/cautiousOpportunistic

Practical if Number of possible final answers is reasonable or a set of known alternatives is available

Combinatorial explosion creates an infinite number of possible right answers

Appropriate forDiagnostic, prescription and debugging application

Planning, monitoring, control and interpretation application

Example of application

Selecting a specific type of investment

Making changes to corporate pension fund

Page 58: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

It is a combination of the backward and forward chaining process.

The sequence in which the data are requested depends on the flow of the inference process.

Backward chaining is suitable, if there are few goal states and many initial states.

In forward chaining all the data that the user knows have to be given a priori and the system does not prompt for any data.

It starts in the forward chaining mode with an empty context by trying to establish the facts as they appear in the rule base and then backward chains to prove or disprove them.

Page 59: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

A basic component of an expert system that enables the user to query the expert system about how it reached a particular conclusion .

They can show the sequence of the rules they applied to reach a solution, but cannot relate accumulated, heuristic

knowledge to any deeper understanding of the problem domain.

Enable the user to ask the expert system how a particular conclusion is reached and why a specific fact is needed.

An expert system must be able to explain its reasoning and justify its advice, analysis or conclusion.

Explanation capabilities

Page 60: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Narrow: only a few types of questions can be answered.

Inflexible: explanations can be presented in only one way.Insensitive: explanations cannot be tailored to meet the needs of different users or of different situations.

Unresponsive: the system cannot answer follow-up questions or offer an alternative explanation ,if a user does not understand a given explanation.

inextensible: new explanation strategies cannot be added easily.

Page 61: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Early attempts to provide programs with an ability to explain:

1-Those that produce explanations from text prepared a priori and associatedwith structures or procedures in the program, and

2-Those that produce explanations bytranslating directly from the program code and execution traces.

Page 62: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

In the first approach, system builders anticipate what questions are likely to be asked and construct the natural language text of the responses to be given .

This text is often referred to as canned text and explanations produced by displaying this text are canned explanations.

The canned text may contain variables to be filled in with values from a specific execution of the program. Structures that mix canned text with slots to be filled in are called templates.

Example: Error messages in programs are a common example of this approach.

Page 63: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Researchers developed explanation systems which produce their programs are written in a language to which simple transformations can be applied to

produce natural language explanations of the code’s behavior.

Page 64: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

User interface is the means of communication between a user seeking a solution to the problem and an expert system. The communication should be as meaningful and friendly as possible.

External interface allows an expert system to work with external data files and programs written in conventional programming languages such as C, Pascal, FORTRAN and Basic.

Developer interface usually includes knowledge base editors, debugging aids and input/output facilities.

Page 65: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

inin

An Expert SystemAn Expert System

Page 66: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

The main assurance provided by the knowledge engineer , project manager or the quality manager was that the system was built in accordance with quality assurance standards.

Quality assurance is an essential part of the design of any KBS

The Quality control of an expert system appear under the terms The Quality control of an expert system appear under the terms Verification , Validation , and Evaluation (VV&E) that are designed Verification , Validation , and Evaluation (VV&E) that are designed to:to:

Page 67: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

KBKB

Page 68: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 69: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Evaluation of a KBS means checking that the KBS has acceptable performance levels, that the system is useable, efficient and cost-effective.

Evaluation is therefore part of the overall quality control procedures in building a KBS and building the ES at all.

The evaluation of a KBS involves two more terms, namely validation and verification.

Page 70: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Evaluation is required to ensure that knowledge of the real world has been correctly entered into the knowledge base.

Page 71: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Evaluation help to find these distortions in knowledge in various ways.

Page 72: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Refers to building the system right.

Verification is checking that the system has been built correctly.

The objects in KB are logical and consistent with the knowledge obtained via the knowledge acquisition process.

Page 73: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Verification :Verification : is the task of determining that the system is built

according to its specifications and its knowledge base is consistent and complete .

Page 74: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Verification is likely to involve checks for the following:

1. Syntactic coherence: to check that all rules in the KB are correctly defined with respect to the inference engine.

2. Logical coherence: to detect logical contradictions.

3. Contextual coherence: to check that the KB is consistent with the model of the problem.

Page 75: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Examples of the type of errors that verification of Examples of the type of errors that verification of the KBS is trying to identify are as follows:the KBS is trying to identify are as follows:

1)1) Subsumed Rules Subsumed Rules These occur when two rules have the same conclusion

but one rule has additional conditions. For example,

Rule 1 is subsumed within Rule 2 and could automatically be eliminated from the knowledge base without affecting its reasoning. However, the knowledge acquisition process should really be checked to confirm which of the two rules are correct.

Both rules cannot be logically correct; Rule 1 is incorrect if C is not necessary. If it is necessary, Rule 2 is incorrect.

Rule 1. IF A AND B AND C THEN X Rule 2. IF A AND B THEN X Rule 1. IF A AND B AND C THEN X Rule 2. IF A AND B THEN X

Page 76: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

2 ) 2 ) Unnecessary IF Conditions Unnecessary IF Conditions • This situation occurs when the conclusions of two rules

are the same and, except for one, the conditions of the rules are the same and this condition is reversed. For example,

These two rules could be combined to form one simpler rule. . . .

However, once again the source of the two rules should be checked and the appropriate rules amended or deleted.

Rule 1. IF the patient has pink spots AND has a fever THEN the patient has measles.

Rule 2. IF the patient has pink spots AND does not have a fever THEN the patient has measles.

Rule 1. IF the patient has pink spots AND has a fever THEN the patient has measles.

Rule 2. IF the patient has pink spots AND does not have a fever THEN the patient has measles.

Rule 3. IF the patient has pink spots THEN the patient has measles.Rule 3. IF the patient has pink spots THEN the patient has measles.

Page 77: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

measures the performance of the KBS

Is the process of ensuring that the output of the system is equivalent to those of human experts when given the same inputs.

The validation refers to building the “right” system

That mean that the expert system performs with an acceptable level of accuracy.

Page 78: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are
Page 79: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

Using validation and verification controls will help to ensure that the finished KBS meets its objectives, and check that the knowledge base is providing correct answers to problems.

There are other factors of standards for the general software development process, i.e., including:

Page 80: Of An Expert System. Introduction What is AI? Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES Who are

The International Standards Organization standard 9003-3 is a method of software validation is to use, which relates to software development generally

Application of the ISO 9000-3 will therefore help to provide quality KBSs.