SlideShare a Scribd company logo
The World is a Fuzzy Place
A Beginners Guide To
Fuzzy Logic
Brought to you by the
IEEE Computational Intelligence Society
Pre-College Subcommittee
Tutorial Summary
• Engineering the world…….
• The world is not just BLACK and WHITE.
• What does it really mean to be tall ?
• Fuzzy sets and how you create them.
• So you think you can boil a perfect egg ?
How Engineers
Make a World of Difference
You can change the World !
Engineering Design Process
Engineers are Creative
Human Dialog is Fuzzy
• Experts rely on common sense when they solve
problems.
• How can we represent expert knowledge that
uses vague and ambiguous terms in a computer?
• Does a computer understand the difference
between a young person and an old person ?
• If we store age as a numeric value then this is
quite precise e.g. age is between 0 and 115
• However if in our data, age has values like old,
medium, and young then this is fuzzy.
Systems are Fuzzy
• We need to be able to create systems that
can cope with fuzzy data
• Fuzzy logic is logic that is used to describe
fuzziness and uses fuzzy sets
1
0
0 75 Age
A Linear membership function
shows the gradual transition
of membership
(x)young
The membership function, A defines the fuzzy set, A
A : X  [0,1]
Professor Lofti Zadeh
• In 1965 Lotfi Zadeh, published his famous paper “Fuzzy sets”.
• Meet Professor Lofti Zadeh in a short interview when he was
awarded the Benjamin Franklin Medal of Electrical Engineering.
What is Short and Tall ?
height
0
1
short tall
200 cm
0 cm 165 cm
My
younger
brother is
quite short
This is a
tall tree !
Activity: Creating Fuzzy Sets
• All stand up and make a line from smallest
to tallest in terms of height
– Record the height of everyone in your class
– Who is the tallest and the shortest?
– Assuming you have three labels “Tall”,
“Medium” and “Short” assign each person in
the class a label ?
• How did you decided on who goes where ? i.e.
determined the boundaries ?
• Could you agree ?
Example of Pupils
Name Height (cm) SHORT MEDIUM TALL
Jane 180 √
Alex 177 √
Haider 175 √
Surni 165 √ √
Max 142 √
Jo-ellen 142 √
Kaprisa 140 √
Stephen 139 √
Jo 100 √ √
Pei 98 √
So who is Short ? Medium ? Tall ?
Drawing Crisp Sets
• First draw some crisp sets
0
1
short tall
0 cm 165 cm
medium
200 cm
100 cm
height
Grade
Of
Membership
How much do pupils belong in
the fuzzy sets ?
• We need to know the degree in which each
person belongs to the fuzzy sets short,
medium and tall.
• Assume we decide short is any heights
between 0 and 100 cm then the fuzzy set
short is defined as:





















