Artificial Intelligence Techniques

17
Artificial Intelligence Techniques Knowledge Processing 2- MSc

description

Artificial Intelligence Techniques. Knowledge Processing 2-MSc. Aims of session. To understand Fuzzy Logic Defuzzification. Introduction. Lofti Zadeh (1965) proposed Possibilistic Logic which became Fuzzy-Logic. Allows us to combine weighting factors with propositions. 0

Transcript of Artificial Intelligence Techniques

Page 1: Artificial Intelligence Techniques

Artificial Intelligence Techniques

Knowledge Processing 2-MSc

Page 2: Artificial Intelligence Techniques

Aims of session

To understand Fuzzy Logic Defuzzification

Page 3: Artificial Intelligence Techniques

Introduction Lofti Zadeh (1965) proposed

Possibilistic Logic which became Fuzzy-Logic.

Allows us to combine weighting factors with propositions.

0<=T(X)<=1

Page 4: Artificial Intelligence Techniques

Boolean v Fuzzy Boolean FuzzyT(X^Y) MIN(T(X),T(Y))T(XvY) MAX(T(X),T(Y))T(¬X) (1-T(X))T(XY) MAX((1-T(X),T(Y))

Where X and Y are propositionsAny Boolean expression can be converted

to a fuzzy expression.

Page 5: Artificial Intelligence Techniques

tX Y Min(X,Y) MAX(X,Y) (1-X) MAX((1-X),Y)

0 0 0 0 1 10 1 0 1 1 11 0 0 1 0 01 1 1 1 0 1

So when truth values are 0 and 1 Fuzzy=BooleanOther rules such as De-Morgan’s Laws still apply

Page 6: Artificial Intelligence Techniques

Membership functions A fuzzy set is a set whose membership

function takes values between 0 and 1. Example: Cold, Warm and Hot describe

temperature we could define thresholds T1 and T2.

Starting at low temperature as the temperature rises to T1 the temperature becomes Warm. As the temperature rises to T2 the temperature becomes Hot.

Page 7: Artificial Intelligence Techniques

What is the problem? Is there really a crisp change

between the definitions?

Page 8: Artificial Intelligence Techniques

Answer Change the shape of the

membership function so it not so crisp.

Common one is a triangular functions that have some overlap.

At some temperatures it is possible to be a member of two different sets.

Page 9: Artificial Intelligence Techniques

Using the example from Johnson and Picton (1995)

Page 10: Artificial Intelligence Techniques

At 8 degrees it is a member of both COLD (0.7) and WARM (0.3) sets.

These are NOT necessarily probabilities, they are not so rigorously defined.

Page 11: Artificial Intelligence Techniques

Defuzzication To calculate final setting need

defuzzication rules, this often based around the ‘centre of gravity’ of shaded area.

Why do we need this?

Page 12: Artificial Intelligence Techniques

So back to the temperature measures the fuzzy membership can be combined using MIN, MAX and (1-T(X)) operations so IF-THEN can be used.

IF (temperature is COLD) THEN (heating on HIGH) IF (temperature is WARM) THEN (heating on LOW)

So first rule heating is turned on to HIGH with a membership of 0.7.Second rule heating is turned on to LOW.

So membership can be represented by the heating memebership,

Page 13: Artificial Intelligence Techniques

Heater membership

Centre of gravity is point where area to left of the point=area to the right.

Page 14: Artificial Intelligence Techniques

Centre of Gravity

n

ii

n

iii

curveunderarea

curveunderareacofgcofg

1

1

__

__.

Page 15: Artificial Intelligence Techniques

Paradoxes and Fuzzy Sets A useful feature is they can be built

on the basis of minimal information and fine-tuned to be more consistent afterwards by observation.

Problem is (Hopgood’s Paradox) is that it is possible that ‘weak’ information can result in strong information on defuzzication.

Page 16: Artificial Intelligence Techniques

Not inverse Defuzzication is not truly the

inverse of fuzzification.

If you defuzzify fuzzy data you will often get distortion in the resulting values.

Page 17: Artificial Intelligence Techniques

References Johnson J and Picton P (1995)

Mechatronics : designing intelligent machines. - Vol.2 : concepts in artificial intelligence Oxford : Butterworth-Heinemann pg 175-187