Explanation and Diagnoses Thomas Thomas & Jansen Orfan.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Section 10.2: Tests of Significance
Comparative Succinctness of KR Formalisms Paolo Liberatore.
Inference Rules Universal Instantiation Existential Generalization
Consistency-Based Diagnosis
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Diagram 1 shows a four wires (w1, w2, w3 & w4) logic circuit.
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Boolean Algebra and Reduction Techniques
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Everything You Need to Know (since the midterm). Diagnosis Abductive diagnosis: a minimal set of (positive and negative) assumptions that entails the.
Chapter 1 What is Science?
Testing Hypotheses About Proportions Chapter 20. Hypotheses Hypotheses are working models that we adopt temporarily. Our starting hypothesis is called.
Knowledge Representation I Suppose I tell you the following... The Duck-Bill Platypus and the Echidna are the only two mammals that lay eggs. Only birds.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Consistency-Based vs. Explanation- Based (Abduction) Diagnosis Andrew Smith.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.5 [P]: Propositions and Inference Sections.
Models -1 Scientists often describe what they do as constructing models. Understanding scientific reasoning requires understanding something about models.
Me Talk Good One Day When Language and Logic Fail to Coincide.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knowledge in intelligent systems So far, we’ve used relatively specialized, naïve agents. How can we build agents that incorporate knowledge and a memory?
Scientific Thinking - 1 A. It is not what the man of science believes that distinguishes him, but how and why he believes it. B. A hypothesis is scientific.
Let remember from the previous lesson what is Knowledge representation
Propositional Calculus Math Foundations of Computer Science.
Logic Circuits In today’s lesson we will look at: the symbols for NOT, AND, OR and EOR using truth tables to represent logic circuits two new operators.
Artificial Intelligence Reasoning. Reasoning is the process of deriving logical conclusions from given facts. Durkin defines reasoning as ‘the process.
NONMONOTONIC LOGIC AHMED SALMAN MALIK. OVERVIEW Monotonic Logic Nonmonotonic Logic Usage and Applications Comparison with other forms of logic Related.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Lecture 7: Ways of Knowing - Reason. Part 1: What is reasoning? And, how does it lead to knowledge?
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Lecture 3 Inductive and Abductive Arguments Li Jianhui
Logics for Data and Knowledge Representation Propositional Logic: Reasoning Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Applications of Propositional Logic
CPS 170: Artificial Intelligence Propositional Logic Instructor: Vincent Conitzer.
CSNB234 ARTIFICIAL INTELLIGENCE
1 Knowledge Based Systems (CM0377) Lecture 13 (Last modified 2nd May 2002)
CS1Q Computer Systems Lecture 11 Simon Gay. Lecture 11CS1Q Computer Systems - Simon Gay2 The D FlipFlop A 1-bit register is called a D flipflop. When.
Atomic Sentences Chapter 1 Language, Proof and Logic.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
CS1Q Computer Systems Lecture 6 Simon Gay. Lecture 6CS1Q Computer Systems - Simon Gay2 Algebraic Notation Writing AND, OR, NOT etc. is long-winded and.
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
Testing Theories: The Problem of Sampling Error. The problem of sampling error It is often the case—especially when making point predictions—that what.
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 10 By Herbert I. Gross and Richard A. Medeiros next.
Unification Algorithm Input: a finite set Σ of simple expressions Output: a mgu for Σ (if Σ is unifiable) 1. Set k = 0 and  0 = . 2. If Σ  k is a singleton,
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Teaching Computing to GCSE Level with Python Session 3.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
LECTURE 19 THE COSMOLOGICAL ARGUMENT CONTINUED. THE QUANTUM MECHANICAL OBJECTION DEPENDS UPON A PARTICULAR INTERPRETATION WE MIGHT REASONABLY SUSPEND.
Fall 2002Biostat Statistical Inference - Confidence Intervals General (1 -  ) Confidence Intervals: a random interval that will include a fixed.
Theories and Hypotheses. Assumptions of science A true physical universe exists Order through cause and effect, the connections can be discovered Knowledge.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
CS1Q Computer Systems Lecture 6 Simon Gay. Lecture 6CS1Q Computer Systems - Simon Gay2 Algebraic Notation Writing AND, OR, NOT etc. is long-winded and.
An introduction to Fault Detection in Logic Circuits By Dr. Amin Danial Asham.
11 Artificial Intelligence CS 165A Tuesday, October 30, 2007  Knowledge and reasoning (Ch 7) Propositional logic  First-order logic (Ch 8) 1.
1 Consistent-based Diagnosis Yuhong YAN NRC-IIT. 2 Main concepts in this paper  (Minimal) Diagnosis  Conflict Set  Proposition 3.3  Corollary 4.5.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
TOPIC : Fault detection and fault redundancy UNIT 2 : Fault modeling Module 2.3 Fault redundancy and Fault collapsing.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Hypothesis Tests for 1-Proportion Presentation 9.
The Nature of God Nancy Parsons. Attributes- Nature of God Candidates should be able to demonstrate knowledge and understanding of: 1.God as eternal,
Module 10 Hypothesis Tests for One Population Mean
Normality and Faults in Logic-Based Diagnosis
CSE 311 Foundations of Computing I
CSE 311 Foundations of Computing I
Presentation transcript:

