Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,

Slides:



Advertisements
Similar presentations
© Negnevitsky, Pearson Education, Introduction, or what is uncertainty? Introduction, or what is uncertainty? Basic probability theory Basic probability.
Advertisements

FT228/4 Knowledge Based Decision Support Systems
Lahore University of Management Sciences, Lahore, Pakistan Dr. M.M. Awais- Computer Science Department 1 Lecture 12 Dealing With Uncertainty Probabilistic.
Bayesian Network and Influence Diagram A Guide to Construction And Analysis.
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.
 Negnevitsky, Pearson Education, Lecture 3 Uncertainty management in rule- based expert systems n Introduction, or what is uncertainty? n Basic.
Uncertainty in Expert Systems (Certainty Factors).
Artificial Intelligence Universitatea Politehnica Bucuresti Adina Magda Florea
FT228/4 Knowledge Based Decision Support Systems
Chapter 4: Reasoning Under Uncertainty
B. Ross Cosc 4f79 1 Uncertainty Knowledge can have uncertainty associated with it - Knowledge base: rule premises, rule conclusions - User input: uncertain,
Rule Based Systems Michael J. Watts
5/17/20151 Probabilistic Reasoning CIS 479/579 Bruce R. Maxim UM-Dearborn.
Certainty and Evidence
AI – CS364 Uncertainty Management Introduction to Uncertainty Management 21 st September 2006 Dr Bogdan L. Vrusias
Artificial Intelligence Lecture No. 16
AI – CS364 Uncertainty Management 26 th September 2006 Dr Bogdan L. Vrusias
Chapter 12: Expert Systems Design Examples
Intelligent Systems and Soft Computing
Computer Intelligence and Soft Computing
 Negnevitsky, Pearson Education, Lecture 2 Rule-based expert systems n Introduction, or what is knowledge? n Rules as a knowledge representation.
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.
AI – CS364 Hybrid Intelligent Systems Overview of Hybrid Intelligent Systems 07 th November 2005 Dr Bogdan L. Vrusias
Marakas: Decision Support Systems, 2nd Edition © 2003, Prentice-Hall Chapter Chapter 7: Expert Systems and Artificial Intelligence Decision Support.
EXPERT SYSTEMS Part I.
Lecture 05 Rule-based Uncertain Reasoning
Building Knowledge-Driven DSS and Mining Data
© Negnevitsky, Pearson Education, Lecture 2 Introduction, or what is knowledge? Introduction, or what is knowledge? Rules as a knowledge representation.
POSC 202A: Lecture 1 Introductions Syllabus R Homework #1: Get R installed on your laptop; read chapters 1-2 in Daalgard, 1 in Zuur, See syllabus for Moore.
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.
13: Inference Techniques
10/6/2015 1Intelligent Systems and Soft Computing Lecture 0 What is Soft Computing.
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
 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,
