Fuzzy Control Lect 3 Membership Function and Approximate Reasoning

Slides:



Advertisements
Similar presentations
Fuzzy Sets and Fuzzy Logic
Advertisements

Lecture 4 Fuzzy expert systems: Fuzzy logic
Fuzzy Logic and its Application to Web Caching
Fuzzy Inference and Defuzzification
Soft Computing. Per Printz Madsen Section of Automation and Control
CLASSICAL LOGIC and FUZZY LOGIC. CLASSICAL LOGIC In classical logic, a simple proposition P is a linguistic, or declarative, statement contained within.
Fuzzy Expert System Fuzzy Logic
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,
Basic Concepts of Fuzzy Logic Apparatus of fuzzy logic is built on: –Fuzzy sets: describe the value of variables –Linguistic variables: qualitatively and.
Fuzzy Expert System.
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.
Theory and Applications
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.
Ming-Feng Yeh General Fuzzy Systems A fuzzy system is a static nonlinear mapping between its inputs and outputs (i.e., it is not a dynamic system).
Introduction to Fuzzy Logic Control
Fuzzy Sets and Fuzzy Logic Theory and Applications
Fuzzy Logic BY: ASHLEY REYNOLDS. Where Fuzzy Logic Falls in the Field of Mathematics  Mathematics  Mathematical Logic and Foundations  Fuzzy Logic.
Indian Institute of Technology Bombay GIS-based mineral resource potential mapping - Modelling approaches  Exploration datasets with homogenous coverage.
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 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.
Aims of session  Last week  Deterministic  Propositional logic  Predicate logic  This week (Basis of this section Johnson and Picton 1995)  Non-monotonic.
 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.
Theory and Applications
“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.
Fuzzy systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Chap 3: Fuzzy Rules and Fuzzy Reasoning J.-S. Roger Jang ( 張智星 ) CS Dept., Tsing Hua Univ., Taiwan Fuzzy.
Homework 5 Min Max “Temperature is low” AND “Temperature is middle”
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.
Chapter 2: FUZZY SETS Introduction (2.1)
Fuzzy Optimization D Nagesh Kumar, IISc Water Resources Planning and Management: M9L1 Advanced Topics.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
Ch.3 Fuzzy Rules and Fuzzy Reasoning
Fuzzy Logic 1. Introduction Form of multivalued logic Deals reasoning that is approximate rather than precise The fuzzy logic variables may have a membership.
Dinner for Two. Fuzzify Inputs Apply Fuzzy Operator.
Lecture 8 Introduction to Neural Networks and Fuzzy Logic President UniversityErwin SitompulNNFL 8/1 Dr.-Ing. Erwin Sitompul President University
Chapter 3: Fuzzy Rules & Fuzzy Reasoning Extension Principle & Fuzzy Relations (3.2) Fuzzy if-then Rules(3.3) Fuzzy Reasonning (3.4)
Artificial Intelligence CIS 342
Fuzzy Systems Michael J. Watts
Question: Is it warm in here?
Fuzzy Inference Systems
Fuzzy Logic 11/6/2001.
Artificial Intelligence
Stanisław H. Żak School of Electrical and Computer Engineering
Meaning of “fuzzy”, Definition of Fuzzy Logic
Homework 8 Min Max “Temperature is low” AND “Temperature is middle”
Introduction to Fuzzy Logic
Chap 3: Fuzzy Rules and Fuzzy Reasoning
Dr. Unnikrishnan P.C. Professor, EEE
Dr. Unnikrishnan P.C. Professor, EEE
Chap 3: Fuzzy Rules and Fuzzy Reasoning
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
Chap 3: Fuzzy Rules and Fuzzy Reasoning
Dr. Unnikrishnan P.C. Professor, EEE
Introduction to Fuzzy Set Theory
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

Fuzzy Control Lect 3 Membership Function and Approximate Reasoning Basil Hamed Electrical Engineering Islamic University of Gaza

Content Membership Function Features of Membership Function Fuzzy Membership Functions Types of Membership Function Approximate Reasoning Linguistic Variables IF THEN RULES Example Basil Hamed

