Chapter 13 Inference Techniques 917807 Allen. Konica Automates A Help Desk with Case-based Reasoning The situation to be diagnosed is entered into the.

Slides:



Advertisements
Similar presentations
Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
Advertisements

ARCHITECTURES FOR ARTIFICIAL INTELLIGENCE SYSTEMS
FT228/4 Knowledge Based Decision Support Systems
Bayesian Network and Influence Diagram A Guide to Construction And Analysis.
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
1 Inferences with Uncertainty Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson Copyright 1998, Prentice Hall, Upper Saddle.
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Inferences The Reasoning Power of Expert Systems.
Expert System Shells - Examples
Chapter 4: Reasoning Under Uncertainty
Modeling Human Reasoning About Meta-Information Presented By: Scott Langevin Jingsong Wang.
Chapter 12: Expert Systems Design Examples
Rules and Expert Systems
© C. Kemke1Reasoning - Introduction COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Case-based Reasoning System (CBR)
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
EXPERT SYSTEMS Part I.
Developing Ideas for Research and Evaluating Theories of Behavior
Chapter 12: Intelligent Systems in Business
1 Chapter 15: Inferences, Explanations and Uncertainty 15.1 Opening Vignette: Konica Automates a Help Desk with Case-based Reasoning The Problem Konica.
Building Knowledge-Driven DSS and Mining Data
Artificial Intelligence CSC 361
Sepandar Sepehr McMaster University November 2008
Expert Systems Infsy 540 Dr. Ocker. Expert Systems n computer systems which try to mimic human expertise n produce a decision that does not require judgment.
Section 2: Science as a Process
CHAPTER 12 ADVANCED INTELLIGENT SYSTEMS © 2005 Prentice Hall, Decision Support Systems and Intelligent Systems, 7th Edition, Turban, Aronson, and Liang.
Knowledge Acquisition. Concepts of Knowledge Engineering Knowledge engineering The engineering discipline in which knowledge is integrated into computer.
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Knowledge representation
13: Inference Techniques
11 C H A P T E R Artificial Intelligence and Expert Systems.
Explanation Facility دكترمحسن كاهاني
CS 682, AI:Case-Based Reasoning, Prof. Cindy Marling1 Chapter 3: Reasoning Using Cases In this chapter, we look at how cases are used to reason We’ve already.
1 Science as a Process Chapter 1 Section 2. 2 Objectives  Explain how science is different from other forms of human endeavor.  Identify the steps that.
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
Standards for Mathematical Practice
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
KNOWLEDGE BASED TECHNIQUES INTRODUCTION many geographical problems are ill-structured an ill-structured problem "lacks a solution algorithm.
I Robot.
Introduction to Earth Science Section 2 Section 2: Science as a Process Preview Key Ideas Behavior of Natural Systems Scientific Methods Scientific Measurements.
© 2005 Prentice Hall, Decision Support Systems and Intelligent Systems, 7th Edition, Turban, Aronson, and Liang 12-1 Chapter 12 Advanced Intelligent Systems.
Research Design. Selecting the Appropriate Research Design A research design is basically a plan or strategy for conducting one’s research. It serves.
Generic Tasks by Ihab M. Amer Graduate Student Computer Science Dept. AUC, Cairo, Egypt.
Reasoning Under Uncertainty. 2 Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors.
1 Knowledge Acquisition and Learning by Experience – The Role of Case-Specific Knowledge Knowledge modeling and acquisition Learning by experience Framework.
KNOWLEDGE ACQUISITION, REPRESENTATION, AND REASONING
Reasoning with Uncertainty دكترمحسن كاهاني
Chapter 4: Inference Techniques
International Conference on Fuzzy Systems and Knowledge Discovery, p.p ,July 2011.
Artificial Intelligence
Expert System Seyed Hashem Davarpanah University of Science and Culture.
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Artificial Intelligence Knowledge Representation.
Explaining and Controlling Reasoning Dr Nicholas Gibbins 32/3077.
1 Solving Problems with Methods Questions. 2 Problem solving is a process similar to working your way through a maze. But what are these “steps” and what.
Chapter 11: Automated Decision Systems and Expert Systems
Knowledge Representation. A knowledge base can be organised in several different configurations to facilitate fast inferencing Knowledge Representation.
Knowledge Representation Techniques
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Section 2: Science as a Process
Architecture Components
Knowledge Representation
Knowledge Representation
Chapter 12 Advanced Intelligent Systems
전문가 시스템(Expert Systems)
Lecture 6: Knowledge Application Systems
Generalized Diagnostics with the Non-Axiomatic Reasoning System (NARS)
Presentation transcript:

Chapter 13 Inference Techniques Allen

Konica Automates A Help Desk with Case-based Reasoning The situation to be diagnosed is entered into the system. The text is analyzed by a natural language processor to interpret the situation and compare it to existing cases stored in a case base. The user can either go with the recommended course of action or refine the wording to tighten up the description of the problem. The system can apply AI technology in solving real problems.

