What is Fuzzy Logic? Fuzzy logic is a tool for embedding human knowledge (experience, expertise, heuristics) Fuzzy Logic

Similar documents
Outline. Introduction, or what is fuzzy thinking? Fuzzy sets Linguistic variables and hedges Operations of fuzzy sets Fuzzy rules Summary.

Fuzzy Controller. Fuzzy Inference System. Basic Components of Fuzzy Inference System. Rule based system: Contains a set of fuzzy rules

Financial Informatics XI: Fuzzy Rule-based Systems

14.1 Systems of Linear Equations in Two Variables

1.5. Analyzing Graphs of Functions. The Graph of a Function. What you should learn. Why you should learn it. 54 Chapter 1 Functions and Their Graphs

2010/07/12. Content. Fuzzy? Oxford Dictionary: blurred, indistinct, confused, imprecisely defined

Speed (km/h) How can you determine the inverse of a function?

Models for Inexact Reasoning. Fuzzy Logic Lesson 8 Fuzzy Controllers. Master in Computational Logic Department of Artificial Intelligence

Unit 10 - Graphing Quadratic Functions

Fuzzy Rules and Fuzzy Reasoning (chapter 3)

= x. Algebra II Notes Quadratic Functions Unit Graphing Quadratic Functions. Math Background

MATH GRADE 8 UNIT 4 LINEAR RELATIONSHIPS EXERCISES

A Hybrid Approach For Air Conditioning Control System With Fuzzy Logic Controller

3.2 LOGARITHMIC FUNCTIONS AND THEIR GRAPHS

Essential Question How can you solve a nonlinear system of equations?

5. Zeros. We deduce that the graph crosses the x-axis at the points x = 0, 1, 2 and 4, and nowhere else. And that s exactly what we see in the graph.

ME 534. Mechanical Engineering University of Gaziantep. Dr. A. Tolga Bozdana Assistant Professor

Second-Order Linear Differential Equations C 2

A11.1 Areas under curves

Derivatives 2: The Derivative at a Point

This time: Fuzzy Logic and Fuzzy Inference

A Powerful way to analyze and control a complex system

Fuzzy Systems. Introduction

Uncertain System Control: An Engineering Approach

15.4 Equation of a Circle

Chapter Fair Game Review Find the missing value in the table. Big Ideas Math Blue 119

Algebra II Notes Unit Six: Polynomials Syllabus Objectives: 6.2 The student will simplify polynomial expressions.

Fuzzy Systems. Introduction

Strain Transformation and Rosette Gage Theory

Properties of Limits

Fuzzy Logic and Computing with Words. Ning Xiong. School of Innovation, Design, and Engineering Mälardalen University. Motivations

Content. Learning. Regression vs Classification. Regression a.k.a. function approximation and Classification a.k.a. pattern recognition

Lecture 13 - Handling Nonlinearity

FUZZY CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL

Chapter 3: Three faces of the derivative. Overview

2.3 Solving Absolute Value Inequalities

Exponential and Logarithmic Functions

LESSON #12 - FORMS OF A LINE COMMON CORE ALGEBRA II

Functions of Several Variables

10.2 Graphing Square Root Functions

10.3 Solving Nonlinear Systems of Equations

11.4 Polar Coordinates

This time: Fuzzy Logic and Fuzzy Inference

Introducing Instantaneous Rate of Change

Intro. ANN & Fuzzy Systems. Lec 34 Fuzzy Logic Control (II)

Fuzzy Systems, Modeling and Identification

Physics Gravitational force. 2. Strong or color force. 3. Electroweak force

3.1 Exponential Functions and Their Graphs

Chapter One. Chapter One

Chapter 18 Quadratic Function 2

LESSON #11 - FORMS OF A LINE COMMON CORE ALGEBRA II

APPLICATION OF AIR HEATER AND COOLER USING FUZZY LOGIC CONTROL SYSTEM

8.1 Exponents and Roots

Linear and Nonlinear Systems of Equations. The Method of Substitution. Equation 1 Equation 2. Check (2, 1) in Equation 1 and Equation 2: 2x y 5?

3.7 InveRSe FUnCTIOnS

