Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}

Slides:



Advertisements
Similar presentations
Fuzzy Logic 11/6/2001. Agenda General Definition Applications Formal Definitions Operations Rules Fuzzy Air Conditioner Controller Structure.
Advertisements

Fuzzy Expert System  An expert might say, “ Though the power transformer is slightly overloaded, I can keep this load for a while”.  Another expert.
Fuzzy Set and Opertion. Outline Fuzzy Set and Crisp Set Expanding concepts Standard operation of fuzzy set Fuzzy relations Operations on fuzzy relations.
Fuzzy Logic and its Application to Web Caching
Fuzzy Inference and Defuzzification
CS 561, Sessions This time: Fuzzy Logic and Fuzzy Inference Why use fuzzy logic? Tipping example Fuzzy set theory Fuzzy inference.
Soft Computing. Per Printz Madsen Section of Automation and Control
Introduction to Fuzzy Control Lecture 10.1 Appendix E.
AI TECHNIQUES Fuzzy Logic (Fuzzy System). Fuzzy Logic : An Idea.
Fuzzy Expert System. Basic Notions 1.Fuzzy Sets 2.Fuzzy representation in computer 3.Linguistic variables and hedges 4.Operations of fuzzy sets 5.Fuzzy.
Fuzzy Expert Systems. Lecture Outline What is fuzzy thinking? What is fuzzy thinking? Fuzzy sets Fuzzy sets Linguistic variables and hedges Linguistic.
FUZZY SYSTEMS. Fuzzy Systems Fuzzy Sets – To quantify and reason about fuzzy or vague terms of natural language – Example: hot, cold temperature small,
Approximate Reasoning 1 Expert Systems Dr. Samy Abu Nasser.
© C. Kemke Approximate Reasoning 1 COMP 4200: Expert Systems Dr. Christel Kemke Department of Computer Science University of Manitoba.
Amir Hossein Momeni Azandaryani Course : IDS Advisor : Dr. Shajari 26 May 2008.
© Franz J. Kurfess Approximate Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Fuzzy Expert System.
Fuzzy Logic Richard E. Haskell Oakland University Rochester, MI USA.
© 2002 Franz J. Kurfess Approximate Reasoning 1 CPE/CSC 481: Knowledge-Based Systems Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Fuzzy Medical Image Segmentation
Chapter 18 Fuzzy Reasoning.
1 Chapter 18 Fuzzy Reasoning. 2 Chapter 18 Contents (1) l Bivalent and Multivalent Logics l Linguistic Variables l Fuzzy Sets l Membership Functions l.
WELCOME TO THE WORLD OF FUZZY SYSTEMS. DEFINITION Fuzzy logic is a superset of conventional (Boolean) logic that has been extended to handle the concept.
Introduction to Fuzzy Logic Control
Fuzzy Systems and Applications
Fuzzy Sets and Fuzzy Logic Theory and Applications
Fuzzy Theory Presented by Gao Xinbo E.E. Dept. Xidian University.
FUZZY LOGIC Babu Appat. OVERVIEW What is Fuzzy Logic? Where did it begin? Fuzzy Logic vs. Neural Networks Fuzzy Logic in Control Systems Fuzzy Logic in.
CPSC 386 Artificial Intelligence Ellen Walker Hiram College
Fuzzy Logic Conception Introduced by Lotfi Zadeh in 1960s at Berkley Wanted to expand crisp logic.
University of Tehran FuFaIR: a Fuzzy Farsi Information Retrieval System Amir Nayyeri School of Electrical and Computer Engineering University of Tehran.
Fuzzy Sets Introduction/Overview Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto.
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
Fuzzy Logic. WHAT IS FUZZY LOGIC? Definition of fuzzy Fuzzy – “not clear, distinct, or precise; blurred” Definition of fuzzy logic A form of knowledge.
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
Fuzzy Expert Systems. 2 Motivation On vagueness “Everything is vague to a degree you do not realise until you have tried to make it precise.” Bertrand.
Fuzzy Inference (Expert) System
Logical Systems and Knowledge Representation Fuzzy Logical Systems 1.
Fuzzy Systems Michael J. Watts
Lógica difusa  Bayesian updating and certainty theory are techniques for handling the uncertainty that arises, or is assumed to arise, from statistical.
Fuzzy Sets and Control. Fuzzy Logic The definition of Fuzzy logic is a form of multi-valued logic derived frommulti-valued logic fuzzy setfuzzy set theory.
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 12 FUZZY.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
Fuzzy systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Basic Concepts of Fuzzy Logic Apparatus of fuzzy logic is built on: Fuzzy sets: describe the value of variables Linguistic variables: qualitatively and.
AI Fuzzy Systems. History, State of the Art, and Future Development Sde Seminal Paper “Fuzzy Logic” by Prof. Lotfi Zadeh, Faculty in Electrical.
Developed by Joseph GoguenJoseph Goguen. What is fuzzy sets Definition.
Chapter 19. Fuzzy Reasoning
Could Be Significant.
Dinner for Two. Fuzzify Inputs Apply Fuzzy Operator.
Fuzzy Logic for Social Simulation using NetLogo UNIVERSITY OF BURGOS UNIVERSITY OF VALLADOLID UNIVERSITY OF WESTERN AUSTRALIA Marcos Almendres, Luis R.
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Introduction to Fuzzy Logic and Fuzzy Systems
Artificial Intelligence CIS 342
Fuzzy Systems Michael J. Watts
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy Control Electrical Engineering Islamic University of Gaza
Fuzzy Logic 11/6/2001.
Artificial Intelligence
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy Logic and Fuzzy Sets
Introduction to Fuzzy Logic
Dr. Unnikrishnan P.C. Professor, EEE
Richard E. Haskell Oakland University Rochester, MI USA
FUZZIFICATION AND DEFUZZIFICATION
Dr. Unnikrishnan P.C. Professor, EEE
This time: Fuzzy Logic and Fuzzy Inference
Introduction to Fuzzy Set Theory
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