Pattern-directed inference systems
Chapter 13 Inference Techniques Allen. Konica Automates A Help Desk with Case-based Reasoning The situation to be diagnosed is entered into the.
Soft Computing Lecture 19 Part 2 Hybrid Intelligent Systems.
Uncertainty Management in Rule-based Expert Systems
Uncertainty in Expert Systems
Reasoning Under Uncertainty. 2 Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors.
Reasoning with Uncertainty دكترمحسن كاهاني
Textbook Basics of an Expert System: – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters 1-4. Uncertainty (Probability, Certainty.
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.
UNIVERSITI TENAGA NASIONAL 1 CCSB354 ARTIFICIAL INTELLIGENCE Chapter 8.2 Certainty Factors Chapter 8.2 Certainty Factors Instructor: Alicia Tang Y. C.
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.
Chapter 12 Certainty Theory (Evidential Reasoning) 1.
REASONING UNDER UNCERTAINTY: CERTAINTY THEORY
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Advanced AI Session 2 Rule Based Expert System
Chapter 9. Rules and Expert Systems
Rule-based expert systems
Reasoning Under Uncertainty in Expert System
CS62S: Expert Systems Based on:
Intelligent Systems and
Chapter 9. Rules and Expert Systems
28th September 2005 Dr Bogdan L. Vrusias
Certainty Factor Model
basic probability and bayes' rule
Presentation transcript:

Rulebase Expert System and Uncertainty

Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive, strategy and heuristic

ES development tean Project manager Knowledge engineerProgrammerDomain expert End-user

Expert Structure of a rule-based ES Rule: IF-THEN Fact Knowledge base Database Inference engine Explanation facilities User interfaceDeveloper interface User Knowledge engineer External database External program

Structure of a rule-based ES Fundamental characteristic of an ES –High quality performance Gives correct results Speed of reaching a solution How to apply heuristic –Explanation capability Although certain rules cannot be used to justify a conclusion/decision, explanation facility can be used to expressed appropriate fundamental principle. –Symbolic reasoning

Structure of a rule-based ES Forward and backward chaining inference Rule: IF A is x THEN is y Fact: A is x Fact: B is y Knowledge base Database MatchFire

Conflict Resolution Example –Rule 1: IFthe ‘traffic light’ is green THENthe action is go –Rule 2: IFthe ‘traffic light’ is red THENthe action is stop –Rule 3: IFthe ‘traffic light’ is red THENthe action is go

Conflict Resolution Methods Fire the rule with the highest priority –example Fire the most specific rules –example Fire the rule that uses the data most recently entered in the database - time tags attached to the rules –example

Uncertainty Problem Sources of uncertainty in ES –Weak implication –Imprecise language –Unknown data –Difficulty in combining the views of different experts

Uncertainty Problem Uncertainty in AI –Information is partial –Information is not fully reliable –Representation language is inherently imprecise –Information comes from multiple sources and it is conflicting –Information is approximate –Non-absolute cause-effect relationship exist

Uncertainty Problem Representing uncertain information in ES –Probabilistic –Certainty factors –Theory of evidence –Fuzzy logic –Neural Network –GA –Rough set

Uncertainty Problem Representing uncertain information in ES –Probabilistic –Certainty factors –Theory of evidence –Fuzzy logic –Neural Network –GA –Rough set

Uncertainty Problem Representing uncertain information in ES –Probabilistic The degree of confidence in a premise or a conclusion can be expressed as a probability The chance that a particular event will occur

Uncertainty Problem Representing uncertain information in ES –Bayes Theorem Mechanism for combining new and existent evidence usually given as subjective probabilities Revise existing prior probabilities based on new information The results are called posterior probabilities

Uncertainty Problem Bayes theorem –P(A/B) = probability of event A occuring, given that B has already occurred (posterior probability) –P(A) = probability of event A occuring (prior probability) –P(B/A) = additional evidence of B occuring, given A; –P(not A) = A is not going to occur, but another event is P(A) + P(not A) = 1

Uncertainty Problem Representing uncertain information in ES –Probabilistic –Certainty factors –Theory of evidence –Fuzzy logic –Neural Network –GA –Rough set

Uncertainty Problem Representing uncertain information in ES –Certainty factors Uncertainty is represented as a degree of belief 2 steps –Express the degree of belief –Manipulate the degrees of belief during the use of knowledge based systems Based on evidence (or the expert’s assessment) Refer pg 74

Certainty Factors Form of certainty factors in ES IF THEN {cf } cf represents belief in hypothesis H given that evidence E has occurred Based on 2 functions –Measure of belief MB(H, E) –Measure of disbelief MD(H, E) Indicate the degree to which belief/disbelief of hypothesis H is increased if evidence E were observed

Certainty Factors Uncertain term and their intepretation TermCertainty Factor Definitely not Almost certainly not-0.8 Probably not-0.6 Maybe not-0.4 Unknown-0.2 to +0.2 Maybe+0.4 Probably+0.6 Almost certainly+0.8 Definitely+1.0

Certainty Factors Total strength of belief and disbelief in a hypothesis (pg 75)

Certainty Factors Example : consider a simple rule IF A is X THEN B is Y –In usual cases experts are not absolute certain that a rule holds IF A is X THEN B is Y {cf 0.7}; B is Z {cf 0.2} Interpretation; how about another 10% See example pg 76

Certainty Factors Certainty factors for rules with multiple antecedents –Conjunctive rules IF AND …AND THEN {cf} Certainty for H is cf(H, E 1  E 2  …  E n )= min[cf(E 1 ), cf(E 2 ),…, cf(E n )] x cf See example pg 77

Certainty Factors Certainty factors for rules with multiple antecedents –Disjunctive rules rules IF OR …OR OR {cf} Certainty for H is cf(H, E 1  E 2  …  E n )= max[cf(E 1 ), cf(E 2 ),…, cf(E n )] x cf See example pg 78

Certainty Factors Two or more rules effect the same hypothesis –E.g –Rule 1 :IF A is X THEN C is Z {cf 0.8} IFB is Y THEN C is Z {cf 0.6} Refer eq.3.35 pg 78 : combined certainty factor

Uncertainty Problem Representing uncertain information in ES –Probabilistic –Certainty factors –Theory of evidence –Fuzzy logic –Neural Network –GA –Rough set

Theory of evidence Representing uncertain information in ES A well known procedure for reasoning with uncertainty in AI Extension of bayesian approach Indicates the expert belief in a hypothesis given a piece of evidence Appropriate for combining expert opinions Can handle situation that lack of information

Rough set approach Rules are generated from dataset –Discover structural relationships within imprecise or noisy data –Can also be used for feature reduction Where attributes that do not contributes towards the classification of the given training data can be identified or removed

Rough set approach: Generation of Rules [E1, {a, c}], [E2, {a, c},{b,c}], [E3, {a}], [E4, {a}{b}], [E5, {a}{b}] a1c3  d1 a1c1  d2,b2c1  d2 a2  d2 b3  d2 a3  d3,a3  d4 b5  d3,b5  d4 Reducts Equivalence Classes Rules Class a b c dec E E E E E5, E5,

Rough set approach: Generation of Rules ClassRulesMembership Degree E1a1c3  d150/50 = 1 E2a1c1  d25/5 = 1 E2b2c1  d25/5 = 1 E3, E4a2  d240/40 = 1 E4b3  d210/10 = 1 E5a3  d34/5 = 0.8 E5a3  d41/5 = 0.2 E5b5  d34/5 = 0.8 E5b5  d41/5 = 0.2

Rules Measurements : Support Given a description contains a conditional part  and the decision part , denoting a decision rule   . The support of the pattern  is a number of objects in the information system A has the property described by . The support of  is the number of object in the IS A that have the decision described by . The support for the decision rule    is the probability of that an object covered by the description is belongs to the class.

Rules Measurement : Accuracy The quantity accuracy (    ) gives a measure of how trustworthy the rule is in the condition . It is the probability that an arbitrary object covered by the description belongs to the class. It is identical to the value of rough membership function applied to an object x that match . Thus accuracy measures the degree of membership of x in X using attribute B.

Rules Measurement : Coverage Coverage gives measure of how well the pattern  describes the decision class defined through . It is a probability that an arbitrary object, belonging to the class C is covered by the description D.

Complete, Deterministic and Correct Rules The rules are said to be complete if any object belonging to the class is covered by the description coverage is 1 while deterministic rules are rules with the accuracy is 1. The correct rules are rules with both coverage and accuracy is 1.