Membership Function Membership Functions characterize the fuzziness of fuzzy sets. There are an infinite # of ways to characterize fuzzy  infinite ways to define fuzzy membership functions. Membership function essentially embodies all fuzziness for a particular fuzzy set, its description is essential to fuzzy property or operation. Basil Hamed

Membership Function Basil Hamed

Features of Membership Function Core: comprises of elements x of the universe, such that A(x) = 1 Support: comprises of elements x of universe, such that A(x) > 0 Boundaries: comprise the elements x of the universe 0 < A(x) < 1 A normal fuzzy set has at least one element with membership 1 For fuzzy set, if one and only one element has a membership = 1, this element is called as the prototype of set. A subnormal fuzzy set has no element with membership=1. Basil Hamed

MF Terminology x cross points 1 MF 0.5  core width -cut support 0.5 MF core width  -cut support Basil Hamed

Features of Membership Function Graphically, Basil Hamed

Membership Functions (MF’s) The most common forms of membership functions are those that are normal and convex. However, many operations on fuzzy sets, hence operations on membership functions, result in fuzzy sets that are subnormal and nonconvex. Membership functions can be symmetrical or asymmetrical. Basil Hamed

Convexity of Fuzzy Sets A fuzzy set A is convex if for any  in [0, 1]. Basil Hamed

Membership Functions (MF’s) A fuzzy set is completely characterized by a membership function. a subjective measure. not a probability measure. Membership value height 1 “tall” in Asia 5’10” “tall” in USA “tall” in NBA Basil Hamed

Membership Functions (MF’s) The degree of the fuzzy membership function µ (x) can be define as possibility function not probability function. Basil Hamed

What is The Different Between Probability Function and Possibility Function Example: When you and your best friend go to visit another friend, in the car your best friend asks you, “Are you sure our friend is at the home?" you answer, "yes, I am sure but I do not know if he is in the bed room or on the roof “ "I think 90% he is there" Basil Hamed

What is The Different Between Probability Function and Possibility Function Look to the answer. In the first answer, you are sure he is in the house but you do not know where he is in the house exactly. However, in the second answer you are not sure he may be there and may be not there. That is the different between possibility and the probability Basil Hamed

What is The Different Between Probability Function and Possibility Function In the possibility function the element is in the set by certain degree, Meanwhile the probability function means that the element may be in the set or not . So if the probability of (x) = 0.7 that means (x) may be in the set by 70%. But in possibility if the possibility of (x) is 0.7 that means (x) is in the set and has degree 0.7. Basil Hamed

Fuzzy Membership Functions One of the key issues in all fuzzy sets is how to determine fuzzy membership functions The membership function fully defines the fuzzy set A membership function provides a measure of the degree of similarity of an element to a fuzzy set Membership functions can take any form, but there are some common examples that appear in real applications Basil Hamed

Fuzzy Membership Functions Membership functions can either be chosen by the user arbitrarily, based on the user’s experience (MF chosen by two users could be different depending upon their experiences, perspectives, etc.) Or be designed using machine learning methods (e.g., artificial neural networks, genetic algorithms, etc.) There are different shapes of membership functions; triangular, trapezoidal, piecewise-linear, Gaussian, bell-shaped, etc. Basil Hamed

Types of MF In the classical sets there is one type of membership function but in fuzzy sets there are many different types of membership function, now will show some of these types. Basil Hamed

Types of MF Different shapes of membership functions (a) s_function, (b) π_function, (c) z_function, (d-f) triangular (g-i) trapezoidal (J) flat π_function, (k) rectangle, (L) singleton Basil Hamed

MF Formulation Triangular MF Trapezoidal MF Gaussian MF Generalized bell MF Basil Hamed

MF Formulation Basil Hamed

Types of MF Standard types of membership functions: Z function;  function; S function; trapezoidal function; triangular function; singleton.

Triangular membership function a, b and c represent the x coordinates of the three vertices of µA(x) in a fuzzy set A (a: lower boundary and c: upper boundary where membership degree is zero, b: the centre where membership degree is 1) µA(x) 1 x a b c Basil Hamed

