Rule Based Systems Alford Academy Business Education and Computing

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

Expert Systems Reasonable Reasoning An Ad Hoc approach.
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
1 Inferences with Uncertainty Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson Copyright 1998, Prentice Hall, Upper Saddle.
Expert Systems Reasonable Reasoning An Ad Hoc approach.
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.
 You will be able to: › Explain what is meant by an expert system and describe its components and applications.
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
Certainty and Evidence
Chapter 12: Expert Systems Design Examples
Chapter 11 Artificial Intelligence and 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
© 2002 Franz J. Kurfess Introduction 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
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.
EXPERT SYSTEMS Part I.
Lecture 05 Rule-based Uncertain Reasoning
Artificial Intelligence Chapter 17 Knowledge-Based Systems Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
“Get outa here!”.
Building Knowledge-Driven DSS and Mining Data
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.
Sepandar Sepehr McMaster University November 2008
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.
Knowledge Acquisition. Concepts of Knowledge Engineering Knowledge engineering The engineering discipline in which knowledge is integrated into computer.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
CS62S: Expert Systems Based on: The Engineering of Knowledge-based Systems: Theory and Practice A. J. Gonzalez and D. D. Dankel.
13: Inference Techniques
Course Instructor: K ashif I hsan 1. Chapter # 2 Kashif Ihsan, Lecturer CS, MIHE2.
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 
 Dr. Syed Noman Hasany 1.  Review of known methodologies  Analysis of software requirements  Real-time software  Software cost, quality, testing.
Overview Of Expert System Tools Expert System Tools : are all designed to support prototyping. Prototype : is a working model that is functionally equivalent.
Expert System Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Expert Systems. L EARNING O BJECTIVES : By the end of this topic you should be able to: explain what is meant by an expert system describe the components.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
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.
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.
Expert System Seyed Hashem Davarpanah University of Science and Culture.
Artificial Intelligence, simulation and modelling.
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.
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.
Expert Systems. What is an expert system?  An expert system is a computer system that is able to emulate the decision making ability of a human expert.
REASONING UNDER UNCERTAINTY: CERTAINTY THEORY
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
Introduction to Expert Systems Bai Xiao
Architecture Components
Intro to Expert Systems Paula Matuszek CSC 8750, Fall, 2004
Chapter 9. Rules and Expert Systems
Presentation transcript:

Advanced Higher Computing Based on Heriot-Watt University Scholar Materials Rule Based Systems Alford Academy Business Education and Computing Alford Academy Business Education and Computing 1 1

Lesson Objectives Expert Systems If .. Then Rules Inferencing in Rule Based Systems Certainty Factors Alford Academy Business Education and Computing Alford Academy Business Education and Computing 2 2

Expert Systems An expert system has 3 components: Often built using an expert system shell Expert system shell has no knowledge base Alford Academy Business Education and Computing Alford Academy Business Education and Computing 3

Stages of Creating an Expert System 1. knowledge acquisition 2. knowledge representation 3. system validation Alford Academy Business Education and Computing

Knowledge acquisition Domain expert: personal experience of problems to be solved personal expertise in how to solve the problems personal knowledge of the reasons for selecting certain methods. Knowledge engineer: no specialist knowledge of the domain need to learn from the domain experts, prior to the start of the project and during the acquisition of knowledge. Alford Academy Business Education and Computing

Alford Academy Business Education and Computing Difficulties Sort the 9 difficulties on pages 92 and 93 of the Scholar notes in order of negative impact on knowledge acquisition: Let 1 = least impact and 9 = most impact Alford Academy Business Education and Computing

Knowledge Representation Use an expert system shell Use a declarative language (Prolog) Use a procedural language – need to program all parts of the system Alford Academy Business Education and Computing

Alford Academy Business Education and Computing System Validation System tests that compare the advice of the expert system with that of the domain expert. Possible errors include: Incomplete knowledge or incorrect representation Misunderstanding of knowledge engineer with information provided by domain expert Knowledge not being processed correctly Alford Academy Business Education and Computing

Alford Academy Business Education and Computing If .. Then Rules Consider the following knowledge base Can use forward or backward rules Alford Academy Business Education and Computing

