Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea

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.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Introduction to Truth Maintenance Systems A Truth Maintenance System (TMS) is a PS module responsible for: 1.Enforcing logical relations among beliefs.
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
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.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Assumption-Based Truth Maintenance Systems Meir Kalech.
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)
Logic Use mathematical deduction to derive new knowledge.
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Knowledge Representation
Inferences The Reasoning Power of Expert Systems.
Artificial Intelligence University Politehnica of Bucharest Adina Magda Florea
Philosophy 120 Symbolic Logic I H. Hamner Hill CSTL-CLA.SEMO.EDU/HHILL/PL120.
CS128 – Discrete Mathematics for Computer Science
Chapter 12: Expert Systems Design Examples
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.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
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.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Artificial Intelligence CSC 361
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Artificial Intelligence Reasoning. Reasoning is the process of deriving logical conclusions from given facts. Durkin defines reasoning as ‘the process.
Knowledge Acquisition. Concepts of Knowledge Engineering Knowledge engineering The engineering discipline in which knowledge is integrated into computer.
1 Knowledge Based Systems (CM0377) Lecture 12 (Last modified 2nd May 2002)
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2009 Adina Magda Florea
Chapter 1-4: Properties Commutative Property: the order in which you add or multiply numbers does not change the sum or product Ex = * 8.
CSNB234 ARTIFICIAL INTELLIGENCE
1 TMS and ATMS Philippe Dague and Yuhong YAN NRC-IIT
Understanding PML Paulo Pinheiro da Silva. PML PML is a provenance language (a language used to encode provenance knowledge) that has been proudly derived.
Putting the JTMS to Work. Outline Interface between a JTMS and a rule engine Chronological Search versus Dependency Directed Search: A Playoff Using a.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
Fall 98 Introduction to Artificial Intelligence LECTURE 7: Knowledge Representation and Logic Motivation Knowledge bases and inferences Logic as a representation.
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
Pattern-directed inference systems
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
International Conference on Fuzzy Systems and Knowledge Discovery, p.p ,July 2011.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Artificial Intelligence
Expert System Seyed Hashem Davarpanah University of Science and Culture.
Assumption-based Truth Maintenance Systems: Motivation n Problem solvers need to explore multiple contexts at the same time, instead of a single one (the.
Belief dynamics and defeasible argumentation in rational agents M. A. Falappa - A. J. García G. R. Simari Artificial Intelligence Research and Development.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2011 Adina Magda Florea Master of Science.
Explaining and Controlling Reasoning Dr Nicholas Gibbins 32/3077.
Network Management Lecture 13. MACHINE LEARNING TECHNIQUES 2 Dr. Atiq Ahmed Université de Balouchistan.
Artificial Intelligence Logical Agents Chapter 7.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 4- Logic.
Knowledge Representation and Reasoning
Chapter 7. Propositional and Predicate Logic
Knowledge Representation
Knowledge Representation and Reasoning
Symbolic Reasoning under uncertainty
Knowledge Representation
Reasoning with Uncertainty
Logic Use mathematical deduction to derive new knowledge.
Chapter 7. Propositional and Predicate Logic
CSNB234 ARTIFICIAL INTELLIGENCE
Presentation transcript:

Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea curs.cs.pub.ro Master of Science in Artificial Intelligence,

Lecture 5 Truth Maintenance Systems  TMS Functioning  Data structures for a TMS  TMS/IE responsibilities  TMS/IE interface

TMS Truth Maintenance Systems  Non monotonic reasoning  Increase efficiency of problem solving  Good for: validate assumptions redraw abandoned conclusions  NMR  dependency directed backtracking (DDBkt) control program actions explain reasoning 3

Dependency Directed Bkt (1) x  {0,1}(2) a = e 1 (x) (3) y  {0,1}(4) b = e 2 (x) (5) z  {0,1}(6) c = e 3 (x) (7) b  c(8) a  b e i (x) = (x )!, i=1,2,3 Find a, b, c to satisfy (1)-(8)  x=0, y=0, z=0 and x=0, y=0, z=1 are rejected because of (7) and (8) – y's value  backtrack to y  c = e 3 (0) and c = e 3 (1) are lost 4

TMS principles  Each action in the problem solving process has an associated justification  When a contradiction is obtained, find the minimal set of assumptions which generated the contradiction – if we eliminate an element from this set, the justification for the contradiction is not valid any more and the contradiction is removed  Propagate the effects of adding a justification and of eliminating a belief + keep consistency  Select an assumption from the minimal set which generated the contradiction and defeat it 5

TMS Structure Inference Engine (IE) TMS Knowledge Base Justifications Beliefs  Belief - expression which can be true or false  Justification - inference rule (step) which lead to a belief  Premise - true fact (no justification needed) 6

TMS Structure  Set of nodes in the TMS  Every node has 2 states IN (believed node) OUT (node not believed)  Set of valid assumptions = set of IN nodes in the TMS 7

TMS Structure  The nodes may be: premises – no justification needed, IN nodes belief – may be believed (IN) or not (OUT) assumption - with supporting justifications – IN nodes if the justification is true, OUT nodes otherwise  A justification = set of nodes used to infer the justified node, composed of 2 lists: IN List – nodes that have to be IN for the justification to be true / to support an IN node OUT List – nodes that have to be OUT for the justification to be true / to support an IN node 8

The ABC Murder Initial set of beliefs Beneficiar (Alecu)~Alibi(Alecu) Beneficiar(Barbu) Beneficiar(Cezar) R1: if Beneficiar(x) and ifnot Alibi(x) then Suspect(x) Nonmonotonic production rule 9

The ABC Murder Rules R1: if Beneficiar(x) and ifnot Alibi(x) then Suspect(x) R2:if Hotel(x,y) and Departe(y) and ifnot Falsificat(y) then Alibi(x) R3:if Aparat(x, y) and ifnot Minte(y) then Alibi(x) R4:ifnot ~Spune_adevar(x) then Alibi(x) 10

TMS for the ABC Murder (Node (IN_List OUT_List)) N1 = Suspect (Alecu) (N1, ( (N2) (N3) ) ) N2 = Beneficiar (Alecu) N3 = ~Alibi(Alecu) justification justified assumption premiseunjustified assumption 11

TMS for the ABC Murder Suppose new beliefs are added Inregistrat la hotel Alecu, Departe Arad, ~Falsificat registru R2:if Hotel(x,y) and Departe(y) and ifnot Falsificat(y) then Alibi(x) R1: if Beneficiar(x) and ifnot Alibi(x) then Suspect(x) 12

TMS for the ABC Murder Suppose another new belief is added Barbu aparat de Cumnat R3:if Aparat(x, y) and ifnot Minte(y) then Alibi(x) R1: if Beneficiar(x) and ifnot Alibi(x) then Suspect(x) 13

TMS for the ABC Murder What about Cezar? R4:ifnot ~Spune_adevar(x) then Alibi(x) R1: if Beneficiar(x) and ifnot Alibi(x) then Suspect(x) 14

TMS for the ABC Murder Represent contradiction 15

TMS for the ABC Murder New beliefs are added 16

TMS for the ABC Murder The new beliefs bring a contradiction 17

Removing the contradiction Identify the minimal set of beliefs that brought the contradiction OUT some belief to remove contradiction Select an assumption (node) N and add a valid justification to a node N’  OUT List of N OR OUT a node N’  IN List of N by adding a valid justification to a node N”  OUT List of N’ 18

Removing the contradiction Justification to remove the contradiction {Suspect Alecu, Suspect Barbu, Suspect Cezar, Alti Suspecti} 19

Removing the contradiction 20

Data structures for a TMS Data structures (1)Node. Contains the following slots:  Value – the representation of the associated fact; a unique value, which is identical with the representation in the KB  Label – state of the node - IN or OUT.  NodeJustification – list of justifications which justify a given node. Note that a node may have several justifications  IsConsequence – list of justifications in which the node take part. It is formed of 2 lists: ConsecIN – list of justifications in which the node appears in the IN list ConsecOUT - list of justifications in which the node appears in the OUT list  Contradiction – a flag indicating if the node is a contradiction 21

Data structures for a TMS (2) Justification. Contains the following slots:  Type – represents the inference type of a justification, namely premise, Modus Ponens, rule, inheritance, etc. Depends on the Inference Engine and it is given by the IE to the TMS  Consequence – the node the justification justifies  Premises – list of nodes that participated in the inference, formed of the INList of nodes and the OUTList of nodes (3) An indexing structure and mechanism to allow fast search of nodes in the TMS 22

Types of nodes (Node (IN_List OUT_List)) N1 = Suspect (Alecu) (N1, ( (N2) (N3) ) ) N2 = Beneficiar (Alecu) N3 = ~Alibi(Alecu) Justification Justified Assumption (Regular node) PremiseUnjustified assumption (Assumption) Rau Alecu [IN] Unjustified assumption (Assumption) + 23

Types of nodes  Premise nodes – always true (IN)  Unjustified assumptions nodes (Assumptions) – nodes which IE wants to believe (IN) or not (OUT), although they are not supported by the existing evidence  Justified assumptions nodes (Regular nodes) - nodes which are believed only if there is a valid reason for that (a valid justification). An assumptions that has a valid justification is treated as a Regular node and is IN.  Contradiction nodes – always false (OUT) 24

Data structures for a TMS Data structures (1)Node. Contains the following slots:  Value – the representation of the associated fact; a unique value, which is identical to the representation in the KB  Label – state of the node - IN or OUT.  Type of node – indicates the type of node  NodeJustification – list of justifications which justify the node. Note that a node may have several justifications  IsConsequence – list of justifications in which the node take part. It is formed of 2 lists: ConsecIN – list of justifications in which the node appears in the IN list ConsecOUT - list of justifications in which the node appears in the OUT list 25

Data structures for a TMS (2) Justification. Contains the following slots:  Type – represents the inference type of a justification, namely premise, Modus Ponens, rule, inheritance, etc. Depends on the Inference Engine and it is given by the IE to the TMS  Consequence – the node the justification justifies  Premises – list of nodes that participated in the inference, formed of the INList of nodes and the OUTList of nodes (3) An indexing structure and mechanism to allow fast search of nodes in the TMS 26

TMS/IE responsibilities  Responsibilities of the IE:  Adds premises and makes assumptions  Apply rules and adds justifications  Retracts assumptions  Provides advise on handling contradictions  Responsibilities of the TMS:  Cashes beliefs and maintains node labels  Detects contradictions  Performs belief revision  Generates explanations 27

TMS/IE interface  IE action A. Provides a mapping between IE and TMS data structures: 1.If a new node is needed, IE must inform TMS about it, and give the connection between this node and the corresponding assertions. 2.To use TMS nodes, IE must be able to retrieve TMS nodes associated with assertions that IE works with. 3.IE must provide a way for defining nodes as premises, and for enabling/retracting assumptions.  TMS action A. Creates nodes with specified properties 28

TMS/IE interface  IE action B. Provides facilities for representing justifications. C. Provides facilities for inspecting TMS beliefs, i.e. accessing label information.  TMS action B. Accepts records of IE deductions (as justifications) C. Computes the correct label for nodes and supplies them on request. 1.Derives consequences of assumptions & premises based on the dependency network 2.When assumptions are retracted, their consequences are retracted 3.Provides explanations for beliefs, e.g., inferences 29

TMS/IE interface  IE action D. Provides facilities for contradiction handling.  TMS action D. Detects contradictions, based on contradiction nodes and explicit dependencies. Ensuring a proper mapping between IE and TMS structures Assertion i Cash assertion i Node I TMS network Belief status for Node i 30