Fuzzy Logic Artificial Intelligence Chapter 9

Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}

Crisp Logic Crisp logic is concerned with absolutes-true or false, there is no in-between. Example: Rule: If the temperature is higher than 80F, it is hot; otherwise, it is not hot. Cases: Temperature = 100F Temperature = 80.1F Temperature = 79.9F Temperature = 50F Not hot Hot

Membership function of crisp logic 80FTemperature HOT 1 If temperature >= 80F, it is hot (1 or true); If temperature < 80F, it is not hot (0 or false). 0 True False

Drawbacks of crisp logic The membership function of crisp logic fails to distinguish between members of the same set.

Conception of Fuzzy Logic Many decision-making and problem-solving tasks are too complex to be defined precisely however, people succeed by using imprecise knowledge Fuzzy logic resembles human reasoning in its use of approximate information and uncertainty to generate decisions.

Natural Language Consider: Joe is tall -- what is tall? Joe is very tall -- what does this differ from tall? Natural language (like most other activities in life and indeed the universe) is not easily translated into the absolute terms of 0 and 1. “ false ” “ true ”

Fuzzy Logic An approach to uncertainty that combines real values [0…1] and logic operations Fuzzy logic is based on the ideas of fuzzy set theory and fuzzy set membership often found in natural (e.g., spoken) language.

Example: “Young” Example: Ann is 28, 0.8 in set “Young” Bob is 35, 0.1 in set “Young” Charlie is 23, 1.0 in set “Young” Unlike statistics and probabilities, the degree is not describing probabilities that the item is in the set, but instead describes to what extent the item is the set.

Membership function of fuzzy logic Age YoungOld 1 Middle 0.5 DOM Degree of Membership Fuzzy values Fuzzy values have associated degrees of membership in the set. 0

Crisp set vs. Fuzzy set A traditional crisp setA fuzzy set

Crisp set vs. Fuzzy set

Benefits of fuzzy logic You want the value to switch gradually as Young becomes Middle and Middle becomes Old. This is the idea of fuzzy logic. the label “fuzzy logic” is used in two senses: (a) narrow sense: fuzzy logic is a logical system (b) wide sense: fuzzy logic is coextensive with fuzzy set theory Applications Control Business Finance

Fuzzy in control Control Rules: 1.If (speed is low) and (shift is high) then (-3) 2.If (speed is high) and (shift is low) then (+3) 3.If (throtis low) and (speed is high) then (+3) 4.If (throtis low) and (speed is low) then (+1) 5.If (throtis high) and (speed is high) then (-1) 6.If (throtis high) and (speed is low) then (-3)