4 The Cartesian Coordinate System- Pictures of Equations

Math 7/Unit 4 Practice Test: Patterns and Functions

Linear Equations and Arithmetic Sequences

OUTLINE. Introduction History and basic concepts. Fuzzy sets and fuzzy logic. Fuzzy clustering. Fuzzy inference. Fuzzy systems. Application examples

2.2 SEPARABLE VARIABLES

Quick Review 4.1 (For help, go to Sections 1.2, 2.1, 3.5, and 3.6.)

Regular Physics - Notes Ch. 1

Laurie s Notes. Overview of Section 3.5

EEE 8005 Student Directed Learning (SDL) Industrial Automation Fuzzy Logic

Differentiation and applications

Systems of Linear Equations: Solving by Graphing

Summary and Vocabulary

1. Radium has a half-life of 1600 years. How much radium will be left from a 1000-gram sample after 1600 years?

5.2 Solving Linear-Quadratic Systems

Handling Uncertainty using FUZZY LOGIC

8.4. If we let x denote the number of gallons pumped, then the price y in dollars can $ $1.70 $ $1.70 $ $1.70 $ $1.

3.1. Shape and Structure Forms of Quadratic Functions ESSENTIAL IDEAS TEXAS ESSENTIAL KNOWLEDGE AND SKILLS FOR MATHEMATICS 169A

2.5 CONTINUITY. a x. Notice that Definition l implicitly requires three things if f is continuous at a:

2-3. Linear Regression and Correlation. Vocabulary

Ready To Go On? Skills Intervention 5-1 Using Transformations to Graph Quadratic Functions

5.6. Differential equations

13.2 Exponential Growth Functions

Domain, Range, and End Behavior

10.4 Nonlinear Inequalities and Systems of Inequalities. OBJECTIVES 1 Graph a Nonlinear Inequality. 2 Graph a System of Nonlinear Inequalities.

13.2 Exponential Decay Functions

6.4 graphs OF logarithmic FUnCTIOnS

Content. Learning Goal. Regression vs Classification. Support Vector Machines. SVM Context

1.2 Functions and Their Properties PreCalculus

The Force Table Introduction: Theory:

Unit 12 Study Notes 1 Systems of Equations

CS344: Introduction to Artificial Intelligence (associated lab: CS386)

3.3 Logarithmic Functions and Their Graphs

Neural Networks & Fuzzy Logic

CCSSM Algebra: Equations

5.3 Modelling Periodic Behaviour

3.7 Linear and Quadratic Models

Algebra I. Slide 1 / 176 Slide 2 / 176. Slide 3 / 176. Slide 4 / 176. Slide 6 / 176. Slide 5 / 176. System of Linear Equations.

Introduction to Vector Spaces Linear Algebra, Spring 2011

13.2 Exponential Decay Functions

Cartesian coordinates in space (Sect. 12.1).

One of the most common applications of Calculus involves determining maximum or minimum values.

Conic Sections CHAPTER OUTLINE. The Circle Ellipses and Hyperbolas Second-Degree Inequalities and Nonlinear Systems FIGURE 1

Where are we? Operations on fuzzy sets (cont.) Fuzzy Logic. Motivation. Crisp and fuzzy sets. Examples

UNIT 6 DESCRIBING DATA Lesson 2: Working with Two Variables. Instruction. Guided Practice Example 1

2.3 Solving Absolute Value Inequalities

Transcription:

Fuzz Logic Andrew Kusiak 239 Seamans Center Iowa Cit, IA 52242 527 andrew-kusiak@uiowa.edu http://www.icaen.uiowa.edu/~ankusiak (Based on the material provided b Professor V. Kecman) What is Fuzz Logic? Fuzz logic is a tool for embedding human knowledge (eperience, epertise, heuristics) Wh Fuzz Logic? Human knowledge is fuzz: epressed in fuzz linguistic terms, e.g., oung, old, large, cheap. Temperature is epressed as cold, warm or hot. No quantitative meaning. Fuzz Logic Fuzz logic ma be viewed as a bridge over the ecessivel wide gap between the precision of classical crisp logic and the imprecision of both the real world and its human interpretation Paraphrasing L. Zadeh Fuzz Logic Fuzz logic attempts to model the wa of reasoning of the human brain. Almost all of human eperience can be epressed in the form of the IF -THEN rules. Human reasoning is pervasivel approimate, non-quantitative, linguistic, and dispositional (meaning, usuall qualified). The World is Not Binar! Gradual transitions and ambiguities at the boundaries Good, Da, Young, Health, YES, True, Happ, Tall,, Bad, Night, Old, Ill NO False, Sad, Short,,

