SlideShare a Scribd company logo
Fuzzy LogicFuzzy Logic
1Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh
Introduction
 Form of multivalued logic
 Deals reasoning that is approximate rather
than precise
 the fuzzy logic variables may have
a membership value of not only 0 or 1 –
that is, the degree of truth of
a statement can range between 0 and 1 and
is not constrained to the two truth values of
classic propositional logic
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 2
Introduction
 Fuzzy logic has been applied to many fields,
from control theory to artificial intelligence
 it still remains controversial among
most statisticians, who prefer Bayesian
logic, and
 some control engineers, who prefer
traditional two-valued logic.
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 3
Degrees of truth
 let a 100 ml glass contain 30 ml of water.
 Then we may consider two concepts: Empty
and Full.
 The meaning of each of them can be
represented by a certain fuzzy set.
 Then one might define the glass as being
0.7 empty and 0.3 full.
 The concept of emptiness would
be subjective and thus would depend on
the observer or designer.
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 4
An image that describe fuzzy
logic
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 5
An image that describe fuzzy
logic
 A point on that scale has three "truth
values" — one for each of the three
functions.
 Since the red arrow points to zero, this
temperature may be interpreted as "not
hot".
 The orange arrow (pointing at 0.2) may
describe it as "slightly warm" and
 the blue arrow (pointing at 0.8) "fairly cold".
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 6
Fuzzy Rules
 fuzzy logic usually uses IF-THEN rules
 Rules are usually expressed in the form:
IF variable IS property THEN action
 For example, a simple temperature
regulator that uses a fan might look like
this:
IF temperature IS very cold THEN stop fan
IF temperature IS cold THEN turn down fan
IF temperature IS normal THEN maintain level
IF temperature IS hot THEN speed up fan
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 7
Fuzzy Rules
 There is no "ELSE" – all of the rules are
evaluated, because the temperature might
be "cold" and "normal" at the same time to
different degrees.
 The AND, OR, and
NOT operators of boolean logic exist in
fuzzy logic, usually defined as the minimum,
maximum, and complement
 when they are defined this way, they are
called the Zadeh operators
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 8
Zadeh Operators
 NOT x = (1 - truth(x))
 x AND y = minimum(truth(x), truth(y))
 x OR y = maximum(truth(x), truth(y))
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 9
Hedges
 There are also other operators, more
linguistic in nature, called hedges that can
be applied.
 These are generally adverbs such as "very",
or "somewhat"
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 10
Fuzzy Logic Applications
 Air conditioning
 Washing Machines (LG is the pioneer)
 Mono-rails (first used in Tokyo)
 Digital image processing (specially in medical imaging)
 Elevators (in case of power failure)
 Rice cookers
 Video game engines (disperse intelligence in prince of
Persia)
 Special effects (swarm intelligence in Batman Begins,
Terminator Salvation, The Lord of the Rings)
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 11
Objections against Fuzzy Logic
 The concept of "coldness" cannot be
expressed in an equation, because although
temperature is a quantity, "coldness" is not
 people have an idea of what "cold" is, and
agree that there is no sharp cutoff between
"cold" and "not cold"
 where something is "cold" at N degrees but
"not cold" at N+1 degrees — a concept
classical logic cannot easily handle
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 12
Objections against Fuzzy Logic
 The result has no set answer so it is
believed to be a 'fuzzy' answer.
 Fuzzy logic simply provides a mathematical
model of the vagueness which is manifested
in the above example.
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 13
A new way to represent
probabilistic logic?
 fuzzy set theory uses the concept of fuzzy
set membership (i.e., how much a variable
is in a set)
 probability theory uses the concept
of subjective probability (i.e., how
probable do I think that a variable is in a
set).
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 14
Reference
 Wikipedia, “Fuzzy Logic”,
http://en.wikipedia.org/wiki/Fuzzy_logic
Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 15

More Related Content

PPTX
Semi-supervised classification for natural language processing
PPTX
Natural Language Processing: Parsing
PPT
Types of machine translation
PPT
L4 vpn
PDF
L1 l2 l3 introduction to machine translation
PPTX
Probabilistic logic
PPT
L13 why software fails
Semi-supervised classification for natural language processing
Natural Language Processing: Parsing
Types of machine translation
L4 vpn
L1 l2 l3 introduction to machine translation
Probabilistic logic
L13 why software fails

Viewers also liked (11)

PPT
Knowledge representation
PPT
L1 overview of software engineering
PPT
Lecture 5, 6 and 7 cpu scheduling
PPT
L1 phishing
PPT
Lecture 7, 8, 9 and 10 Inter Process Communication (IPC) in Operating Systems
PDF
Weka
PPT
Knowledge structure
PPTX
Propositional logic
PPT
Distributed Database Management Systems (Distributed DBMS)
PPT
Syntax and semantics
PPTX
8 drived horizontal fragmentation
Knowledge representation
L1 overview of software engineering
Lecture 5, 6 and 7 cpu scheduling
L1 phishing
Lecture 7, 8, 9 and 10 Inter Process Communication (IPC) in Operating Systems
Weka
Knowledge structure
Propositional logic
Distributed Database Management Systems (Distributed DBMS)
Syntax and semantics
8 drived horizontal fragmentation
Ad

Similar to L15 fuzzy logic (7)

PPTX
fuzzylogic-120105083314-phpapp01.pptx
PPT
Fuzzy logic
DOC
Fuzzy logic
PPTX
Fuzzy logic-120419044344-phpapp01
PPT
Fuzzy logic ppt
PDF
Determination of Thesis Preceptor and Examiner Based on Specification of Teac...
PPTX
Fuzzy logic
fuzzylogic-120105083314-phpapp01.pptx
Fuzzy logic
Fuzzy logic
Fuzzy logic-120419044344-phpapp01
Fuzzy logic ppt
Determination of Thesis Preceptor and Examiner Based on Specification of Teac...
Fuzzy logic
Ad

