CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
FT228/4 Knowledge Based Decision Support Systems
Introduction to Theorem Proving
Expert Systems Reasonable Reasoning An Ad Hoc approach.
1 Inferences with Uncertainty Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson Copyright 1998, Prentice Hall, Upper Saddle.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Reasoning Forward and Backward Chaining Andrew Diniz da Costa
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Logic.
Inferences The Reasoning Power of Expert Systems.
Chapter 4: Reasoning Under Uncertainty
AI – CS364 Uncertainty Management 26 th September 2006 Dr Bogdan L. Vrusias
Chapter 12: Expert Systems Design Examples
System Architecture Intelligently controlling image processing systems.
Chapter 12: Artificial Intelligence and Expert Systems
ICT619 Intelligent Systems Topic 2: Expert Systems.
1 Chapter 9 Rules and Expert Systems. 2 Chapter 9 Contents (1) l Rules for Knowledge Representation l Rule Based Production Systems l Forward Chaining.
Rules and Expert Systems
© C. Kemke1Reasoning - Introduction COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Week 6 Expert System. Case Scenario During ABC Enterprise management meeting to discuss whether the company should consider a merger with other business.
EXPERT SYSTEMS Part I.
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
CPSC 433 Artificial Intelligence CPSC 433 : Artificial Intelligence Tutorials T01 & T02 Andrew “M” Kuipers note: please include.
Artificial Intelligence CSC 361
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.
1 Backward-Chaining Rule-Based Systems Elnaz Nouri December 2007.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Knowledge Acquisition. Concepts of Knowledge Engineering Knowledge engineering The engineering discipline in which knowledge is integrated into computer.
Invitation to Computer Science 5th Edition
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
Artificial Intelligence and Expert Systems
13: Inference Techniques
Explanation Facility دكترمحسن كاهاني
Decision Support and Business Intelligence Systems (9 th Ed., Prentice Hall) Chapter 12: Artificial Intelligence and Expert Systems.
Decision Support and Business Intelligence Systems (9 th Ed., Prentice Hall) Chapter 7: Artificial Intelligence and Expert Systems.
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
Logical Agents Logic Propositional Logic Summary
Chapter 13 Inference Techniques Allen. Konica Automates A Help Desk with Case-based Reasoning The situation to be diagnosed is entered into the.
© 2005 The McGraw-Hill Companies, Inc. All rights reserved. The Art of Critical Reading Mather ● McCarthy Part 4 Reading Critically Chapter 12 Evaluating.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
KNOWLEDGE ACQUISITION, REPRESENTATION, AND REASONING
KNOWLEDGE BASED SYSTEMS
Chapter 4: Inference Techniques
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Artificial Intelligence
Expert System Seyed Hashem Davarpanah University of Science and Culture.
Chapter 1 Introduction to Research in Psychology.
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.
1 Chapter 13 Artificial Intelligence and Expert Systems.
Explaining and Controlling Reasoning Dr Nicholas Gibbins 32/3077.
Artificial Intelligence: Applications
By Muhammad Safdar MCS [E-Section].  There are times in life when you are faced with challenging decisions to make. You have rules to follow and general.
Decision Support and Business Intelligence Systems (9 th Ed., Prentice Hall) Chapter 12: Artificial Intelligence and Expert Systems.
Chapter 11: Automated Decision Systems and Expert Systems
REASONING UNDER UNCERTAINTY: CERTAINTY THEORY
Part 4 Reading Critically
Knowledge Representation Techniques
Chapter 3: Methods of Inference
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Chapter 12: Artificial Intelligence and Expert Systems
Chapter 9. Rules and Expert Systems
Chapter 3: Methods of Inference
Artificial Intelligence
Chapter 7: Artificial Intelligence and Expert Systems
CPSC 433 : Artificial Intelligence Tutorials T01 & T02
Chapter 9. Rules and Expert Systems
Presentation transcript:

CHAPTER 13 Inference Techniques

Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge for inferencing n Inference engine or control program n Rule interpreter (in rule-based systems) n Directs search through the knowledge base

How People Reason and Solve Problems Sources of Power n Formal methods (logical deduction) n Heuristic reasoning (IF-THEN rules) n Focus--common sense related toward more or less specific goals n Divide and conquer n Parallelism