When and Wh to Appl FL? Human knowledge is available Mathematical model is unknown or impossible to obtain Process substantiall nonlinear Lack of precise sensor information When and Wh to Appl FL? At higher levels of hierarchical control sstems In decision making processes How to Transfer Human Knowledge Into the Model? Knowledge must be structured. Possible shortcomings: Knowledge is subjective Eperts ma bounce between etreme points of view: Have problems with structuring the knowledge, or Too aware in his/hers epertise, or Tend to hide knowledge, or... Solution: Find a good epert. Fuzz Sets vs Crisp Sets Crisp Sets Fuzz Sets Fuzz Sets vs Crisp Sets Crisp Sets Fuzz Sets Modeling or Approimating a Function: Curve or Surface Fitting m m Venn Diagrams µ - membership degree, possibilit distribution, grade of belonging Names used in other disciplines: regression (L or NL), estimation, identification, filtering

Modeling a Function Standard mathematical approach of curve fitting (more or less satisfactor fit) Modeling a Function Curve fitting b using fuzz rules (patches) Surface approimation for 2 inputs or hper-surface (3 or more inputs) Modeling a Function Small number of rules - Large patches or rough approimation More rules - more smaller patches and better approimation What is the origin of the patches and how do the work? Consider modeling two different functions b fuzz rules Eample Eample Less rules decreases the approimation accurac. An increase in a number of rules increases the precision at the cost of a computation time needed to process these rules. This is the most classical soft computing dilemma - A trade-off between the imprecision and uncertaint on one hand and low solution cost, tractabilit and robustness on the other. The appropriate rules for the two functions are: Eample IF is low THEN is high. IF is low THEN is high. IF is medium THEN is low. IF is medium THEN is medium. IF is large THEN is high. IF is large THEN is low.

Eample These rules define three large rectangular patches that cover the functions. The are shown in the net slide together with two possible approimators for each function. Eample 2 Modeling two different functions b fuzz rules Eample 2 Humans do not (or onl rarel) think in terms of nonlinear functions. Humans do not draw these functions in their mind. We neither tr to see them as geometrical artifacts. The two original functions (solid lines in both graphs) covered b three patches produced b IF-THEN rules and modeled b two possible approimators (dashed and dotted curves). In general, we do not process geometrical figures, curves, surfaces or hpersurfaces while performing some tasks or epressing our knowledge. Eample 2 Eample 2 Car Eample Even more, our epertise or understanding of some functional dependencies is ver often not a structured piece of knowledge at all. We tpicall perform comple tasks without being able to epress how the are eecuted. Eplain to our colleague in the form of IF- THEN rules how to ride a bike. The steps in fuzz modeling are alwas the same. i) Define the variables of relevance, interest or importance: In engineering we use to call them input and output variables ii) Define the subsets intervals: Small - medium, or negative - positive, or Left - right (labels are variables dependant)

Car Eample Car Eample Car Eample iii) Choose the shapes and the positions of fuzz subsets, i.e., Membership functions, i.e., attributes iv) Set the rule form, i.e., IF - THEN Rules INPUTS: D = DISTANCE, v = SPEED OUTPUT: B = BRAKING FORCE D B D B v v) Perform computations and (if needed) tune (learn, adjust, adapt) the positions and the shapes of both the input and the output attributes of the model v Analze the rules for some given distance D and for different velocit v, i.e., B = f(v) Car Eample Velocit Low High Small High High Low Car Eample The fuzz patch High Low Car Eample The fuzz patches 2 (km/h) IF the Velocit is Low, THEN the is Small IF the Velocit is, THEN the is IF the Velocit is High THEN the is High, 2 Small High Velocit 2 Small High Velocit

