Fuzzy Sets. Fuzzy Sets and Fuzzy Logic. Fuzzy Properties. Fuzzy Measures: Example. Properties are represented by fuzzy sets. Properties might be like:

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

This time: Fuzzy Logic and Fuzzy Inference

This time: Fuzzy Logic and Fuzzy Inference

What Is Fuzzy Logic?

Reasoning about uncertainty

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

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

Uncertain System Control: An Engineering Approach

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

Today s s lecture. Lecture 16: Uncertainty - 6. Dempster-Shafer Theory. Alternative Models of Dealing with Uncertainty Information/Evidence

A Powerful way to analyze and control a complex system

Financial Informatics XI: Fuzzy Rule-based Systems

Reasoning Systems Chapter 4. Dr Ahmed Rafea

Handling Uncertainty using FUZZY LOGIC

Fuzzy Logic. By Clifton F. Cobb

MODELLING THERMAL COMFORT FOR TROPICS USING FUZZY LOGIC

Intelligent Systems and Control Prof. Laxmidhar Behera Indian Institute of Technology, Kanpur

APPLICATION OF AIR HEATER AND COOLER USING FUZZY LOGIC CONTROL SYSTEM

MODULE- 07 : FLUIDICS AND FLUID LOGIC

Chapter 11 Fuzzy Logic Control

Fuzzy Systems. Introduction

Financial Informatics IX: Fuzzy Sets

3. DIFFERENT MODEL TYPES

Fuzzy expert systems

To Infinity and Beyond

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

Fuzzy Systems. Introduction

Chapter 1 Review of Equations and Inequalities

CS 354R: Computer Game Technology

Temperature. Grade Level: 1-3

CHAPTER 5 FUZZY LOGIC FOR ATTITUDE CONTROL

Applied Logic. Lecture 3 part 1 - Fuzzy logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Neural Networks & Fuzzy Logic

Preview. Heat Section 1. Section 1 Temperature and Thermal Equilibrium. Section 2 Defining Heat. Section 3 Changes in Temperature and Phase

Fuzzy Logic Notes. Course: Khurshid Ahmad 2010 Typset: Cathal Ormond

Fuzzy Control Systems Process of Fuzzy Control

Natural deduction for truth-functional logic

The Methods of Science

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

Thermodynamics: Entropy

Fuzzy Expert Systems Lecture 3 (Fuzzy Logic)

35 Chapter CHAPTER 4: Mathematical Proof

What does temperature have to do with energy? What three temperature scales are commonly used? What makes things feel hot or cold?

Arithmetic and Geometric Progressions

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

MAC-CPTM Situations Project

Neural Networks & Fuzzy Logic. Introduction

6. Conditional derivations

Putting the Shot. 3. Now describe the forces that you exerted on the weight. Is it constant? Explain why you think so.

Temperature and Heat. Chapter 10. Table of Contents. Chapter 10. Chapter 10. Bellringer. Objectives. Chapter 10. Chapter 10

Fuzzy Expert Systems Lecture 3 (Fuzzy Logic)

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

9. Fuzzy Control Systems

So, we can say that fuzzy proposition is a statement p which acquires a fuzzy truth value T(p) ranges from(0 to1).

6. Conditional derivations

Deep Algebra Projects: Algebra 1 / Algebra 2 Go with the Flow

Rule-Based Fuzzy Model

Reasoning in Uncertain Situations

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15

Experimental Uncertainties

Heat and Temperature

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Inverse Functions

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

NAME Activity Circuit Simplification: Boolean Algebra

Islamic University of Gaza Electrical Engineering Department EELE 6306 Fuzzy Logic Control System Med term Exam October 30, 2011

Reglerteknik, TNG028. Lecture 1. Anna Lombardi

The Inductive Proof Template

3 Tools and Measurement

Sequences and Series

Application of Fuzzy Logic and Uncertainties Measurement in Environmental Information Systems

CMA Geometry Unit 1 Introduction Week 2 Notes

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

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

The Problem. Sustainability is an abstract concept that cannot be directly measured.

