SlideShare a Scribd company logo
1 of 26
Presented by:
                                                            Bhanu Fix Poudyal
                                                                     066BEL305
                                           Department Of Electrical Engineering
                                                            Pulchowk Campus




2/20/2012   Institute Of Engineering, Pulchowk Campus
Agenda

             General Definition
             Applications
             Formal Definitions
             Operations
             Rules
             Fuzzy Air Conditioner
             Controller Structure



2/20/2012   Institute Of Engineering, Pulchowk Campus
Fuzzy Logic



Definition

  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, sets that calibrate
     vagueness.

  Fuzzy logic is based on the idea that all things admit of degrees.
     Temperature, height, speed, distance, beauty – all come on a sliding scale.
       The motor is running really hot.
       Tom is a very tall guy.

2/20/2012               Institute Of Engineering, Pulchowk Campus
Fuzzy Logic



Definition

  Many decision-making and problem-solving tasks are too complex to be
     understood quantitatively, however, people succeed by using
     knowledge that is imprecise rather than precise.
    Fuzzy set theory resembles human reasoning in its use of approximate
     information and uncertainty to generate decisions.
    It was specifically designed to mathematically represent uncertainty and
     vagueness and provide formalized tools for dealing with the imprecision
     intrinsic to many engineering and decision problems in a more natural
     way.
    Boolean logic uses sharp distinctions. It forces us to draw lines between
     members of a class and non-members. For instance, we may say, Tom is tall
     because his height is 181 cm. If we drew a line at 180 cm, we would find
     that David, who is 179 cm, is small.
    Is David really a small man or we have just drawn an arbitrary line in the
     sand?

2/20/2012             Institute Of Engineering, Pulchowk Campus
Fuzzy Logic



Bit of History

  Fuzzy, or multi-valued logic, was introduced in the 1930s by Jan
     Lukasiewicz, a Polish philosopher. While classical logic operates with
     only two values 1 (true) and 0 (false), Lukasiewicz introduced logic that
     extended the range of truth values to all real numbers in the interval
     between 0 and 1.

  For example, the possibility that a man 181 cm tall is really tall might be
     set to a value of 0.86. It is likely that the man is tall. This work led to
     an inexact reasoning technique often called possibility theory.

  In 1965 Lotfi Zadeh, published his famous paper “Fuzzy sets”. Zadeh
     extended the work on possibility theory into a formal system of
     mathematical logic, and introduced a new concept for applying natural
     language terms. This new logic for representing and manipulating
     fuzzy terms was called fuzzy logic.


2/20/2012              Institute Of Engineering, Pulchowk Campus
Fuzzy Logic



 Why Fuzzy Logic?
 Why fuzzy?
  As Zadeh said, the term is concrete, immediate and descriptive; we all
  know what it means. However, many people in the West were repelled by
  the word fuzzy, because it is usually used in a negative sense.
 Why logic?
  Fuzziness rests on fuzzy set theory, and fuzzy logic is just a small part of
  that theory.
 The term fuzzy logic is used in two senses:
    Narrow sense: Fuzzy logic is a branch of fuzzy set theory, which deals
     (as logical systems do) with the representation and inference from
     knowledge. Fuzzy logic, unlike other logical systems, deals with
     imprecise or uncertain knowledge. In this narrow, and perhaps correct
     sense, fuzzy logic is just one of the branches of fuzzy set theory.
    Broad Sense: fuzzy logic synonymously with fuzzy set theory


 2/20/2012           Institute Of Engineering, Pulchowk Campus
Applications

             ABS Brakes
             Expert Systems
             Control Units
             Bullet train between Tokyo and Osaka
             Video Cameras
             Automatic Transmissions
             Washing Machines