Gaussian membership function c: centre s: width m: fuzzification factor (e.g., m=2) µA(x) c=5 s=2 m=2 x Basil Hamed

Basil Hamed

Basil Hamed

Basil Hamed

Basil Hamed

Manipulating Parameter of the Generalized Bell Function Basil Hamed

Basil Hamed

Basil Hamed

Basil Hamed

Basil Hamed

Basil Hamed

Basil Hamed

Basil Hamed

Membership Functions Degree of Truth or "Membership" Temp: {Freezing, Cool, Warm, Hot} Basil Hamed

Membership Functions How cool is 36 F° ? Basil Hamed

Membership Functions How cool is 36 F° ? It is 30% Cool and 70% Freezing 0.7 0.3 Basil Hamed

Features of Membership Function A convex fuzzy set has a membership whose value is: 1. strictly monotonically increasing, or 2. strictly monotonically decreasing, or 3. strictly monotonically increasing, then strictly monotonically decreasing Or another way to describe: (y) ≥ min[(x), (z)], if x < y < z If A and B are convex sets, then A  B is also a convex set Crossover points have membership 0.5 Height of a Fuzzy set is the maximum value of the membership: max{A(x)} Basil Hamed

Features of Membership Function If height < 1, the fuzzy set is subnormal. Fuzzy number: like a number is close to 5. It has to have the properties: 1. A must be a normal fuzzy set. 2. A must be closed for all (0,1]. 3. The support, 0A must be bounded. Basil Hamed

Fuzzy Partition Fuzzy partitions formed by the linguistic values “young”, “middle aged”, and “old”: Basil Hamed

Approximate Reasoning

Linguistic Variables When fuzzy sets are used to solve the problem without analyzing the system; but the expression of the concepts and the knowledge of it in human communication are needed. Human usually do not use mathematical expression but use the linguistic expression. For example, if you see heavy box and you want to move it, you will say, "I want strong motor to move this box" we see that, we use strong expression to describe the force that we need to move the box. In fuzzy sets we do the same thing we use linguistic variables to describe the fuzzy sets. Basil Hamed

Linguistic Variables Linguistic variable is “a variable whose values are words or sentences in a natural or artificial language”. Each linguistic variable may be assigned one or more linguistic values, which are in turn connected to a numeric value through the mechanism of membership functions. Basil Hamed

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” Basil Hamed

Motivation Conventional techniques for system analysis are intrinsically unsuited for dealing with systems based on human judgment, perception & emotion. Basil Hamed

Linguistic Variables In 1973, Professor Zadeh proposed the concept of linguistic or "fuzzy" variables. Think of them as linguistic objects or words, rather than numbers. The sensor input is a noun, e.g. "temperature", "displacement", "velocity", "flow", "pressure", etc. Since error is just the difference, it can be thought of the same way. The fuzzy variables themselves are adjectives that modify the variable (e.g. "large positive" error, "small positive" error ,"zero" error, "small negative" error, and "large negative" error). As a minimum, one could simply have "positive", "zero", and "negative" variables for each of the parameters. Additional ranges such as "very large" and "very small" could also be added Basil Hamed

Fuzzy Linguistic Variables Fuzzy Linguistic Variables are used to represent qualities spanning a particular spectrum Temp: {Freezing, Cool, Warm, Hot} Membership Function Question: What is the temperature? Answer: It is warm. Question: How warm is it? Basil Hamed

Example if temperature is cold and oil is cheap then heating is high Basil Hamed

Example if temperature is cold and oil is cheap then heating is high Linguistic Variable cold if temperature is cold and oil is cheap then heating is high Linguistic Value Linguistic Value Linguistic Variable cheap high Linguistic Variable Linguistic Value Basil Hamed

Definition [Zadeh 1973] A linguistic variable is characterized by a quintuple Universe Term Set Name Syntactic Rule Semantic Rule Basil Hamed

Example A linguistic variable is characterized by a quintuple age [0, 100] Example semantic rule: Basil Hamed

