UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Consistency-Based vs. Explanation- Based (Abduction) Diagnosis Andrew Smith.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
PROOF BY CONTRADICTION
SLD-resolution Introduction Most general unifiers SLD-resolution
AR for Horn clause logic Introducing: Unification.
Automated Reasoning Systems For first order Predicate Logic.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
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.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Logic.
Everything You Need to Know (since the midterm). Diagnosis Abductive diagnosis: a minimal set of (positive and negative) assumptions that entails the.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.5 [P]: Propositions and Inference Sections.
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering A Hole in Goal Trees Notes for: D.W. Loveland and M. Stickel. “A Hole in Goal.
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.
Methods of Proof Chapter 7, second half.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) March, 5, 2010.
Knoweldge Representation & Reasoning
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.
EXPERT SYSTEMS Part I.
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
CPSC 433 Artificial Intelligence CPSC 433 : Artificial Intelligence Tutorials T01 & T02 Andrew “M” Kuipers note: please include.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Methods of Proof & Proof Strategies
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 781 AILog for Ch.5 Spring 2011 Marco Valtorta
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
A Logic of Partially Satisfied Constraints Nic Wilson Cork Constraint Computation Centre Computer Science, UCC.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Abduction CIS308 Dr Harry Erwin. Contents Definition of abduction An abductive learning method Recommended reading.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 1 Logic and Proof.
Chapter 7. Propositional and Predicate Logic
Introduction to Logic for Artificial Intelligence Lecture 2
Computer Science cpsc322, Lecture 20
Resolution in the Propositional Calculus
Chapter 7: Beyond Definite Knowledge
Logical Inference: Through Proof to Truth
Normality and Faults in Logic-Based Diagnosis
Probabilistic Horn abduction and Bayesian Networks
CS201: Data Structures and Discrete Mathematics I
Biointelligence Lab School of Computer Sci. & Eng.
Assignment-2 due now Enterprise Architecture Conference Sat. Oct 27
Computer Security: Art and Science, 2nd Edition
Biointelligence Lab School of Computer Sci. & Eng.
CPSC 433 : Artificial Intelligence Tutorials T01 & T02
MAT 3100 Introduction to Proof
Chapter 7. Propositional and Predicate Logic
Computer Science cpsc322, Lecture 20
Methods of Proof Chapter 7, second half.
Bottom Up: Soundness and Completeness
Bottom Up: Soundness and Completeness
CS201: Data Structures and Discrete Mathematics I
Bottom Up: Soundness and Completeness
Presentation transcript:

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Consistency-Based vs. Explanation- Based (Abduction) Diagnosis Andrew Smith Jhih-Rong Lin Jeremy Lewis

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Overview Normality and Faults – Normality and Faults in Logic-Based diagnosis, David Poole Consistency-based vs. Abductive diagnosis – Representing Diagnosis Knowledge, David Poole Unifying Consistency-based and Abductive diagnosis – Representing Diagnosis Knowledge, David Poole

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Normality and Faults in Logic- Based Diagnosis David Poole Presented by Andrew Smith

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Outline Normality Faults Evolution of faults Examples of issues

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Normality “A component is normal if it works correctly all the time” – Used by consistency-based diagnoses A component is normal if it is being produced in a particular case. – Used by abductive diagnoses

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Normality (Consistency-based) Battery example: – – Obs: volt(series(b 1,b 2 ), 1.456) – Hypotheses ~ab(b 1 ) and ~ab(b 2 ) – Two diagnoses: {ab(b 1 )}, {ab(b 2 )}

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Normality (Abductive) Battery example: – Hypothesis: battOK(B, V), battAB(B, V) – Similar to consistency-based knowledge (so far) However, diagnosis entails the observation. – Ex: battOK(b 1, 1.403)

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Normality (Abductive) Battery example – – Observation: volt(series(b 1,b 2 ), 1.456) –

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Faults Abductive example extended – Replace abnormalities with fault assumptions – Flat battery 0.3 > V > 1.2 – Shorted battery V = 0 – Observation : volt(series(b 1,b 2 ), 1.517)

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Faults Abductive example extended Diagnoses: –

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Faults Consistency-based example extended Three choices on what to assume: – Normality and let faults be concluded as a side effect. – Absence of faults And let normality be concluded as a side effect. – Both Normality and Absence of faults

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Faults Consistency-based example extended Same scenario as abductive case – flat(B) – shorted(B) Assuming b 1 is ok and observing volt(series(b 1,b 2 )) –

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Faults Consistency-based example extended – Assuming both batteries are ok rules out the possibility of both being flat: – – Must treat abnormality as a fault!

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Faults Extended battery example Overcharged battery (1.6 < V < 2.0) Abductive case – Both batteries are OK, or one is overcharged and one is flat Consistency-based case – Same, but interpreted differently – Can compare diagnoses by using explanations in the abductive case that assumes less.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Evolution of faults Evolving from normality- to fault-based – Over time, systems evolve as more information is gained. – Consistency-based Assuming abnormalities and faults – Restricts the number of abnormalities by implying a strict number of faults. – No fault information Treats abnormality (vague) as a fault.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Evolution of faults New faults Adding small batteries to abductive knowledge-base – Consistency-based is much more difficult due to the assumption of complete knowledge!

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Evolution of faults New faults in consistency-based KBs Replace flat(B) rule with: Replace the complete knowledge assumption with: –

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Examples of issues Observations – Suppose lhs(d, 4, t 0 ) and rhs(d, 16, t 1 ) – Two different observations – Consistency-based (1 st form) – Abductive-based (2 nd form)

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Examples of issues Noise (handling errors) Consistency-based diagnosis – Abductive diagnosis –

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Examples of issues Hierarchial Reasoning Both abductive and consistency models can handle hierarchial models. – These are models that have levels of abstraction embedded within them (i.e. the batteries being complex power stations).

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Examples of issues Epistemological Assumptions Consistency-based – Requires complete knowledge assumption, though this usually is false. – Unanticipated observations are ignored. Abductive – Does not require this assumption. – Unanticipated observations result in no diagnosis.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Examples of issues Efficiency Consistency-based – Forward chaining from observations until a contradiction occurs. Abductive – Backward chaining from observations collecting assumptions to prove a goal. Same search space (essentially) for both.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Representing Diagnosis Knowledge: Consistency-based vs. Abductive diagnosis David Poole Presented by Jhih-Rong Lin

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Outline The knowledge representation problem The frameworks of representing diagnosis knowledge An Example to compare abductive and consistent-based diagnosis.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering The Knowledge Representation Problem (KR)

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Review of the two diagnosis The differences: Consistency-based diagnosis is defined in terms of normality assumptions rather than in terms of fault(cause/symptom) models. Abductive diagnosis is conceptualised in term of fault models. {influenza, nonsmoker} ->wheezing ^ fever

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering How to incorporate fault models into consistency-based diagnosis The consistency-based diagnosis is to minimize its negation assumed and maximize assumed. =>To assume the negation of a fault assumption as possible hypothesis. (which has similar meaning of finding mimimal explanation)

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Definition of Knowledge Base Theorist [15] defined a knowledge base KB is a pair, such that F is a set of closed formulae (called the facts) and H is a set of open formulae (called the possible hypotheses).

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering An Example to compare abductive and consistent- based diagnosis.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering The observation: aching-elbow

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Representing Diagnosis Knowledge: Unifying Consistency-based & Abductive diagnosis David Poole Presented by Jeremy Lewis

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Outline Theorem 3.2 Theorem 3.2 Proof: Inductive Base Theorem 3.2 Proof: Inductive Step 1 of 2 Theorem 3.2 Proof: Inductive Step 2 of 2 Theorem 3.2 Example 1 Theorem 3.2 Example 2 Clark’s completion Pearl’s example 1 of 2 Pearl’s example 2 of 2

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Theorem 3.2 Theorem 3.2: Given a set of symptoms, the base causes in the diagnoses using abductive diagnosis from KB_A are identical to the diagnoses using consistency-based diagnosis from KB_CB.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Theorem 3.2 Proof: Inductive Base Knowledge base is given in clausal form, A1 ∧ · · · ∧ AM ⊃ B, where B is a either a single variable or variables in conjunctive form. The structure is ordered as follows: aj ∧ · · · ∧ aj+k ⊃ bj+k+l, k ≥ 0 and l > 0 Base case for induction given a pair i, n, where i is the largest index in the observation and n is the number of elements with that index, then: x_n = 0 implies an empty diagnosis, equivalent in both systems x_i = 0 implies observation is conjunction of base clauses. This means that if C ∪ {b}, where b = b_1 ∧ · · · ∧ b_n, is consistent, then in both systems diagnosis is b.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Theorem 3.2 Proof: Inductive Step 1 of 2 Inductive Step: consider the symptoms s_1 ∧ · · · ∧ s_n, for each s_i it is either a base case or there will exist a set of rules c_i ⊃ s_i. By substitution we have c_i ∧ · · · ∧ s_n, a set of symptoms with a lower maximal index, i. For each i let D_1,..., D_k^i be this simpler query. Now, by the induction base, both systems of diagnosis are identical.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Theorem 3.2 Proof: Inductive Step 2 of 2 To convert from abduction to consistency-based diagnosis, the following must be derived from KB_CB : KB_CB |= s1 ⊃ \bigvee c_i, KB_CB |= s1 ∧ · · · ∧ sn ⊃ \bigvee_i ci ∧ s2 ∧ · · · ∧ sn, and KB_CB |= s1 ∧ · · · ∧ sn ⊃ \bigvee_i \bigvee_j D^i_j s2 ∧ · · · ∧ sn.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Theorem 3.2 Example 1 When there are no causes of a symptom, abductive diagnosis cannot explain the symptom and consistency-based diagnosis would not have the symptom occur. Consider the following Dj as defined above: KB_A = {c_2 ⊃ ¬s}, {c_2, c_3, c_2 ⊃ c_1, c_3 ⊃ c_1, c_1 ⊃ s} KB_CB = {c_2 ⊃ ¬s, s ⊃ c_1, c_1 ⊃ c_2 ∨ c_3 }, {¬c_2, ¬c_3 }} Both systems provide the two diagnoses of c1, {c_2 } and {c_3 }. However, they provide only one diagnosis of s, {c_3 }.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Theorem 3.2 Example 2 The author does point out a difference between the two diagnosis systems. Consider a system with c_1 ∨ c_2, both are base causes with no supporting observations. Note this violates constraint that base causes should not imply each other. Abduction will provide diagnosis { ∅ } if KB_A is consistent, while KB_CB will provide diagnoses, ({c_1 }and{c_2}). The author makes no claim on what this difference implies or what ways it may be exploited to provide preference to abduction or consistency-based diagnosis.

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Clark’s completion Consider rules, b_1 ⊃ a,...b_n ⊃ a and true ⊃ a. For this to be consistent, at least one b_i must be true and thus, a ⊃ b_1 ∨ · · · ∨ b_n. Since the rules can be rewritten to b_1 ∨... ∨ b_n ⊃ a, then a ≡ b_1 ∨ · · · ∨ b_n must be true. This equivalence is very close to Clark’s completion for propositions and inference. However, three important differences exist: If b_i is a base case, do not complete it. Even if b_i has no implication, it should not be false as in a full completion Because a ⊃ b_1 ∨ · · · ∨ b_n is included whether each b_i actually causes and implications must be considered for both facts and hypotheses, a biconditional does not typically result. Negation is used in diagnosis for pruning (i.e. reducing set of explanations) and not just for failure

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Pearl’s example 1 of 2 Author, Judea Pearl a researcher in inference argued that a distinction should exist between causal rules and evidential rules. Poole provides the following example of the way in which Pearl’s problem doesn’t occur in consistency- based or abductive diagnosis. Consistency-based: F = {grass-is-wet ≡ sprinkler-was-on ∨ rained-last-night, grass-is-wet ≡ grass-is-cold-and-shiny, grass-is-wet ≡ shoes-are-wet} H = { ¬rained-last-night, ¬sprinkler-was-on } Abductive: F = {rained-last-night ⊃ grass-is-wet, sprinkler-was-on ⊃ grass-is-wet, grass-is-wet ⊃ grass-is-cold-and-shiny ∧ shoes-are-wet} H = {rain-last-night, sprinkler-was-on}

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Pearl’s example 2 of 2 In this example, observation of the rained-last-night, can be used to prove causal case, grass is cold, wet, and my shoes are wet. Observing that the grass is cold and shiny, leads to proving that it must have rained or the sprinklers must have ran, the evidentia

UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Conclusion No one true way to represent logic-based diagnosis – Both consistency-based and abductive based models require different representations of the world. – Both are equally powerful in diagnosis and preference of one over the other would be domain-specific.