More from Rushdi Shams (14)

PDF
Research Methodology and Tips on Better Research
PPTX
Common evaluation measures in NLP and IR
PPTX
Machine learning with nlp 101
PPT
First order logic
PPTX
Belief function
PPT
L5 understanding hacking
PPT
L3 defense
PPT
L2 Intrusion Detection System (IDS)
PPT
L2 l3 l4 software process models
PPT
Lecture 14,15 and 16 file systems
PPT
Lecture 11,12 and 13 deadlocks
PPT
Lecture 1 and 2 processes
PPT
Lecture 3 and 4 threads
PPT
My slide relational algebra
Research Methodology and Tips on Better Research
Common evaluation measures in NLP and IR
Machine learning with nlp 101
First order logic
Belief function
L5 understanding hacking
L3 defense
L2 Intrusion Detection System (IDS)
L2 l3 l4 software process models
Lecture 14,15 and 16 file systems
Lecture 11,12 and 13 deadlocks
Lecture 1 and 2 processes
Lecture 3 and 4 threads
My slide relational algebra

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Approach and Philosophy of On baking technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
KodekX | Application Modernization Development
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Electronic commerce courselecture one. Pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
NewMind AI Weekly Chronicles - August'25 Week I
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Approach and Philosophy of On baking technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KodekX | Application Modernization Development
Dropbox Q2 2025 Financial Results & Investor Presentation
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Chapter 3 Spatial Domain Image Processing.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Network Security Unit 5.pdf for BCA BBA.
Mobile App Security Testing_ A Comprehensive Guide.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

L15 fuzzy logic

  • 1. Fuzzy LogicFuzzy Logic 1Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh
  • 2. Introduction  Form of multivalued logic  Deals reasoning that is approximate rather than precise  the fuzzy logic variables may have a membership value of not only 0 or 1 – that is, the degree of truth of a statement can range between 0 and 1 and is not constrained to the two truth values of classic propositional logic Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 2
  • 3. Introduction  Fuzzy logic has been applied to many fields, from control theory to artificial intelligence  it still remains controversial among most statisticians, who prefer Bayesian logic, and  some control engineers, who prefer traditional two-valued logic. Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 3
  • 4. Degrees of truth  let a 100 ml glass contain 30 ml of water.  Then we may consider two concepts: Empty and Full.  The meaning of each of them can be represented by a certain fuzzy set.  Then one might define the glass as being 0.7 empty and 0.3 full.  The concept of emptiness would be subjective and thus would depend on the observer or designer. Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 4
  • 5. An image that describe fuzzy logic Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 5
  • 6. An image that describe fuzzy logic  A point on that scale has three "truth values" — one for each of the three functions.  Since the red arrow points to zero, this temperature may be interpreted as "not hot".  The orange arrow (pointing at 0.2) may describe it as "slightly warm" and  the blue arrow (pointing at 0.8) "fairly cold". Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 6
  • 7. Fuzzy Rules  fuzzy logic usually uses IF-THEN rules  Rules are usually expressed in the form: IF variable IS property THEN action  For example, a simple temperature regulator that uses a fan might look like this: IF temperature IS very cold THEN stop fan IF temperature IS cold THEN turn down fan IF temperature IS normal THEN maintain level IF temperature IS hot THEN speed up fan Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 7
  • 8. Fuzzy Rules  There is no "ELSE" – all of the rules are evaluated, because the temperature might be "cold" and "normal" at the same time to different degrees.  The AND, OR, and NOT operators of boolean logic exist in fuzzy logic, usually defined as the minimum, maximum, and complement  when they are defined this way, they are called the Zadeh operators Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 8
  • 9. Zadeh Operators  NOT x = (1 - truth(x))  x AND y = minimum(truth(x), truth(y))  x OR y = maximum(truth(x), truth(y)) Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 9
  • 10. Hedges  There are also other operators, more linguistic in nature, called hedges that can be applied.  These are generally adverbs such as "very", or "somewhat" Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 10
  • 11. Fuzzy Logic Applications  Air conditioning  Washing Machines (LG is the pioneer)  Mono-rails (first used in Tokyo)  Digital image processing (specially in medical imaging)  Elevators (in case of power failure)  Rice cookers  Video game engines (disperse intelligence in prince of Persia)  Special effects (swarm intelligence in Batman Begins, Terminator Salvation, The Lord of the Rings) Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 11
  • 12. Objections against Fuzzy Logic  The concept of "coldness" cannot be expressed in an equation, because although temperature is a quantity, "coldness" is not  people have an idea of what "cold" is, and agree that there is no sharp cutoff between "cold" and "not cold"  where something is "cold" at N degrees but "not cold" at N+1 degrees — a concept classical logic cannot easily handle Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 12
  • 13. Objections against Fuzzy Logic  The result has no set answer so it is believed to be a 'fuzzy' answer.  Fuzzy logic simply provides a mathematical model of the vagueness which is manifested in the above example. Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 13
  • 14. A new way to represent probabilistic logic?  fuzzy set theory uses the concept of fuzzy set membership (i.e., how much a variable is in a set)  probability theory uses the concept of subjective probability (i.e., how probable do I think that a variable is in a set). Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 14
  • 15. Reference  Wikipedia, “Fuzzy Logic”, http://en.wikipedia.org/wiki/Fuzzy_logic Rushdi Shams, Lecturer, Dept of CSE, KUET, Bangladesh 15