3 views

Uploaded by shagag

Fuzzy Logic System Lecture

- 1 s2.0 S0950061806001565 Main Fuzzy Logic Modeling of Deflection Behavior R4
- Fuzzy Theory
- Fuzzy Logic and Fuzzy Control Systems
- Ismail H. Altaş-Fuzzy Logic Control in Energy Systems with Design Applications in MatLab_Simulink-IET (2017).pdf
- Fuzzy Logic
- n-ValuedReﬁned Neutrosophic Soft Sets and its Applications in Decision MakingProblems and Medical Diagnosis
- Mamdani-Application of Fuzzy Logic to Approximate Reasoning Using Linguistic Synthesis
- Fuzzy Logic
- A 0210106
- support modelling
- ieee2
- Fault Detection and Diagnosis of Electrical Networks Using a Fuzzy System and Euclidian Distance
- Fuzzy Set Theoretic Approach to Image Thresholding
- Db 36619623
- Fuzzy data mining
- Fuzzy Logic Data
- 1079
- Bhanu Re Paper for Ijanrd Final
- 5._tanasijevic_141-148
- Quiz 1 Bem 4233 Sem 2 Sesi 1112 Solution

You are on page 1of 25

Overview: Literature:

Why Fuzzy chapter 4

Fuzzy Logic and Sets

Fuzzy Reasoning

DKS - Module 7

1

Representation of vague, ambiguous terms

If short means 300m or less, is 301m long?

Fuzzy logic

Not logic that is fuzzy

But logic that describes fuzzyness = vagueness

1

Vague concepts

- at least 1.80 m?

- could Frank be 1.78 m and be still tall?

- if Frank is a basketball player

is 1.80m still tall?

- if Frank is a kid of 10 years and 1.80 m

isn’t Frank very tall?

reasoning

2

Fuzzy Logic - I

Relies on quantifying and reasoning through natural

language

uses linguistic variables to describe concepts with vague

values

• tall, large, small, heavy, ...

Based on the idea that all things admit of degrees

• Really hot, very tall, kind of small, light blue,…

Fuzzy Logic - II

Fuzzy logic reflects how people think

knowledge representation and reasoning based on degrees

of membership

3

Fuzzy set

Crisp set (tall men):

Representing a domain

Fuzzy sets (men’s height):

4

Membership function

described through a membership function µA(x)

Formally, given a fuzzy set A of universe X

µA(x): X → [0,1], where

• µA(x) = 1 if x is totally in A µTall(200) = 1

• µA(x) = 0 if x is totally not in A µTall(160) = 0

• 0 < µA(x) <1 if x is partially in A 0 < µTall(180) <1

(Discrete) Fuzzy set A is represented as:

A = {µA(x1)/x1, µA(x2)/x2, …, µA(xn)/xn}

Intersection: µA∩B(x) = min(µA(x), µB(x))

Complement: µ ¬A(x) = 1 - µA(x)

5

Fuzzy logic

Logic OR (∨) is set union

A ∨ B = µA∪B(x) = max(µA(x), µB(x))

Logical AND (∧) is set intersection

A ∧ B = µA∩B(x) = min(µA(x), µB(x))

Logical NOT (¬) is set complement

¬A = µ ¬A(x) = 1 - µA(x)

Commutativity

Associativity

Distributivity

Idempotency

Identity

De Morgan’s Laws

…

6

Linguistic variables

The linguistic variable speed ranges between 0 and 300km/h

and includes the fuzzy sets slow, very slow, fast,…

Fuzzy sets define the linguistic values

Hedges are qualifiers of a linguistic variable

All purpose: very, quite, extremely

Probability: likely, unlikely

Quantifiers: most, several, few

Possibilities: almost impossible, quite possible

7

Interpretation of hedges

Fuzzy rules

form

IF x is A

THEN y is B

Where x and y are linguistic variables and A and B are

linguistic values determined by fuzzy sets on the universes

of discourse X and Y.

8

Fuzzy rule example

IF height is tall

THEN weight is heavy.

range (i.e. the universe of discourse).

range(height) = [140, 220]

range(weight) = [50, 250]

In fuzzy systems, truth (i.e. membership in some class) is

relative – so all rules fire (to some extent).

9

Applying fuzzy rules

true to the same degree.

IF length is tall THEN weight is heavy

Multiple antecedents

IF x is A AND y is B THEN z is C

IF x is A OR y is B THEN z is C

Use unification (OR) or intersection (AND) operations to

calculate a membership value for the whole antecedent.

AND: µC(z) = min(µA(x), µB(y))

OR: µC(z) = max(µA(x), µB(y))

((µheavy(rain) = 0.7) ∧ (µstrong(wind) = 0.4)) → (µbad(weather) = 0.4)

10

Multiple consequents

IF x is A THEN y is B AND z is C

antecedent class(es).

µTall(x) = 0.7 → µHeavy(y) = 0.7 ∧ µLargeFeet(y) = 0.7