The Fuzz Patches Define the Function High Low Car Eample The fuzz patches Note the overlapping of fuzz subsets that leads to a smooth approimation 2 of the function between the Small High Velocit and Braking Force Velocit Car Eample The Fuzz Patches Define the Function High Low 2 Small High Three possible dependencies between the Velocit and Breaking force. Each of us drives differentl Velocit FUNCTIONAL DEPENDENCE OF THE VARIABLES SURFACE OF KNOWLEDGE Fuzz Control of the Distance Between Two Cars Visualization of 2 INPUTS: D and v, and OUTPUT B is possible. For more inputs everthing remains the same but visualization is not possible. BrakingForce 9 8 7 6 5 4 3 2 2 5 Speed 5 8 6 4 Distance 2 Room Temperature Eample: Slow Eample: Room Temperature Slow Eample: Room Temperature Slow 3 ( o C) 3 ( o C) If Room Temperature is Cold then is Slow 3 ( o C) If Room Temperature is Cold then is Slow If Room Temperature is Warm then is

Eample: Room Temperature Slow Slow Eample: The fuzz patches Slow Eample: The fuzz patches 3 ( o C) If Room Temperature is Cold then is Slow If Room Temperature is Warm then is If Room Temperature is Hot then is 3 ( o C) Room Temperature Room Temperature 3 ( o C) Slow Note the overlapping of fuzz subsets leads to a smooth approimation of the function between the and Temperature Eample: 3 ( Cold o C) Warm Hot The fuzz patches Room Temperature There must be some overlapping of the input fuzz subsets (membership or characteristic functions) if we want to obtain a smooth model O U T P U T VL L M S VS 2 8 6 4 2 I N P U T Eample: VS S M L VL 2 4 6 8 2 If there was no overlapping one obtains the stepwise function as shown net There must be some overlapping of the input fuzz subsets (membership or characteristic functions) if we want to obtain a smooth model O U T P U T VB B M S VS 2 8 6 4 2 Eample: VS S M B VB 2 4 6 8 2 I N P U T

Output Computation: Fuzzification, Inference and Defuzzifaction Room Temperature Slow 22 3 ( o C) R: If Room Temperature is Cold Then is Slow R2: If Room Temperature is Warm Then is R3: If Room Temperature is Hot Then is Eample: After the fuzz modeling is done there is an operational phase: Compute the fan speed when the room temperature = 22 o C NOTE: 22 o C belongs to the subsets Warm and Hot.6 Fuzzification and Inference Room Temperature Slow 22 3 ( o C) If Room Temperature is Cold Then is Slow If Room Temperature is Warm Then is If Room Temperature is Hot Then is Fuzzification and Inference Room Temperature.6.3 Slow 22 3 ( o C) If Room Temperature is Cold then is Slow If Room Temperature is Warm then is If Room Temperature is Hot then is Fuzzification and Inference Room Temperature.6.3 3 ( o C) 22 If Room Temperature is Cold then is Slow If Room Temperature is Warm then is If Room Temperature is Hot then is Slow WHAT IS THE OUTPUT VALUE? Defuzzification 6 The result of the fuzz inference is a fuzz subset composed of the slices of fan speed: (blue) and (red) How to find a crisp (useful in the real world application) value? One of several methods used to obtain a crisp output value is the center of area formula

Eample: Vehicle Turning Problem Generic fuzz logic controller - Developed in Matlab - User friendl - Multiple inputs Man other commercial applications are possible Configuration of the Vehicle Turning Problem Finish θ = Car angle (INPUT ) d = Distance from center line (INPUT 2) φ ma = π/4: Upper bound of steering angle (OUTPUT) v =. m/s d Start Conclusions Fuzz logic can be implemented wherever there is structured human knowledge, epertise, heuristics, eperience. Fuzz logic is not needed whenever there is an analtical closed-form model that, using a reasonable number of equations, can solve a problem in a reasonable time, at the reasonable costs and with higher accurac. Conclusions Finding good (accountable) epert Right choice of the variables Increasing the number of inputs, as well as the number of fuzz subsets per input variable, the number of rules increases eponentiall (curse of dimensionalit) Good news is that there are plent of real life problems and situations that can be solved with small number of rules onl