Explanation and Diagnoses Thomas Thomas & Jansen Orfan

Previously... Deduction  P → Q PP  Therefore Q. Induction  Every P seen comes with a Q  Qs sometimes occur without P.  Maybe P → Q

And now... Abduction  P → Q QQ  Posit: P? Example.  If it rained, the grass is wet.  The grass is wet.  I bet it rained.

Diagnosis Might have:  DiseaseA ^ someQualifiers → SymptomsA The following is unlikely:  SymptomsA ^ someQualifiers → DiseaseA We want an explanation for symtoms, we won't be able to know for certain a disease.

Explanation So, what do we want in an explanation? A is sufficient to account for B.  KB U {A} |= B or KB |= (A → B) A is consistent with the KB A is as simple and parsimonious as possible A is in the the appropriate vocabulary  The abducibles

Prime Implicates So how do we get an explanation out of a KB? A clauce c is a prime implicate of a KB iff  KB |= c  For every proper subset c' of c, it is not the case that KB |= c' We can use these implicates to form explanations for facts.

Prime Implicates Continued KB: [(p ^ q ^ r > g), (~p ^ q > g), (~q ^ r > g)] Convert to CNF...  [(~p v ~q v ~r v g), (p v ~q v g), (q v ~r v g)] Resolve to get  (p v ~q v g), and (~r v g) These are entailed by the KB but no subset of them are entailed. So they are among our prime implicants.

Prime Implicants Continued. So if we want an explanation for g. Find all the prime implicates containing g.  (p v ~q v g), (~r v g), (g v ~g) Remove the atom g.  (p v ~q), (~r), (~g) Negate the remaining clauses.  (~p ^ q), (r), (g)

Unfortunately Exponentially many prime implicants.  Worst case it's every possible combination of terms. (a v b) (a v c) (a v d) (b v c) (b v d) (c v d) Could all be prime implicants. So we can't realistically precompute them without knowing what we're trying to explain.

Drinks Example 1 KB  Vodka_Tonic → Vodka ^ Tonic  Black_Russian → Vodka ^ Coffee_Liqueur  White_Russian → Vodka ^ Coffee_Liqueur ^ Cream  Whiskey_Sour → Whiskey ^ Lemon  Irish_Coffee → Whiskey ^ Coffee  Rum&Coke → Rum ^ Cola I know I will be drinking a mixed drink tonight and my bar is currently stocked with Whiskey, Lemon, Coffee, and Rum. Given only these recopies, what might I be able to make?

Drinks Example 1 β= Whiskey V Lime V Lemon V Coffee  I will be drinking something Start by finding the relevant prime implicants  ~Irish_Coffee V (Whiskey ^ Coffee)  ~Whiskey_Sour V (Whiskey ^ Lemon)  ~Rum&Coke V (Rum ^ Cola)  {Whiskey V ~Whiskey}, {Rum V ~Rum} etc. Remove anything that implies β  ~Irish_Coffee  ~Whiskey_Sour  ~Rum&Coke V Cola  {~Whiskey}, {~Rum}, etc

Drinks Example 1 Negate  Irish_Coffee  Whiskey_Sour  Rum&Coke ^ ~Cola Contradiction! (Rum&Coke → Cola)  {Whiskey}, {Rum}, etc Remove any explanation not conforming to the vocabulary H  Since I plan on drinking a mixed drink, H is all of the mixed drinks  Irish_Coffee  Whiskey_Sour