2/20/2012         Institute Of Engineering, Pulchowk Campus
Formal Definitions
 Definition 1: Let X be some set of objects, with elements noted as x.
 X = {x}.
 Definition 2: A fuzzy set A in X is characterized by a membership function
  mA(x) which maps each point in X onto the real interval [0.0, 1.0]. As
  mA(x) approaches 1.0, the "grade of membership" of x in A increases.
 Definition 3: A is EMPTY iff for all x, mA(x) = 0.0.
 Definition 4: A = B iff for all x: mA(x) = mB(x) [or, mA = mB].
 Definition 5: mA' = 1 - mA.
 Definition 6: A is CONTAINED in B iff mA                        mB.
 Definition 7: C = A UNION B, where: mC(x) = MAX(mA(x), mB(x)).
 Definition 8: C = A INTERSECTION B where: mC(x) = MIN(mA(x),
  mB(x)).

 2/20/2012            Institute Of Engineering, Pulchowk Campus
Fuzzy Logic Operators
  Fuzzy Logic:
     NOT (A) = 1 - A
     A AND B = min( A, B)
     A OR B = max( A, B)




2/20/2012       Institute Of Engineering, Pulchowk Campus
Operations




                A                                               B




   A        B                            A       B                  A

2/20/2012           Institute Of Engineering, Pulchowk Campus
Fuzzy Logic NOT




2/20/2012   Institute Of Engineering, Pulchowk Campus
Fuzzy Logic AND




2/20/2012   Institute Of Engineering, Pulchowk Campus
Fuzzy Logic OR




2/20/2012   Institute Of Engineering, Pulchowk Campus
Fuzzy Controllers
  Used to control a physical system




2/20/2012      Institute Of Engineering, Pulchowk Campus
Controller Structure
     Fuzzification
        Scales and maps input variables to fuzzy sets
     Inference Mechanism
        Approximate reasoning
        Deduces the control action
     Defuzzification
        Convert fuzzy output values to control signals




2/20/2012         Institute Of Engineering, Pulchowk Campus
Structure of a Fuzzy Controller




2/20/2012   Institute Of Engineering, Pulchowk Campus
Fuzzification
  Conversion of real input to fuzzy set values
  e.g. Medium ( x ) = {
     0 if x >= 1.90 or x < 1.70,
     (1.90 - x)/0.1 if x >= 1.80 and x < 1.90,
     (x- 1.70)/0.1 if x >= 1.70 and x < 1.80 }




2/20/2012          Institute Of Engineering, Pulchowk Campus
Inference Engine
  Fuzzy rules
     based on fuzzy premises and fuzzy consequences


  e.g.
     If height is Short and weight is Light then feet are Small
     Short( height) AND Light(weight) => Small(feet)




2/20/2012        Institute Of Engineering, Pulchowk Campus
Fuzzification & Inference Example
  If height is 1.7m and weight is 55kg
     what is the value of Size(feet)




2/20/2012       Institute Of Engineering, Pulchowk Campus
Defuzzification
  Rule base has many rules
     so some of the output fuzzy sets will have membership
      value > 0

        Defuzzify to get a real value from the fuzzy outputs
               One approach is to use a centre of gravity method




2/20/2012                 Institute Of Engineering, Pulchowk Campus
Defuzzification Example
  Imagine we have output fuzzy set values
     Small membership value = 0.5
     Medium membership value = 0.25
     Large membership value = 0.0
  What is the deffuzzified value




2/20/2012      Institute Of Engineering, Pulchowk Campus
Fuzzy Control Example




2/20/2012   Institute Of Engineering, Pulchowk Campus
Rule Base

Air Temperature                                Fan Speed


 Set cold {50, 0, 0}                          •    Set stop {0, 0, 0}
 Set cool {65, 55, 45}                        •    Set slow {50, 30, 10}
 Set just right {70, 65, 60}                  •    Set medium {60, 50, 40}
 Set warm {85, 75, 65}                        •    Set fast {90, 70, 50}
 Set hot { , 90, 80}                          •    Set blast { , 100, 80}




2/20/2012       Institute Of Engineering, Pulchowk Campus
default:             Membership function is
The truth of any
statement is a
                     a curve of the degree
                     of truth of a given
                                                                    Rules
matter of degree
                     input value


               Air Conditioning Controller Example:

                IF Cold then Stop
                If Cool then Slow
                If OK then Medium
                If Warm then Fast
                IF Hot then Blast




   2/20/2012            Institute Of Engineering, Pulchowk Campus
