CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book.

Slides:



Advertisements
Similar presentations
Rule-based representation
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.
Building a Knowledge Base with VPExpert (VPX. exe) see also: vpxguide
Inferences The Reasoning Power of Expert Systems.
ICT IGCSE Expert Systems.
 You will be able to: › Explain what is meant by an expert system and describe its components and applications.
Reasoning System.  Reasoning with rules  Forward chaining  Backward chaining  Rule examples  Fuzzy rule systems  Planning.
Intelligent systems Lecture 6 Rules, Semantic nets.
Rule Based Systems Michael J. Watts
Artificial Intelligence Lecture No. 16
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
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.
ES: Expert Systems n Knowledge Base (facts, rules) n Inference Engine (software) n User Interface.
Artificial Intelligence CSC 361
An expert system is a package that holds a body of knowledge and a set of rules on a subject that has been gained from human experts. An expert system.
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.
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.
1 Backward-Chaining Rule-Based Systems Elnaz Nouri December 2007.
Artificial Intelligence Lecture No. 15 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Rule-Based Expert Systems
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
Course Instructor: K ashif I hsan 1. Chapter # 2 Kashif Ihsan, Lecturer CS, MIHE2.
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.
Decision Trees & the Iterative Dichotomiser 3 (ID3) Algorithm David Ramos CS 157B, Section 1 May 4, 2006.
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 
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
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
1 Chapter 9 Rules and Expert Systems Expert System (Rule Based Inference) Bayesian Network Fuzzy Theorem Probability (statistics) Uncertainty (cybernetics)
1 Knowledge Based Systems (CM0377) Lecture 10 (Last modified 19th March 2001)
Inferencing in rule-based systems: forward and backward chaining.
17/1/1 © Pearson Education Limited 2002 Artificial Intelligence & Expert Systems Lecture 1 AI, Decision Support, Architecture of expert systems Topic 17.
Expert Systems. Learning Objectives: By the end of this topic you should be able to: explain what is meant by an expert system describe the components.
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
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)
Advanced AI Session 2 Rule Based Expert System
Rules: Knowledge Representation & Manipulation
Chapter 9. Rules and Expert Systems
The following materials are borrowed from Prof. Ken Forbus’ class
Introduction to Expert Systems Bai Xiao
Architecture Components
CPSC 433 : Artificial Intelligence Tutorials T01 & T02
Chapter 9. Rules and Expert Systems
Expert Knowledge Based Systems
Presentation transcript:

CS 484 – Artificial Intelligence1 Announcements Choose Research Topic by today Project 1 is due Thursday, October 11 Midterm is Thursday, October 18 Book Review is due Thursday, October 25

Rules and Expert Systems Lecture 8

CS 484 – Artificial Intelligence3 Rules for Knowledge Representation IF… THEN Rules can be used to represent knowledge: IF it rains, then you will get wet Rules can also be recommendations: IF it rains, then you should wear a coat

CS 484 – Artificial Intelligence4 Rule Based Production Systems Production system - uses knowledge in the form of rules to provide diagnoses or advice on the basis of input data. Parts Database of rules (knowledge base) Database of facts Inference engine which reasons about the facts using the rules

CS 484 – Artificial Intelligence5 Forward Chaining Works from a set of facts and rules towards a set of conclusions, diagnoses or recommendations. When a fact matches the antecedent of a rule Rule fires Conclusion added to facts

CS 484 – Artificial Intelligence6 Conflict Resolution Problem: more than one rule fires at once Conflict resolution strategy decides which conclusions to use. Give rules priorities and to use the conclusion that has the highest priority. Apply the rule with the longest antecedent Apply the rule that was most recently added to the database.

CS 484 – Artificial Intelligence7 Examples IF patient has pain THEN prescribe pain killers (priority 10) IF patient has chest pain THEN treat for heart disease (priority 100) IF patient has pain AND patient is over 60 AND patient has a history of heart conditions THEN take to emergency room

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

CS 484 – Artificial Intelligence9 Backward Chaining Use backward chaining when proving a particular conclusion Works back from a conclusion towards the original facts. When a conclusion matches the conclusion of a rule in the database, the antecedents of the rule are compared with facts in the database.

CS 484 – Artificial Intelligence10 Forward Chaining Rules 1.A Λ B → C 2.A → D 3.C Λ D → E 4.B Λ E Λ F → G 5.A Λ E → H 6.D Λ E Λ H → I Facts 1.A 2.B 3.F Goal H Facts Rules triggered Rule fired A,B,F

CS 484 – Artificial Intelligence11 Backward Chaining Rules 1.A Λ B → C 2.A → D 3.C Λ D → E 4.B Λ E Λ F → G 5.A Λ E → H 6.D Λ E Λ H → I Facts 1.A 2.B 3.F Goal H FactsGoals Matching Rules A,B,F How do the methods compare?

CS 484 – Artificial Intelligence12 The Architecture of Expert Systems (1) Expert knowledge derived from human experts Purpose: Diagnose illnesses Provide recommendations Solve other problems

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

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

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

CS 484 – Artificial Intelligence16 Knowledge Engineering Takes knowledge from experts and inputs it into the expert system. Usually choose which expert system shell to use. Responsible for entering meta-rules.

CS 484 – Artificial Intelligence17 CLIPS CLIPS is C Language Integrated Production System – an expert system shell. CLIPS uses a LISP-like notation to enter rules.

CS 484 – Artificial Intelligence18 Backward Chaining in Expert Systems Backward chaining is often used in expert systems that are designed for medical diagnosis: 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. Usually backward chaining is used in conjunction with forward chaining.

CS 484 – Artificial Intelligence19 Simple Medical Expert System Rules 1.If headache then prescribe pain killer 2.If headache and sore throat and coughing than diagnose flu 3.If tired and headache then diagnose glandular fever 4.If tired and sore throat then diagnose tonsillitis 5.If tired than diagnose stress

CS 484 – Artificial Intelligence20 Simple Medical Expert System User interaction Patient: I have a headache System: I suggest you take a pain killer. Do you have a sore throat? Patient: Yes, I do. System: Have you been coughing? Patient: No, why do you ask? System: If you had a head ache and a sore throat and had been coughing, I would have to conclude you might have the flu. It doesn't sound as though you have the flu? Have you been feeling tired recently? Patient: Yes, I have. System: It sounds as though you may have glandular fever or tonsillitis.

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