Alexander Mathews Yuki Osada Perry Brown 1 Fuzzy Logic.

Slides:



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

 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Fuzzy Expert System  An expert might say, “ Though the power transformer is slightly overloaded, I can keep this load for a while”.  Another expert.
AI – CS364 Fuzzy Logic Fuzzy Logic 3 03 rd October 2006 Dr Bogdan L. Vrusias
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
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.
Approximate Reasoning 1 Expert Systems Dr. Samy Abu Nasser.
Lecture 07 Fuzzy Reasoning
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.
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).
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 What is Fuzzy Logic? HOW DOES FL WORK? Differences between Classical set (crisps) and Fuzzy set theory Example 1 Example 2 Classifying Houses.
Introduction to Fuzzy Logic Control
Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems Introduction to Rule-Based Systems, Expert Systems, Fuzzy Systems (sections 2.7, 2.8,
The Equivalence between fuzzy logic controllers and PD controllers for single input systems Professor: Chi-Jo Wang Student: Nguyen Thi Hoai Nam Student.
Fuzzy Logic BY: ASHLEY REYNOLDS. Where Fuzzy Logic Falls in the Field of Mathematics  Mathematics  Mathematical Logic and Foundations  Fuzzy Logic.
BEE4333 Intelligent Control
Rule-Based Fuzzy Model. In rule-based fuzzy systems, the relationships between variables are represented by means of fuzzy if–then rules of the following.
Fuzzy Logic. Priyaranga Koswatta Mundhenk and Itti, 2007.
Fuzzy Logic Jan Jantzen Logic is based on set theory, and when we switch to fuzzy sets it will have an effect on.
Neuro-fuzzy Systems Xinbo Gao School of Electronic Engineering Xidian University 2004,10.
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.
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)
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Mark shelton | merrick cloete saman majrouh | sahithi jadav.
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
Fuzzy Inference (Expert) System
Mobile Robot Navigation Using Fuzzy logic Controller
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.
Fuzzy systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
1 Lecture 4 The Fuzzy Controller design. 2 By a fuzzy logic controller (FLC) we mean a control law that is described by a knowledge-based system consisting.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
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.
A Presentation on Adaptive Neuro-Fuzzy Inference System using Particle Swarm Optimization and it’s Application By Sumanta Kundu (En.R.No.
VIDYA PRATISHTHAN’S COLLEGE OF ENGINEERING, BARAMATI.
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.
Introduction to Fuzzy Logic and Fuzzy Systems
Artificial Intelligence CIS 342
Fuzzy Systems Michael J. Watts
FUZZY NEURAL NETWORKS TECHNIQUES AND THEIR APPLICATIONS
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Fuzzy Logic 11/6/2001.
Artificial Intelligence
Stanisław H. Żak School of Electrical and Computer Engineering
Fuzzy Logic and Fuzzy Sets
Artificial Intelligence and Adaptive Systems
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Dr. Unnikrishnan P.C. Professor, EEE
Lecture 5 Fuzzy expert systems: Fuzzy inference
Dr. Unnikrishnan P.C. Professor, EEE
Introduction to Fuzzy Set Theory
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

Alexander Mathews Yuki Osada Perry Brown 1 Fuzzy Logic

Outline 2 Fundamental fuzzy concepts Fuzzy propositional and predicate logic Fuzzification Defuzzification Fuzzy control systems Types of fuzzy algorithms Applications of fuzzy logic

Introduction 3 Fuzzy concepts first introduced by Zadeh in the 1960s and 70s Traditional computational logic and set theory is all about true or false zero or one in or out (in terms of set membership) black or white (no grey) Not the case with fuzzy logic and fuzzy sets!

Basic Concepts 4 Approximation (“granulation”) A colour can be described precisely using RGB values, or it can be approximately described as “red”, “blue”, etc. Degree (“graduation”) Two different colours may both be described as “red”, but one is considered to be more red than the other Fuzzy logic attempts to reflect the human way of thinking

Terminology 5 Fuzzy set A set X in which each element y has a grade of membership µ X (y) in the range 0 to 1, i.e. set membership may be partial e.g. if cold is a fuzzy set, exact temperature values might be mapped to the fuzzy set as follows: 15 degrees → 0.2 (slightly cold) 10 degrees → 0.5 (quite cold) 0 degrees → 1 (totally cold) Fuzzy relation Relationships can also be expressed on a scale of 0 to 1 e.g. degree of resemblance between two people

Terminology (cont’d) 6 Fuzzy variable Variable with (labels of) fuzzy sets as its values Linguistic variable Fuzzy variable with values that are words or sentences in a language e.g. variable colour with values red, blue, yellow, green… Linguistic hedge Term used as a modifier for basic terms in linguistic values e.g. words such as very, a bit, rather, somewhat, etc.

Formal Fuzzy Logic 7 Fuzzy logic can be seen as an extension of ordinary logic, where the main difference is that we use fuzzy sets for the membership of a variable We can have fuzzy propositional logic and fuzzy predicate logic Fuzzy logic can have many advantages over ordinary logic in areas like artificial intelligence where a simple true/false statement is insufficient

Traditional Logic 8 Propositional logic: Propositional logic is a formal system that uses true statements to form or prove other true statements There are two types of sentences: simple sentences and compound sentences Simple sentences are propositional constants; statements that are either true or false Compound sentences are formed from simpler sentences by using negations ¬, conjunctions ∧, disjunctions ∨, implications ⇒, reductions ⇐, and equivalences ⇔ Predicate logic: Onto propositional logic, this adds the ability to quantify variables, so we can manipulate statements about all or some things Two common quantifiers are the existential ∃ and universal ∀ quantifiers

Formal Fuzzy Logic 9 Fuzzy Propositional Logic Like ordinary propositional logic, we introduce propositional variables, truth- functional connectives, and a propositional constant 0 Some of these include: Monoidal t-norm-based propositional fuzzy logic Basic propositional fuzzy logic Łukasiewicz fuzzy logic Gödel fuzzy logic Product fuzzy logic Rational Pavelka logic Fuzzy Predicate Logic These extend fuzzy propositional logic by adding universal and existential quantifiers in a manner similar to the way that predicate logic is created from propositional logic

Simple Fuzzy Operators 10 As described by Zadeh (1973)… NOT X = 1 - µ X (y) e.g. 0.8 cold → (1 – 0.8) = 0.2 NOT cold X OR Y (union) = max( µ X (y), µ Y (y)) e.g. 0.8 cold, 0.5 rainy → 0.8 cold OR rainy X AND Y (intersection) = min( µ X (y), µ Y (y)) e.g. 0.9 hot, 0.7 humid → 0.7 hot AND humid

Alternative Interpretations of AND and OR 11 Zadeh’s definition of AND used the Gödel t-norm, but other definitions are possible using different t-norms Common examples: Product t-norm:µ X (y) * µ Y (y) e.g. 0.9 hot, 0.7 humid → 0.63 hot AND humid Lukasiewicz t-norm: max(µ X (y) + µ Y (y) - 1, 0) e.g. 0.9 hot, 0.7 humid → 0.6 hot AND humid Similar possibilities for OR using corresponding t-conorms: Product t-conorm:µ X (y) + µ Y (y) - µ X (y) * µ Y (y) e.g. 0.8 cold, 0.5 rainy → 0.9 cold OR rainy Lukasiewicz t-conorm: min(µ X (y) + µ Y (y), 1) e.g. 0.8 cold, 0.5 rainy → 1 cold OR rainy

Fuzzy System Overview 12 When making inferences, we want to clump the continuous numerical values into sets Unlike Boolean logic, fuzzy logic uses fuzzy sets rather than crisp sets to determine the membership of a variable This allows values to have a degree of membership with a set, which denotes the extent to which a proposition is true The membership function may be triangular, trapezoidal, Gaussian or any other shape

Fuzzification 13 To apply fuzzy inference, we need our input to be in linguistic values These linguistic values are represented by the degree of membership in the fuzzy sets The process of translating the measured numerical values into fuzzy linguistic values is called fuzzification In other words, fuzzification is where membership functions are applied, and the degree of membership is determined

Membership Functions 14 There are largely three types of fuzzifiers: singleton fuzzifier, Gaussian fuzzifier, and trapezoidal or triangular fuzzifier GaussianTrapezoidal

Defuzzification 15 Defuzzification is the process of producing a quantifiable result in fuzzy logic The fuzzy inference will output a fuzzy result, described in terms of degrees of membership of the fuzzy sets Defuzzification interprets the membership degrees in the fuzzy sets into a specific action or real-value

Methods of Defuzzification 16 There are many methods for defuzzification One of the more common types of defuzzification technique is the maximum defuzzification techniques. These select the output with the highest membership function They include: First of maximum Middle of maximum Last of maximum Mean of maxima Random choice of maximum

Methods of Defuzzification 17 Given the fuzzy output: The first of maximum, middle of maximum, and last of maximum would be -2, -5, and -8 respectively as seen in the diagram The mean would give the same result as middle unless there is more than one plateau with the maximum value Image Source: logic/examples.html?file=/products/demos/shipping/fuzzy/defuzzdm.html

Methods of Defuzzification 18 Two other common methods are: Centre of gravity: Calculates the centre of gravity for the area under the curve Bisector method: Finds the value where the area on one side of that value is equal to the area on the other side Image Source: logic/examples.html?file=/products/demos/shipping/fuzzy/defuzzdm.html

Fuzzy Control Systems 19 A simple example application: an automated cooling fan that can adjust its speed according to the room temperature Temperature values are mapped to the fuzzy sets cold, warm and hot based on the following mapping functions for each: Image:

Fuzzy Control Systems 20 The inference engine in a fuzzy system consists of linguistic rules The linguistic rules consist of two parts: an antecedent block (the conditions), which consists of the linguistic variables a consequent block (the output) Fuzzy algorithm Algorithm that includes at least some fuzzy instructions, such as conditional or unconditional action statements Fuzzy conditional statement (A → B) Conditional statement in which A and/or B are fuzzy sets e.g. IF temperature is hot THEN fan speed is high Defined in terms of a fuzzy relation between the respective “universes of discourse” of A and B (compositional rule of inference) e.g. relation between temperature groupings and fan speeds

A Simple Fuzzy Algorithm Example 21 The algorithm used by our cooling fan controller might look like this: WHILE fan is switched on IF cold THEN stop fan IF warm AND NOT cooling down THEN increase fan speed slightly IF hot THEN increase fan speed substantially etc…

Types of Fuzzy Algorithms 22 Definitional algorithms Define a fuzzy set or calculate grades of membership of elements, e.g.: handwritten characters (what could an “M” look like?) measures of proximity (what counts as close?) Generational algorithms Generate a fuzzy set e.g. an arbitrary sentence in some natural language that needs to be grammatically valid according to various rules

Types of Fuzzy Algorithms (cont’d) 23 Relational algorithms Describe a relation between fuzzy variables Can be used to approximately describe behaviour of a system e.g. in our cooling fan example, describing the relation between the input variable (temperature) and output variable (fan speed) Decisional algorithms Approximately describe a strategy for performing some task, e.g.: approaching a set of traffic lights (should we slow down, stop or proceed at current speed?) navigating a robot towards a goal while avoiding obstacles

Applications of Fuzzy Logic 24 Control Systems Consumer systems automatic transmissions washing machines camera autofocus Industrial systems aircraft engines power supply regulation steam turbine start-up A commercial tool for building embedded fuzzy systems Image source:

Applications of Fuzzy Logic 25 Artificial Intelligence Robot motion planning Image segmentation Medical diagnosis systems

Fuzzy Logic Control Systems 26 Why use fuzzy logic for control? Simple systems: Low development costs Low maintenance costs Complex systems: Reduced run-time Reduced search space for efficient optimisation How can fuzzy logic achieve this?

Fuzzy Control System Development 27 Fuzzy logic: Is used to quickly translate from expert knowledge to code Expert knowledge reduces the search space when optimising the system

Fuzzy Control System Development Identify performance measure 2. Select input/output variables 3. Determine fuzzy rules Talking to an expert Data mining 4. Decide on membership functions for the fuzzy variables 5. Tune membership functions and/or rules

Aircraft Engine Control 29 Engine: General Electric's LV100 Turboshaft engine Existing solution: 10 low level controllers Only one controller runs at a time The controller is selected based on current conditions (a crisp mode selector) Problem: Abrupt changes when switching controllers Poor fuel economy High peak operating temperature Top Image Source: Bonissone et al Bottom Image Source: An AGT1500 Turboshaft engine being installed into a tank. The AGT1500 is the predecessor to the LV100. Schematic of the LV100 engine.

Engine Control: Solution 30 Replace the crisp mode selector with: A Fuzzy Supervisor 24 operation modes → 24 operation rules Blend outputs of existing controllers Result (from simulation): Significantly reduced fuel consumption Did not achieve desired reduction in operating temperature

Engine Control: Solution 2 31 Hierarchical fuzzy control system Use a fuzzy supervisor Replace the low level controllers with fuzzy controllers 6 fuzzy controllers used, 49 rules each Controllers govern: fuel flow, turbine nozzle area Fuzzy controllers act on small time scales Fuzzy supervisor acts on large time scales

Engine Control: Results 32 Reduced fuel consumption Lower maximum temperature Increased component life Improved performance Development time was ¼ of the time taken to develop the existing control system

Image Segmentation 33 Decompose an image into regions Regions have similar properties Colour, Texture Can be a clustering problem or a classification problem Top Image Source: Bottom Image Source: An example of image segmentation. The input image is on the left. The output image is on the right. An example of licence plate segmentation.

Neuro-Fuzzy Image Segmentation Decide on the number of fuzzy variables (number of regions) 2. Calculate the grey-scale histogram 3. Apply fuzzy c-Means (FCM) to get membership functions a) a grey scale histogram b) three fuzzy membership functions for (a) Image Source: Boskovitz & Guterman 2002