Fuzzy Events

Fuzzy probabilities:

What is the probability of meeting a tall man?

P(x is A) =

Where

µA(x) is the membership function of elements in A

P(x) is the probability of x

• (Empirical evidence)

11

Fuzzy probability

around 25°C

Based of average temperatures for July 16th:

°C 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

P .002 .005 .005 .01 .04 .11 .15 .21 .16 .14 .11 .04 .01 .005 .002

1

= Σ µabout25(x)*P(x)

0 = µ (20)*P(20) + µ(21)*P(21) + … + µ(30)*P(30)

20 24 26 30

= 0*0.005 + 0.25*0.01 + 0.5*0.04 +… + 0*0.01

Around 25°C

= 0.8125

≈ 0,8

Using hedges

25°C is likely

P(temp is about 25°C) = 0.8

Very likely with prob. 0.32

0.8

12

Fuzzy Inference

1. Fuzzify input variables

2. Evaluate rules

3. Aggregate rule outputs

4. Defuzzify the output

Rule 1

w1

X is A1 y is B1

Rule 2 defuzzifier

X is A2 y is B2

w2

X
Fuzzy

…
aggregator y

Rule r

X is Ar y is Br

wr

13

Step 1: Fuzzification

Determine membership values for all the relevant classes (i.e.

in right Universe of Discourse).

Use union, intersection and complement operations to handle

composite antecedents

Min-max method for composite antecedents produces clipped

functions

14

Step 3: Result Aggregation

consequents) by aggregating all the relevant classes

Unification of outputs of all rules

from a fuzzy set as a representative value”

universe of discourse Z

Bisector of area zBOA

Mean of maximum zMOM

Smallest of maximum zSOM

Largest of maximum zLOM

15

Step 4: Defuzzification (Mamdani)

output value

Summation as approximation to integral value

Step 4: Defuzzification

16

Sugeno Fuzzy Models

Where A & B are fuzzy sets in the antecedent, while z =

f(x, y) is a crisp function in the consequent

fuzzy model (special case of Mamdani model)

Exercise

based on:

Three universes of discourse (UoD):

• Diet (1000-4000 cal/day): with fuzzy classes poor, good

• Exercise (1000-4000 cal/day): with fuzzy classes high, low

• Risk (0-100 likelihood): with fuzzy classes high, low, medium

Represent membership functions graphically

Show fuzzy inference for following sample data

• What is the risk of heart disease of Mary who has a diet of 2500

cal/day and spends 1000 cal/day on exercise

17

Rules

THEN risk is high

Rule2: IF diet is good AND exercise is high

THEN risk is low

Rule3: IF diet is good OR exercise is high

THEN risk is medium

Mary?

18

Membership function: Exercise

Mary?

Mary?

19

Mamdani inference

Determine membership values

2. Evaluate rules

Based on membership values of (composite) antecedents

3. Aggregate rule outputs

Unify all membership values for output from all rules

4. Defuzzify the output

COG: Center of gravity (approx. by summation)

Step 1: fuzzification

has a diet of 2500 cal/day and spends 1000 cal/day on

exercise

µpoordiet(2500) = 0,6

µgooddiet(2500) = 0,8

µhighexer(1000) = 0

µlowexer(1000) = 1

20

Step 2: rule evaluation

Rule1:

IF diet is poor (0,6) AND exercise is low (1) THEN risk

is high

µA∧B(x) = min(µA(x), µB(x)) = 0,6

Consequent is true to the same degree as the composition

of antecedent

µriskhigh(Mary) = 0,6

21

Step 2 (continuation)

THEN risk is high (0,6)

RULE2: IF diet is good (0,8) AND exercise is high (0)

THEN risk is low (0)

RULE3: IF diet is good (0,8) OR exercise is high (0)

THEN risk is medium (0,8)

Step 3: Aggregation

Note that “low” has been clipped down to zero, and “average” hasn’t

been clipped, because the derived µ was higher than the original

membership function.

The aggregate is simply the union of the three functions.

22

Step 4: Defuzzification

Centroid technique

More points are better, integral is even better

COG = 70

Result

23

Advantages of Fuzzy Logic

wide applicability, many practical applications

natural use of vague and imprecise concepts

helpful for commonsense reasoning, explanation

multiple ways for combining evidence

problems with long inference chains

24

Coming up

13 January 2008: Knowledge Engineering (Evaluation)

20 January 2008: KS in practice?

25

