Production Rules Rule-Based Systems. 2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you.

Slides:



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

CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
1 Rule Based Systems Introduction to Production System Architecture.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
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.
CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book.
Inferences The Reasoning Power of Expert Systems.
Reasoning System.  Reasoning with rules  Forward chaining  Backward chaining  Rule examples  Fuzzy rule systems  Planning.
Intelligent systems Lecture 6 Rules, Semantic nets.
Knowledge Engineering.  Process of acquiring knowledge from experts and building knowledge base  Narrow perspective  Knowledge acquisition, representation,
Rule Based Systems Michael J. Watts
Artificial Intelligence Lecture No. 16
Expert System Human expert level performance Limited application area Large component of task specific knowledge Knowledge based system Task specific knowledge.
Introduction to Expert Systems
1 5.0 Expert Systems Outline 5.1 Introduction 5.2 Rules for Knowledge Representation 5.3 Types of rules 5.4 Rule-based systems 5.5 Reasoning approaches.
Lecture 04 Rule Representation
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Artificial Intelligence CAP492
1 Pertemuan 6 RULE-BASED SYSTEMS Matakuliah: H0383/Sistem Berbasis Pengetahuan Tahun: 2005 Versi: 1/0.
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.
Rules and Expert Systems
© C. Kemke1Reasoning - Introduction COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
EXPERT SYSTEMS Part I.
Lahore University of Management Sciences, Lahore, Pakistan Dr. M.M. Awais- Computer Science Department Lecture 5 Knowledge Representation Formal Method.
Inferencing using forward- and backward-chaining.
Modelling planning problems using PDDL
Artificial Intelligence CSC 361
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Presented by Mohammad Saniee December 2, 2003
Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition.
Production Systems A production system is –a set of rules (if-then or condition-action statements) –working memory the current state of the problem solving,
IDDS: Rules-based Expert Systems
School of Computer Science and Technology, Tianjin University
Knowledge based Humans use heuristics a great deal in their problem solving. Of course, if the heuristic does fail, it is necessary for the problem solver.
Chapter 9: Rules and Expert Systems Lora Streeter.
 Architecture and Description Of Module Architecture and Description Of Module  KNOWLEDGE BASE KNOWLEDGE BASE  PRODUCTION RULES PRODUCTION RULES 
Logical Agents Logic Propositional Logic Summary
Jess: A Rule-Based Programming Environment Reporter: Yu Lun Kuo Date: April 10, 2006 Expert System.
ARTIFICIAL INTELLIGENCE DR. ABRAHAM AI a field of computer science that is concerned with mechanizing things people do that require intelligent.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
CS62S: Expert Systems Based on: The Engineering of Knowledge-based Systems: Theory and Practice, A. J. Gonzalez and D. D. Dankel.
The AI War LISP and Prolog Basic Concepts of Logic Programming
COM362 Knowledge Engineering Inferencing 1 Inferencing: Forward and Backward Chaining John MacIntyre
Intelligent Control Methods Lecture 7: Knowledge representation Slovak University of Technology Faculty of Material Science and Technology in Trnava.
KNOWLEDGE BASED SYSTEMS
Chapter 4: Inference Techniques
Chapter 9. Rules and Expert Systems Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Artificial Intelligence
Forward and Backward Chaining
Review: What is a logic? A formal language –Syntax – what expressions are legal –Semantics – what legal expressions mean –Proof system – a way of manipulating.
Expert System Seyed Hashem Davarpanah University of Science and Culture.
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.
Artificial Intelligence Knowledge Representation.
Knowledge Engineering. Sources of Knowledge - Books - Journals - Manuals - Reports - Films - Databases - Pictures - Audio and Video Tapes - Flow Diagram.
Definition and Technologies Knowledge Representation.
Artificial Intelligence: Applications
By Muhammad Safdar MCS [E-Section].  There are times in life when you are faced with challenging decisions to make. You have rules to follow and general.
Summary for final exam Agent System..
Chapter 9. Rules and Expert Systems
Architecture Components
Artificial Intelligence (CS 370D)
Forward Chaining DFS can supply compatible bindings for forward chaining.
Knowledge Representation and Inference
Chapter 9. Rules and Expert Systems
ONTOMERGE Ontology translations by merging ontologies Paper: Ontology Translation on the Semantic Web by Dejing Dou, Drew McDermott and Peishen Qi 2003.
Presentation transcript:

Production Rules Rule-Based Systems

2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you should do or what you could conclude in different situations. Take the form of IF-THEN rules Take the form of IF-THEN rules A rule-based system consists of A rule-based system consists of a collection of IF-THEN rules, a collection of IF-THEN rules, a collection of facts, and a collection of facts, and some interpreter controlling the application of the rules, given the facts some interpreter controlling the application of the rules, given the facts

3 Rule-Based Systems Forward Chaining Forward Chaining start with the initial facts, and keep using the rules to draw new conclusions (or take certain actions) given those facts start with the initial facts, and keep using the rules to draw new conclusions (or take certain actions) given those facts Backward Chaining Backward Chaining start with some hypothesis (or goal) to be proved, and keep looking for rules that would allow to conclude that hypothesis start with some hypothesis (or goal) to be proved, and keep looking for rules that would allow to conclude that hypothesis

4 Forward Chaining Systems Facts -- represented in a working memory Rules -- possible actions to take when specified conditions hold Conditions -- usually patterns that must match items in the working memory Actions -- usually involve adding or deleting items from the working memory Interpreter -- controls the application of the rules, given the working memory

5 Conflict Resolution Recognize-Act cycle Recognize-Act cycle find all the rules whose conditions hold, given the current state of working memory select one and perform the actions in the action part of the rule Conflict resolution: Conflict resolution: The selection of a rule to be applied, based on fixed strategies

6 Some conflict resolution strategies :  Don't apply a rule twice on the same data.  Apply rules on more recent working memory elements before older ones.  Apply rules with more specific preconditions before ones with more general preconditions.  Use priorities

7 Exercise 1. IF coughing THEN smoky 2. IF wet AND not raining THEN burst_pipe 3. IF not coughing AND alarm_rings THEN burglar 4. IF smoky AND hot THEN fire goals: burglar, fire, burst_pipe Iinitial working memory: (hot) (coughing) (wet)

8 Backward Chaining Systems The algorithm: Given a goal state, See if it is a fact in the database. If YES - the goal is proved. If NO, find a rule, whose conclusion matches the goal. If no such rule exists, the goal fails. If a rule is found, take its premises as a new goal and try to prove it, using this algorithm.

9 Conclusion Definition: Knowledge representation languages: high level representation formalisms to represent knowledge required for AI problem solving. There is an on-going debate whether semantic nets, frames and production rules can be considered knowledge representation languages

10 General Considerations Semantic nets, frames and production rules reflect the perspective for a given problem. Semantic nets and frames : structure and properties of objects. Production rules : action with objects -- what to do when. Predicate logic : provides the inference engines for the other three basic schemes.

11 Implementation Any language can be used, however efforts are required to implement the inference mechanisms.