Neuro-Fuzzy Image Segmentation Pass the MxN image through an LP with layers of size MxN 5. Fuzzify the pixels in the output layer The structure of the neural network. Circles are neurons. Arrows are connections between neurons. Image Source: Boskovitz & Guterman 2002

Neuro-Fuzzy Image Segmentation Calculate the total fuzziness (entropy) of the output 7. Using fuzzy entropy as the error function, train the MLP with back-propagation b) three fuzzy membership functions for histogram (a) d) the fuzziness of each possible grey-scale value Image Source: Boskovitz & Guterman 2002

Neuro-Fuzzy Image Segmentation 37 Image Source: Boskovitz & Guterman 2002 Input panda image Output panda image

References – General 38 Zadeh, L.A., “Outline of a New Approach to the Analysis of Complex Systems and Decision Processes”, Systems, Man, and Cybernetics, IEEE Transactions on, 1973 Volume 3, Number 1, M. Navara. (2007). Triangular norms and conorms – Scholarpedia [Online]. Available: Unknown author. (2010). Fuzzy Logic Example [Online]. Available:

References – Applications 39 Bonissone, P.P. and Badami, V. and Chiang, K.H. and Khedkar, P.S. and Marcelle, K.W. and Schutten, M.J., ”Industrial applications of fuzzy logic at General Electric”, Proceedings of the IEEE, 1995, Volume 83, Boskovitz, V. and Guterman, H., “An adaptive neuro-fuzzy system for automatic image segmentation and edge detection”, Fuzzy Systems, IEEE Transactions on, 2002, Volume 10, Klement, E.P. and Slany, W., “Fuzzy logic in artificial intelligence”, Christian Doppler Laboratory Technical Reports, 1994, Volume 67