n Representation n Analogy n Synergy n Serendipity (Luck) Lenat (1982) Sources of power translated to specific reasoning or inference methods (Table 13.1)

Reasoning Methods n Deductive Reasoning n Inductive Reasoning n Analogical Reasoning n Formal Reasoning n Procedural (Numeric) Reasoning n Metalevel Reasoning

Reasoning with Logic –Modus Ponens –If A, then B –[A AND (A  B)]  B –A and (A  B) are propositions in a knowledge base –Modus Tollens: when B is known to be false –Resolution: combines substitution, modus ponens, and other logical syllogisms

Inferencing with Rules: Forward and Backward Chaining –Firing a rule: When all of the rule's hypotheses (the “if parts”) are satisfied –Can check every rule in the knowledge base in a forward or backward direction –Continues until no more rules can fire, or until a goal is achieved

Forward and Backward Chaining –Chaining: Linking a set of pertinent rules –Search process: directed by a rule interpreter approach: Forward chaining: if the premise clauses match the situation, then the process attempts to assert the conclusion 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 n Goal-driven - Start from a potential conclusion (hypothesis), then seek evidence that supports (or contradicts) it n Often involves formulating and testing intermediate hypotheses (or subhypotheses)

Forward Chaining n Data-driven - Start from available information as it becomes available, then try to draw conclusions n What to Use? –If all facts available up front (as in auditing) - forward chaining –Diagnostic problems - backward chaining

The Inference Tree (Goal Tree or Logical Tree) n Schematic view of the inference process n Similar to a decision tree (Figure 13.3) n Inferencing: tree traversal n Advantage: Guide for the Why and How Explanations

Other Inferencing Methods n With Frames n Model-based reasoning n Case-based reasoning (CBR)

Explanation and Metaknowledge n 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 n Make the system more intelligible n Uncover shortcomings of the rules and knowledge base (debugging) n Explain situations unanticipated n Satisfy users’ psychological and/or social needs n Clarify the assumptions underlying the system's operations n Conduct sensitivity analyses

Rule Tracing Technique n “Why” Provides a Chain of Reasoning n Good Explanation Facility is critical in large ES n Understanding depends on explanation n Explanation is essential in ES n Used for training

Two Basic Explanations n Why - Why is a fact requested? n How - To determine how a certain conclusion or recommendation was reached. –Some simple systems - only at the final conclusion –Most complex systems provide the chain of rules used to reach the conclusion

Other Explanations n Journalistic Explanation Facility –Who, what, where, when, why and how –(“5 Ws” plus How) n Why not?

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

Representing Uncertainty n Numeric n Graphic n Symbolic

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

Theory of Certainty (Certainty Factors) –Certainty Factors and Beliefs –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 (or the expert's assessment)

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

Belief and Disbelief n 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 n Another assumption - the knowledge content of rules is much more important than the algebra of confidences that holds the system together

Combining Certainty Factors n Must Know How CFs are Used (Appendix 15-A) n Combining Several Certainty Factors in One Rule n AND, OR

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 n CF(A, B, and C) = Minimum[CF(A), CF(B), CF(C)] n The CF for “stock prices to decline” = 50 percent n The chain is as strong as its weakest link

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

Combining Two Rules n Example: –R1:IF the inflation rate is less than 5 percent, THEN stock market prices go up (CF = 0.7) –R2:IF unemployment level is less than 7 percent, THEN stock market prices go up (CF = 0.6) n Inflation rate = 4 percent and the unemployment level = 6.5 percent n Combined Effect –CF(R1,R2) = CF(R1) + CF(R2)[1 - CF(R1)]; or –CF(R1,R2) = CF(R1) + CF(R2) - CF(R1)  CF(R2)

Assume an independent relationship between the rules n Example:Given CF(R1) = 0.7 AND CF(R2) = 0.6, then: n CF(R1,R2) = ( ) = (0.3) = 0.88 n ES tells us that there is an 88 percent chance that stock prices will increase n For a third rule to be added –CF(R1,R2,R3) = CF(R1,R2) + CF(R3) [1 - CF(R1,R2)]