Download Certainty Factors and Bayesian Reasoning in Expert Systems and more Slides Introduction to Computing in PDF only on Docsity!
CS613 INTRODUCTION TO
ARTIFICIAL INTELLIGENCE
Lecture 8
Uncertainty management
in
Rule-based expert systems
Today’s Class
- Introduction
- History
- intelligent systems
- ES Structure
- Rule-based expert systems
- Uncertainty management in rule-based expert systems
- Frame-based expert systems
- Knowledge Acquisition
- Knowledge engineering
Introduction, or what is uncertainty?
- Information can be incomplete, inconsistent, uncertain, or all three. In other words, information is often unsuitable for solving a problem.
- Uncertainty is defined as the lack of the exact knowledge that would enable us to reach a perfectly reliable conclusion. Classical logic permits only exact reasoning. It assumes that perfect knowledge always exists and the law of the excluded middle can always be applied: IF A is true IF A is false THEN A is not false THEN A is not true
- Weak implications****. Domain experts and knowledge engineers have the painful task of establishing concrete correlations between IF (condition) and THEN (action) parts of the rules. Therefore, expert systems need to have the ability to handle vague associations, for example by accepting the degree of correlations as numerical certainty factors.
Sources of uncertain knowledge
Quantification of ambiguous and imprecise terms on a time-frequency scale
Term Always Very often Usually Often Generally Frequently Rather often About as often as not Now and then Sometimes Occasionally Once in a while Not often Usually not Seldom Hardly ever Very seldom Rarely Almost never Never
Mean value 99 88 85 78 78 73 65 50 20 20 20 15 13 10 10 7 6 5 3 0
Term Always Very often Usually Often Generally Frequently Rather often About as often as not Now and then Sometimes Occasionally Once in a while Not often Usually not Seldom Hardly ever Very seldom Rarely Almost never Never
Mean value 100 87 79 74 74 72 72 50 34 29 28 22 16 16 9 8 7 5 2 0
Ray Simpson (1944) Milton Hakel (1968)
- Unknown data****. When the data is incomplete or missing, the only solution is to accept the value “unknown” and proceed to an approximate reasoning with this value.
- Combining the views of different experts****. Large expert systems usually combine the knowledge and expertise of a number of experts. Unfortunately, experts often have contradictory opinions and produce conflicting rules. To resolve the conflict, the knowledge engineer has to attach a weight to each expert and then calculate the composite conclusion. But no systematic method exists to obtain these weights.
Certainty Factors (CFs)
- Alternative to Bays ' theory
- Relies on judgmental measures of belief as opposed to strict probability estimates - Probably true, almost certainly true, highly unlikely
- Uses measure of belief (MB) and measure of disbelief (MD) – values between 0 and 1
- Certainty factors can take on values from - to 1
- CF = MB - MD
- As evidence is accumulated, MB and MD change, causing changes in CF
- However is not justifiable in the way that classical probability theory or Bays' Theorem is justifiable
Certainty Factors
- Fact - Example: It will rain today with CF =60%.
- CF = 0.6 represents the degree of belief in statement
- CF are not probabilities but informal measures of confidence
- Rule - If it is cloudy then it will rain with CF is 60%
- represents the relationship between the evidence in the rules premise and the hypothesis in its conclusion
- Network Belief
- during evidence gathering for a hypothesis some evidence adds to belief while other pieces of evidence detracts from it.
- CF = MB-MD
Certainty factors theory
and evidential reasoning
- Certainty factors theory is a popular alternative to Bayesian reasoning.
- A certainty factor ( cf ), a number to measure the expert’s belief. The maximum value of the certainty factor is, say, +1. (definitely true) and the minimum 1. (definitely false). For example, if the expert states that some evidence is almost certainly true, a cf value of 0.8 would be assigned to this evidence.
Uncertain terms and their
interpretation in MYCIN
Term
Definitely not Almost certainly not Probably not Maybe not Unknown
Certainty Factor
+0. +0. +0. +1.
Maybe Probably Almost certainly Definitely
_ 1. _ 0. _ 0. _ 0. _ 0.2 to +0.
- The certainty factors theory is based on two functions: measure of belief MB ( H , E ), and measure of disbelief MD ( H , E ). if p ( H ) = 1
°° ¯
°° MB ( H , E ) = ®
1
max >1, 0@ p ( H )
max > p ( H _ E ), p ( H ) @ p ( H ) otherwise
if p ( H ) = 0
°° ¯
°° MD ( H , E ) = ®
1
min >1, 0@ p ( H )
min > p ( H _ E ), p ( H ) @ p ( H ) otherwise
p ( H ) is the prior probability of hypothesis H being true; p ( H _ E ) is the probability that hypothesis H is true given evidence E.
- The values of MB ( H , E ) and MD ( H , E )
range between 0 and 1. The strength of
belief or disbelief in hypothesis H
depends on the kind of evidence E
observed. Some facts may increase the
strength of belief, but some increase the
strength of disbelief.
- The total strength of belief or disbelief
in a hypothesis:
- min > MB H,E ,MD H,E @
MB H,E MD H, E cf = 1
- The certainty factor assigned by a rule is propagated through the reasoning chain. This involves establishing the net certainty of the rule consequent when the evidence in the rule antecedent is uncertain: cf ( H , E ) = cf ( E ) u cf For example, IF sky is clear THEN the forecast is sunny { cf 0.8} and the current certainty factor of sky is clear is 0.5, then cf ( H , E ) = 0.5 0.8 = 0. This result can be interpreted as “It may be sunny”.
- For conjunctive rules such as
the certainty of hypothesis H , is established as follows: cf ( H , E 1 E 2 ... En ) = min [ cf ( E 1 ), cf ( E 2 ),..., cf ( E n )] u cf For example, IF sky is clear AND the forecast is sunny THEN the action is ‘wear sunglasses’ { cf 0.8} and the certainty of sky is clear is 0.9 and the certainty of the forecast of sunny is 0.7, then cf ( H , E 1 E 2 ) = min [0.9, 0.7] 0.8 = 0.7 0.8 = 0.
IF evidence. E 1! .. AND evidence En! THEN hypothesis H! { cf }