FUZZY LOGIC Babu Appat
OVERVIEW <ul><li>What is Fuzzy Logic? </li></ul><ul><li>Where did it begin? </li></ul><ul><li>Fuzzy Logic vs. Neural Netwo...
WHAT IS FUZZY LOGIC? <ul><li>Definition of fuzzy </li></ul><ul><ul><li>Fuzzy – “not clear, distinct, or precise; blurred” ...
What is Fuzzy Logic? Fuzzy logic is a form of many-valued logic; it deals with reasoning that is approximate rather than f...
What is Fuzzy Logic? Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range...
Fuzzy Logic began Fuzzy logic began with the 1965 proposal of fuzzy set theory by Lotfi Zadeh Fuzzy logic has been applied...
Fuzzy Data- Crisp Data <ul><li>he reasoning in fuzzy logic is similar to human reasoning </li></ul><ul><li>It allows for a...
Fuzzy Data- Crisp Data <ul><li>Fuzzy logic is able to process incomplete data and provide approximate solutions to problem...
Fuzzy Data- Crisp Data <ul><li>Terminology used in fuzzy logic not used in other methods are: very high, increasing, somew...
Degrees of Truth Fuzzy logic and probabilistic logic are mathematically similar – both have truth values ranging between 0...
Degrees of Truth Fuzzy logic corresponds to &quot;degrees of truth&quot;, while probabilistic logic corresponds to &quot;p...
Degrees of Truth Both degrees of truth and probabilities range between 0 and 1 and hence may seem similar at first. For ex...
Degrees of Truth Then one might define the glass as being 0.7 empty and 0.3 full. Note that the concept of emptiness would...
Degrees of Truth Another designer might equally well design a set membership function where the glass would be considered ...
Applying the Values A basic application might characterize subranges of a continuous variable. For instance, a temperature...
Applying the Values Each function maps the same temperature value to a truth value in the 0 to 1 range. These truth values...
Applying the Values
Applying the Values In this image, the meaning of the expressions  cold ,  warm , and  hot  is represented by functions ma...
Applying the Values The vertical line in the image represents a particular temperature that the three arrows (truth values...
TRADITIONAL REPRESENTATION OF LOGIC Slow Fast Speed = 0 Speed = 1 bool speed;  get the speed  if ( speed == 0) { //  speed...
FUZZY LOGIC REPRESENTATION <ul><li>For every problem must represent in terms of fuzzy sets. </li></ul><ul><li>What are fuz...
FUZZY LOGIC REPRESENTATION CONT. Slowest Fastest float speed;  get the speed  if ((speed >= 0.0)&&(speed < 0.25)) { //  sp...
Linguistic Variables While variables in mathematics usually take numerical values, in fuzzy logic applications, the non-nu...
Linguistic Variables A linguistic variable such as  age  may have a value such as  young  or its antonym  old . However, t...
Examples Fuzzy set theory defines fuzzy operators on fuzzy sets. The problem in applying this is that the appropriate fuzz...
A simple temperature regulator that uses a fan might look like this: IF temperature IS very cold THEN stop fan IF temperat...
ORIGINS OF FUZZY LOGIC <ul><li>Traces back to Ancient Greece </li></ul><ul><li>Lotfi Asker Zadeh ( 1965 ) </li></ul><ul><u...
FUZZY LOGIC VS. NEURAL NETWORKS <ul><li>How does a Neural Network work? </li></ul><ul><li>Both model the human brain. </li...
FUZZY LOGIC IN CONTROL SYSTEMS <ul><li>Fuzzy Logic provides a more efficient and resourceful way to solve Control Systems....
TEMPERATURE CONTROLLER <ul><li>The problem </li></ul><ul><ul><li>Change the speed of a heater fan, based off the room temp...
BENEFITS OF USING FUZZY LOGIC
ANTI LOCK BREAK SYSTEM ( ABS ) <ul><li>Nonlinear and dynamic in nature </li></ul><ul><li>Inputs for Intel Fuzzy ABS are de...
FUZZY LOGIC IN OTHER FIELDS <ul><li>Business  </li></ul><ul><li>Hybrid Modelling </li></ul><ul><li>Expert Systems </li></ul>
CONCLUSION <ul><li>Fuzzy logic provides an alternative way to represent linguistic and subjective attributes of the real w...
 
Thank  you  <ul><li>Babu Appat  </li></ul><ul><li>b [email_address] </li></ul><ul><li>www.youtube.com/thetrainingclasses <...
Upcoming SlideShare
Loading in...5
×

Fuzzy logic

8,063

Published on

How can you deal with Fuzzy Logic. Fuzzy logic is a form of many-valued logic; it deals with reasoning that is approximate rather than fixed and exact. In contrast with traditional logic theory, where binary sets have two-valued logic: true or false, fuzzy logic variables may have a truth value that ranges in degree
between 0 and 1

Published in: Business, Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
8,063
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1,046
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Fuzzy logic

  1. 1. FUZZY LOGIC Babu Appat
  2. 2. OVERVIEW <ul><li>What is Fuzzy Logic? </li></ul><ul><li>Where did it begin? </li></ul><ul><li>Fuzzy Logic vs. Neural Networks </li></ul><ul><li>Fuzzy Logic in Control Systems </li></ul><ul><li>Fuzzy Logic in Other Fields </li></ul><ul><li>Future </li></ul>
  3. 3. WHAT IS FUZZY LOGIC? <ul><li>Definition of fuzzy </li></ul><ul><ul><li>Fuzzy – “not clear, distinct, or precise; blurred” </li></ul></ul><ul><li>Definition of fuzzy logic </li></ul><ul><ul><li>A form of knowledge representation suitable for notions that cannot be defined precisely, but which depend upon their contexts. </li></ul></ul>
  4. 4. What is Fuzzy Logic? Fuzzy logic is a form of many-valued logic; it deals with reasoning that is approximate rather than fixed and exact. In contrast with traditional logic theory, where binary sets have two-valued logic: true or false, fuzzy logic variables may have a truth value that ranges in degree between 0 and 1
  5. 5. What is Fuzzy Logic? Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false. Furthermore, when linguistic variables are used, these degrees may be managed by specific functions
  6. 6. Fuzzy Logic began Fuzzy logic began with the 1965 proposal of fuzzy set theory by Lotfi Zadeh Fuzzy logic has been applied to many fields, from control theory to artificial intelligence
  7. 7. Fuzzy Data- Crisp Data <ul><li>he reasoning in fuzzy logic is similar to human reasoning </li></ul><ul><li>It allows for approximate values and inferences as well as incomplete or ambiguous data </li></ul><ul><li>(binary yes/no choices </li></ul>
  8. 8. Fuzzy Data- Crisp Data <ul><li>Fuzzy logic is able to process incomplete data and provide approximate solutions to problems other methods find difficult to solve. </li></ul>
  9. 9. Fuzzy Data- Crisp Data <ul><li>Terminology used in fuzzy logic not used in other methods are: very high, increasing, somewhat decreased, reasonable and very low. </li></ul>
  10. 10. Degrees of Truth Fuzzy logic and probabilistic logic are mathematically similar – both have truth values ranging between 0 and 1 – but conceptually distinct, due to different interpretations—see interpretations of probability theory..
  11. 11. Degrees of Truth Fuzzy logic corresponds to &quot;degrees of truth&quot;, while probabilistic logic corresponds to &quot;probability, likelihood&quot;; as these differ, fuzzy logic and probabilistic logic yield different models of the same real-world situations.
  12. 12. Degrees of Truth Both degrees of truth and probabilities range between 0 and 1 and hence may seem similar at first. For example, 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.
  13. 13. Degrees of Truth Then one might define the glass as being 0.7 empty and 0.3 full. Note that the concept of emptiness would be subjective and thus would depend on the observer or designer.
  14. 14. Degrees of Truth Another designer might equally well design a set membership function where the glass would be considered full for all values down to 50 ml. It is essential to realize that fuzzy logic uses truth degrees as a mathematical model of the vagueness phenomenon while probability is a mathematical model of ignorance.
  15. 15. Applying the Values A basic application might characterize subranges of a continuous variable. For instance, a temperature measurement for anti-lock brakes might have several separate membership functions defining particular temperature ranges needed to control the brakes properly.
  16. 16. Applying the Values Each function maps the same temperature value to a truth value in the 0 to 1 range. These truth values can then be used to determine how the brakes should be controlled
  17. 17. Applying the Values
  18. 18. Applying the Values In this image, the meaning of the expressions  cold ,  warm , and  hot  is represented by functions mapping a temperature scale. A point on that scale has three &quot;truth values&quot;—one for each of the three functions.
  19. 19. Applying the Values The vertical line in the image represents a particular temperature that the three arrows (truth values) gauge. Since the red arrow points to zero, this temperature may be interpreted as &quot;not hot&quot;. The orange arrow (pointing at 0.2) may describe it as &quot;slightly warm&quot; and the blue arrow (pointing at 0.8) &quot;fairly cold&quot;
  20. 20. TRADITIONAL REPRESENTATION OF LOGIC Slow Fast Speed = 0 Speed = 1 bool speed; get the speed if ( speed == 0) { // speed is slow } else { // speed is fast }
  21. 21. FUZZY LOGIC REPRESENTATION <ul><li>For every problem must represent in terms of fuzzy sets. </li></ul><ul><li>What are fuzzy sets? </li></ul>Slowest Fastest Slow Fast [ 0.0 – 0.25 ] [ 0.25 – 0.50 ] [ 0.50 – 0.75 ] [ 0.75 – 1.00 ]
  22. 22. FUZZY LOGIC REPRESENTATION CONT. Slowest Fastest float speed; get the speed if ((speed >= 0.0)&&(speed < 0.25)) { // speed is slowest } else if ((speed >= 0.25)&&(speed < 0.5)) { // speed is slow } else if ((speed >= 0.5)&&(speed < 0.75)) { // speed is fast } else // speed >= 0.75 && speed < 1.0 { // speed is fastest } Slow Fast
  23. 23. Linguistic Variables While variables in mathematics usually take numerical values, in fuzzy logic applications, the non-numeric  linguistic variables  are often used to facilitate the expression of rules and facts
  24. 24. Linguistic Variables A linguistic variable such as  age  may have a value such as  young  or its antonym  old . However, the great utility of linguistic variables is that they can be modified via linguistic hedges applied to primary terms. The linguistic hedges can be associated with certain functions
  25. 25. Examples Fuzzy set theory defines fuzzy operators on fuzzy sets. The problem in applying this is that the appropriate fuzzy operator may not be known. For this reason, fuzzy logic usually uses IF-THEN rules, or constructs that are equivalent, such as fuzzy associative matrices Rules are usually expressed in the form: IF  variable  IS  property  THEN  action
  26. 26. 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 There is no &quot;ELSE&quot; – all of the rules are evaluated, because the temperature might be &quot;cold&quot; and &quot;normal&quot; at the same time to different degrees.
  27. 27. ORIGINS OF FUZZY LOGIC <ul><li>Traces back to Ancient Greece </li></ul><ul><li>Lotfi Asker Zadeh ( 1965 ) </li></ul><ul><ul><li>First to publish ideas of fuzzy logic. </li></ul></ul><ul><li>Professor Toshire Terano ( 1972 ) </li></ul><ul><ul><li>Organized the world's first working group on fuzzy systems. </li></ul></ul><ul><li>F.L. Smidth & Co. ( 1980 ) </li></ul><ul><ul><li>First to market fuzzy expert systems. </li></ul></ul>
  28. 28. FUZZY LOGIC VS. NEURAL NETWORKS <ul><li>How does a Neural Network work? </li></ul><ul><li>Both model the human brain. </li></ul><ul><ul><li>Fuzzy Logic </li></ul></ul><ul><ul><li>Neural Networks </li></ul></ul><ul><li>Both used to create behavioral </li></ul><ul><li>systems. </li></ul>
  29. 29. FUZZY LOGIC IN CONTROL SYSTEMS <ul><li>Fuzzy Logic provides a more efficient and resourceful way to solve Control Systems. </li></ul><ul><li>Some Examples </li></ul><ul><ul><li>Temperature Controller </li></ul></ul><ul><ul><li>Anti – Lock Break System ( ABS ) </li></ul></ul>
  30. 30. TEMPERATURE CONTROLLER <ul><li>The problem </li></ul><ul><ul><li>Change the speed of a heater fan, based off the room temperature and humidity. </li></ul></ul><ul><li>A temperature control system has four settings </li></ul><ul><ul><li>Cold, Cool, Warm, and Hot </li></ul></ul><ul><li>Humidity can be defined by: </li></ul><ul><ul><li>Low, Medium, and High </li></ul></ul><ul><li>Using this we can define </li></ul><ul><li> the fuzzy set. </li></ul>
  31. 31. BENEFITS OF USING FUZZY LOGIC
  32. 32. ANTI LOCK BREAK SYSTEM ( ABS ) <ul><li>Nonlinear and dynamic in nature </li></ul><ul><li>Inputs for Intel Fuzzy ABS are derived from </li></ul><ul><ul><li>Brake </li></ul></ul><ul><ul><li>4 WD </li></ul></ul><ul><ul><li>Feedback </li></ul></ul><ul><ul><li>Wheel speed </li></ul></ul><ul><ul><li>Ignition </li></ul></ul><ul><li>Outputs </li></ul><ul><ul><li>Pulsewidth </li></ul></ul><ul><ul><li>Error lamp </li></ul></ul>
  33. 33. FUZZY LOGIC IN OTHER FIELDS <ul><li>Business </li></ul><ul><li>Hybrid Modelling </li></ul><ul><li>Expert Systems </li></ul>
  34. 34. CONCLUSION <ul><li>Fuzzy logic provides an alternative way to represent linguistic and subjective attributes of the real world in computing. </li></ul><ul><li>It is able to be applied to control systems and other applications in order to improve the efficiency and simplicity of the design process. </li></ul>
  35. 36. Thank you <ul><li>Babu Appat </li></ul><ul><li>b [email_address] </li></ul><ul><li>www.youtube.com/thetrainingclasses </li></ul><ul><li>www.thepleasuresofteaching.webs.com </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×