Properties of Sequences

When any two whole numbers are added we always get another whole number

CS 220: Discrete Structures and their Applications. Propositional Logic Sections in zybooks

Chapter 13 Uncertainty

RULE-BASED FUZZY EXPERT SYSTEMS

To Infinity and Beyond. To Infinity and Beyond 1/43

SAMPLE ASSESSMENT TASKS PHYSICS ATAR YEAR 11

[read Chapter 2] [suggested exercises 2.2, 2.3, 2.4, 2.6] General-to-specific ordering over hypotheses

Chapter 3. Introduction to Linear Correlation and Regression Part 3

Incompatibility Paradoxes

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

Systems of Linear Equations and Inequalities

Introduction to fuzzy logic

Physics 2B Chapter 17 Notes - Conduction Spring 2018

3.3 Acceleration An example of acceleration Definition of acceleration Acceleration Figure 3.16: Steeper hills

Notes for Lecture 21

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Intro to Learning Theory Date: 12/8/16

International Conference on Climate Change natural greenhouse effect radiative transfer model

Introducing Proof 1. hsn.uk.net. Contents

3 The language of proof

In this lesson about Displacement, Velocity and Time, you will:

Building a Computer Adder

Computational Tasks and Models

Topic 1: Propositional logic

2018 Predictive Analytics Symposium Session 18: Can You Hear Me Now: Getting Clarity with Fuzzy Logic

Math Real Analysis

Transcription:

Fuzzy Sets and Fuzzy Logic Another approach to reasoning about uncertainty, with a different mathematical basis, is fuzzy logic. Brief history: Standard classical (Boolean) logic (Aristotle, c 50BC; Boole, 1854) uses two possible truth values: A statement may be true (truth value 1) or false (truth value 0) Łukasiewicz logic (early 20 th century): three truth values: 2, 1 and 0 represent, respectively, true, false and unknown or irrelevant This was further extended to an infinite-valued logic, where real numbers in the range [0,1] represent varying degrees of truth. Only of academic interest, until... Lotfi Zadeh (1965) introduced fuzzy set theory and fuzzy logic, and promoted these as a way of reasoning about uncertainty in computer systems. Fuzzy Sets Properties are represented by fuzzy sets. Properties might be like: temperature (fuzzy sets: hot, warm, cool, cold) height (fuzzy sets: short, average, tall) degree of danger (fuzzy sets: safe, dangerous) In the context of a rule-based system, we might imagine asking Is the water cold? (Yes/No), Or we might offer a menu of temperature choices How is the water? (hot, warm, cool, cold) University of Stirling 2016 CSC9UT6 1 University of Stirling 2016 CSCU9T6 2 Fuzzy Properties Fuzzy set theory and fuzzy logic provide a precise, mathematical basis for reasoning about fuzzy sets and fuzzy properties. In classical, 2-valued logic, we would have to distinguish cold from not cold by fixing a strict changeover point. We might decide that anything below 8 degrees Celsius is cold, and anything else is not cold. This can be rather arbitrary. Fuzzy logic lets us avoid having to choose an arbitrary changeover point essentially by allowing a whole spectrum of degrees of coldness. A set of temperatures like hot or cold is represented by a function. Given a temperature, the function will return a number representing the degree of membership of that set. This number is called a fuzzy measure. University of Stirling 2016 CSCU9T6 3 Fuzzy Measures: Example This example shows some fuzzy measures for the set cold: Temp Fuzzy measure -273 1 (cold) -40 1 (cold) 0 0.9 (not quite cold) 5 0.7 (on the cold side) 10 0.3 (a bit cold) 15 0.1 (barely cold) 100 0 (not cold) 1000 0 (not cold) University of Stirling 2016 CSCU9T6 4

