This presentation discusses about various Member Functions of Fuzzy logic
Size: 340.89 KB
Language: en
Added: Aug 09, 2020
Slides: 28 pages
Slide Content
Dr . C.V. Suresh Babu Professor Department of IT Hindustan Institute of Science & Technology Fuzzy Logic: Member Functions
Action Plan Fuzzy Logic Fuzzy Controller Fuzzification Bivalent and Multivalent Logics Linguistic Variables Fuzzy Sets Membership Functions Triangular function : Trapezoidal function : Gaussian function: Crisp Set Operators Fuzzy Set Operators Hedges Fuzzy Inference Fuzzy Rules Fuzzy Expert Systems Neuro-Fuzzy Systems Quiz at the end of session
Fuzzy Logic Fuzzy logic: A way to represent variation or imprecision in logic A way to make use of natural language in logic Approximate reasoning Humans say things like "If it is little cold and I will drive drink" Linguistic variables: Temp: {freezing, cool, warm, hot} Cloud Cover: {overcast, partly cloudy, sunny} Speed: {slow, fast}
Fuzzy Controller
Fuzzification Fuzzification is the process of converting a crisp input value to a fuzzy value that is performed by the use of the information in the knowledge base. Although various types of curves can be seen in literature, Gaussian, triangular, and trapezoidal MFs are the most commonly used in the fuzzification process
Bivalent and Multivalent Logics Bivalent (Aristotelian) logic uses two logical values – true and false. Multivalent logics use many logical values – often in a range of real numbers from 0 to 1. Important to note the difference between multivalent logic and probability – P(A) = 0.5 means that A may be true or may be false – a logical value of 0.5 means both true and false at the same time.
Linguistic Variables Variables used in fuzzy systems to express qualities such as height, which can take values such as “tall”, “short” or “very tall”. These values define subsets of the universe of discourse.
Fuzzy Sets A crisp set is a set for which each value either is or is not contained in the set. For a fuzzy set, every value has a membership value, and so is a member to some extent. The membership value defines the extent to which a variable is a member of a fuzzy set. The membership value is from 0 (not at all a member of the set) to 1.
Membership Functions: Definition A membership function for a fuzzy set A on the universe of discourse X is defined as µ A :X → [0,1], where each element of X is mapped to a value between 0 and 1. This value, called membership value or degree of membership, quantifies the grade of membership of the element in X to the fuzzy set A. Membership functions allow us to graphically represent a fuzzy set. The x axis represents the universe of discourse, whereas the y axis represents the degrees of membership in the [0,1] interval. Simple functions are used to build membership functions. Because we are defining fuzzy concepts, using more complex functions does not add more precision.
Membership Functions The following function defines the extent to which a value x is a member of fuzzy set B: This function would be stored in the computer as: B = {(0, 1), (2, 0)} This function could represent, for example, the extent to which a person can be considered a baby, based on their age.
Triangular function : defined by a lower limit a , an upper limit b , and a value m , where a < m < b .
Trapezoidal function : defined by a lower limit a , an upper limit d , a lower support limit b , and an upper support limit c , where a < b < c < d .
Trapezoidal function : There are two special cases of a trapezoidal function, which are called R-functions and L-functions : R-functions: with parameters a = b = - ∞
Trapezoidal function : L-Functions: with parameters c = d = + ∞
Gaussian function : defined by a central value m and a standard deviation k > 0 . The smaller k is, the narrower the “bell” is. NOTE: The function used in the previous link to draw gaussian functions uses a different k' parameter. The mapping between both parameters is: k' = 1 / 2k 2
Crisp Set Operators Not A – the complement of A, which contains the elements which are not contained in A. A B – the intersection of A and B, which contains those elements which are contained in both A and B. A B – the union of A and B which contains all the elements of A and all the elements of B. Fuzzy sets use the same operators, but the operators have different meanings.
Fuzzy Set Operators Fuzzy set operators can be defined by their membership functions M ¬A (x) = 1 - M A (x) M A B (x) = MIN (M A (x), M B (x)) M A B (x) = MAX (M A (x), M B (x)) We can also define containment (subset operator): B A iff x (M B (x) M A (x))
Hedges A hedge is a qualifier such as “very”, “quite”, “somewhat” or “extremely”. When a hedge is applied to a fuzzy set it creates a new fuzzy set. Mathematic functions are usually used to define the effect of a hedge. For example, “Very” might be defined as: M VA (x) = (M A (x)) 2
Fuzzy Logic (1) A nonmonotonic logical system that applies to fuzzy variables. We use connectives defined as: A V B MAX (A, B) A Λ B MIN (A, B) ¬A 1 – A We can also define truth tables:
Fuzzy Inference (1) Inference is harder to manage. Since: A B ¬A V B Hence, we might define fuzzy inference as: A B MAX ((1 – A), B) This gives the unintuitive truth table shown on the right. This gives us 0.5 0 = 0.5, where we would expect 0.5 0 = 0
Fuzzy Inference (2) An alternative is Gödel implication, which is defined as: A B (A ≤ B) V B This gives a more intuitive truth table.
Fuzzy Inference (3) Mamdani inference derives a single crisp value by applying fuzzy rules to a set of crisp input values. Step 1: Fuzzify the inputs. Step 2: Apply the inputs to the antecedents of the fuzzy rules to obtain a set of fuzzy outputs. Step 3: Convert the fuzzy outputs to a single crisp value using defuzzification .
Fuzzy Rules A fuzzy rule takes the following form: IF A op x then B = y op is an operator such as >, < or =. For example: IF temperature > 50 then fan speed = fast IF height = tall then trouser length = long IF study time = short then grades = poor
Fuzzy Expert Systems A fuzzy expert system is built by creating a set of fuzzy rules, and applying fuzzy inference. In many ways this is more appropriate than standard expert systems since expert knowledge is not usually black and white but has elements of grey. The first stage in building a fuzzy expert system is choosing suitable linguistic variables. Rules are then generated based on the expert’s knowledge, using the linguistic variables.
Neuro-Fuzzy Systems A fuzzy neural network is usually a feed-forward network with five layers: Input layer – receives crisp inputs Fuzzy input membership functions Fuzzy rules Fuzzy output membership functions Output layer – outputs crisp values
Test Yourself Fuzzy logic is : a) Used to respond to questions in a humanlike way b) A new programming language used to program animation c) The result of fuzzy thinking d) A term that indicates logical values greater than one What is the form of Fuzzy logic? a) Two-valued logic b) Crisp set logic c) Many-valued logic d) Binary set logic The room temperature is hot. Here the hot (use of linguistic variable is used) can be represented by _______ a) Fuzzy Set b) Crisp Set c) Fuzzy & Crisp Set d) None of the mentioned The values of the set membership is represented by ___________ a) Discrete Set b) Degree of truth c) Probabilities d) Both Degree of truth & Probabilities The truth values of traditional set theory is ____________ and that of fuzzy set is __________ a) Either 0 or 1, between 0 & 1 b) Between 0 & 1, either 0 or 1 c) Between 0 & 1, between 0 & 1 d) Either 0 or 1, either 0 or 1
Answers Fuzzy logic is : a) Used to respond to questions in a humanlike way b) A new programming language used to program animation c) The result of fuzzy thinking d) A term that indicates logical values greater than one What is the form of Fuzzy logic? a) Two-valued logic b) Crisp set logic c) Many-valued logic d) Binary set logic The room temperature is hot. Here the hot (use of linguistic variable is used) can be represented by _______ a) Fuzzy Set b) Crisp Set c) Fuzzy & Crisp Set d) None of the mentioned The values of the set membership is represented by ___________ a) Discrete Set b) Degree of truth c) Probabilities d) Both Degree of truth & Probabilities The truth values of traditional set theory is ____________ and that of fuzzy set is __________ a) Either 0 or 1, between 0 & 1 b) Between 0 & 1, either 0 or 1 c) Between 0 & 1, between 0 & 1 d) Either 0 or 1, either 0 or 1