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.

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

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.
1 Inferences with Uncertainty Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson Copyright 1998, Prentice Hall, Upper Saddle.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Reasoning Forward and Backward Chaining Andrew Diniz da Costa
CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book.
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.
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
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.
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
 Negnevitsky, Pearson Education, Lecture 2 Rule-based expert systems n Introduction, or what is knowledge? n Rules as a knowledge representation.
1 Lecture 34 Introduction to Knowledge Representation & Expert Systems Overview  Lecture Objective  Introduction to Knowledge Representation  Knowledge.
Lecture 04 Rule Representation
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.
EXPERT SYSTEMS Part I.
Building Knowledge-Driven DSS and Mining Data
CPSC 433 Artificial Intelligence CPSC 433 : Artificial Intelligence Tutorials T01 & T02 Andrew “M” Kuipers note: please include.
Artificial Intelligence CSC 361
Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems (sections 2.7, 2.8,
Sepandar Sepehr McMaster University November 2008
© 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.
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
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 
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
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.
COM362 Knowledge Engineering Inferencing 1 Inferencing: Forward and Backward Chaining John MacIntyre
Rules and Expert Systems
KNOWLEDGE BASED SYSTEMS
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.
 Negnevitsky, Pearson Education, Introduction, or what is knowledge? Knowledge is a theoretical or practical understanding of a subject or a domain.
Of An Expert System.  Introduction  What is AI?  Intelligent in Human & Machine? What is Expert System? How are Expert System used? Elements of ES.
Lecture 2 Introduction, or what is knowledge? Introduction, or what is knowledge? Rules as a knowledge representation technique Rules as a knowledge representation.
Artificial Intelligence
Forward and Backward Chaining
Expert System Seyed Hashem Davarpanah University of Science and Culture.
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.
Lecture 20. Recap The main components of an ES are –Knowledge Base (LTM) –Working Memory (STM) –Inference Engine (Reasoning)
Advanced AI Session 2 Rule Based Expert System
Chapter 9. Rules and Expert Systems
Preserving and Applying Human Expertise: Knowledge-Based Systems
Introduction to Expert Systems Bai Xiao
Architecture Components
CS62S: Expert Systems Based on:
CPSC 433 : Artificial Intelligence Tutorials T01 & T02
Chapter 9. Rules and Expert Systems
Expert Knowledge Based Systems
Presentation transcript:

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 in rule-based systems 5.6 Forward chaining (or data-driven) 5.7 Backward Chaining (or goal-driven) 5.8 Conflict resolution 5.9 Rule-based expert systems 5.10 Architecture of an expert system.

2 5.1 Introduction AI System Knowledge Base (KB) Inference Mechanism Facts about objects: properties and relations Rules,Procedures, Theories Set of procedures to examine the KB in an orderly manner to answer questions, solve problems, or make decisions within the KB domain

3 5.2.Rules for Knowledge Representation Rules are used as one way to represent knowledge. Rules are expressed in the following form: If then Example: If temperature is below 10 then weather is cold Then-pattern, Conclusion or Consequent If-pattern, Premise Or Antecedent

4 Relation rules : If Temperature below 5 Then Weather is cold Recommendation rules: if it is cold AND name is “ALI” Then tell ALI “Wear a coat” Directive rules: If you want to sleep then close the door 5.3.Types of rules

Rule based systems Rule –based systems or production-rules systems are computer systems that use rules to provide recommendations or diagnosis, or to solve a particular problem. A rule-based system consists of three components: –A database of rules –A database of facts –An interpreter, or inference engine Knowledge base Inputs to the system The part of the system that controls the process of driving conclusions

Reasoning approaches in rule-based systems There are two inference approaches in rule- based systems: 1.Forward chaining (or data-driven): Starting from a set of antecedents we use deduction to reach a conclusion. 2.Backward Chaining( or goal-driven): Starting from a conclusion we try to prove it by following a logical path backward from the conclusion to a set of antecedents that are in the database of facts. Note: A rule is said to be triggered if its antecedents are matched with some of the facts in the facts data base. And it is said to be fired if its conclusion part is added to the facts data base or its consequent action is performed.

7 5.6.Forward chaining (or data-driven) Assume the following rules Rule 1: IF A^B THEN C Rule 2: IF A THEN D Rule 3: IF C^D THEN E Rule 4: IF B^E^F THEN H Rule 5: IF A^E THEN G Rule 6: IF D^E^G THEN I Facts: Fact 1 A Fact 2 B Fact 3 F Rules fired Rules triggered Facts 11,2A,B,F 22A,B,C,F 33A,B,C,D,F 44,5A,B,C,D,E,F 55A,B,C,D,E,F,H STOP6A,B,C,D,E,F,H,G

Backward Chaining Matching rules Goals Facts 5GA,B,F 3E 1C,DA,B,F 2DA,B,C, F StopA,B,C,D,E,F,G

9 5.8 Conflict resolution In case of forward chaining, if more than one rule are triggered at the same time, we must specify a strategy to select one of them (conflict resolution). There are many strategies: 1.Specifying a priority level for each rule, then select the rule with the highest priority level. 2.Longest matching strategy:select the rule with maximum number of matched antecedents. 3.Most recently added: select the rule which is triggered with the most recently added facts. 4.Using the order of the rule as a strategy: select the rule that appears first in the knowledge base. Note: the rules for solving the conflict resolution problem are called meta rules. And the knowledge associated with this part of the system is called meta knowledge.

Rule-based Expert Systems An expert system is one designed to model the behavior of an expert in some field, such as medicine or geology. Rule-based expert systems are designed to be able to use the same rules that the expert would use to draw conclusions from a set of facts that are present to the system. Persons involved in an expert system are: 1.The End-user: is the one who has the need for the system. 2.The domain expert: is the one who gives how conclusions and actions are determined depending on conditions in some field such as medicine or engineering. 3.The knowledge engineer: is the one who designs the rules for the system depending on the knowledge from the domain expert.

Architecture of an Expert System Inference Engine Explanation System Knowledge Base Editor User interface Knowledge Base Fact Database User Expert system Shell

12 Referring to the shown architecture of an expert system, we can define the parts of an expert system as follows: 1.Knowledge base: contains the specific domain knowledge that is used by an expert to derive conclusions from facts. 2.The facts data base: contains the case specific data that is to be used in a particular case to derive a conclusion. 3.The inference engine: is the part of the system that uses the rules and facts to derive conclusions. 4.The knowledge base editor: allows the engineer or the expert to edit the information in the knowledge base. 5.The explanation part: provides information to the user about how the inference engine arrived at its conclusions. 6.The user interface: provides access to the inference engine, the explanation system, and the knowledge base editor. An Expert System shell is an expert system with neither knowledge base nor facts sections.