Reasoning in Artificial Intelligence A computer program is needed to access the knowledge for making inferences. This program is an algorithm that controls a reasoning process and usually called the inference engine. The inference engine directs the search through the knowledge base, a process that may involve the application of inference rules in what is called pattern matching. The most popular inference engines: forward and backward chaining.

The ways of people reasoning Formal reasoning methods Heuristic reasoning Common sense applied to specific goals Dividing complex problems into subproblems Parallelism-neural processors operating in parallel Analogy, or the ability to associate and relate concepts Synergy, in which the whole is greater than the sum of its parts Serendipity, or fortuitous accidents

Inference Methods Deductive reasoning Move from a general principle to a specific inference. Inductive reasoning Move from some established facts to draw general conclusions. Analogical reasoning Derive an answer to a question by known analogy. It is a verbalization of internalized learning process. Use of similar past experiences.

Inference Methods (Conti.) Formal reasoning Syntactic manipulation of a data structure to deduce new facts following prescribed rules of inferences. Procedural reasoning Use of mathematical models or simulation. Metalevel reasoning Knowledge about what is known.

Reasoning with Logic The most important method is called modus ponens. If A, then B In the terminology of logic, we express this as [A AND (A B ) ] B

Forward and Backward Chaining: An Overview There are two methods for controlling inference in rule-based ES: forward chaining and backward chaining. Example 1, pp 513 Example 2, pp513

Backward Chaining If the current goal is to determine the correct conclusion, then the process attempts to determine whether the premise clauses (facts) match the situation. Backward chaining is a goal-driven approach in which you start from an expectation of what is going to happen and then seek evidence that supports your expectation.

The Step of Backward Chaining The program starts with a goal to be verified. Look for a rule that has this goal in its conclusion. Check the premise of the rule in an attempt to satisfy the rule. It examines the assertion base first. If the search fails, the program looks for another rule. An attempt is then made to satisfy the second rule. The process continues until all the possibilities that apply are checked or until the rule initially checked is satisfied. Example 3, pp514.

Forward Chaining If the premise clauses match the situation, then the process attempts to assert the conclusion. Forward chaining is a data-driven approach. Start from available information, and then try to draw conclusions. The ES analyzes the problem by looking for the facts that match the IF part of its IT-THEN rules. Example 4, pp516.

The Inference Tree An inference tree provides a schematic view of the inference process. In building an inference tree, the premises and conclusions are shown as nodes. The branches connect the premises and the conclusions. The operators AND and OR are used to reflect the structures of the rules. Provide better insight into the structure of the rules. Visualize the process of inference and movement along its branches. It provides a guide for answering the why and how questions in the explanation process.

Inferencing with Frames Reasoning with frames is much more complicated than reasoning with rules. The slot provides a mechanism for a kind of reasoning called expectation-driven processing. Empty slots can be filled with data that confirm expectations. It is easy to make inferences about new objects, events, or situations because the frames provide a knowledge base drawn from previous experience.

Model Reasoning It is based on knowledge of the structure and behavior of the devices a system is designed to understand. Model-based systems are useful in diagnosing difficult equipment problems. It includes a model of the device to be diagnosed which is then used to identify the causes of the equipment ’ s failure.

Case-based reasoning Adapt solutions used to solve old problems for new problems Variation - Rule-induction method A different process of case-based reasoning - Finds cases that contain solved problems similar to the current problem - Adapts the previous solution or solutions to fit the current problem, while considering any difference between the two situations

Finding Relevant Cases Involves: Characterizing the input problem, by assigning appropriate features to it Retrieving the cases with those features Picking the case(s) that best match the input best

What is a Case? Case - Defines a problem in natural language descriptions and answers to questions, and associates with each situation a proper business action Scripts - Describe a well-known sequence of events Often “reasoning is applying scripts” Often “reasoning is applying scripts” More Scripts, Less (Real) Thinking Can be constructed from historical cases Case-based reasoning is the essence of how people reason from experience CBR - a more psychologically plausible expert reasoning model than a rule-based model

Advantages of Case-based Reasoning Knowledge acquisition is improved: easier to build, simpler to maintain, less expensive to develop and support. System development time is faster. Existing data and knowledge are leveraged. Complete formalized domain knowledge is not required. Experts feel better discussing concrete cases. Explanation becomes easier. Rather than showing many rules. Acquisition of new cases is easy.

Process of Case-based Reasoning Assign Indexes. Features of the new event are assigned as indexes characterizing the event. Retrieve. The indexes are used to retrieve a similar past case from memory. The past case contains the prior solution. Modify. The old solution is modified to conform to the new situation. Test. The proposed solution is tried out. Assign and Store. If the solution succeeds, then assign indexes and store a working solution. Explain, Repair and Test. If the solution fails, then explain the failure, repair the working solution, and test again.