Alford Academy Business Education and Computing Forward Rules Of the form IF condition(s) THEN conclusion If colour = bronze AND size (mm) = 18 AND shape = round AND symbol = fish Then value = 1H. Alford Academy Business Education and Computing

Alford Academy Business Education and Computing Backward Rules Of the form conclusion IF condition(s) value = 1H If colour = bronze AND size (mm) = 18 AND shape = round AND symbol = fish. Alford Academy Business Education and Computing

Alford Academy Business Education and Computing Visual Comparison Alford Academy Business Education and Computing

Alford Academy Business Education and Computing Practical Activity Do Task 5.4.3 on page 98 of Scholar notes. Alford Academy Business Education and Computing

Justification and Explanation it helps the enquirer to understand the subject better; it means that the enquirer can learn how the expert thinks; it gives the enquirer more confidence in the advice given. Alford Academy Business Education and Computing

Investigation Do Task Exploring Justification Features on page 99 of Scholar notes. Alford Academy Business Education and Computing

How an Expert System reaches its conclusion Essentially, the inference engine uses a search algorithm to search through the rules in a similar fashion to the evaluation of a query in Prolog (see Topic 4). The rules can be represented as a decision tree: The tree can be searched either breadth-first or depth-first. The inference engine can also be classified as either forward chaining or backward chaining. Alford Academy Business Education and Computing

Alford Academy Business Education and Computing Practical Activity Read notes on page 100 – do activity Examining the behaviour of an inference engine Alford Academy Business Education and Computing

Advantages and Disadvantages of Forward Chaining Alford Academy Business Education and Computing

Advantages and Disadvantages of Backward Chaining Many Expert Systems use a combination of backward and forward chaining Alford Academy Business Education and Computing

Rules, facts and working memory Backward chaining systems tend to use depth-first search with backtracking, in a similar way to Prolog. This is completely predictable in operation, following a clear strategy to reach a conclusion. For example, suppose a medical expert systems had the following facts in working memory: Body temperature is 39.5ÆC Patient’s skin colour is red Patient has pains in stomach and legs Age of patient is 63 Gender of patient is female Condition has occurred before One of the rules in the system is: IF body temperature 38 AND patient’s skin colour is red THEN patient has fever This rule could be fired, and would add the fact: Patient has fever to the working memory. As a result, another rule: IF patient has fever AND patient has pains in stomach and legs THEN patient may have influenza. could be fired, leading to a diagnosis / conclusion. Alford Academy Business Education and Computing

Alford Academy Business Education and Computing Conflict resolution At any time, there may be hundreds of different rules that could be fired by the known facts. The inference engine must decide which of the possible rules should be fired next The set of possible rules which could be fired at any particular time is known as the conflict set The inference engine must use some form of conflict resolution to decide which rule from the conflict set to fire next Many different conflict resolution strategies can be used, either separately or in combination Alford Academy Business Education and Computing

Conflict resolution strategies Alford Academy Business Education and Computing

Alford Academy Business Education and Computing Certainty factors a consultation with a doctor may lead to a less clear-cut diagnosis. The doctor may conclude that your headache is probably just a hangover, but it might be the start of flu, and there is a very slim chance that it could be a brain tumour or some other serious disease. domains can contain inexact conclusions like this, and expert systems must be able to deal with this kind of knowledge. This involves using certainty factors The number is called a certainty factor. It is added to the end of a fact or rule using the abbreviation CF. Alford Academy Business Education and Computing

Examples of using certainty factors Practical Activity – Do weather forecast expert system task on page 104 Alford Academy Business Education and Computing

Calculating certainty factors - complex Example 1 IF the sky was red this morning (CF 60) AND it rained yesterday (CF 75) THEN it will rain today (CF 50). CF = MIN(60%,75%) x 50% = 30% CF = 30 Example 2 IF the sky is blue (CF 90) AND people around are speaking French (CF 40) AND there are lots of Renault cars (CF 60) THEN you are in France (CF 80) CF = MIN(90%,40%,60%) x 80% = 32% CF = 32 Alford Academy Business Education and Computing