Fuzzy Set Operations Fuzzy union (  ): the union of two fuzzy sets is the maximum (MAX) of each element from two sets. E.g. A = {1.0, 0.20, 0.75} B = {0.2, 0.45, 0.50} A  B = {MAX(1.0, 0.2), MAX(0.20, 0.45), MAX(0.75, 0.50)} = {1.0, 0.45, 0.75}

Fuzzy Set Operations Fuzzy intersection (  ): the intersection of two fuzzy sets is just the MIN of each element from the two sets. E.g. A = {1.0, 0.20, 0.75} B = {0.2, 0.45, 0.50} A  B = {MIN(1.0, 0.2), MIN(0.20, 0.45), MIN(0.75, 0.50)} = {0.2, 0.20, 0.50}

Fuzzy Set Operations The complement of a fuzzy variable with DOM x is (1-x). Complement ( _ c ): The complement of a fuzzy set is composed of all elements’ complement. Example. A = {1.0, 0.20, 0.75} A c = {1 – 1.0, 1 – 0.2, 1 – 0.75} = {0.0, 0.8, 0.25}

Crisp Relations Ordered pairs showing connection between two sets: (a,b): a is related to b (2,3) are related with the relation “<“ Relations are set themselves < = {(1,2), (2, 3), (2, 4), ….} Relations can be expressed as matrices <12 1  2   …

Fuzzy Relations Triples showing connection between two sets: (a,b,#): a is related to b with degree # Fuzzy relations are set themselves Fuzzy relations can be expressed as matrices …

Fuzzy Relations Matrices Example: Color-Ripeness relation for tomatoes R 1 (x, y)unripesemi riperipe green10.50 yellow Red00.21

Where is Fuzzy Logic used? Fuzzy logic is used directly in very few applications. Most applications of fuzzy logic use it as the underlying logic system for decision support systems.

Fuzzy Expert System Fuzzy expert system is a collection of membership functions and rules that are used to reason about data. Usually, the rules in a fuzzy expert system are have the following form: “if x is low and y is high then z is medium”

Operation of Fuzzy System Crisp Input Fuzzy Input Fuzzy Output Crisp Output Fuzzification Rule Evaluation Defuzzification Input Membership Functions Rules / Inferences Output Membership Functions

Fuzzification Two Inputs (x, y) and one output (z) Membership functions: low(t) = 1 - ( t / 10 ) high(t) = t / 10 LowHigh 1 0 t X=0.32Y= Low(x) = 0.68, High(x) = 0.32,Low(y) = 0.39, High(y) = 0.61 Crisp Inputs

Create rule base Rule 1: If x is low AND y is low Then z is high Rule 2: If x is low AND y is high Then z is low Rule 3: If x is high AND y is low Then z is low Rule 4: If x is high AND y is high Then z is high

Inference Rule1: low(x)=0.68, low(y)=0.39 => high(z)=MIN(0.68,0.39)=0.39 Rule2: low(x)=0.68, high(y)=0.61 => low(z)=MIN(0.68,0.61)=0.61 Rule3: high(x)=0.32, low(y)=0.39 => low(z)=MIN(0.32,0.39)=0.32 Rule4: high(x)=0.32, high(y)=0.61 => high(z)=MIN(0.32,0.61)=0.32 Rule strength

Composition LowHigh 1 0 t Low(z) = MAX(rule2, rule3) = MAX(0.61, 0.32) = 0.61 High(z) = MAX(rule1, rule4) = MAX(0.39, 0.32) =

Defuzzification Center of Gravity LowHigh t Crisp output Center of Gravity

Fuzzy Relations

Ordered pairs showing connection between two sets Relations are sets themselves Expressed as matrices

Fuzzy Relations Value of the membership function, m R (x, y), for an element (x, y) of the relation R is the value at row x and column y in the relational matrix Shows degree of correspondence between x- qualities (color) and y-qualities (ripeness)

Fuzzy Relations Matrices Color – ripeness relation for tomatoes

Fuzzy Relations Matrices Ripeness - taste relation for tomatoes

Fuzzy Relations Matrices Color - taste relation for tomatoes