Fuzzy Air Conditioner
           0

100
                        s   t                                                                   If Hot
90                  Bla                                                                          then
                                                                                                Blast

80                Fa
                     st                                                      If Warm
                                                                                then
70                                                                              Fast

60
                  Med                                       If Just Right
                      ium                                        then
50                                                             Medium

40                                                IF Cool
                     Sl
                          ow                        then
30                                                  Slow

                                      if Cold
20
                                    then Stop

10
                    St
                       o  p




0



                                1
                                                                                 m




                                                                                                          t
                                                  ol




                                                                                                         Ho
                                                                                 ar
                                                Co




                                                                             W
                                      Co




                                                             Rig t
                                                                ht
                                                              Jus
                                       ld




                                0

      2/20/2012                        Institute Of Engineering, Pulchowk Campus
                                      45    50         55   60    65        70        75   80      85         90
Mapping Inputs to Outputs
                                       1
                  0

            100
                               s   t
            90              Bla                                                                  t


            80            Fa
                             st
            70


            60
                          Med
                              iu  m
            50


            40
                             Sl
                                  ow
            30


            20


            10
                            St
                              op




            0



                                           1




                                                                                   m




                                                                                                       t
                                                          ol




                                                                                                      Ho
                                                                                ar
                                                      Co




                                                                               W
                                               Co




                                                                     Rig t
                                                                        ht
                                                                      Jus
                                                ld




                                           0

                                               45    50        55   60   65   70       75   80   85        90

2/20/2012             Institute Of Engineering, Pulchowk Campus

More Related Content

What's hot (20)

Application of fuzzy logic
Application of fuzzy logicApplication of fuzzy logic
Application of fuzzy logic
 
Fuzzy expert system
Fuzzy expert systemFuzzy expert system
Fuzzy expert system
 
On fuzzy concepts in engineering ppt. ncce
On fuzzy concepts in engineering ppt. ncceOn fuzzy concepts in engineering ppt. ncce
On fuzzy concepts in engineering ppt. ncce
 
Fuzzy relations
Fuzzy relationsFuzzy relations
Fuzzy relations
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logic - Approximate reasoning
Fuzzy logic - Approximate reasoningFuzzy logic - Approximate reasoning
Fuzzy logic - Approximate reasoning
 
Introduction to fuzzy logic
Introduction to fuzzy logicIntroduction to fuzzy logic
Introduction to fuzzy logic
 
Fuzzy logic control of washing m achines
Fuzzy logic control of washing m achinesFuzzy logic control of washing m achines
Fuzzy logic control of washing m achines
 
Fuzzy Logic Ppt
Fuzzy Logic PptFuzzy Logic Ppt
Fuzzy Logic Ppt
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Fuzzy Sets Introduction With Example
Fuzzy Sets Introduction With ExampleFuzzy Sets Introduction With Example
Fuzzy Sets Introduction With Example
 
Fuzzy+logic
Fuzzy+logicFuzzy+logic
Fuzzy+logic
 
Fuzzy logic system
Fuzzy logic systemFuzzy logic system
Fuzzy logic system
 
Classical Sets & fuzzy sets
Classical Sets & fuzzy setsClassical Sets & fuzzy sets
Classical Sets & fuzzy sets
 
Fuzzy Membership Function
Fuzzy Membership Function Fuzzy Membership Function
Fuzzy Membership Function
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
FUZZY LOGIC
FUZZY LOGICFUZZY LOGIC
FUZZY LOGIC
 
Defuzzification
DefuzzificationDefuzzification
Defuzzification
 
If then rule in fuzzy logic and fuzzy implications
If then rule  in fuzzy logic and fuzzy implicationsIf then rule  in fuzzy logic and fuzzy implications
If then rule in fuzzy logic and fuzzy implications
 

Viewers also liked

Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real WorldBCSLeicester
 
Fuzzy logic speed control of three phase
Fuzzy logic speed control of three phaseFuzzy logic speed control of three phase
Fuzzy logic speed control of three phaseaspafoto
 
