Fuzzy Logic

Fuzzy logic is infinite value logic, like this thing is 20% yellow. (NOT PROBABILITY)

Fuzzy inference

KB: “if (things temp is high) then do this”

Observation: “things temp is 39”


Ok so does this if statement evaluate to true? what is a high temp? (this is the point of fuzzy sets)

Note that the rules are fuzzy.

Fuzzy set

Objects can either be a member or not a member of a set.

Not fuzzy set example.

Fuzzy set example.

Note the / is not a fraction its just notation.

Not that fuzzy set is a range.

Membership function

Defines what classifies as being in what group.

These can be set by using expert views or trained on data.

Fuzzy operators

Operators allow you to define certain groups based on memberships.

Operator definitions

Hedge operators

General fuzzy logic architecture

Okay I think its better if you watch the lecture for the next bit.

  1. But what it seems like is you get multiple member ship functions, and see where the thing ens up on it

  1. From that because it uses an AND operator, you have to pick the min of the two in the correct membership group. NOTE that this is based on the set of rules that is set out at the start, aka if the bottom one cared about the top half and not the bottom half you would make a triangle selecting the top half of medium.

  1. You then merge the sets together.

  1. Finally you pick a number based on the set, a common strat is to pick the centroid (similar to a weighted avg), or the max or the min ect...

Inference methods

Mamdani

TSK