100
0
100
0
100
1
0
1
)
,
100
,
0
(
height
height
height
height
height
Short
How much do pupils belong in
the fuzzy sets ?
• Assume we decide tall is any heights
greater that 165cm then the fuzzy set tall is
defined as:





















200
1
200
165
35
165
165
0
)
,
100
,
0
(
height
height
height
height
height
Tall
This example shows that anyone over 200cm is always definitely Tall !
So what about Medium ?
• A medium height person may be someone
between 80 cm and 185 cm so we need to
create a triangular fuzzy set to cover this
range.



























185
0
185
133
52
185
133
80
53
80
80
0
)
(
height
if
height
if
height
height
if
height
height
if
height
Medium

Note: 133cm is the midpoint of the triangular fuzzy set !
Pupils Membership
Name Height (cm) SHORT MEDIUM TALL
Jane 180 0 0 0.43
Alex 177 0 0 0.34
Haider 175 0 0 0.29
Surni 165 0 0.39 0
Max 142 0 0.83 0
Jo-ellen 142 0 0.83 0
Kaprisa 140 0 0.87 0
Stephen 139 0 0.89 0
Jo 100 0 0.38 0
Pei 98 0.02 0 0
Drawing Fuzzy Sets
• Now draw your fuzzy sets
0
1
short tall
0 165 185
medium
200
80 100
Height in CM
133
Grade
Of
Membership
Everyday Fuzzy Words
Can you identify other
fuzzy keywords
that you use
everyday ?
Introductionfuzzy...................................
So you think you can boil a
perfect egg ?
The Perfect
Egg
=
Soft Boiled.
Activity: Boiling an Egg
• Discussion
– How to come up with membership functions,
based on our experience.
• How small is a small egg? How large is a large
egg?
• What is soft ? What is hard ?
– The process of fuzzification will define our
fuzzy sets
– The process of fuzzification
• how long do we actually need to boil the egg ?
Egg-Boiling Fuzzy Logic
Robot
Experiment: Boiling an
Egg
Soft-Boiled
Eggs
44 grams 50 grams 63 grams
4 minutes
5 minutes
6 minutes
7 minutes
• Boil some eggs
• Make sure you weigh them first !!
• Fill in the table (or similar on Activity Sheet 2)
Multiple IF/THEN rules
• A common misconception is that Fuzzy
Logic is an IF/THEN/ELSE statement.
• e.g. if small volume of water in kettle, heat
it for 1 minute to boil; if large volume of
water in kettle, heat for 3 minutes to boil.
• So how long should you boil a kettle if it is
half full ?
• Discuss !
So you want to know more ?
• Watch an Introduction to Fuzzy Logic..
• How is your life fuzzy ?

More Related Content

PDF
Lecture 11 Neural network and fuzzy system
PPTX
Fuzzy mathematics:An application oriented introduction
PPTX
- Fuzzy Systems -II.pptx
PPTX
Fuzzy logicintro by
PPT
Presentation2 Fl
PPT
fuzzy logic
PDF
Fuzzy Logic and Neuro-fuzzy Systems: A Systematic Introduction
PPT
Fuzzy Logic
Lecture 11 Neural network and fuzzy system
Fuzzy mathematics:An application oriented introduction
- Fuzzy Systems -II.pptx
Fuzzy logicintro by
Presentation2 Fl
fuzzy logic
Fuzzy Logic and Neuro-fuzzy Systems: A Systematic Introduction
Fuzzy Logic

Similar to Introductionfuzzy................................... (20)

PPTX
AI415-Lecture08-Fuzzy_Properties and Ops.pptx
PPTX
Fuzzy Logic ppt
PPTX
Fuzzy logic 2014
PPTX
Fuzzy Logic Seminar with Implementation
PDF
- Artificial Intelligence and its Applications in Construction Engineering an...
PDF
Fuzzy Logic in the Real World
PDF
On fuzzy concepts in engineering ppt. ncce
PDF
Unit-II -Soft Computing.pdf
PPTX
santosh kumar fuzzy logic presentation
PPTX
Swaroop.m.r
PPTX
Swaroop.m.r
PPT
fuzzy logic,proposition with types and example
PPT
fuzzy.ppt
PPTX
Fuzzy logic Notes AI CSE 8th Sem
PDF
Optimization using soft computing
PPTX
Final presentation
PDF
FSE_Chap2_NotionsConceptsFuzzySets.pdf
PPTX
Fuzzy Logic.pptx
PPTX
SC Unit-1.pptx
AI415-Lecture08-Fuzzy_Properties and Ops.pptx
Fuzzy Logic ppt
Fuzzy logic 2014
Fuzzy Logic Seminar with Implementation
- Artificial Intelligence and its Applications in Construction Engineering an...
Fuzzy Logic in the Real World
On fuzzy concepts in engineering ppt. ncce
Unit-II -Soft Computing.pdf
santosh kumar fuzzy logic presentation
Swaroop.m.r
Swaroop.m.r
fuzzy logic,proposition with types and example
fuzzy.ppt
Fuzzy logic Notes AI CSE 8th Sem
Optimization using soft computing
Final presentation
FSE_Chap2_NotionsConceptsFuzzySets.pdf
Fuzzy Logic.pptx
SC Unit-1.pptx
Ad

More from RevathiSoundiran1 (7)

PPTX
datanalytics for instrumentation and control
PPT
MIPS instruction set microprocessor lecture notes
PPT
introduction to neural networks ANN deep
PPTX
GTC-2 port automation in martime industries
PPT
smart system educational content university
PPT
Power Generation thermal power plant iit
PPT
L12-Forwarding.ppt
datanalytics for instrumentation and control
MIPS instruction set microprocessor lecture notes
introduction to neural networks ANN deep
GTC-2 port automation in martime industries
smart system educational content university
Power Generation thermal power plant iit
L12-Forwarding.ppt
Ad

Recently uploaded (20)

PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
DOCX
573137875-Attendance-Management-System-original
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Construction Project Organization Group 2.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPT
Project quality management in manufacturing
PDF
Well-logging-methods_new................
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
composite construction of structures.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
573137875-Attendance-Management-System-original
Foundation to blockchain - A guide to Blockchain Tech
CYBER-CRIMES AND SECURITY A guide to understanding
Construction Project Organization Group 2.pptx
Sustainable Sites - Green Building Construction
Automation-in-Manufacturing-Chapter-Introduction.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
UNIT 4 Total Quality Management .pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Project quality management in manufacturing
Well-logging-methods_new................
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
composite construction of structures.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...

Introductionfuzzy...................................

  • 1. The World is a Fuzzy Place A Beginners Guide To Fuzzy Logic Brought to you by the IEEE Computational Intelligence Society Pre-College Subcommittee
  • 2. Tutorial Summary • Engineering the world……. • The world is not just BLACK and WHITE. • What does it really mean to be tall ? • Fuzzy sets and how you create them. • So you think you can boil a perfect egg ?
  • 3. How Engineers Make a World of Difference You can change the World !
  • 6. Human Dialog is Fuzzy • Experts rely on common sense when they solve problems. • How can we represent expert knowledge that uses vague and ambiguous terms in a computer? • Does a computer understand the difference between a young person and an old person ? • If we store age as a numeric value then this is quite precise e.g. age is between 0 and 115 • However if in our data, age has values like old, medium, and young then this is fuzzy.
  • 7. Systems are Fuzzy • We need to be able to create systems that can cope with fuzzy data • Fuzzy logic is logic that is used to describe fuzziness and uses fuzzy sets 1 0 0 75 Age A Linear membership function shows the gradual transition of membership (x)young The membership function, A defines the fuzzy set, A A : X  [0,1]
  • 8. Professor Lofti Zadeh • In 1965 Lotfi Zadeh, published his famous paper “Fuzzy sets”. • Meet Professor Lofti Zadeh in a short interview when he was awarded the Benjamin Franklin Medal of Electrical Engineering.
  • 9. What is Short and Tall ? height 0 1 short tall 200 cm 0 cm 165 cm My younger brother is quite short This is a tall tree !
  • 10. Activity: Creating Fuzzy Sets • All stand up and make a line from smallest to tallest in terms of height – Record the height of everyone in your class – Who is the tallest and the shortest? – Assuming you have three labels “Tall”, “Medium” and “Short” assign each person in the class a label ? • How did you decided on who goes where ? i.e. determined the boundaries ? • Could you agree ?
  • 11. Example of Pupils Name Height (cm) SHORT MEDIUM TALL Jane 180 √ Alex 177 √ Haider 175 √ Surni 165 √ √ Max 142 √ Jo-ellen 142 √ Kaprisa 140 √ Stephen 139 √ Jo 100 √ √ Pei 98 √ So who is Short ? Medium ? Tall ?
  • 12. Drawing Crisp Sets • First draw some crisp sets 0 1 short tall 0 cm 165 cm medium 200 cm 100 cm height Grade Of Membership
  • 13. How much do pupils belong in the fuzzy sets ? • We need to know the degree in which each person belongs to the fuzzy sets short, medium and tall. • Assume we decide short is any heights between 0 and 100 cm then the fuzzy set short is defined as:                      100 0 100 0 100 1 0 1 ) , 100 , 0 ( height height height height height Short
  • 14. How much do pupils belong in the fuzzy sets ? • Assume we decide tall is any heights greater that 165cm then the fuzzy set tall is defined as:                      200 1 200 165 35 165 165 0 ) , 100 , 0 ( height height height height height Tall This example shows that anyone over 200cm is always definitely Tall !
  • 15. So what about Medium ? • A medium height person may be someone between 80 cm and 185 cm so we need to create a triangular fuzzy set to cover this range.                            185 0 185 133 52 185 133 80 53 80 80 0 ) ( height if height if height height if height height if height Medium  Note: 133cm is the midpoint of the triangular fuzzy set !
  • 16. Pupils Membership Name Height (cm) SHORT MEDIUM TALL Jane 180 0 0 0.43 Alex 177 0 0 0.34 Haider 175 0 0 0.29 Surni 165 0 0.39 0 Max 142 0 0.83 0 Jo-ellen 142 0 0.83 0 Kaprisa 140 0 0.87 0 Stephen 139 0 0.89 0 Jo 100 0 0.38 0 Pei 98 0.02 0 0
  • 17. Drawing Fuzzy Sets • Now draw your fuzzy sets 0 1 short tall 0 165 185 medium 200 80 100 Height in CM 133 Grade Of Membership
  • 18. Everyday Fuzzy Words Can you identify other fuzzy keywords that you use everyday ?
  • 20. So you think you can boil a perfect egg ? The Perfect Egg = Soft Boiled.
  • 21. Activity: Boiling an Egg • Discussion – How to come up with membership functions, based on our experience. • How small is a small egg? How large is a large egg? • What is soft ? What is hard ? – The process of fuzzification will define our fuzzy sets – The process of fuzzification • how long do we actually need to boil the egg ?
  • 23. Experiment: Boiling an Egg Soft-Boiled Eggs 44 grams 50 grams 63 grams 4 minutes 5 minutes 6 minutes 7 minutes • Boil some eggs • Make sure you weigh them first !! • Fill in the table (or similar on Activity Sheet 2)
  • 24. Multiple IF/THEN rules • A common misconception is that Fuzzy Logic is an IF/THEN/ELSE statement. • e.g. if small volume of water in kettle, heat it for 1 minute to boil; if large volume of water in kettle, heat for 3 minutes to boil. • So how long should you boil a kettle if it is half full ? • Discuss !
  • 25. So you want to know more ? • Watch an Introduction to Fuzzy Logic.. • How is your life fuzzy ?