Fuzzy Measures The basis of the idea of coldness may be how people use the word cold. Perhaps 30% of people think that 10 degrees C is cold (function value 0.3), and 90% think that 0 degrees C is cold (function value 0.9). Also it may depend on the context. In terms of the weather, cold means one thing. In terms of the temperature of the coolant in a nuclear reactor cold may mean something else, so we would need to have a cold function appropriate to our context. Fuzzy Sets Fuzzy sets may be thought of as tables of values (as with cold above), but often they are concerned with measurements that are made on a continuous scale. So a fuzzy set is represented by a graph the graph of the function which calculates, for each measurement value, the corresponding degree (in the range 0 to 1) to which the fuzzy property holds. The opposite of fuzzy is crisp. Crisp values are exact measurements (for example, the temperature recorded by a thermometer). The graph of a fuzzy set shows how the crisp values (on the x-axis) are assigned a fuzzy measure (on the y-axis) showing their degree of membership of the set. University of Stirling 2016 CSCU9T6 5 University of Stirling 2016 CSCUT6 6 Fuzzy Sets Tallness may be represented in such a way, perhaps via a graph like this: Fuzzy Sets (2) Here is a different graph showing three fuzzy sets. Notice the overlaps between cold and warm, and between warm and hot. 80 degrees is hot (0.5) and also warm (0.2). University of Stirling 2016 CSCU9T6 7 University of Stirling 2016 CSCU9T6 8

Fuzzy Sets v. Probabilities The values attached to properties in fuzzy logic are in some ways like probabilities, but it is clearly not probabilities that we are dealing with here. We may know Jack's height exactly. The assertion Jack is tall (0.75) measures how well Jack s height matches the sense of the word tall. On the other hand, the probability that Jack is tall is 0.75 would normally be used in a situation where we don't actually know Jack's height. Fuzzy Sets in RBS The benefit of all this is that the rules of an RBS can use (for example) the idea of coldness, rather than arbitrary changeover points involving specific values of temperature. The most successful applications of fuzzy logic have been in automatic control systems (e.g., washing machines, air conditioners, high-end cameras...) The benefits include: Rules in fuzzy logic are clearer and simpler to understand. Fuzzy logic controllers can be more efficient and give smoother operation (e.g. Fuzzy air conditioner control vs traditional thermostat) Our next example looks at a fuzzy logic controller for an automobile cruise control system... University of Stirling 2016 CSCU9T6 9 University of Stirling 2016 CSC9UT6 10 Fuzzy Sets and Fuzzy Logic (Example) Car cruise control. The driver selects a desired speed, and the control system is to maintain the speed by adjusting the throttle. E.g. see a video at http://www.youtube.com/watch?v=wplv2-oqqwg The system can measure two things: Speed error (difference between actual speed and required speed). Acceleration We shall have fuzzy sets associated with these: Speed Error Negative (SENeg) Speed Error Zero (SEZero) Speed Error Positive (SEPos) University of Stirling 2016 CSCU9T6 11 And Cruise Control Acceleration Negative (ANeg) Acceleration Zero (AZero) Acceleration Positive (APos) And the system will exercise control over the throttle, with levels of throttle change represented by fuzzy sets: Throttle Reduce High Amount (RH) Throttle Reduce Small Amount (RS) Throttle Constant (C) Throttle Increase Small Amount (IS) Throttle Increase High Amount (IH) University of Stirling 2016 CSCU9T6 12

Speed Error: Negative (SENeg) Zero (SEZero) Positive (SEPos) Acceleration: Negative (ANeg) Zero (AZero) Positive (APos) Cruise Control Fuzzy Sets Throttle: Reduce High Amount (RH) Reduce Small Amount (RS) Constant (C) Increase Small Amount (IS) Increase High Amount (IH) Cruise Control Fuzzy Sets (2) University of Stirling 2016 CSCU9T6 13 University of Stirling 2016 CSCU9T6 14 Cruise Control Rules IF SEZero AND AZero THEN C IF SEZero AND APos THEN RS IF SEZero AND ANeg THEN IS IF SENeg AND AZero THEN IS IF SENeg AND APos THEN C IF SENeg AND ANeg THEN IH IF SEPos AND AZero THEN RS IF SEPos AND APos THEN RH IF SEPos AND ANeg THEN C Fuzzy Logic The cruise control system has exact (crisp) values for the speed error and the acceleration. Let s say the speed error is 0 and the acceleration is 8. Inspection of our fuzzy set graphs then yields fuzzy values: SEZero: 1.0 AZero: 0.2 APos: 0.6 (other fuzzy properties have value zero). Which of our rules are applicable? Just those whose antecedents (IF parts) involve only these three properties: IF SEZero AND AZero THEN C IF SEZero AND APos THEN RS University of Stirling 2016 CSCU9T6 15 University of Stirling 2016 CSCU9T6 16

