• Tidak ada hasil yang ditemukan

Introduction to Fuzzy Logic and Fuzzy Systems

N/A
N/A
DEWI PURNAMA

Academic year: 2023

Membagikan "Introduction to Fuzzy Logic and Fuzzy Systems"

Copied!
30
0
0

Teks penuh

(1)

Introduction to Fuzzy Logic and Fuzzy Systems

Prof. Siti Nurmaini

(2)

Fuzzy Logic

§ Flexible machine learning technique

§ Mimicking the logic of human thought

§ Logic may have two values and represents only two possible solutions

§ Fuzzy logic is a multi valued logic and allows

intermediate values to be defined

(3)

Fuzzy Logic

Fuzzy logic is a branch of artificial intelligence that deals with reasoning algorithms used to emulate human thinking and decision making in machines.

• These algorithms are used in applications where process data cannot be represented in binary form.

Example:

“The air feels cool”

“He is young”

They are not discrete

• Fuzzy logic interprets vague statements like these

so that they make logical sense.

(4)

Motivation

• Experts rely on common sense when they solve problems.

How can we represent expert knowledge that uses vague and ambiguous terms in a computer?

• Fuzzy logic is not logic that is fuzzy, but logic that is used to describe fuzziness. Fuzzy logic is the theory of fuzzy sets that calibrate the vagueness.

• Fuzzy logic is based on the idea that all things admit of degrees, i.e. temperature, height, speed, distance, beauty – all come on a sliding scale.

• The motor is running really hot.

• Tom is a very tall guy.

(5)

Linguistic Terms

• In fuzzy logic, sets describing a fuzzy value are often called linguistic terms.

• Set fruits or set vegetables can be also regarded as a linguistic term.

• Temperature can be like Cold, warm or hot

• The goal is to use the natural language in order to build fuzzy expression

• product X is a fruit.

• Temperature t is cold.

• Term "very" intensifies the statement

• The membership function of set "very cold" must have a steeper course than that one of set "cold".

(6)

Boolean vs. Fuzzy Logic

Cold Hot

Cold Hot

0 1

[0 , 1]

§ Temperature Example

(7)

Fuzzy Logic Vs Boolean Logic

Are you under 40 years of age?

Yes

No Are you young

Why not?

Not that much Definitely

………

§Boolean logic can have only two possible values as 0/1, yes/no, right/wrong etc.

§Fuzzy logic can be multi valued. It can have relative values like yes, no, not so much, a little bit etc.

Crisp Fuzzy

(8)

Fuzzy logic vs Probability theory

Imperfection

Probability Theory

Uncertainty

Fuzzy Logic

Vagueness

(9)

Continued

• Opening both bottles you observe beer (bottle A) and hydrochloric acid (bottle B).

• The outcome of this observation is that the membership stays the same whereas the probability drops to zero.

Probability measures the likelihood that a future event will occur.

Fuzzy logic measures the ambiguity of events that have already occurred.

(10)

What Is Fuzzy Logic?

• Theory of fuzzy sets

Membership is a matter of degree.

Fuzzy sets VS classical set theory.

• Basic foundations of fuzzy sets

Fuzzy sets (Zadeh, 1965) , Fuzzy Logic (Zadeh, 1973)

• Fuzzy

Reflect how people think

Attempts to model our sense of words decision making, and common sense.

Mathematical principles for knowledge representation based on degrees of membership rather than on crisp membership of classical binary logic.

(11)

Fuzzy sets

Accept that things can be partly true and partly false to any degree at the same time.

Crisp and fuzzy sets of ‘tall men’

(12)

Membership function

• Crisp set representation

• Characteristic function

• Fuzzy set representation

• Membership function

(13)

Well known Membership Functions

Triangular Trapezoidal

Gaussian Bell

(14)

Fuzzy Vs Probability

Fuzzy ≠ Probability => μA(x) ≠ pA(x)

Both map x to a value in [0,1].

PA(x) measures our knowledge or ignorance of the truth of the event that x belongs to the set A.

• Probability deals with uncertainty and likelihood.

μA(x) measures the degree of belongingness of x to set A and there is no interest regarding the uncertainty behind the outcome of the event x. Event x has occurred and we are interested in only making observations regarding the degree to which x belongs to A.

• Fuzzy logic deals with ambiguity and vagueness.

(15)

Example

• A bottle of water

• 50% probability of being poisonous means 50%

chance.

• 50% water is clean.

• 50% water is poisonous.