Speed control of dc motor by fuzzy controller
Speed control of dc motor by fuzzy controllerSpeed control of dc motor by fuzzy controller
Speed control of dc motor by fuzzy controllerMurugappa Group
 
Neuro-fuzzy systems
Neuro-fuzzy systemsNeuro-fuzzy systems
Neuro-fuzzy systemsSagar Ahire
 
Fuzzy logic and neural networks
Fuzzy logic and neural networksFuzzy logic and neural networks
Fuzzy logic and neural networksqazi
 
Fuzzy Logic Application in Robotics( Humanoid Push Recovery)
Fuzzy Logic Application in Robotics( Humanoid Push Recovery)Fuzzy Logic Application in Robotics( Humanoid Push Recovery)
Fuzzy Logic Application in Robotics( Humanoid Push Recovery)IIIT Allahabad
 
Fuzzy Logic Fossil Classification System
Fuzzy Logic Fossil Classification SystemFuzzy Logic Fossil Classification System
Fuzzy Logic Fossil Classification Systemmrwalker7
 
Top Drive Electrical
Top Drive ElectricalTop Drive Electrical
Top Drive ElectricalNamxuan Dubai
 
Intelligence control using fuzzy logic
Intelligence control using fuzzy logicIntelligence control using fuzzy logic
Intelligence control using fuzzy logicelakiyakishok
 
Thompson tchobanian ni_li)
Thompson tchobanian ni_li)Thompson tchobanian ni_li)
Thompson tchobanian ni_li)trtrungviet
 
Control of electric drive
Control of electric driveControl of electric drive
Control of electric driveVijay Krishna
 
Los chicos de segundo t
Los chicos de segundo tLos chicos de segundo t
Los chicos de segundo tMaxiRos
 
Applying soft computing techniques to corporate mobile security systems
Applying soft computing techniques to corporate mobile security systemsApplying soft computing techniques to corporate mobile security systems
Applying soft computing techniques to corporate mobile security systemsPaloma De Las Cuevas
 
Photovoltaic based three phase three-wire saf for significant energy conserva...
Photovoltaic based three phase three-wire saf for significant energy conserva...Photovoltaic based three phase three-wire saf for significant energy conserva...
Photovoltaic based three phase three-wire saf for significant energy conserva...Sambit Dash
 

Viewers also liked (20)

Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real World
 
Fuzzy logic speed control of three phase
Fuzzy logic speed control of three phaseFuzzy logic speed control of three phase
Fuzzy logic speed control of three phase
 
Fuzzy Logic
Fuzzy LogicFuzzy Logic
Fuzzy Logic
 
Speed control of dc motor by fuzzy controller
Speed control of dc motor by fuzzy controllerSpeed control of dc motor by fuzzy controller
Speed control of dc motor by fuzzy controller
 
Neuro-fuzzy systems
Neuro-fuzzy systemsNeuro-fuzzy systems
Neuro-fuzzy systems
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy logic and neural networks
Fuzzy logic and neural networksFuzzy logic and neural networks
Fuzzy logic and neural networks
 
Soft computing08
Soft computing08Soft computing08
Soft computing08
 
Fuzzy Logic Application in Robotics( Humanoid Push Recovery)
Fuzzy Logic Application in Robotics( Humanoid Push Recovery)Fuzzy Logic Application in Robotics( Humanoid Push Recovery)
Fuzzy Logic Application in Robotics( Humanoid Push Recovery)
 
Lecture 29 fuzzy systems
Lecture 29   fuzzy systemsLecture 29   fuzzy systems
Lecture 29 fuzzy systems
 
Fuzzy Logic Fossil Classification System
Fuzzy Logic Fossil Classification SystemFuzzy Logic Fossil Classification System
Fuzzy Logic Fossil Classification System
 
Top Drive Electrical
Top Drive ElectricalTop Drive Electrical
Top Drive Electrical
 
Intelligence control using fuzzy logic
Intelligence control using fuzzy logicIntelligence control using fuzzy logic
Intelligence control using fuzzy logic
 
fuzzy logic
fuzzy logicfuzzy logic
fuzzy logic
 
