1 Chapter 13 Uncertainty Types of uncertainty Predicate logic and uncertainty Nonmonotonic logics Truth Maintenance Systems Fuzzy sets.

Slides:



Advertisements
Similar presentations
1 Knowledge Representation Introduction KR and Logic.
Advertisements

Russell and Norvig Chapter 7
Introduction to Truth Maintenance Systems A Truth Maintenance System (TMS) is a PS module responsible for: 1.Enforcing logical relations among beliefs.
Bayesian Network and Influence Diagram A Guide to Construction And Analysis.
Justification-based TMSs (JTMS) JTMS utilizes 3 types of nodes, where each node is associated with an assertion: 1.Premises. Their justifications (provided.
Truth Maintenance Systems. Outline What is a TMS? Basic TMS model Justification-based TMS.
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Default Reasoning the problem: in FOL, universally-quantified rules cannot have exceptions –  x bird(x)  can_fly(x) –bird(tweety) –bird(opus)  can_fly(opus)
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Converting formulas into a normal form Consider the following FOL formula stating that a brick is an object which is on another object which is not a pyramid,
Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
PROBABILITY. Uncertainty  Let action A t = leave for airport t minutes before flight from Logan Airport  Will A t get me there on time ? Problems :
Inferences The Reasoning Power of Expert Systems.
For Friday Finish chapter 10 No homework (get started on program 2)
1 Reasoning in Uncertain Situations 9 9.0Introduction 9.1Logic-Based Abductive Inference 9.2Abduction: Alternatives to Logic 9.3The Stochastic Approach.
Reasoning System.  Reasoning with rules  Forward chaining  Backward chaining  Rule examples  Fuzzy rule systems  Planning.
Intelligent systems Lecture 6 Rules, Semantic nets.
B. Ross Cosc 4f79 1 Uncertainty Knowledge can have uncertainty associated with it - Knowledge base: rule premises, rule conclusions - User input: uncertain,
Rule Based Systems Michael J. Watts
Uncertainty Russell and Norvig: Chapter 13 CMCS424 Fall 2003 based on material from Jean-Claude Latombe, Daphne Koller and Nir Friedman.
Uncertain knowledge and reasoning
CSC411Artificial Intelligence1 Chapter 9 Reasoning in Uncertain Situations Contents Uncertain situations Non-monotonic logic and reasoning Certainty Factor.
© C. Kemke Approximate Reasoning 1 COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Computer Intelligence and Soft Computing
1 Reasoning in Uncertain Situations 8a 8.0Introduction 8.1Logic-Based Abductive Inference 8.2Abduction: Alternatives to Logic 8.3The Stochastic Approach.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
Fuzzy Expert System.
Methods of Proof Chapter 7, second half.
1 Chapter 18 Fuzzy Reasoning. 2 Chapter 18 Contents (1) l Bivalent and Multivalent Logics l Linguistic Variables l Fuzzy Sets l Membership Functions l.
Uncertainty Chapter 13.
NONMONOTONIC LOGIC AHMED SALMAN MALIK. OVERVIEW Monotonic Logic Nonmonotonic Logic Usage and Applications Comparison with other forms of logic Related.
1 Backward-Chaining Rule-Based Systems Elnaz Nouri December 2007.
Fuzzy Sets Introduction/Overview Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto.
Fuzzy Logic. Lecture Outline Fuzzy Systems Fuzzy Sets Membership Functions Fuzzy Operators Fuzzy Set Characteristics Fuzziness and Probability.
Uncertainty1 Uncertainty Russell and Norvig: Chapter 14 Russell and Norvig: Chapter 13 CS121 – Winter 2003.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
Pattern-directed inference systems
Reasoning in Uncertain Situations
1 Reasoning in Uncertain Situations 8 8.0Introduction 8.1Logic-Based Abductive Inference 8.2Abduction: Alternatives to Logic 8.3The Stochastic Approach.
Uncertainty Management in Rule-based Expert Systems
Fuzzy Sets and Control. Fuzzy Logic The definition of Fuzzy logic is a form of multi-valued logic derived frommulti-valued logic fuzzy setfuzzy set theory.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 12 FUZZY.
Uncertainty in AI. Birds can fly, right? Seems like common sense knowledge.
1 Knowledge Based Systems (CM0377) Introductory lecture (Last revised 28th January 2002)
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Textbook Basics of an Expert System: – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters 1-4. Uncertainty (Probability, Certainty.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Artificial Intelligence Knowledge Representation.
Dinner for Two. Fuzzify Inputs Apply Fuzzy Operator.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Artificial Intelligence CIS 342
Limitations of First-Order Logic
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Knowledge-Based Systems Chapter 17.
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Uncertainty Chapter 13.
Artificial Intelligence
First-Order Logic and Inductive Logic Programming
Fuzzy Logic and Fuzzy Sets
Artificial Intelligence Chapter 17. Knowledge-Based Systems
Methods of Proof Chapter 7, second half.
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Presentation transcript:

1 Chapter 13 Uncertainty Types of uncertainty Predicate logic and uncertainty Nonmonotonic logics Truth Maintenance Systems Fuzzy sets

2 Uncertain agent environment agent ? sensors actuators ? ? ? model

3 Types of Uncertainty Uncertainty in prior knowledge E.g., some causes of a disease are unknown and are not represented in the background knowledge of a medical-assistant agent

4 Types of Uncertainty Uncertainty in actions E.g., to deliver this lecture: I must be able to come to school the heating system must be working my computer must be working the LCD projector must be working I must not have become paralytic or blind As we will discuss with planning, actions are represented with relatively short lists of preconditions, while these lists are in fact arbitrary long. It is not efficient (or even possible) to list all the possibilities.

5 Types of Uncertainty Uncertainty in perception E.g., sensors do not return exact or complete information about the world; a robot never knows exactly its position. Courtesy R. Chatila

6 Sources of uncertainty Laziness (efficiency) Ignorance What we call uncertainty is a summary of all that is not explicitly taken into account in the agent’s knowledge base (KB).

7 Assumptions of reasoning with predicate logic (1) Predicate descriptions must be sufficient with respect to the application domain. Each fact is known to be either true or false. But what does lack of information mean? Closed world assumption, assumption based reasoning: PROLOG: if a fact cannot be proven to be true, assume that it is false HUMAN: if a fact cannot be proven to be false, assume it is true

8 Assumptions of reasoning with predicate logic (cont’d) (2)The information base must be consistent. Human reasoning: keep alternative (possibly conflicting) hypotheses. Eliminate as new evidence comes in.

9 Assumptions of reasoning with predicate logic (cont’d) (3) Known information grows monotonically through the use of inference rules. Need mechanisms to: add information based on assumptions (nonmonotonic reasoning), and delete inferences based on these assumptions in case later evidence shows that the assumption was incorrect (truth maintenance).

10 Questions How to represent uncertainty in knowledge? How to perform inferences with uncertain knowledge? Which action to choose under uncertainty?

11 Approaches to handling uncertainty Default reasoning [Optimistic] non-monotonic logic Worst-case reasoning [Pessimistic] adversarial search Probabilistic reasoning [Realist] probability theory

12 Default Reasoning Rationale: The world is fairly normal. Abnormalities are rare. So, an agent assumes normality, until there is evidence of the contrary. E.g., if an agent sees a bird X, it assumes that X can fly, unless it has evidence that X is a penguin, an ostrich, a dead bird, a bird with broken wings, …

13 Modifying logic to support nonmonotonic inference p(X)  unless q(X)  r(X) If we believe p(X) is true, and do not believe q(X) is true (either unknown or believed to be false) then we can infer r(X) later if we find out that q(X) is true, r(X) must be retracted “unless” is a modal operator: deals with belief rather than truth

14 Modifying logic to support nonmonotonic inference (cont’d) p(X)  unless q(X)  r(X) in KB p(Z)in KB r(W)  s(W)in KB  q(X) ??q(X) is not in KB r(X)inferred s(X)inferred

15 Example If there is a competition and unless there is an exam tomorrow, I can go to the game competition. There is a competition. Whenever I go to the game competition, I have fun I did not check my calendar but I don’t remember an exam scheduled for tomorrow, Conclude: I’ll go to the game competition. Then conclude: I’ll have fun.

16 “Abnormality” p(X)  unless ab p(X)  q(X) ab: abnormal Examples: If X is a bird, it will fly unless it is abnormal. (abnormal: broken wing, sick, trapped, ostrich,...) If X is a car, it will run unless it is abnormal. (abnormal: flat tire, broken engine, no gas, …)

17 Another modal operator: M p(X)  M q(X)  r(X) If we believe p(X) is true, and q(X) is consistent with everything else, then we can infer r(X) “M” is a modal operator for “is consistent.”

18 Example  X good_student(X)  M study_hard(X)  graduates (X) How to make sure that study_hard(X) is consistent? Negation as failure proof: Try to prove  study_hard(X), if not possible assume X does study. Tried but failed proof: Try to prove study_hard(X ), but use a heuristic or a time/memory limit. When the limit expires, if no evidence to the contrary is found, declare as proven.

19 Potentially conflicting results  X good_student (X)  M study_hard (X)  graduates (X)  X good_student (X)  M  study_hard (X)   graduates (X) good_student(peter) If the KB does not contain information about study_hard(peter), both graduates(peter) and  graduates (peter) will be inferred! Solutions: autoepistemic logic, default logic, inheritance search, more rules,...  Y party_person(Y)   study_hard (Y) party_person (peter)

20 Truth Maintenance Systems They are also known as reason maintenance systems, or justification networks. In essence, they are dependency graphs where rounded rectangles denote predicates, and half circles represent facts or “and”s of facts. Base (given) facts:ANDed facts: p is in the KBp  q  r pr p q

21 How to retract inferences In traditional logic knowledge bases inferences made by the system might have to be retracted as new (conflicting) information comes in In knowledge bases with uncertainty inferences might have to be retracted even with non-conflicting new information We need an efficient way to keep track of which inferences must be retracted

22 Example When p, q, s, x, and y are given, all of r, t, z, and u can be inferred. r p q s x y z t u

23 Example (cont’d) If p is retracted, both r and u must be retracted (Compare this to chronological backtracking) r p q s x y z t u

24 Example (cont’d) If x is retracted (in the case before the previous slide), z must be retracted. r p q s x y z t u

25 Nonmonotonic reasoning using TMSs p  M q  r r p qq IN OUT IN means “IN the knowledge base.” OUT means “OUT of the knowledge base.” The conditions that must be IN must be proven. For the conditions that are in the OUT list, non-existence in the KB is sufficient.

26 Nonmonotonic reasoning using TMSs If p is given, i.e., it is IN, then r is also IN. r p qq IN OUT IN OUT

27 Nonmonotonic reasoning using TMSs If  q is now given, r must be retracted, it becomes OUT. Note that when  q is given the knowledge base contains more facts, but the set of inferences shrinks (hence the name nonmonotonic reasoning.) r p qq IN OUT

28 A justification network to believe that Pat studies hard  X good_student(X)  M study_hard(X)  study_hard (X) good_student(pat) IN OUT IN OUT  study_hard(pat) study_hard(pat)

29 It is still justifiable that Pat studies hard  X good_student(X)  M study_hard(X)  study_hard (X)  Y party_person(Y)   study_hard (Y) good_student(pat) IN OUT IN OUT  study_hard(pat) study_hard(pat) party_person(pat) OUT IN

30 “Pat studies hard” is no more justifiable  X good_student(X)  M study_hard(X)  study_hard (X)  Y party_person(Y)   study_hard (Y) good_student(pat) party_person(pat) good_student(pat) IN OUT IN OUT  study_hard(pat) study_hard(pat) party_person(pat) OUT IN OUT

31 Notes on TMSs We looked at JTMSs (Justification Based Truth Maintenance Systems). “Predicate” nodes in JTMSs are pure text, there is even no information about “  ”. With LTMSs (Logic Based Truth Maintenance Systems), “  ” has the same semantics as logic. So what we covered was technically LTMSs. We will not cover ATMSs (Assumption Based Truth Maintenance Systems). Did you know that TMSs were first developed for Intelligent Tutoring Systems (ITSs)?

32 The fuzzy set representation for “small integers”

33 Reasoning with fuzzy sets Lotfi Zadeh’s fuzzy set theory Violates two basic assumption of set theory  For a set S, an element of the universe either belongs to S or the complement of S.  For a set S, and element cannot belong to S or the complement S at the same time John Doe is 5’7”. Is he tall? Does he belong to the set of tall people? Does he not belong to the set of tall people?

34 A fuzzy set representation for the sets short, medium, and tall males

35 Fuzzy logic Provides rules about evaluating a fuzzy truth, T The rules are:  T (A  B) = min(T(A), T(B))  T (A  B) = max(T(A), T(B))  T (¬A) = 1 – T(A) Note that unlike logic T(A  ¬A) ≠ T(True)

36 The inverted pendulum and the angle  and d  /dt input values.

37 The fuzzy regions for the input values: (a)  and (b) d  /dt

38 The fuzzy regions of the output value u, indicating the movement of the pendulum base

39 The fuzzification of the input measures x1=1, x2 = -4

40 The Fuzzy Associative Matrix (FAM) for the pendulum problem

41 The fuzzy consequents (a), and their union (b) The centroid of the union (-2) is the crisp output.

42 Minimum of their measures is taken as the measure of the rule result

43 Procedure for control Take the crisp output and fuzzify it Check the Fuzzy Associative Matrix (FAM) to see which rules fire (4 rules fire in the example) Find the rule results  ANDed premises: take minimum  ORed premises: take maximum Combine the rule results (union in the example) Defuzzify to obtain the crisp output (centroid in the example)

44 Comments on fuzzy logic “fuzzy” refers to sets (as opposed to crisp sets) Fuzzy logic is useful in engineering control where the measurements are imprecise It has been successful in commercial control applications: automatic transmissions, trains, video cameras, electric shavers Useful when there are small rule bases, no chaining of inferences, tunable parameters The theory is not concerned about how the rules are created, but how they are combined The rules are not chained together, instead all fire and the results are combined