Example (x) cold warm hot x Linguistic Variable : temperature Linguistics Terms (Fuzzy Sets) : {cold, warm, hot} (x) cold warm hot 20 60 1 x Basil Hamed

Fuzzy If-Than Rules IF (input1 is MFa) AND (input2 is MFb) AND…AND (input n is MFn) THEN (output is MFc) Where MFa, MFb, MFn, and MFc are the linguistic values of the fuzzy membership functions that are in input 1,input 2…input n, and output. Basil Hamed

Example In a system where the inputs of the system are Serves and Food and the output is the Tip. Food may be (good, ok, bad), and serves can be (good, ok, bad), the output tip can be (generous, average, cheap), where good, ok, bad, generous, average, and cheap are the linguistic variables of fuzzy membership function of the inputs (food, and serves) and the output (tip). Basil Hamed

Example We can write the rules such as. IF (Food is bad) and (Serves is bad) THEN (Tip is cheap) IF (Food is good) and (Serves is good) THEN (Tip is generous) Basil Hamed

Fuzzy If-Than Rules A  B  If x is A then y is B. antecedent or premise consequence or conclusion Basil Hamed

Fuzzy If-Than Rules Premise 1 (fact): x is A, Premise 2 (rule): IF x is A THEN y is B, Consequence (conclusion): y is B. Basil Hamed

Examples A  B  If x is A then y is B. If pressure is high, then volume is small. If the road is slippery, then driving is dangerous. If a tomato is red, then it is ripe. If the speed is high, then apply the brake a little. Basil Hamed

Fuzzy Rules as Relations A  B R  If x is A then y is B. Depends on how to interpret A  B A fuzzy rule can be defined as a binary relation with MF Basil Hamed

Generally, there are two ways to interpret the fuzzy rule A → B Generally, there are two ways to interpret the fuzzy rule A → B. One way to interpret the implication A → B is that A is coupled with B, and in this case, The other interpretation of implication A → B is that A entails B, and in this case it can be written as Basil Hamed

Interpretations of A  B A coupled with B A B x y A B A entails B x y Basil Hamed

EXAMPLE

Inputs: Temperature Temp: {Freezing, Cool, Warm, Hot} Basil Hamed

Inputs: Temperature, Cloud Cover Temp: {Freezing, Cool, Warm, Hot} Cover: {Sunny, Partly, Overcast} Basil Hamed

Output: Speed Speed: {Slow, Fast} Basil Hamed

Rules If it's Sunny and Warm, drive Fast Sunny(Cover)Warm(Temp) Fast(Speed) If it's Cloudy and Cool, drive Slow Cloudy(Cover)Cool(Temp) Slow(Speed) Driving Speed is the combination of output of these rules... Basil Hamed

Example Speed Calculation How fast will I go if it is 65 F° 25 % Cloud Cover ? Basil Hamed

Calculate Input Membership Levels 0.4 65 65 F°  Cool = 0.4, Warm= 0.7 Basil Hamed

Calculate Input Membership Levels 25% Cover Sunny = 0.8, Cloudy = 0.2 0.8 0.2 25% Basil Hamed

...Calculating... If it's Sunny and Warm, drive Fast Sunny(Cover)Warm(Temp)Fast(Speed) 0.8  0.7 = 0.7  Fast = 0.7 If it's Cloudy and Cool, drive Slow Cloudy(Cover)Cool(Temp)Slow(Speed) 0.2  0.4 = 0.2  Slow = 0.2 Basil Hamed

Constructing the Output Speed is 20% Slow and 70% Fast Basil Hamed

Constructing the Output Speed is 20% Slow and 70% Fast Find centroids: Location where membership is 100% Basil Hamed

Constructing the Output Speed is 20% Slow and 70% Fast Speed = weighted mean = (2*25+... Basil Hamed

Constructing the Output Speed is 20% Slow and 70% Fast Speed = weighted mean = (2*25+7*75)/(9) = 63.8 mph Basil Hamed

Choose a project to present in this course Due 9/10/2011 HW 2 Choose a project to present in this course Due 9/10/2011 Basil Hamed