Fuzzy Sets and Fuzzy Logic Chapter 12 M. Tim Jones See also

Slides:



Advertisements
Similar presentations
A Semantic Model for Vague Quantifiers Combining Fuzzy Theory and Supervaluation Theory Ka Fat CHOW The Hong Kong Polytechnic University The title of.
Advertisements

Fuzzy Inference Systems
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
AI – CS364 Fuzzy Logic Fuzzy Logic 3 03 rd October 2006 Dr Bogdan L. Vrusias
Lecture 4 Fuzzy expert systems: Fuzzy logic
Fuzzy Inference and Defuzzification
1 Fuzzy Logic Artificial Intelligence for Games Scott Goodwin School of Computer Science See Buckland, Chapter 10.
Chapter 14.7 Russell & Norvig. Fuzzy Sets  Rules of thumb frequently stated in “fuzzy” linguistic terms. John is tall. If someone is tall and well-built.
An Introduction to Type-2 Fuzzy Sets and Systems
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.
Final Exam: May 10 Thursday. If event E occurs, then the probability that event H will occur is p ( H | E ) IF E ( evidence ) is true THEN H ( hypothesis.
FUZZY SYSTEMS. Fuzzy Systems Fuzzy Sets – To quantify and reason about fuzzy or vague terms of natural language – Example: hot, cold temperature small,
FUZZY Logic for Game Programmers
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
Approximate Reasoning 1 Expert Systems Dr. Samy Abu Nasser.
Lecture 07 Fuzzy Reasoning
Fuzzy Expert System.
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
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.
COMP 578 Fuzzy Sets in Data Mining Keith C.C. Chan Department of Computing The Hong Kong Polytechnic University.
Fuzzy Logic Dave Saad CS498. Origin Proposed as a mathematical model similar to traditional set theory but with the possibility of partial set membership.
Introduction to Fuzzy Logic Control
BEE4333 Intelligent Control
Indian Institute of Technology Bombay GIS-based mineral resource potential mapping - Modelling approaches  Exploration datasets with homogenous coverage.
CPSC 386 Artificial Intelligence Ellen Walker Hiram College
9/3/2015Intelligent Systems and Soft Computing1 Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what.
Abdul Rahim Ahmad MITM 613 Intelligent System Chapter 3b: Dealing with Uncertainty (Fuzzy Logic)
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
Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Sugeno fuzzy inference Case study.
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Artificial Intelligence in Game Design Lecture 6: Fuzzy Logic and Fuzzy State Machines.
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
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.
Homework 5 Min Max “Temperature is low” AND “Temperature is middle”
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
Chapter 19. Fuzzy Reasoning
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture /08/05 Prof. Pushpak Bhattacharyya Fuzzy Logic Application.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
Artificial Intelligence Techniques Knowledge Processing 2-MSc.
Fuzzy Relations( 關係 ), Fuzzy Graphs( 圖 形 ), and Fuzzy Arithmetic( 運算 ) Chapter 4.
© Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference.
Lecture 4 Fuzzy expert systems: Fuzzy logic n Introduction, or what is fuzzy thinking? n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy.
Fuzzy Logic for Social Simulation using NetLogo UNIVERSITY OF BURGOS UNIVERSITY OF VALLADOLID UNIVERSITY OF WESTERN AUSTRALIA Marcos Almendres, Luis R.
Chapter 13 (Continued) Fuzzy Expert Systems 1. Fuzzy Rule-based Expert System 2.
Artificial Intelligence CIS 342
Fuzzy Systems Michael J. Watts
Expert System Structure
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Fuzzy Logic and Fuzzy Sets
Homework 8 Min Max “Temperature is low” AND “Temperature is middle”
Artificial Intelligence and Adaptive Systems
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Boolean vs Fuzzy Strictly 0 or 1 output Output varies between 0 and 1
Fuzzy System Structure
Dr. Unnikrishnan P.C. Professor, EEE
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
Lecture 5 Fuzzy expert systems: Fuzzy inference
Fuzzy Logic Colter McClure.
Dr. Unnikrishnan P.C. Professor, EEE
Fuzzy Inference Systems
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Presentation transcript:

Fuzzy Sets and Fuzzy Logic Chapter 12 M. Tim Jones See also

Fuzzy Sets Rules of thumb frequently stated in “fuzzy” linguistic terms. John is tall. If someone is tall and well-built then his basketball skill is good. Fuzzy Sets 0   S(x)  1:  S(x) (or  (S, x)) is the degree of membership of x in set S  S(x) = 0: x is not at all in S  S(x) = 1: x is fully in S. If  S(x) = 0 or 1, then the set S is crisp.

Example: Short, Medium height and Tall 1.0  7’ 6’ 6’6”5’6” 5’ Medium Short Tall Note:  Short(x) +  Medium(x) +  Tall(x)  1.

Example: Light, Medium weight and Heavy 1.0  Medium Light Heavy Weight (Kg) Someone who is 6’1” is simultaneously short, of medium height and tall in various degrees which don’t add to 1. Fuzzy subsets: S  T if  S(x)   T(x) for all x.

Membership Implementation #define downslope(x, left, right) ((right-x) / (right-left)) #define upslope(x, left, right) ((x-left) / (right-left)) float m_t_cold( float x ) { float left = 45.0; float right = 75.0; if (x <= left) return 1.0; else if (x >= right) return 0.0; else return downslope(x, left, right); } float m_t_hot( float x ) { float left = 45.0; float right = 75.0; if (x <= left) return 0.0; else if (x >= right) return 1.0; else return upslope(x, left, right); }

Fuzzy Facts Each fuzzy fact is a declaration of the degree of membership in a fuzzy set. John is tall ( degree 0.2). John is of medium height (degree 0.6). John is short (degree 0.3) John is well-built (degree 0.7). John is weak (degree 0.40). Generally, fuzzy membership functions are defined in terms of numerical values of an underlying crisp attribute. For example: Short, Medium and Tall in terms of height. Weak and Well-built in terms of muscle mass.

Logical Connectives in Fuzzy Logic Negation:  (  S)(x) = 1 -  S(x). The set  S is the complement of the set S. 1.0  7’ 6’ 6’6”5’6” 5’ TallNot Tall

Note: No one is a full member of this set. Logical Connectives in Fuzzy Logic Conjunction:  (S  T)(x) = min (  S(x),  T(x)) Example: Medium and Tall 1.0  7’ 6’ 6’6”5’6” 5’ Medium Short Tall Medium and Tall

Remark: Unlike probabilities, fuzzy membership function for negation, conjunction and disjunction are easily calculated. Logical Connectives in Fuzzy Logic A fuzzy set is normalised when it is possible for someone to be a full member of the set (  = 1). Union:  (S  T)(x) = max (  S(x),  T(x)). 1.0  7’ 6’ 6’6”5’6” 5’ Medium Short Medium or Tall Tall

Fuzzy Rules Rule 1: If height is short then weight is light. Rule 2: If height is medium then weight is medium. Rule 3: If height is tall then weight is heavy. Problem: Given (a) membership functions for short, medium-height, tall, light, medium-weight and heavy; (b) the above three fuzzy rules, (c) the fact that John’s height is 6’1”, Estimate John’s weight.

Fuzzy Rules Problem: Given (a) membership functions for short, medium-height, tall, light, medium-weight and heavy; (b) the above three fuzzy rules, (c) the fact that John’s height is 6’1”, Estimate John’s weight. Solution (1) From John’s height we know that John is short (degree 0.3) John is of medium height (degree 0.6). John is tall ( degree 0.2). (2) (a) Each rule produces a fuzzy set as output by truncating the consequent membership function at the value of the antecedent membership.

Fuzzy Rules Rule 1: : If height is short then weight is light. John is short (degree 0.3) 1.0  Medium Light Heavy Weight (Kg)

Fuzzy Rules Rule 2: If height is medium then weight is medium. John is of medium height (degree 0.6). 1.0  Medium Light Heavy Weight (Kg)

Fuzzy Rules Rule 3: If height is tall then weight is heavy. John is tall ( degree 0.2). 1.0  Medium Light Heavy Weight (Kg)

Fuzzy Rules (b) The cumulative fuzzy output is obtained by ORing the output from each rule. Cumulative fuzzy output ( Weight at 6’1”) 1.0  Medium Light Heavy Weight (Kg)

Fuzzy Rules (c) De-fuzzification To obtain a numerical estimate, we need to de-fuzzify the output. Choose the middle of the range where the truth value is maximum. (This is one possibility.) John’s Weight = 80 Kgs.

Summary Advantages of fuzzy logic – Allows the use of vague linguistic terms in the rules. Disadvantages of fuzzy logic – Difficult to estimate membership function – There are many ways of interpreting fuzzy rules, combining the outputs of several fuzzy rules and de- fuzzifying the output.