1 Basic Architecture of an Expert System. 2 Knowledge base - contains the domain specific problem-solving knowledge. Facts - represent what we know at.

Slides:



Advertisements
Similar presentations
STRONG METHOD PROBLEM SOLVING
Advertisements

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.
Expert System Shells - Examples
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Fall 2007 COMP Example Autmotive Diagnosis 1 COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Strong Method Problem Solving
Knowledge Engineering.  Process of acquiring knowledge from experts and building knowledge base  Narrow perspective  Knowledge acquisition, representation,
Rule Based Systems Michael J. Watts
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.
IS A HYBRID CAR RIGHT FOR YOU? Jordan Kong, Midwest State Bank Loan Department Manager.
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
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
Modelling planning problems using PDDL
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.
Strong Method Problem Solving.
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 [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
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. Expert Systems  Acknowledge that computers do not posses general knowledge (common sense)  Attempt to train computer in a.
Rule-Based Expert Systems
Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011
13: Inference Techniques
Explanation Facility دكترمحسن كاهاني
IDDS: Rules-based Expert Systems
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 
Knowledge Representation
Jess: A Rule-Based Programming Environment Reporter: Yu Lun Kuo Date: April 10, 2006 Expert System.
Rule-Based Expert System Aziz Kustiyo Departemen Ilmu Komputer FMIPA IPB 2011.
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.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Inferencing in rule-based systems: forward and backward chaining.
RIA to visualize the health of a project Team #4 Midterm presentation February 28,2008.
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.
Artificial Intelligence
AD Lab Andrews-Dalkilic Data Exploration. AD Lab Outline Architecture What is Bioinformatics? Explore some bioinformatics problems and tools Talk about.
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.
Juan Castillo, Midwest state Bank Loan Department Manager IS A HYBRID CAR RIGHT FOR YOU?
Britney Sweeney, Midwest State Bank Loan Department Manager IS A HYBRID CAR RIGHT FOR YOU?
Artificial Intelligence: Applications
EXPERT SYSTEMS BY MEHWISH MANZER (63) MEER SADAF NAEEM (58) DUR-E-MALIKA (55)
Expert Systems. Knowledge base Inference engine ReasoningControl User interface user Components of an rule based Expert System.
Summary for final exam Agent System..
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
Artificial Intelligence, P.I
Chapter 9. Rules and Expert Systems
Rule-based expert systems
Preserving and Applying Human Expertise: Knowledge-Based Systems
Architecture Components
CS62S: Expert Systems Based on:
Chapter 9. Rules and Expert Systems
Presentation transcript:

1 Basic Architecture of an Expert System

2 Knowledge base - contains the domain specific problem-solving knowledge. Facts - represent what we know at any time about the problem we are working at. Rules - represent relationships between the facts. Inference engine - is a general program that activates the knowledge in the knowledge base. Interface enables the user to communicate with the expert system.

3 Rule-Based Expert Systems Based on the production system concept. Rules IF the engine is getting gas AND the engine will turn over THEN the problem is spark plugs Facts The engine is getting gas Conclusion: –action –employ a particular model –execute a procedure –display a report

4 Inference Engine (1)Selection of rule candidates: pattern matching (2)Choice of one rule: conflict resolution (3)Execution: deduction

5 Backward chaining (goal driven): the inference engine works backward from a conclusion to be proven to determine if there are data in the workspace to prove the truth of the conclusion. Example. Rule baseWorkspace R1:IF A AND B THEN DA,B R2:IF B THEN C R3: IF C AND D THEN E

6 Example. Expert system for diagnosing car problems. Rule 1: IF the engine is getting gas AND the engine will turn over THEN the problem is spark plugs Rule 2: IF the engine does not turn over AND the lights do not come on THEN the problem is battery or cables. Rule 3: IF the engine does not turn over AND the lights do come on THEN the problem is the starter motor. Rule 4: IF there is gas in the fuel tank AND there is gas in the carburettor THEN the engine is getting gas

7 The problem is X Rule 1 Rule 2 Rule 3 Rule 4 the engine is getting gas the engine will turn over the problem is spark plugs Rule 1 Rule 2 Rule 3 Rule 4 Working space

8 gas in fuel tank gas in carburettor the engine is getting gas the engine will turn over the problem is spark plugs Rule 1 Rule 2 Rule 3 Rule 4 Working space

9 Explanation in Backward Chaining Why? gas in fuel tank? yes gas in carburettor? yes engine will turn over? why It has been established that: 1. the engine is getting gas, therefore if 2. the engine will turn over, then the problem is spark plugs

10 How? how the engine is getting gas This follows from rule 4: IF there is gas in the fuel tank AND there is gas in the carburettor THEN the engine is getting gas gas in fuel tank was given by the user gas in carburettor was given by the user

11 Exercise. Rule 1IF blood pressure is likely to be high THEN risk of heart failure is high Rule 2IF blood pressure is likely to be low THEN risk of heart failure is low Rule 3IF alcohol consumption is high AND patient salt intake is high THEN blood pressure is likely to be high Rule 4IF alcohol consumption is low AND patient salt intake is low THEN blood pressure is likely to be low Rule 5IF units of alcohol per week are > 30 THEN alcohol consumption is high Rule 6IF units of alcohol per week are < 20 THEN alcohol consumption is low Rule 7IF units of alcohol per week are >= 20 AND <+ 30 THEN alcohol consumption is average Goal: determine a patient's risk of heart failure Questions: units of alcohol >30, salt intake high

12 Forward chaining (data driven): the inference engine works from the initial content of the workspace towards the final conclusion. Example. Rule baseWorkspace R1:IF A AND B THEN DA,B R2:IF B THEN C R3: IF C AND D THEN E

13 Rule 1 Rule 2 Rule 3 Rule 4 the engine turns over Rule 1 Rule 2 Rule 3 Rule 4 Working space Example. Expert system for diagnosing car problems.

14 The engine is getting gas There is gas in the fuel tank There is gas in the carburettor The engine turns over Rule 1 Rule 2 Rule 3 Rule 4 Working space

15 Explanation in Forward Chaining Why? The current rule under consideration is presented. How? More difficult than in backward chaining.

16 Example R1:IF management competence is good AND External credit rating is fair AND Bank's credit rating is marginal THEN Loan is rejected R2:IF Loan type is seasonal AND Profitability rating is high AND Solvency rating is low THEN Bank's credit rating is marginal R3:IF Cash/current liabilities > 0.1 AND Tentative solvency rating is low THEN Solvency rating is low Bank's credit ratingUNKNOWN Cash/current liabilities0.18 External credit ratingFAIR LoanSEASONAL Loan typeUNKNOWN Management competenceUNKNOWN Profitability ratingHIGH Solvency ratingUNKNOWN Tentative solvency ratingLOW

17 – Choosing between backward and forward chaining.

18 Hybrid Expert System Architecture

19 Example 1. IF WEIGHT of MY-FORD > 3,000 pounds THEN set DETOUR AROUND RICKETY BRIDGE Example 2. IF ?VEHICLE is instance-of AUTOMOBILES AND ?VEHICLE has-a ?ENGINE AND ?ENGINE is instance-of DIESEL THEN set REFUEL of ?VEHICLE to TRUCKSTOP

20 SUMMARY The major components of an expert system are the knowledge base, inference engine, and user interface. Rule-based expert systems are introduced. There are two approaches for controlling inference in rule-based expert systems: forward chaining and backward chaining.