Thompson tchobanian ni_li)
Thompson tchobanian ni_li)Thompson tchobanian ni_li)
Thompson tchobanian ni_li)
 
Control of electric drive
Control of electric driveControl of electric drive
Control of electric drive
 
Los chicos de segundo t
Los chicos de segundo tLos chicos de segundo t
Los chicos de segundo t
 
Applying soft computing techniques to corporate mobile security systems
Applying soft computing techniques to corporate mobile security systemsApplying soft computing techniques to corporate mobile security systems
Applying soft computing techniques to corporate mobile security systems
 
Photovoltaic based three phase three-wire saf for significant energy conserva...
Photovoltaic based three phase three-wire saf for significant energy conserva...Photovoltaic based three phase three-wire saf for significant energy conserva...
Photovoltaic based three phase three-wire saf for significant energy conserva...
 
107 prabaakharan
107 prabaakharan107 prabaakharan
107 prabaakharan
 

Recently uploaded

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
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
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
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
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
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
 

Recently uploaded (20)

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
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
 

Fuzzy logic

  • 1. Presented by: Bhanu Fix Poudyal 066BEL305 Department Of Electrical Engineering Pulchowk Campus 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 2. Agenda  General Definition  Applications  Formal Definitions  Operations  Rules  Fuzzy Air Conditioner  Controller Structure 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 3. Fuzzy Logic Definition  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, sets that calibrate vagueness.  Fuzzy logic is based on the idea that all things admit of degrees. Temperature, height, speed, distance, beauty – all come on a sliding scale.  The motor is running really hot.  Tom is a very tall guy. 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 4. Fuzzy Logic Definition  Many decision-making and problem-solving tasks are too complex to be understood quantitatively, however, people succeed by using knowledge that is imprecise rather than precise.  Fuzzy set theory resembles human reasoning in its use of approximate information and uncertainty to generate decisions.  It was specifically designed to mathematically represent uncertainty and vagueness and provide formalized tools for dealing with the imprecision intrinsic to many engineering and decision problems in a more natural way.  Boolean logic uses sharp distinctions. It forces us to draw lines between members of a class and non-members. For instance, we may say, Tom is tall because his height is 181 cm. If we drew a line at 180 cm, we would find that David, who is 179 cm, is small.  Is David really a small man or we have just drawn an arbitrary line in the sand? 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 5. Fuzzy Logic Bit of History  Fuzzy, or multi-valued logic, was introduced in the 1930s by Jan Lukasiewicz, a Polish philosopher. While classical logic operates with only two values 1 (true) and 0 (false), Lukasiewicz introduced logic that extended the range of truth values to all real numbers in the interval between 0 and 1.  For example, the possibility that a man 181 cm tall is really tall might be set to a value of 0.86. It is likely that the man is tall. This work led to an inexact reasoning technique often called possibility theory.  In 1965 Lotfi Zadeh, published his famous paper “Fuzzy sets”. Zadeh extended the work on possibility theory into a formal system of mathematical logic, and introduced a new concept for applying natural language terms. This new logic for representing and manipulating fuzzy terms was called fuzzy logic. 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 6. Fuzzy Logic Why Fuzzy Logic?  Why fuzzy? As Zadeh said, the term is concrete, immediate and descriptive; we all know what it means. However, many people in the West were repelled by the word fuzzy, because it is usually used in a negative sense.  Why logic? Fuzziness rests on fuzzy set theory, and fuzzy logic is just a small part of that theory.  The term fuzzy logic is used in two senses:  Narrow sense: Fuzzy logic is a branch of fuzzy set theory, which deals (as logical systems do) with the representation and inference from knowledge. Fuzzy logic, unlike other logical systems, deals with imprecise or uncertain knowledge. In this narrow, and perhaps correct sense, fuzzy logic is just one of the branches of fuzzy set theory.  Broad Sense: fuzzy logic synonymously with fuzzy set theory 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 7. Applications  ABS Brakes  Expert Systems  Control Units  Bullet train between Tokyo and Osaka  Video Cameras  Automatic Transmissions  Washing Machines 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 8. Formal Definitions  Definition 1: Let X be some set of objects, with elements noted as x.  X = {x}.  Definition 2: A fuzzy set A in X is characterized by a membership function mA(x) which maps each point in X onto the real interval [0.0, 1.0]. As mA(x) approaches 1.0, the "grade of membership" of x in A increases.  Definition 3: A is EMPTY iff for all x, mA(x) = 0.0.  Definition 4: A = B iff for all x: mA(x) = mB(x) [or, mA = mB].  Definition 5: mA' = 1 - mA.  Definition 6: A is CONTAINED in B iff mA mB.  Definition 7: C = A UNION B, where: mC(x) = MAX(mA(x), mB(x)).  Definition 8: C = A INTERSECTION B where: mC(x) = MIN(mA(x), mB(x)). 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 9. Fuzzy Logic Operators  Fuzzy Logic:  NOT (A) = 1 - A  A AND B = min( A, B)  A OR B = max( A, B) 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 10. Operations A B A B A B A 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 11. Fuzzy Logic NOT 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 12. Fuzzy Logic AND 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 13. Fuzzy Logic OR 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 14. Fuzzy Controllers  Used to control a physical system 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 15. Controller Structure  Fuzzification  Scales and maps input variables to fuzzy sets  Inference Mechanism  Approximate reasoning  Deduces the control action  Defuzzification  Convert fuzzy output values to control signals 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 16. Structure of a Fuzzy Controller 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 17. Fuzzification  Conversion of real input to fuzzy set values  e.g. Medium ( x ) = {  0 if x >= 1.90 or x < 1.70,  (1.90 - x)/0.1 if x >= 1.80 and x < 1.90,  (x- 1.70)/0.1 if x >= 1.70 and x < 1.80 } 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 18. Inference Engine  Fuzzy rules  based on fuzzy premises and fuzzy consequences  e.g.  If height is Short and weight is Light then feet are Small  Short( height) AND Light(weight) => Small(feet) 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 19. Fuzzification & Inference Example  If height is 1.7m and weight is 55kg  what is the value of Size(feet) 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 20. Defuzzification  Rule base has many rules  so some of the output fuzzy sets will have membership value > 0  Defuzzify to get a real value from the fuzzy outputs  One approach is to use a centre of gravity method 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 21. Defuzzification Example  Imagine we have output fuzzy set values  Small membership value = 0.5  Medium membership value = 0.25  Large membership value = 0.0  What is the deffuzzified value 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 22. Fuzzy Control Example 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 23. Rule Base Air Temperature Fan Speed  Set cold {50, 0, 0} • Set stop {0, 0, 0}  Set cool {65, 55, 45} • Set slow {50, 30, 10}  Set just right {70, 65, 60} • Set medium {60, 50, 40}  Set warm {85, 75, 65} • Set fast {90, 70, 50}  Set hot { , 90, 80} • Set blast { , 100, 80} 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 24. default: Membership function is The truth of any statement is a a curve of the degree of truth of a given Rules matter of degree input value Air Conditioning Controller Example:  IF Cold then Stop  If Cool then Slow  If OK then Medium  If Warm then Fast  IF Hot then Blast 2/20/2012 Institute Of Engineering, Pulchowk Campus
  • 25. Fuzzy Air Conditioner 0 100 s t If Hot 90 Bla then Blast 80 Fa st If Warm then 70 Fast 60 Med If Just Right ium then 50 Medium 40 IF Cool Sl ow then 30 Slow if Cold 20 then Stop 10 St o p 0 1 m t ol Ho ar Co W Co Rig t ht Jus ld 0 2/20/2012 Institute Of Engineering, Pulchowk Campus 45 50 55 60 65 70 75 80 85 90
  • 26. Mapping Inputs to Outputs 1 0 100 s t 90 Bla t 80 Fa st 70 60 Med iu m 50 40 Sl ow 30 20 10 St op 0 1 m t ol Ho ar Co W Co Rig t ht Jus ld 0 45 50 55 60 65 70 75 80 85 90 2/20/2012 Institute Of Engineering, Pulchowk Campus