Types of Knowledge structures Indexing rules Case memory Similarity metrics Modification rules Repair rules

Success Factors for a Case-base Reasoning System Determine specific business objectives. Understand your end users and customers Design the system appropriately Plan an ongoing knowledge management process Establish achievable returns on investment Plan and execute customer access strategy Expand knowledge generation and access across the enterprise

Explanation and Metaknowledge Explanation Human experts justify and explain their actions ES should also do so Explanation: attempt by an ES to clarify reasoning, recommendations, other actions (asking a question) Explanation facility (justifier)

Explanation Purposes Make the system more intelligible Uncover shortcomings of the rules and knowledge base (debugging) Explain unanticipated situations Satisfy users’ psychological and/or social needs Clarify the assumptions underlying the system's operations Conduct sensitivity analyses

Two Basic Explanations Why Explanations - Why is a fact requested? How Explanations - To determine how a certain conclusion or recommendation was reached.

Metaknowledge Knowledge about how the system reasons Knowledge about knowledge Inference rules are a special case Metaknowledge allows the system to examine the operation of the declarative and procedural knowledge in the knowledge base Explanation can be viewed as another aspect of metaknowledge Over time, metaknowledge will allow ES to create the rationale behind individual rules by reasoning from first principles

Generating Explanations Static Explanation: be anticipated in advance for all questions and answers. Dynamic Explanation: reconstruct explanation according to the execution pattern of the rules

Typology of ES Explanations Trace, or Line of Reasoning – a record of the inferential steps taken by an ES to reach a conclusion Justification - explicit description of the causal argument or rationale behind each inferential step taken by the ES

Inferencing with Uncertainty In Step 1, An expert provides inexact knowledge in terms of rules with likelihood values In Step 2, The inexact knowledge of the basic set of events can be directly used to draw inferences in simple cases (Step 3) In Step 3, Working with the inference engine, experts can adjust the Step 1 input after viewing the results in Steps 2 and 3.

Representing Uncertainty Numeric Graphic and Influence Diagram Symbolic

Numeric Uncertainty Representation Scale (0-1, 0-100) 0 = Complete uncertainty 1 or 100 = Complete certainty Problems with Cognitive Biases People May be Inconsistent at Different Times

Graphic and Influence Diagram Horizontal bars Not as accurate as numbers Experts may not have experience in marking graphic scales Many experts prefer ranking over graphic or numeric methods

Symbolic Uncertainty Representation Likert Scale Approach Ranking Ordinal Cardinal Pair-wise Comparison Fuzzy logic includes a special symbolic representation combined with numbers

Probabilities and Related Approaches The Probability Ratio The degree of confidence in a conclusion can be expressed as a probability. P(X) = Number of outcomes favoring the occurrence of X / Total number of outcomes

The Bayesian Extension Bayes' Theorem for combining new and existent evidence usually given as subjective probabilities a subjective probability is provided for each proposition To revise existing prior probabilities based on new information

Dempster-Shafer Theory of Evidence Distinguishes between uncertainty and ignorance by creating belief functions Especially appropriate for combining expert opinions, since experts do differ in their opinions with a certain degree of ignorance Assumes that the sources of information to be combined are statistically independent

Theory of Certainty (Certainty Factors) Uncertainty is represented as a Degree of Belief Express the Measure of Belief Manipulate degrees of belief while using knowledge- based systems Certainty Theory uses Certainty Factors Certainty Factors (CF) express belief in an event (or fact or hypothesis) based on evidence

Several methods of using certainty factors in handling uncertainty in knowledge-based systems 1.0 or 100 = absolute truth (complete confidence) 0 = certain falsehood CFs are NOT probabilities CFs need not sum to 100

Belief and Disbelief CF[P,E ] = MB[P,E] - MD[P,E] where CF = certainty factor MB = measure of belief MD = measure of disbelief P = probability E = evidence or event

Combining Certainty Factors (AND) IF inflation is high, CF = 50 percent, (A), AND IF unemployment rate is above 7 percent, CF =70 percent, (B), AND IF bond prices decline, CF = 100 percent, (C) THEN stock prices decline CF(A, B, and C) = Minimum[CF(A), CF(B), CF(C)] The CF for “stock prices to decline” = 50 percent The chain is as strong as its weakest link

Combining Certainty Factors (OR) IF inflation is low, CF = 70 percent; OR IF bond prices are high, CF = 85 percent; THEN stock prices will be high Only one IF need be true Conclusion has a CF with the maximum of the two CF (A or B) = Maximum [CF (A), CF (B)] CF = 85 percent for stock prices to be high

Approximate Reasoning Using Fuzzy Logic Fuzzy logic deals with quantifying and reasoning using imprecise and uncertain values Fuzzy aims at formalizing approximate reasoning process Fuzzy rules define the mapping of input variables with precise or imprecise values to output variables with precise values Fuzzy reasoning is the process of making logical inferences based on fuzzy rules and inputs