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.

Slides:



Advertisements
Similar presentations
STRONG METHOD PROBLEM SOLVING
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,
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.
ICT IGCSE Expert Systems.
B. Ross Cosc 4f79 1 Forward chaining backward chaining systems: take high-level goal, and prove it by reducing it to a null goal - to reduce it to null,
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
Chapter 12: Expert Systems Design Examples
Rule Based Systems Alford Academy Business Education and Computing
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
Artificial Intelligence CAP492
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.
EXPERT SYSTEMS Part I.
CPSC 433 Artificial Intelligence CPSC 433 : Artificial Intelligence Tutorials T01 & T02 Andrew “M” Kuipers note: please include.
ES: Expert Systems n Knowledge Base (facts, rules) n Inference Engine (software) n User Interface.
Artificial Intelligence CSC 361
Expert Systems Expert systems are AI programs that solve a highly technical problem in some domain Expert systems are AI programs that solve a highly technical.
© Negnevitsky, Pearson Education, Lecture 2 Introduction, or what is knowledge? Introduction, or what is knowledge? Rules as a knowledge representation.
Expert Systems Infsy 540 Dr. Ocker. Expert Systems n computer systems which try to mimic human expertise n produce a decision that does not require judgment.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Chapter 1: Introduction to Expert Systems Expert Systems: Principles and Programming, Fourth Edition.
Artificial Intelligence
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 
Jess: A Rule-Based Programming Environment Reporter: Yu Lun Kuo Date: April 10, 2006 Expert System.
Chapter 13 Artificial Intelligence and Expert Systems.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
ES component and structure Dr. Ahmed Elfaig The production system or rule-based system has three main component and subcomponents shown in Figure 1. 1.Knowledge.
CS62S: Expert Systems Based on: The Engineering of Knowledge-based Systems: Theory and Practice, A. J. Gonzalez and D. D. Dankel.
COM362 Knowledge Engineering Inferencing 1 Inferencing: Forward and Backward Chaining John MacIntyre
Rules and Expert Systems
1 Chapter 9 Rules and Expert Systems Expert System (Rule Based Inference) Bayesian Network Fuzzy Theorem Probability (statistics) Uncertainty (cybernetics)
Inferencing in rule-based systems: forward and backward chaining.
Chapter 9. Rules and Expert Systems Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
1 Intelligent Systems and Control Rule-based expert systems n Introduction, or what is knowledge? n Rules as a knowledge representation technique n The.
Of An Expert System.  Introduction  What is AI?  Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES.
Artificial Intelligence
Forward and Backward Chaining
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.
1 Chapter 13 Artificial Intelligence and Expert Systems.
Artificial Intelligence: Applications
EXPERT SYSTEMS BY MEHWISH MANZER (63) MEER SADAF NAEEM (58) DUR-E-MALIKA (55)
Costin Ionita, CERN for the ALICE DAQ collaboration ALICE Expert System ACAT 2013, Beijing, May 16 th – 21 st, 2013.
Chapter 3: Methods of Inference
Advanced AI Session 2 Rule Based Expert System
Chapter 9. Rules and Expert Systems
Rule-based expert systems
Preserving and Applying Human Expertise: Knowledge-Based Systems
The following materials are borrowed from Prof. Ken Forbus’ class
Introduction to Expert Systems Bai Xiao
Chapter 3: Methods of Inference
Architecture Components
CS62S: Expert Systems Based on:
CPSC 433 : Artificial Intelligence Tutorials T01 & T02
Chapter 9. Rules and Expert Systems
Presentation transcript:

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 l Conflict Resolution l Meta Rules l Backward Chaining l The Architecture of Expert Systems l Expert System Shells

3 Chapter 9 Contents (2) l The Rete Algorithm l Knowledge Engineering l CLIPS l Backward Chaining in Expert Systems l CYC

4 Rules for Knowledge Representation l IF… THEN Rules can be used to represent knowledge: nIF it rains, then you will get wet l Rules can also be recommendations: nIF it rains, then you should wear a coat

5 Rule Based Production Systems l A production system is a system that uses knowledge in the form of rules to provide diagnoses or advice on the basis of input data. l The system consists of a database of rules (knowledge base), a database of facts, and an inference engine which reasons about the facts using the rules.

6 Forward Chaining l Forward chaining is a reasoning model that works from a set of facts and rules towards a set of conclusions, diagnoses or recommendations. l When a fact matches the antecedent of a rule, the rule fires, and the conclusion of the rule is added to the database of facts.

7 Conflict Resolution l Sometimes more than one rule will fire at once, and a conflict resolution strategy must be used to decide which conclusions to use. l One strategy is to give rules priorities and to use the conclusion that has the highest priority. l Other strategies include applying the rule with the longest antecedent, or applying the rule that was most recently added to the database.

8 Meta Rules l The rules that determine the conflict resolution strategy are called meta rules. l Meta rules define knowledge about how the system will work. l For example, meta rules might define that knowledge from Expert A is to be trusted more than knowledge from Expert B. l Meta rules are treated by the system like normal rules, but are given higher priority.

9 Backward Chaining l In cases where a particular conclusion is to be proved, backward chaining can be more appropriate. l Works back from a conclusion towards the original facts. l When a conclusion matches the conclusion of a rule in the database, the antecedents of the rule are compared with facts in the database.

10 The Architecture of Expert Systems (1) l An expert system uses expert knowledge derived from human experts to diagnose illnesses, provide recommendations and solve other problems.

11 The Architecture of Expert Systems (2) l Knowledge base: database of rules (domain knowledge). l Explanation system: explains the decisions the system makes. l User Interface: the means by which the user interacts with the expert system. l Knowledge base editor: allows the user to edit the information in the knowledge base.

12 Expert System Shells l The part of an expert system that does not contain any domain specific or case specific knowledge is the expert system shell. l A single expert system shell can be used to build a number of different expert systems. l An example of an expert system shell is CLIPS.

13 The Rete Algorithm l A rete is a directed, acyclic, rooted graph (a tree). l A path from the root node to a leaf represents the left hand side of a rule. l Each node stores details of which facts have been matched so far. l As facts are changed, the changes are propagated through the tree. l This makes an efficient way for expert systems to deal with environments which change often.

14 Knowledge Engineering l A knowledge engineer takes knowledge from experts and inputs it into the expert system. l A knowledge engineer will usually choose which expert system shell to use. l The knowledge engineer is also responsible for entering meta-rules.

15 CLIPS l CLIPS is C Language Integrated Production System – an expert system shell. l CLIPS uses a LISP- like notation to enter rules.

16 Backward Chaining in Expert Systems l Backward chaining is often used in expert systems that are designed for medical diagnosis: l For each hypothesis, H:  If H is in the facts database, it is proved.  Otherwise, if H can be determined by asking a question, then enter the user’s answer in the facts database. Hence, it can be determined whether H is true or false, according to the user’s answer.  Otherwise, find a rule whose conclusion is H. Now apply this algorithm to try to prove this rule’s antecedents.  If none of the above applies, we have failed to prove H. l Usually backward chaining is used in conjunction with forward chaining.

17 CYC l A frame based production system. l Uses a database of over 1,000,000 facts and rules, encompassing all fields of human knowledge. l CYC can answer questions about all kinds of knowledge in its database, and can even understand analogies, and other complex relations.