Methods of Inference 2 Session 6

Slides:



Advertisements
Similar presentations
Some Prolog Prolog is a logic programming language
Advertisements

Resolution Proof System for First Order Logic
Biointelligence Lab School of Computer Sci. & Eng.
Inference Rules Universal Instantiation Existential Generalization
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Automated Reasoning Systems For first order Predicate Logic.
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.
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.
Logic Use mathematical deduction to derive new knowledge.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Logic Concepts Lecture Module 11.
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.
AI - Week 16 Logic and Reasoning in AI: Resolution Refutation Lee McCluskey, room 2/07
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Inference and Resolution for Problem Solving
Chapter 3: Methods of Inference
Knoweldge Representation & Reasoning
Artificial Intelligence
Chapter 3: Methods of Inference Expert Systems: Principles and Programming, Fourth Edition.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Chapter 3: Methods of Inference
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.
Methods of Inference. 2 Objectives Learn the definitions of trees, lattices, and graphs Learn about state and problem spaces Learn about AND-OR trees.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
1 Chapter 8 Inference and Resolution for Problem Solving.
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
1CS3754 Class Notes 14B, John Shieh, Figure 2.5: Further steps in the unification of (parents X (father X) (mother bill)) and (parents bill.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Computing & Information Sciences Kansas State University Monday, 25 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 14 of 42 Monday, 25 September.
CS6133 Software Specification and Verification
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 15 of 41 Friday 24 September.
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
1 Knowledge Based Systems (CM0377) Introductory lecture (Last revised 28th January 2002)
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Methods of Inference 1 Session 5 Course: T0273 – EXPERT SYSTEMS Year: 2014.
Inexact Reasoning 2 Session 10
Chapter 3: Methods of Inference
By P. S. Suryateja Asst. Professor, CSE Vishnu Institute of Technology
Chapter 7. Propositional and Predicate Logic
Introduction to Logic for Artificial Intelligence Lecture 2
Knowledge Representation and Reasoning
Inexact Reasoning 2 Session 10
Resolution in the Propositional Calculus
Propositional Logic Resolution
Inexact Reasoning 1 Session 9
Chapter 3: Methods of Inference
Logical Inference: Through Proof to Truth
Propositional Logic and Methods of Inference
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Logic Use mathematical deduction to derive new knowledge.
Resolution And yet Another Example:
Prolog IV Logic, condensed.
Horn Clauses and Unification
Computer Security: Art and Science, 2nd Edition
Biointelligence Lab School of Computer Sci. & Eng.
Chapter 7. Propositional and Predicate Logic
CSNB234 ARTIFICIAL INTELLIGENCE
Horn Clauses and Unification
RESOLUTION.
Resolution Proof System for First Order Logic
Presentation transcript:

Methods of Inference 2 Session 6 Course : T0273 – EXPERT SYSTEMS Year : 2014 Methods of Inference 2 Session 6

Learning Outcomes LO 2 : Describe the characteristics of Expert Systems After taking this course, students should be expected to explain and use the Method of inference. T0273 - Expert Systems

Lecture Outline Resolution Resolution Systems and Deduction Shallow and Causal Reasoning Resolution and First-Order Predicate Logic Forward and Backward Chaining Other Methods of Inference Metaknowledge Hidden Markov Models Summary Exercise T0273 - Expert Systems

Resolution The very powerful resolution rule of inference introduced by Robinson in 1965 is commonly implemented in theorem-proving AI programs. In fact, resolution is the primary rule of inference in PROLOG. Before resolution can be applied, the wff must be in a normal or standard form. The three main types of normal forms are conjunctive normal form, clausal form, and its Horn clause subset. The basic idea of normal form is to express wffs in a standard form that uses only the ^, v, and possibly ~ T0273 - Expert Systems

Resolution The basic goal of resolution is to infer a new clause, the resolvent, from two other clauses parent clauses. A simple example of resolution is shown in the following argument: A v B A v ~B A One way of seeing how the conclusion follows is by writing the premises as: (A v B) ^ (A v ~B) One of the Axioms of Distribution is: p v (q ^ r) ≡ (p v q) ^ (p v r) T0273 - Expert Systems

Resolution Applying this to the premises gives: (A v B) ^ (A v ~B) ≡ A v (B ^ ~B) ≡ A where the last step follows since (B ^ ~B) is always false. The example of resolution shows how the parent clauses (A v B) and (A v ~B) can be simplified into the resolvent A. T0273 - Expert Systems

Resolution Systems and Deduction Clauses and Resolvents T0273 - Expert Systems

Resolution Systems and Deduction As a simple example of proof by resolution refutation, consider the argument: A  B B  C C  D A  D To prove that the conclusion A  D is a theorem by resolution refutation, first convert it to disjunctive form using the equivalence: p  q ≡ ~p v q So: A  D ≡ ~A v D T0273 - Expert Systems

Resolution Systems and Deduction And its negation is: ~ (~A v D) ≡ A ^ ~D The conjunction of the disjunctive forms of the premises and the negated conclusion gives the conjunctive normal form suitable for resolution refutation. (~A v B) ^ (~B v C) ^ (~C v D) ^ A ^ ~D The resolution method can now be applied to the premises and conclusion. T0273 - Expert Systems

Shallow and Causal Reasoning There is little or no understanding of cause and effect in shallow reasoning because there is little or no inference chain. In shallow reasoning there is little or no causal chain of cause and effect from one rule to another. The advantage of shallow reasoning compared to causal reasoning is the ease of programming. Causal reasoning can be used to construct a model of the real system that behaves in all respects like the real system. T0273 - Expert Systems

Resolution and First-Order Predicate Logic The resolution method is also used with the first-order predicate logic. Conversion to Causal Form Eliminate conditionals Wherever possible, eliminate negations or reduce the scope of negation to one atom. Standardize variables within a wff so that the bound or dummy variables of each quantifier have unique names. Eliminate existential quantifiers by using Skolem functions. Convert the wff to prenex form. Convert the matrix to conjunctive normal form Drop the universal quantifiers as unnecessary Eliminate the ^ signs by writing the wff as a set of clauses Rename variables in clauses, if necessary. T0273 - Expert Systems

Forward and Backward Chaining A chain that is searched or traversed from a problem to its solution is called a forward chain. Forward chaining is called bottom-up reasoning because it reasons from the low-level evidence, facts, to the top-level conclusions that are based on the facts. A chain that is traversed from a hypothesis back to the facts that support the hypothesis is a backward chain. Backward chaining is the reverse process. T0273 - Expert Systems

Forward and Backward Chaining T0273 - Expert Systems

Forward chaining merupakan metode pencarian yang memulai proses pencarian dari sekumpulan data atau fakta, dari fakta-fakta tersebut dicari suatu kesimpulan yang menjadi solusi dari permasalahan yang dihadapi. Backward Chaining merupakan metode pencarian yang arahnya kebalikan dari Forward Chaining. Proses pencarian dimulai dari tujuan, yaitu kesimpulan yang menjadi solusi dari permasalahan yang dihadapi. T0273 - Expert Systems

example R1 : IF suku bunga turun THEN harga obligasi naik R2 : IF suku bunga naik THEN harga obligasi turun R3 : IF suku bunga tidak berubah THEN harga obligasi tidak berubah R4 : IF dolar naik THEN suku bunga turun R5 : IF dolar turun THEN suku bunga naik R6 : IF harga obligasi turun THEN beli obligasi T0273 - Expert Systems

Solution Forward Chaining Backward Chaining T0273 - Expert Systems

Other Methods of Inference A number of other types of inference are sometimes used with expert systems. While these methods are not as general purpose as deduction, they are very useful. Analogy Generate-and-Test Abduction Nonmonotonic Reasoning T0273 - Expert Systems

Metaknowledge The Classic Meta-DENDRAL program used induction to infer new rules of chemical structure. TEIRESIAS acquires knowledge interactively from an expert. Knowledge about new rules is not immediately put into MYCIN. TEIRESIAS has a rule model pattern of similar rules that it knows about, and tries to fit the new rule into its rule model. Determining if the new rule is in the correct form is called verification. Determining that a chain of correct inferences leads to the correct answer is called validation. T0273 - Expert Systems

Hidden Markov Model As a modern example of metaknowledge, consider path planning for a robot. A good application to path planning uses a Markov decision process (MDP). A MDP is more realistic in the case of partial or hidden information about the state and parameters, and the need for planning. The popular Matlab has a toolkit available for Hidden Markov Model (HMM) which supports various types of scientific inference especially suited for signal analysis. Path planning is also essential to many video games where a character has to get from one location to another with walls and obstacles in the way. T0273 - Expert Systems

Summary The very powerful resolution rule of inference introduced by Robinson in 1965. The basic goal of resolution is to infer a new clause, the resolvent, from two other clauses parent clauses. The resolution method is also used with the first-order predicate logic. There are two types of chaining; they are backward chaining and forward chaining. A good application to path planning uses a Markov decision process (MDP). T0273 - Expert Systems

Exercise Write a production system of causal rules to simulate the operation of the fuel system of your car. You may obtain this information from the repair guide for your car. Be as detailed as possible. Using the repair guide for your car, write a production system that can diagnose and remedy electrical problems for your car, given symptoms of problems. T0273 - Expert Systems

References Joseph Giarratano, Gary Riley. 2005. Expert Systems: Principles and Programming Chapter 3. Thomson Course Technology. Australia. ISBN:0-534-38447-1. Peter Jackson. 1998. Introduction to Expert Systems. Addison-Wesley. Harlow, England. ISBN:0201876868 T0273 - Expert Systems