- 1 s2.0 S0950061806001565 Main Fuzzy Logic Modeling of Deflection Behavior R4Uploaded byamin13177
- Fuzzy TheoryUploaded bykonikaka
- Fuzzy Logic and Fuzzy Control SystemsUploaded bymamjun26ash
- Ismail H. Altaş-Fuzzy Logic Control in Energy Systems with Design Applications in MatLab_Simulink-IET (2017).pdfUploaded byesteban lopez espinel
- Fuzzy LogicUploaded byS Bharadwaj Reddy
- n-ValuedReﬁned Neutrosophic Soft Sets and its Applications in Decision MakingProblems and Medical DiagnosisUploaded byMia Amalia
- Mamdani-Application of Fuzzy Logic to Approximate Reasoning Using Linguistic SynthesisUploaded byAdarsh Gaurav
- Fuzzy LogicUploaded bysadafmirza
- A 0210106Uploaded byAJER JOURNAL
- ieee2Uploaded bymanikandan526
- Fault Detection and Diagnosis of Electrical Networks Using a Fuzzy System and Euclidian DistanceUploaded byAngel Giovanny Toapanta
- Fuzzy data miningUploaded byvandana_korde
- support modellingUploaded byNicole Hanson
- Fuzzy Set Theoretic Approach to Image ThresholdingUploaded byBilly Bryan
- Fuzzy Logic DataUploaded byramachandra
- 1079Uploaded byGopi Channagiri
- Db 36619623Uploaded byAnonymous 7VPPkWS8O
- Bhanu Re Paper for Ijanrd FinalUploaded byAnonymous sus3ugOxkw
- 5._tanasijevic_141-148Uploaded byWashington Morais
- Quiz 1 Bem 4233 Sem 2 Sesi 1112 SolutionUploaded bySandrawarman Balasundram
- A Fuzzy Mathematical Model for Peformance Testing in Cloud Computing Using User Defined ParametersUploaded byijsea
- Artificially Intelligent Primary Medical Aid for Patients Residing in Remote areas using Fuzzy LogicUploaded byIRJET Journal
- Hapse Sir Project.......... (2)Uploaded bySURAJ
- 01 - IntroductionUploaded byXtremeInfosoftAlwar
- d 03031721Uploaded byIJERD
- WCECS2009_pp713-717Uploaded byIslamo Intirista
- Improvement of Quality of Service Parameters Using Reinvented Fsmac Protocol for Wireless Sensor NetworksUploaded byesatjournals
- QTUploaded byManan Mehra
- 27-336[1]Uploaded byRodolfo Quijada
- 05552010Uploaded byPramod Pandey

- Standard Deviation and Mean-VarianceUploaded bypdfdocs14
- Optimal Energy Management System For Renewable Based Micro GridUploaded byshagag
- 2008 X3 SAV Owners ManualUploaded bymardinmar
- Soft Starter HandbookUploaded byapi-3844354
- fuzzy logic.pdfUploaded byGaurav Kapoor
- Load ForecastingUploaded byhimanshu
- Load ForcastingUploaded byshagag
- FuzzyUploaded bybeemitsu
- A Multi-Function Conversion Technique for V2G 2015Uploaded byshagag
- Tutorial on Fuzzy LogicUploaded byJuan Sánchez López
- A Short Fuzzy Logic TutorialUploaded byexplorerakeshroshan
- Temperature Control Using Fuzzy LogicUploaded byijicsjournal
- Polymer-2D Material Nanocomposite Manufacturing Beyond LaboratoryUploaded byshagag
- hostalkova_prochazkaUploaded byshagag
- Importance of X-R Ratios (1)Uploaded byNayreth Mezones

- NS-2 Installation ManualUploaded byCBAKhan
- JCL Abend CodesUploaded byRaghavendra Vankadari
- Avenue Programming 0766862089Uploaded bysamba134
- Tips on MainframeUploaded byapi-3736498
- Digital Data CompressionUploaded byJeff Webber
- IPTV pptUploaded byAkash Khandelwal
- Clonezilla Live DocUploaded byEric Russell
- Learning ASP.net Core 2.0Uploaded byJoel Schecheleski
- ArraysUploaded byNurulAiniBintiRashid
- C++_811451189Uploaded byFábioIzidio
- RE 630 OperationUploaded byBhavik Prajapati
- Trees Volume 1 (Arboles)Uploaded byARQUITECTO03
- 24c08Uploaded byteroplas
- Haanji PresentationUploaded byGautam Singhania
- 56_WEB.pdfUploaded byPranjal Naik
- Error Creating PDF File 10055Uploaded byChristopher
- Building a SharePoint 2016 Home LabUploaded byruben_alonso_28
- fuseUploaded bysmjain
- Classtech DocumentationUploaded byAlexis V. Larosa
- ans_ope.pdfUploaded byThanhThanh
- Schedule FloatUploaded bySubhashree Venkatesh
- notes1Uploaded byAhmed Gouda
- En Dev or User GuideUploaded byAndré Deniz Hanai
- Working With ObjectsUploaded byapi-3740359
- AaaUploaded byFelipe Crestani
- Day1 Free SeminarUploaded byShipra Sri
- BOBJ Super-User Fundamentals Guide [ 02-11-16 ]Uploaded byAdabala Nageswara Rao
- Refresher Electronics(Comp)Uploaded byAylie Pilobello
- AudioDesk User Guide.pdfUploaded bysdagogy
- 22118691-TPM-Road-Map (1)Uploaded by01dynamic