Lecture 04 Rule Representation

Slides:



Advertisements
Similar presentations
Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
Advertisements

Rule-based representation
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.
CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book.
Forward Chaining and Backward Chaining. Inference Engine cycles via a match-fire procedure Knowledge Base Database Fact:A isx MatchFire Fact:B isy Rule:
Knowledge Acquisition and Modelling
Reasoning System.  Reasoning with rules  Forward chaining  Backward chaining  Rule examples  Fuzzy rule systems  Planning.
Intelligent systems Lecture 6 Rules, Semantic nets.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
1 Basic Architecture of an Expert System. 2 Knowledge base - contains the domain specific problem-solving knowledge. Facts - represent what we know at.
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
AI – CS364 Uncertainty Management 26 th September 2006 Dr Bogdan L. Vrusias
Chapter 12: Expert Systems Design Examples
Rule Based Systems Alford Academy Business Education and Computing
Intelligent Systems and Soft Computing
FT228/4 Knowledge Based Decision Support Systems Rule-Based Systems Ref: Artificial Intelligence A Guide to Intelligent Systems Michael Negnevitsky – Aungier.
Rule-based expert systems
 Negnevitsky, Pearson Education, Lecture 2 Rule-based expert systems n Introduction, or what is knowledge? n Rules as a knowledge representation.
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.
ICT619 Intelligent Systems Topic 2: Expert Systems.
Artificial Intelligence CAP492
Designing A KBS Rulebase Expert System Uncertainty Management
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.
Production Rules Rule-Based Systems. 2 Production Rules Specify what you should do or what you could conclude in different situations. Specify what you.
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
Intelligent Systems AME 498G/598I. Expert Systems Expert systems uses expert knowledge. Expert knowledge is not limited to books. It can also be privileged.
EXPERT SYSTEMS Part I.
Artificial Intelligence CSC 361
© Negnevitsky, Pearson Education, Lecture 2 Introduction, or what is knowledge? Introduction, or what is knowledge? Rules as a knowledge representation.
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Rule-Based Expert Systems
Rule-based Knowledge (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
Knowledge and Expert Systems
Artificial Intelligence Lecture No. 13 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Rule-Based Expert System Aziz Kustiyo Departemen Ilmu Komputer FMIPA IPB 2011.
1 Defining a Problem as a State Space 1. Define a state space that contains all the possible configurations of the relevant objects. 2. Specify one (or.
COM362 Knowledge Engineering Inferencing 1 Inferencing: Forward and Backward Chaining John MacIntyre
Rule Based Expert System دكترمحسن كاهاني
1 Intelligent Systems and Control Rule-based expert systems n Introduction, or what is knowledge? n Rules as a knowledge representation technique n The.
 Negnevitsky, Pearson Education, Introduction, or what is knowledge? Knowledge is a theoretical or practical understanding of a subject or a domain.
Lecture 2 Introduction, or what is knowledge? Introduction, or what is knowledge? Rules as a knowledge representation technique Rules as a knowledge representation.
Forward and Backward Chaining
Expert System Seyed Hashem Davarpanah University of Science and Culture.
CS 416 Artificial Intelligence Lecture 13 First-Order Logic Chapter 9 Lecture 13 First-Order Logic Chapter 9.
EXPERT SYSTEMS BY MEHWISH MANZER (63) MEER SADAF NAEEM (58) DUR-E-MALIKA (55)
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.
Knowledge and Expert Systems
Advanced AI Session 2 Rule Based Expert System
Intelligent Systems and Soft Computing
Lecture #1 Introduction
Chapter 9. Rules and Expert Systems
Rule-based Expert Systems
Rule-based expert systems
CS62S: Expert Systems Based on:
Chapter 9. Rules and Expert Systems
08th September 2005 Dr Bogdan L. Vrusias
Presentation transcript:

Lecture 04 Rule Representation Topics Rules as a Knowledge Representation Technique Rule Inference Model Characteristics of Rule Representation Forward Chaining Backward Chaining Discussion

Rules as a representation technique Experts are capable of expressing their knowledge in the form of rules for problem solving IF the ‘traffic light’ is green THEN the action is go IF the ‘traffic light’ is red THEN the action is stop Any rule consists of two parts: the IF part, called the antecedent (premise or condition) and the THEN part called the consequent (conclusion or action)

Rules as a representation technique A rule can have multiple antecedents joined by the keywords AND (conjunction), OR (disjunction) or a combination of both IF antecedent 1 IF antecedent 1 AND antecedent 2 OR antecedent 2 : : AND antecedent n OR antecedent n THEN consequent THENconsequent

Rules as a representation technique Rules can represent relations, recommendations, directives, strategies and heuristics Relation IF the ‘fuel tank’ is empty THEN the car is dead Recommendation IF the season is autumn AND the sky is cloudy AND the forecast is drizzle HEN the advice is ‘take an umbrella’ Directive IF the car is dead AND the ‘fuel tank’ is empty THEN the action is ‘refuel the car’

Rules as a representation technique Strategy IF the car is dead THEN the action is ‘check the fuel tank’; step1 is complete IF step1 is complete AND the ‘fuel tank’ is full THEN the action is ‘check the battery’; step2 is complete Heuristic IF the spill is liquid AND the ‘spill pH’ < 6 AND the ‘spill smell’ is vinegar THEN the ‘spill material’ is ‘acetic acid’

Rule inference model Rule-based inference architecture External Database External Programs Rule Base Fact base Inference Engine User Interface User

Rule inference model Rule base contains rules about task knowledge Fact base contains facts about the current situation; Facts are used to match against the IF (condition) parts of rules External programs and database Inference engine carries out the reasoning by linking the rules with the facts. When the condition part of a rule is satisfied, the rule is said enabled and the action part is executed (fired) User interface solicits problem specification and displays the inference results

Rule inference model Match-fire cycle Recognize enabled rules by match Resolve conflicting rules Fire rules and add new facts back to fact base

Conflict resolution Suppose we have two rules with the same IF part. Both of them can be enabled when the condition part is satisfied. They represent a conflict set. The inference engine must determine which rule to fire from such a set. A method for choosing a rule to fire when more than one rule can be fired in a given cycle is called conflict resolution.

Conflict resolution Resolution strategies Priority Specificity Recency Meta-knowledge Meta-rule 1: Rules supplied by experts have higher priorities than rules supplied by novices Metarule 2: Rules governing the rescue of human lives have higher priorities than rules concerned with clearing overloads on power system equipment.

Characteristics of rule representation Represent knowledge to guide the reasoning and thus reduce the search space for a solution Rules are separated from its processing; knowledge base and the inference engine are split up Inexact reasoning is possible with confidence degree associated (to be discussed in next lecture) Rule base maintenance is, in general, easier owing to local modification by adding single rules

Forward chaining Data-driven reasoning

Forward chaining Forward chaining is a technique for gathering information and then inferring from it whatever can be inferred Many rules may be executed that have nothing to do with the established goal If our goal is to infer only one particular fact, the forward chaining inference technique would not be efficient

Backward chaining Goal-driven reasoning

Backward chaining If one begins with a hypothetical solution and then attempts to find facts to prove it, choose the backward chaining inference engine

Discussion Rules vs. First-order definite clause In rule: IF the season is autumn AND the sky is cloudy AND the forecast is drizzle THEN the advice is ‘take an umbrella’ In First-order definite clause Autumn(Season)  Cloudy(Sky)  Drizzle(Forecast)  Umbrella(Advice) In First-order logic Autumn(Season)  Cloudy(Sky)  Drizzle(Forecast) → Umbrella(Advice)

Discussion Rule inference Modus ponens ├mp {c1c2…cn → a, c1’c2’…cn’ } ├mp s(, a)  = Unify(c1c2…cn, c1’c2’…cn’) ├mp is sound and complete on First-order definite clause (also Horn clause)