Drinks Example 2 KB  Vodka_Tonic → Vodka ^ Tonic  Black_Russian → Vodka ^ Coffee_Liqueur  White_Russian → Vodka ^ Coffee_Liqueur ^ Cream  Whiskey_Sour → Whiskey ^ Lemon  Irish_Coffee → Whiskey ^ Coffee  Rum&Coke → Rum ^ Cola β= Vodka V Coffee_Liqueur V Cream V Coffee

Drinks Example 2 Start by finding the relevant prime implicants  Vodka_Tonic → Vodka ^ Tonic  Black_Russian → Vodka ^ Coffee_Liqueur  White_Russian → Vodka ^ Coffee_Liqueur ^ Cream  Irish_Coffee → Whiskey ^ Coffee  {Vodka V ~Vodka}, etc. Remove anything that implies β  ~Irish_Coffee V Whiskey  ~Vodka_Tonic V Tonic  ~Black_Russian  ~White_Russian  ~Irish_Coffee V Whiskey  {~Vodka}, etc.

Drinks Example 2 Negate  Irish_Coffee ^ ~Whiskey  Vodka_Tonic ^ ~Tonic  Black_Russian  White_Russian  Irish_Coffee ^ ~Whiskey  {Vodka}, etc. Remove any explanation not consistent with KB or conforming to the vocabulary H  Black_Russian  White_Russian

Circuit Example

Circuits in Logic Components  AndGate(a1), XorGate(b1), OrGate(o1)  fullAdder(f) Connectives  In1(b1) = in1(f), in1(b2) = out(b1) Normal behavior  AndGate(x) ^ ~Abnormal(X) => out(x) == and(in1(x), in2(x))

Fault Model Then we might have a model for abnormal behavior. Short Circuit:  [OrGate(x) v XorGate(x)] ^ Abnormal(x) => out(x) = in2(x)

Abductive Diagnosis So we're given.  The previous KB  Some input settings in1(f) = 1, in2(f) = 0, in3(f) = 1  Some output observations out1(f) = 1, out2(f) = 0 We want an A such that  KB U settings U {A} |= observations

Consistency-Based Diagnosis As before, we're given...  The KB, some input settings, and some output observations This time we want a set of components D such that the following two sets are consistent.  {ab(c) | c is in D} U {~ab(c) | c is not in D} What does this mean?  KB U settings U observations

Differences Abductive diagnosis requires a fault model  Only finds those errors that are in the fault model. Consistency based can use a fault model, but doesn't require it.  Checks every fault model that is consistent with the given one. Abductive diagnosis gives a much stronger claim. But how to calculate?

Calculation

Calculation Continued. All gates behaving abnormally is always consistent with the output but not helpful.  Remember that we're interested in minimal sets. By default, nothing is wrong.  So we would prefer just b2 being abnormal As given, we only have a fault model for short circuits on 'or' and 'xor' gates. So we cannot entail anything about other faults or about other gates.

Possible Extensions Variables and Quantifiers  Could we return variables or predicates rather than atoms? ie. All canaries rather than Tweety Bird. Propabilities  Could simpler be a part that is more likely to fail than some other part?  Could X make Y likely?

Extensions Continued Negative Evidence  So far we've insisted that explanations entail the thing to be explained.  Could we accept an explanation that does not entail fever as long as it didn't entail ~fever. IE bird(x) explains flies(x)

Other Applications Object Recognition  Model ^ camera → image.  Would like to recover model. Hypothetical Reasoning  What would I have to be told to believe that B is true?  What would I learn if I were told that A is true?

Exercise Probem 3, pg 283. Consider the binary circuit for logical AND.  Figure 13.3 on page 284.

Exersise Write sentences describing this circuit – its coomponents, connectivity, and normal behavior. Write a sentence for a fauilt model saying that a faulty inverter has it's output the same as its input. Assuming the fault model and that the output is 1 given inputs of 0 and 1, generate the three abductive explanations for this behavior. Generate the three consistency based diagnoses for thie circuit under the same conditions. Compare the abductive and consistency based diagnoses and explain informally why they are different.