Artificial Intelligence Chapter 17 Knowledge-Based Systems Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.

Slides:



Advertisements
Similar presentations
Russell and Norvig Chapter 7
Advertisements

Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Biointelligence Lab School of Computer Sci. & Eng.
Inference Rules Universal Instantiation Existential Generalization
SLD-resolution Introduction Most general unifiers SLD-resolution
Logic Programming Automated Reasoning in practice.
Automated Reasoning Systems For first order Predicate Logic.
Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence
First Order Logic Resolution
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.
Logic Use mathematical deduction to derive new knowledge.
Reasoning Forward and Backward Chaining Andrew Diniz da Costa
Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic.
1 Knowledge Based Systems (CM0377) Lecture 8 (Last modified 5th March 2001)
Artificial Intelligence Chapter 17 Knowledge-Based Systems Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Part 2/2.
Artificial Intelligence Chapter 9 Heuristic Search Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Intelligent systems Lecture 6 Rules, Semantic nets.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
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.
Inference and Resolution for Problem Solving
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.
EXPERT SYSTEMS Part I.
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
1 Chapter 8 Inference and Resolution for Problem Solving.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Logical Agents Logic Propositional Logic Summary
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
1 Prolog and Logic Languages Aaron Bloomfield CS 415 Fall 2005.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 17 Wednesday, 01 October.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Ch. 13 Ch. 131 jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes?) Dr. Carter Tiernan.
Automated Reasoning Systems For first order Predicate Logic.
Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
CSE (c) S. Tanimoto, 2008 Predicate Calculus II 1 Predicate Calculus 2 Outline: Unification: definitions, algorithm Formal interpretations and satisfiability.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Artificial Intelligence Chapter 23 Multiple Agents Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Answer Extraction To use resolution to answer questions, for example a query of the form  X C(X), we must keep track of the substitutions made during.
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
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.
Assumption-based Truth Maintenance Systems: Motivation n Problem solvers need to explore multiple contexts at the same time, instead of a single one (the.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Artificial Intelligence Chapter 19 Reasoning with Uncertain Information Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Knowledge Based Systems
Resolution in the Propositional Calculus
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Knowledge-Based Systems Chapter 17.
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Logic Use mathematical deduction to derive new knowledge.
Biointelligence Lab School of Computer Sci. & Eng.
CS 416 Artificial Intelligence
Back to “Serious” Topics…
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 17. Knowledge-Based Systems
Artificial Intelligence Chapter 21. The Situation Calculus
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Presentation transcript:

Artificial Intelligence Chapter 17 Knowledge-Based Systems Biointelligence Lab School of Computer Sci. & Eng. Seoul National University

(c) SNU CSE Biointelligence Lab2 Outline Confronting the Real World Reasoning Using Horn Clauses Maintenance in Dynamic Knowledge Bases Rule-Based Expert Systems Rule Learning Additional Readings and Discussion

(c) SNU CSE Biointelligence Lab Confronting the Real World (1/3) Knowledge-based systems  Programs that reason over extensive knowledge bases.  Do the methods scale up sufficiently well for practical applications? Three major theoretical properties of logical reasoning systems  Soundness  To be confident that an inferred conclusion is true  Completeness  To be confident that inference will eventually produce any true conclusion  Tractability  To be confident that inference is feasible

(c) SNU CSE Biointelligence Lab Confronting the Real World (2/3) Predicate calculus  Resolution refutation is sound and complete, but semi- decidable.  Semi-decidablility makes the predicate calculus inherently intractable.  Even on problems for which resolution refutation terminates, the procedure is NP-hard.  This fact has led many to despair of using formal, logical methods for large-scale reasoning problems.

(c) SNU CSE Biointelligence Lab5 To make reasoning more efficient  We could use procedures that might occasionally prove an untrue formula.  We could use procedures that might not be guaranteed to find proofs of true formulas.  We could use a language that is less expressive than the full predicate calculus.  Reasoning is typically more efficient with Horn clauses Confronting the Real World (3/3)

(c) SNU CSE Biointelligence Lab Reasoning Using Horn Clauses Horn Clauses  Clauses that have at most one positive literal.  Rule:  There is at least one negative literal and a single positive literal.  The literal h is called the head of the clause.  The ordered list of literals, b1,…, bn, is called body.  Fact:  There may be no negative literals in the clause.  Goal:  There may be no positive literal in the clause.  Horn clauses form the basis of the programming language PROLOG.

(c) SNU CSE Biointelligence Lab7 Inference over PROLOG Clauses (1/2) Resolution Operation  A goal can resolve with a fact by unifying the fact with one of the literals in the goal.  The resolvent is a new goal consisting of a list of all of the substitution instances of the other literals in the original goal.  A goal can resolve with a rule by unifying the head of the rule with one of the literals in the goal.  The resolvent is a new goal formed by appending the list of substitution instances of all of the literals in the body of the rule to the front of the list of substitution instances of all of the other (nonresolved-upon) literals in the goal.

(c) SNU CSE Biointelligence Lab8 Inference over PROLOG Clauses (2/2) PROLOG programs  The clauses are usually ordered in the following way: goal, facts, rules.  Proof of a goal clause succeeds when the new goal produced by a resolution is empty.  Depth-first, backtracking search procedure  A goal clause fails if the interpreter has tried all resolutions for one of the goal literals and none results in new goals that can be proved.  The interpreter backtracks to the previous goal clause and tries other resolutions on it.

(c) SNU CSE Biointelligence Lab9 Example of an AND/OR Tree (1/2) 1.:- MOVES 2.BAT_OK :- 3.LIFTABLE :- 4.MOVES :- BAT_OK, LIFTABLE  Body nodes are called AND nodes because they must all be proved.  If there had been alternative resolutions possible, the search for a proof tree could have generated additional nodes, called OR nodes.

(c) SNU CSE Biointelligence Lab10 Example of an AND/OR Tree (2/2) 1.:- Above(A,C) 2.On(A,B) :- 3.On(B,C) :- 4.Above(x,y) :- On(x,y) 5.Above(x,y) :- On(x,z), Above(z,y)  Consistency requires that the same term be substituted for the variable throughout the proof tree.

(c) SNU CSE Biointelligence Lab11 Forward Chaining Forward chaining system (e.g., OPS5)  Reasoning proceeds forward, beginning with facts, chaining through rules, and finally establishing the goal.  A rule is applicable if each of the literals in its antecedent can be unified with a corresponding fact.  When more than one rule is applicable, some sort of external conflict resolution scheme is used to decide which rule will be applied.  Model of aspects of human cognitive processing  Facts: working of short-term memory  Rules: long-term memory

(c) SNU CSE Biointelligence Lab Maintenance in Dynamic Knowledge Bases (1/5) Knowledge base of propositional calculus atoms  The atoms are called premisses instead of facts.  The rules are not restricted to being Horn rules.  A spreadline reasoning system  Any cell that has a formula in it gets its vale immediately calculated from the values of components.  If the values of any components of a formula happen to change, the value of that formula is automatically changed.

(c) SNU CSE Biointelligence Lab Maintenance in Dynamic Knowledge Bases (2/5) Truth maintenance systems (TMSs)  Dynamic knowledge base: the spreadline is extended to contain any number of premisses and rules.  The formulas entered in the values of rule cells are called justifications.  The values of certain premiss cells can be omitted.  When a cell has a value of 1 or 0, it is called IN; otherwise, out.  Allowing values of cells to be OUT permits an interesting generalization of rule types (e.g, U if R is True and S is Out).

(c) SNU CSE Biointelligence Lab14  TMSs should be thought of as knowledge base maintenance systems that perform automatic updates when the truth values of certain atoms are changed.  The use of IN’s and OUT’s permits an elementary sort of “monotonic” or defeasible inference not sanctioned by ordinary reasoning systems.  Cycles among the rules present some difficulties.  One is mutual justification Maintenance in Dynamic Knowledge Bases (3/5)

(c) SNU CSE Biointelligence Lab Maintenance in Dynamic Knowledge Bases (4/5) Assumption-based truth maintenance systems (ATMSs)  The spreadline is used in a backward direction.  We start with a particular cell’s formula and ask which premiss values will make the formula in that cell True.  Other formulas called the background theory are considered together.  Labels of the cells  The values of the cells are taken to be formulas-expressed in DNF form in terms of the premiss atoms.  ATMSs can be used for a variety of purposes.  One is to perform diagnosis.

(c) SNU CSE Biointelligence Lab Maintenance in Dynamic Knowledge Bases (5/5)  Conversion of a TMS to an ATMS