Professional Documents
Culture Documents
Uncertainty
In real life situation, often the information is not ‘black and white’ or ‘yes and
no’ type. We cannot always be 100-percent sure about the value of an
attribute. In such situations involving ‘uncertainty’, we use confidence factors
in developing the expert systems. In expert systems, the ‘uncertainty’ can be
one of the two types:
Also called ‘output uncertainty’, is the situation when we are not able to
conclude with 100-percent confidence. In other words, we cannot assign the
value to an attribute in a conclusion with complete confidence. Consider the
following example:
For the combination of the premise attribute values in the above rule, it may
not be possible to assign the value of ‘yes’ to the conclusion attribute ‘rain’.
Let us say that we have historical records of two years. Based on these
records, let us say that we have the premise situation for 100 days but it
rained on only 80 days (out of 100 days). Therefore, we can now have the
following rule:
Also called ‘input uncertainty’, is a situation when the user is not 100-percent
about the value of a particular attribute appearing in the premise of a rule.
1
Consider the following query:
o Now, if the pain is so sever that the patient cannot even talk or sit
properly then the answer is ‘yes’.
o Or, if the patient feels completely comfortable and no stomach cramps,
then the answer is ‘no’.
o But there can be a situation when the patient may have pain but it is not
so severe.
o The patient may be able to identify the intensity on a scale of 0 to 10.
Handling Uncertainty
This is the premise of a rule consisting of two clauses having certain level of
confidence. What should be the confidence factor of the combined (or whole
premise)
2
Often, which approach should be used, depends upon the kind of application.
Therefore, many expert system software provide various options to calculate
combined confidence factor.
Bayes’ Formula:
P (C | f) = {P (f | C) * p(C)}/ p(f)
p(f) = P (f | C) * p(C) + P (f | ~C) * p(~C)
Where
3
Uncertainty through Fuzzy Sets
Uncertainty in expert systems is sometimes dealt with using the fuzzy set
theory. Fuzzy set theory was proposed by Zadeh, L. (1965) to deal with
problems where a simple yes or no is inadequate.
o In the above example, the fuzzy membership function is nothing but the
partial degree of tallness of a person.
o For example, a person of height 5 feet 11 inches may have a fuzzy
membership function value of 0.75 OR his degree of tallness is 0.75.
o If premises are connected with the logical operator AND, use the
minimum of the fuzzy membership function values associated with the
premises to determine the composite value of the premise.
o If premises are connected with the logical operator OR, use the
maximum of the fuzzy membership function values associated with the
premises to determine the composite value of the premise.
o If the fuzzy membership function value of a premise i is given as fv(i)
then NOT fv(i) = 1-fv(i).
4
Confidence Factor Union Method
When we have two different rules concluding about an attribute with different
confidence factors cf1 and cf2, we can use the union method to find combined
confidence factor. Then the combined confidence in the final conclusion is
given by the following rule:
The union method can be chained when we have more than two rules.
Interfaces or Bridges
Interfaces or bridges are the capabilities of expert system software that allows
the control of inference engine to go out of the expert system temporarily
during reasoning to perform a specific task that can help in making a final
decision. Most of the expert system software come with in-built interface
capability today. Some of the interfaces or bridges available include the
following capabilities