Logical Combinations In rules we may have AND combinations or OR combinations. In fuzzy logic we calculate values like this: value(p AND Q) = min(value(p), value(q)) value(p OR Q) = max(value(p), value(q)) For AND, take the smaller value, For OR, take the larger value. So in our example we calculate fuzzy values: SEZero AND AZero has value min(1,0.2), i.e. 0.2 SEZero AND APos has value min(1,0.6), i.e. 0.6 Cruise Control Rules IF SEZero AND AZero THEN C IF SEZero AND APos THEN RS IF SEZero AND ANeg THEN IS IF SENeg AND AZero THEN IS IF SENeg AND APos THEN C IF SENeg AND ANeg THEN IH IF SEPos AND AZero THEN RS IF SEPos AND APos THEN RH IF SEPos AND ANeg THEN C University of Stirling 2016 CSCU9T6 17 University of Stirling 2016 CSCU9T6 18 Application of Rules When we apply a rule, the fuzzy value for the antecedent is taken as the fuzzy value of the conclusion. So we get values: C: 0.2 RS: 0.6 Defuzzification Consider the two fuzzy sets C and RS. In the diagram, the shaded areas are cut off at the levels 0.2 and 0.6. These represent the strength of each conclusion. The throttle setting required is found by calculating the centre of gravity of the two shaded areas taken together. This suggests stronger support for RS (i.e. the action of reducing the throttle setting), but how can we decide exactly what action to take? We need an exact ( crisp ) value for the change to be made to the throttle setting. To get this we use a process known as defuzzification... University of Stirling 2016 CSCU9T6 19 University of Stirling 2016 CSCU9T6 20

Defuzzification The centre of gravity (or centroid) is the point on the x- axis at which a vertical line can be drawn that slices the shaded area into two equal areas. The mathematics is standard (we do not explore it here!). In our example, the centroid is located at this x-value: (-10*8.4 + 0*3.6)/(8.4 + 3.6), i.e. -7.0 So the conclusion of our fuzzy reasoning process is that for the given values of the speed error and acceleration the throttle setting should be reduced by 7. University of Stirling 2016 CSCU9T6 21 Hedges There are some quite nice extensions to these ideas. In particular hedges. This means qualifying words like very, slightly, or somewhat. Let's imagine that we have a function hot which, when given a temperature, returns the degree of hotness. Then the function very_hot: very_hot(t) = (hot(t)) 2 will have the meaning suggested by the name. Similarly and not_hot(t) = 1 - hot(t) somewhat_hot(t) = hot(t) 0.5 University of Stirling 2016 CSCU9T6 22 Rules using Hedges Examples: IF Tree_distance is SOMEWHAT close AND Tree_angle is small_positive THEN Turn slightly left ------------------ IF Tree_distance is SOMEWHAT close AND Tree_angle is small_negative THEN Turn slightly right ------------------ IF Tree_distance is VERY close AND Tree_angle is zero THEN Brake hard University of Stirling 2016 CSCU9T6 23 Fuzzy Sets and Fuzzy Logic Fuzzy logic can get rather mathematical. When the mathematics takes over, intuitions may be lost. It has been argued that fuzzy logic does not correspond with the way that people think. But: it has been usefully applied, however, in situations where input is provided by sensors rather than people (e.g. Cameras, washing machines, climate control systems). Further reading: Fuzzy Logic in wikipedia (reasonably simple) http://videolectures.net/acai05_berthold_fl/ (starts simple!) University of Stirling 2016 CSCU9T6 24