• 50% fuzzy membership of poisonous means that the water has poison.

• Water is half poisonous.

(16)

Fuzzy Logic Operations

• Fuzzy union operation or fuzzy OR

μA+B= max[μA(x), μB(x)]

• Fuzzy intersection operation or fuzzy And

l μA.B= min[μA(x), μB(x)]

• Complement operation

l μA= 1-μA(x)

(17)

Linguistic variables and hedges

• Wind is a little strong.

• Weather is quite cold.

• Height is almost tall.

• Weight is very high.

• Wind, Weather, Height and Weight are linguistic variables.

• A little, Quite, Almost, Very are hedges.

• Strong, Cold, Tall and high are linguistic value.

(18)

Example

• Membership of body fitness

(19)

Fuzzy Inference

Fuzzy inference is the process of formulating the mapping from a given input to an output using fuzzy logic.

• If then rules

if temperature is cold then hot water valve is open and cold water valve is shut

• Rule Base

• If the distance to intersection (dti) is far and the speed slow apply gentle breaks

• If dti is near and the speed slow apply medium breaks

• If dti is far and speed fast apply medium breaks

• If dti is near and speed fast apply high breaks

(20)

Fuzzy Inference

• Assume we want to evaluate the health of a person based on his height and weight.

• The input variables are the crisp numbers of the person’s height and weight.

• Output is percentage of healthiness.

(21)

Step 1:Fuzzification

• Fuzzification is a process by which the numbers are

changes into linguistic words.

(22)

Step 2: Rules

• Rules reflect experts decisions.

• Rules are tabulated as fuzzy words

• Rules can be grouped in subsets

• Rules can be redundant

• Rules can be adjusted to match desired

(23)

Rules(Cont.)

• Rules are tabulated as fuzzy words

• – Healthy (H)

• – Somewhat healthy (SH)

• – Less Healthy (LH)

• – Unhealthy (U)

• Rule function f

f = {U, LH, SH, H}

(24)

Fuzzy Rule Table

(25)

Step 3:Calculation

• For a given person, compute the membership of his/her weight and height

• Assume that a person height is 185cm

• Assume that the person’s weight is 49

(26)

Calculation(cont.)

• Rule Activation

• Min Operation

(27)

Calculation(cont.)

• Scaled Fuzzified Decision

(28)

Step 4: Final Decision

• Defuzzification

(29)

Why Fuzzy Logic?

• Fuzzy logic is conceptually easy to understand.

• Fuzzy logic is flexible.

• Fuzzy logic is tolerant of imprecise data.

• Fuzzy logic can model nonlinear functions of arbitrary complexity.

• Fuzzy logic can be built on top of the experience of experts.

• Fuzzy logic is based on natural language.

• Fuzzy logic can be blended with conventional control techniques.

(30)

THANK YOU

Referensi

Dokumen terkait

Fuzzy logic is much just like human operator or closer in spirit to human thinking and natural language than the traditional (classical) logical system.. Basically, fuzzy

Istilah subhimpunan fuzzy dari suatu himpunan pertama kali diperkenalkan oleh Zadeh (1965). Rosenfeld adalah peneliti yang pertama kali memperkenalkan

Konsep dasar himpunan fuzzy pertama kali diperkenalkan oleh Zadeh pada tahun 1965 [1], yang beberapa tahun kemudian banyak peneliti tertarik untuk melakukan

Kesimpulan yang dapat ditarik dari penelitian pembuatan Robot Pemadam Api menggunakan metode Fuzzy Logic adalah penerapan Fuzzy Logic pada Sensor Ultrasonik telah

Konsep dasar himpunan fuzzy pertama kali diperkenalkan oleh Zadeh pada tahun 1965 [1], yang beberapa tahun kemudian banyak peneliti tertarik untuk melakukan

Kesimpulan yang dapat ditarik dari penelitian pembuatan Robot Pemadam Api menggunakan metode Fuzzy Logic adalah penerapan Fuzzy Logic pada Sensor Ultrasonik telah

Fuzzy set theory includes some terms that are fuzzy sets and membership functions, support, core, normality, crossover point, fuzzy singleton, convexity, fuzzy numbers, subset, union,

0 2 4 6 8 ANFIS Fuzzy Classification FC Fuzzy Cognitive Map FCM Fuzzy Decision Support System FDSS Fuzzy Decision Tree FDT Fuzzy Expert System FES Fuzzy Inference System FIS Fuzzy