SlideShare una empresa de Scribd logo
1 de 15
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

Más contenido relacionado

Destacado

Knowledge representation
Knowledge representationKnowledge representation
Knowledge representationRushdi Shams
 
L1 overview of software engineering
L1  overview of software engineeringL1  overview of software engineering
L1 overview of software engineeringRushdi Shams
 
Lecture 5, 6 and 7 cpu scheduling
Lecture 5, 6 and 7  cpu schedulingLecture 5, 6 and 7  cpu scheduling
Lecture 5, 6 and 7 cpu schedulingRushdi Shams
 
Lecture 7, 8, 9 and 10 Inter Process Communication (IPC) in Operating Systems
Lecture 7, 8, 9 and 10  Inter Process Communication (IPC) in Operating SystemsLecture 7, 8, 9 and 10  Inter Process Communication (IPC) in Operating Systems
Lecture 7, 8, 9 and 10 Inter Process Communication (IPC) in Operating SystemsRushdi Shams
 
Knowledge structure
Knowledge structureKnowledge structure
Knowledge structureRushdi Shams
 
Propositional logic
Propositional logicPropositional logic
Propositional logicRushdi Shams
 
Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Rushdi Shams
 
Syntax and semantics
Syntax and semanticsSyntax and semantics
Syntax and semanticsRushdi Shams
 
8 drived horizontal fragmentation
8  drived horizontal fragmentation8  drived horizontal fragmentation
8 drived horizontal fragmentationMohsan Ijaz
 

Destacado (11)

Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
 
L1 overview of software engineering
L1  overview of software engineeringL1  overview of software engineering
L1 overview of software engineering
 
Lecture 5, 6 and 7 cpu scheduling
Lecture 5, 6 and 7  cpu schedulingLecture 5, 6 and 7  cpu scheduling
Lecture 5, 6 and 7 cpu scheduling
 
L1 phishing
L1  phishingL1  phishing
L1 phishing
 
Lecture 7, 8, 9 and 10 Inter Process Communication (IPC) in Operating Systems
Lecture 7, 8, 9 and 10  Inter Process Communication (IPC) in Operating SystemsLecture 7, 8, 9 and 10  Inter Process Communication (IPC) in Operating Systems
Lecture 7, 8, 9 and 10 Inter Process Communication (IPC) in Operating Systems
 
Weka
WekaWeka
Weka
 
Knowledge structure
Knowledge structureKnowledge structure
Knowledge structure
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)
 
Syntax and semantics
Syntax and semanticsSyntax and semantics
Syntax and semantics
 
8 drived horizontal fragmentation
8  drived horizontal fragmentation8  drived horizontal fragmentation
8 drived horizontal fragmentation
 

Similar a L15 fuzzy logic

fuzzylogic-120105083314-phpapp01.pptx
fuzzylogic-120105083314-phpapp01.pptxfuzzylogic-120105083314-phpapp01.pptx
fuzzylogic-120105083314-phpapp01.pptxssuser92d367
 
Fuzzy logic-120419044344-phpapp01
Fuzzy logic-120419044344-phpapp01Fuzzy logic-120419044344-phpapp01
Fuzzy logic-120419044344-phpapp01shwetaanu
 
Determination of Thesis Preceptor and Examiner Based on Specification of Teac...
Determination of Thesis Preceptor and Examiner Based on Specification of Teac...Determination of Thesis Preceptor and Examiner Based on Specification of Teac...
Determination of Thesis Preceptor and Examiner Based on Specification of Teac...Universitas Pembangunan Panca Budi
 

Similar a L15 fuzzy logic (7)

fuzzylogic-120105083314-phpapp01.pptx
fuzzylogic-120105083314-phpapp01.pptxfuzzylogic-120105083314-phpapp01.pptx
fuzzylogic-120105083314-phpapp01.pptx
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logic-120419044344-phpapp01
Fuzzy logic-120419044344-phpapp01Fuzzy logic-120419044344-phpapp01
Fuzzy logic-120419044344-phpapp01
 
Fuzzy logic ppt
Fuzzy logic pptFuzzy logic ppt
Fuzzy logic ppt
 
Determination of Thesis Preceptor and Examiner Based on Specification of Teac...
Determination of Thesis Preceptor and Examiner Based on Specification of Teac...Determination of Thesis Preceptor and Examiner Based on Specification of Teac...
Determination of Thesis Preceptor and Examiner Based on Specification of Teac...
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 

Más de Rushdi Shams

Research Methodology and Tips on Better Research
Research Methodology and Tips on Better ResearchResearch Methodology and Tips on Better Research
Research Methodology and Tips on Better ResearchRushdi Shams
 
Common evaluation measures in NLP and IR
Common evaluation measures in NLP and IRCommon evaluation measures in NLP and IR
Common evaluation measures in NLP and IRRushdi Shams
 
Machine learning with nlp 101
Machine learning with nlp 101Machine learning with nlp 101
Machine learning with nlp 101Rushdi Shams
 
L5 understanding hacking
L5  understanding hackingL5  understanding hacking
L5 understanding hackingRushdi Shams
 
L2 Intrusion Detection System (IDS)
L2  Intrusion Detection System (IDS)L2  Intrusion Detection System (IDS)
L2 Intrusion Detection System (IDS)Rushdi Shams
 
L2 l3 l4 software process models
L2 l3 l4  software process modelsL2 l3 l4  software process models
L2 l3 l4 software process modelsRushdi Shams
 
Lecture 14,15 and 16 file systems
Lecture 14,15 and 16  file systemsLecture 14,15 and 16  file systems
Lecture 14,15 and 16 file systemsRushdi Shams
 
Lecture 11,12 and 13 deadlocks
Lecture 11,12 and 13  deadlocksLecture 11,12 and 13  deadlocks
Lecture 11,12 and 13 deadlocksRushdi Shams
 
Lecture 1 and 2 processes
Lecture 1 and 2  processesLecture 1 and 2  processes
Lecture 1 and 2 processesRushdi Shams
 
Lecture 3 and 4 threads
Lecture 3 and 4  threadsLecture 3 and 4  threads
Lecture 3 and 4 threadsRushdi Shams
 
My slide relational algebra
My slide  relational algebraMy slide  relational algebra
My slide relational algebraRushdi Shams
 

Más de Rushdi Shams (14)

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

Último

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Último (20)

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

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