Fuzzy If-Then Rules. Fuzzy If-Then Rules. Adnan Yazıcı

Similar documents
Fuzzy if-then rules fuzzy database modeling

CHAPTER 3 FUZZY INFERENCE SYSTEM

CHAPTER 5 FUZZY LOGIC CONTROL

Introduction 3 Fuzzy Inference. Aleksandar Rakić Contents

MODELING FOR RESIDUAL STRESS, SURFACE ROUGHNESS AND TOOL WEAR USING AN ADAPTIVE NEURO FUZZY INFERENCE SYSTEM

Background Fuzzy control enables noncontrol-specialists. A fuzzy controller works with verbal rules rather than mathematical relationships.

Chapter 4 Fuzzy Logic

ARTIFICIAL INTELLIGENCE. Uncertainty: fuzzy systems

7. Decision Making

Why Fuzzy Fuzzy Logic and Sets Fuzzy Reasoning. DKS - Module 7. Why fuzzy thinking?

FUZZY INFERENCE SYSTEMS

CHAPTER 4 FREQUENCY STABILIZATION USING FUZZY LOGIC CONTROLLER

Chapter 7 Fuzzy Logic Controller

FUZZY LOGIC TECHNIQUES. on random processes. In such situations, fuzzy logic exhibits immense potential for

What is all the Fuzz about?

CHAPTER 3 ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM

Unit V. Neural Fuzzy System

Introduction to Fuzzy Logic and Fuzzy Systems Adel Nadjaran Toosi

Speed regulation in fan rotation using fuzzy inference system

Fuzzy Systems (1/2) Francesco Masulli

Dinner for Two, Reprise

Why Fuzzy? Definitions Bit of History Component of a fuzzy system Fuzzy Applications Fuzzy Sets Fuzzy Boundaries Fuzzy Representation

Final Exam. Controller, F. Expert Sys.., Solving F. Ineq.} {Hopefield, SVM, Comptetive Learning,

Machine Learning & Statistical Models

Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Case study Summary

FUZZY INFERENCE. Siti Zaiton Mohd Hashim, PhD

Lecture notes. Com Page 1

Neural Networks Lesson 9 - Fuzzy Logic

What is all the Fuzz about?

Fuzzy logic controllers

A Brief Idea on Fuzzy and Crisp Sets

ARTIFICIAL INTELLIGENCE - FUZZY LOGIC SYSTEMS

Fuzzy Expert Systems Lecture 8 (Fuzzy Systems)

CHAPTER 3 FUZZY RULE BASED MODEL FOR FAULT DIAGNOSIS

Fuzzy rule-based decision making model for classification of aquaculture farms

Fuzzy Set, Fuzzy Logic, and its Applications

Introduction to Fuzzy Logic. IJCAI2018 Tutorial

Fuzzy Reasoning. Linguistic Variables

Fuzzy Logic. Sourabh Kothari. Asst. Prof. Department of Electrical Engg. Presentation By

Aircraft Landing Control Using Fuzzy Logic and Neural Networks

* The terms used for grading are: - bad - good

Introduction. Aleksandar Rakić Contents

Introduction to Intelligent Control Part 2

A New Fuzzy Neural System with Applications

Fuzzy Logic Controller

COSC 6397 Big Data Analytics. Fuzzy Clustering. Some slides based on a lecture by Prof. Shishir Shah. Edgar Gabriel Spring 2015.

Figure 2-1: Membership Functions for the Set of All Numbers (N = Negative, P = Positive, L = Large, M = Medium, S = Small)

Identification of Vehicle Class and Speed for Mixed Sensor Technology using Fuzzy- Neural & Genetic Algorithm : A Design Approach

Unit 7. Fuzzy Control with Examples. Module FUZ; Ulrich Bodenhofer 186

fuzzylite a fuzzy logic control library in C++

Fuzzy Systems. Fuzzy Systems in Knowledge Engineering. Chapter 4. Christian Jacob. 4. Fuzzy Systems. Fuzzy Systems in Knowledge Engineering

Fuzzy Reasoning. Outline

Dra. Ma. del Pilar Gómez Gil Primavera 2014

GEOG 5113 Special Topics in GIScience. Why is Classical set theory restricted? Contradiction & Excluded Middle. Fuzzy Set Theory in GIScience

CHAPTER 3 INTELLIGENT FUZZY LOGIC CONTROLLER

FUZZY LOGIC CONTROL. Helsinki University of Technology Control Engineering Laboratory

SOLUTION: 1. First define the temperature range, e.g. [0 0,40 0 ].

CHAPTER 4 FUZZY LOGIC, K-MEANS, FUZZY C-MEANS AND BAYESIAN METHODS

In the Name of God. Lecture 17: ANFIS Adaptive Network-Based Fuzzy Inference System

Improving the Wang and Mendel s Fuzzy Rule Learning Method by Inducing Cooperation Among Rules 1

Deciphering Data Fusion Rule by using Adaptive Neuro-Fuzzy Inference System

On the use of Fuzzy Logic Controllers to Comply with Virtualized Application Demands in the Cloud

FUZZY SYSTEMS: Basics using MATLAB Fuzzy Toolbox. Heikki N. Koivo

Exploring Gaussian and Triangular Primary Membership Functions in Non-Stationary Fuzzy Sets

CHAPTER 6 SOLUTION TO NETWORK TRAFFIC PROBLEM IN MIGRATING PARALLEL CRAWLERS USING FUZZY LOGIC

Matrix Inference in Fuzzy Decision Trees

CPS331 Lecture: Fuzzy Logic last revised October 11, Objectives: 1. To introduce fuzzy logic as a way of handling imprecise information

Intelligent Control. 4^ Springer. A Hybrid Approach Based on Fuzzy Logic, Neural Networks and Genetic Algorithms. Nazmul Siddique.

Fuzzy Model-View-Controller Pattern

Learning Fuzzy Rules Using Ant Colony Optimization Algorithms 1

CS 354R: Computer Game Technology

VHDL framework for modeling fuzzy automata

Florida State University Libraries

Defect Depth Estimation Using Neuro-Fuzzy System in TNDE by Akbar Darabi and Xavier Maldague

Exercise Solution: A Fuzzy Controller for the Pole Balancing Problem

Application of fuzzy set theory in image analysis. Nataša Sladoje Centre for Image Analysis

COSC 6339 Big Data Analytics. Fuzzy Clustering. Some slides based on a lecture by Prof. Shishir Shah. Edgar Gabriel Spring 2017.

Fuzzy Concepts and Formal Methods: A Sample Specification for a Fuzzy Expert System

Interval Type 2 Fuzzy Logic System: Construction and Applications

Approximate Reasoning with Fuzzy Booleans

European Journal of Science and Engineering Vol. 1, Issue 1, 2013 ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM IDENTIFICATION OF AN INDUCTION MOTOR

Computational Intelligence Lecture 12:Linguistic Variables and Fuzzy Rules

A new approach based on the optimization of the length of intervals in fuzzy time series

PARAMETRIC OPTIMIZATION OF RPT- FUSED DEPOSITION MODELING USING FUZZY LOGIC CONTROL ALGORITHM

Lotfi Zadeh (professor at UC Berkeley) wrote his original paper on fuzzy set theory. In various occasions, this is what he said

Figure-12 Membership Grades of x o in the Sets A and B: μ A (x o ) =0.75 and μb(xo) =0.25

REASONING UNDER UNCERTAINTY: FUZZY LOGIC

Transactions on Information and Communications Technologies vol 16, 1996 WIT Press, ISSN

Advanced Inference in Fuzzy Systems by Rule Base Compression

About the Tutorial. Audience. Prerequisites. Disclaimer& Copyright. Fuzzy Logic

CLASSIFICATION WITH RADIAL BASIS AND PROBABILISTIC NEURAL NETWORKS

Projecting Safety Measures in Fireworks Factories in Sivakasi using Fuzzy based Approach

Elementos de Inteligencia Artificial. Amaury Caballero Ph.D., P.E. Universidad Internacional de la Florida

A Proposition for using Mathematical Models Based on a Fuzzy System with Application

Fuzzy system theory originates from fuzzy sets, which were proposed by Professor L.A.

Frequency Distributions

Fuzzy Logic Approach towards Complex Solutions: A Review

Neuro-fuzzy systems 1

CL7204-SOFT COMPUTING TECHNIQUES

1. Fuzzy sets, fuzzy relational calculus, linguistic approximation

Transcription:

Fuzzy If-Then Rules Adnan Yazıcı Dept. of Computer Engineering, Middle East Technical University Ankara/Turkey Fuzzy If-Then Rules There are two different kinds of fuzzy rules: Fuzzy mapping rules and Fuzzy implication rules. A fuzzy mapping rule describes an association; therefore, its fuzzy relation is constructed from the Cartesian product of its antecedent fuzzy condition and its consequent fuzzy condition. A fuzzy implication rule, however, describes a generalized two-valued logic implication; therefore, its fuzzy relation needs to be constructed from the semantics of a generalization to implication in multi-valued logic. 1

Fuzzy If-Then Rules The difference between the semantics of fuzzy mapping rules and fuzzy implication rules can be seen from the difference in their inference behavior. Even though these two types of rules behave the same when their antecedents are satisfied, they behave differently when their antecedents are not satisfied. Example: Implication rule, Mapping rule (logic representation) (procedural representation) Given:x [1,3] y [7,8], Stm: Ifx [1,3], Then y [7,8] Input: x=5 Variable value: x = 5 Infer: y is unkown (y [0,10]) Execution result: no action Fuzzy Mapping Rules The needs to approximate a function of interest is often due to one or more of the following reasons: 1) The mathematical structure of the function is not precisely known at al. 2) The function is so complex that finding its precise mathematical form is practically infeasible due to its high cost. 3) Even if finding the precise function is not impractical, implementing the function in its precise mathematical form in a product or service may be too costly. This is particularly important for low cost high volume products (e.g., automobiles, cameras, and many other consumer products). 2

Fuzzy Mapping Rules Fuzzy rule-based function approximation is a partition-based technique. The partition-based approximation techniques approximate a function by partitioning the input space of the function and approximate the function in each partitioned region separately (e.g., piecewise linear approximation). Fuzzy Mapping Rules Because each fuzzy rule approximates a small segment of the function, the entire function is approximated by asetof fuzzy mapping rules. Werefertosuchacollectionoffuzzymappingrulesas fuzzy rule-based models or simply fuzzy models A fuzzy model describes a (approximate) mapping (i.e., function) from a set of input variables to a set of output variables. Examples: A fuzzy model of the stock market canbeusedtopredictfuture changes of the IMKB average. A fuzzy control model of a petrochemical process canbeusedto predict the future state of the process. 3

Fuzzy Mapping Rules A fuzzy model can be defined as a model that is obtained by fusing multiple local models that are associated with fuzzy subspaces of the given input space. The result of fusing multiple local models is usually a fuzzy conclusion, which is usually converted to a crisp final output through a defuzzification process. The main difference between fuzzy and nonfuzzy rules for function approximation lies in their interpolative reasoning capability, which allows the output of multiple fuzzy rules to be fused for agiven input. Interpolation is the approximation of a complicated function by a simpler function. Suppose we know the function but it is too complex to evaluate efficiently. Then we could pick a number of known data points from the complicated function and interpolate those data points to construct a simpler function. Fuzzy Mapping Rules The four major concepts in fuzzy rule-based models thus are as follows: 1. Fuzzy partition, 2. Mapping of fuzzy subregion to local models, 3. Fusion of multiple local models, 4. Defuzzification. 4

1- Fuzzy partition A fuzzy partition of a space is a collection of fuzzy subspaces whose boundaries partially overlap and whose union is the entire space. Formally, a fuzzy partition of a space as a collection of fuzzy subspace A i of S that satisfies the following condition: μ Ai (x) = 1, x S. That is, for any element x of the space A i, its membership degree in all subspaces always adds up to 1. 1- Fuzzy partition We call a collection of fuzzy subspaces A i of S a weak fuzzy partition of S iff it satisfies the following condition: 0< μ Ai (x) 1, x S. The greater than 0 condition requires each element in the space S to be covered by at least one fuzzy subspace in the partition. The sum to 1 condition of a fuzzy partition can be relaxed to the sum to less or equal to 1 condition because the interpolative reasoning of fuzzy models includes a normalization step. Research Note: It has been shown that μ Ai (x) = 1 is a desirable property in a framework for analyzing the stability of fuzzy logic controllers. 5

2- Mapping a Fuzzy Subspace to a Local Model y large small x small medium large Fuzzy mapping 2- Mapping a Fuzzy Subspace to a Local Model A local model for a subspace of the entire input space describes the system s s inputoutput mapping relationship in (the smaller) subspace. In contrast, a global model for an input space describes the system s input-output relationship for the entire input space. Because the scope of the local model is smaller than that of a global model, it is usually easier to develop a local model. 6

Mapping a Fuzzy Subspace to a Local Model In particular, a nonlinear global model (i.e., whose inputoutput mapping function is not linear) can often be approximated by a set of linear local models. Thiscanbe understood by remembering the well-known approximation technique called piecewise linear approximation, which approximates an arbitrary nonlinear function using segments of lines. The following figure shows such an approximation technique, where the line indicates the function being approximated. y x Mapping a Fuzzy Subspace to a Local Model Piecewise linear approximation has two major components: 1. Partitioning the input space to crisp regions 2. Mapping each partitioned region to a linear local model. The main difference between fuzzy modeling and piecewise linear approximation is that, in fuzzy modeling, the transition from one local subregion to a neighboring one is gradual rather than abrupt. Generally, the mapping from a fuzzy subspace to a local model is represented as a fuzzy if-then rule in the form of: If xisinfs i Then y j =LM i (x) where x andy j denote the vector of input variables and output variable, respectively, FS i and LM i denote i th fuzzy subspace and the corresponding local model, respectively. 7

Mapping a Fuzzy Subspace to a Local Model The local model can be one of four different types: 1. Crisp constant: This type of local model is simply pyacrisp (nonvisual) constant. For example; If x i is Small Then y = 4.5 2. Fuzzy constant: A local model that is a fuzzy constant (e.g., Small) belong to this type. For example; If x i is Small Then y is Medium 3. Linear Model: this describes the output as a linear function of the input variables, such as: If x 1 is Small And x 2 is Large Then y = 2x 1 +5x 2 +3. 4. Non-Linear Model: Theoretically, a local model can be more complex than a linear model. In practice, however, there is rarely such a need. These models have been introduced in a hybrid neuro-fuzzy system that uses neural networks to represent nonlinear local models associated with the rule. Fusion of local models through interpolative reasoning Fuzzy models use interpolative reasoning to fuse multiple local models into a global model. The basic idea behind interpolative reasoning is analogous to drawing a conclusion from a panel of experts, each of whom is specialized in a subarea of the entire problem. Each expert s opinion is associated with a weight, which h reflects the degree to which h the current situation is in the expert s specialized area. These weighted opinions are combined to form an overall opinion. 8

Fusion of local models through interpolative reasoning In this analogy, an expert corresponds to a fuzzy if-then rule, the specialized ili subarea of the expert corresponds to the fuzzy subspace associated with the if-part of the rule. The weight of an expert s opinion is determined by the degree to which the current situation (input data) belongs to the expert s specialized area (input subspace). Defuzzification We may interpret a possibility distribution either through linguistic approximation, or through defuzzification. The former gives a qualitative interpretation, while the latter gives a quantitative summary and is more commonly used in fuzzy logic applications, i.e., industrial applications. Given a possibility distribution of a fuzzy model s output, defuzzification amounts to selecting a single representative value that captures the essential meaning of the given distribution. 9

Defuzzification Therearethreecommondefuzzification techniques: mean of maximum, center of area, and height. Mean of Maximum (MOM): This calculates l the average of those output values that have the highest possibility degrees. Suppose y is A is a fuzzy conclusion to be fuzzified. We can express the MOM defuzzification method using the following formula: MOM (A) = y* P y* / P Where P is the set of output values y with highest possibility degree in A. If P is an interval, the result of MOM defuzzification is obviously the midpoint in that interval. This technique does not take into account the overall shape of the possibility distribution. Defuzzification Center of Area (COA): This method (also referred to as the center-of-gravity, or centroid method) is the most popular df defuzzification i technique. hi Unlike MOM, the COA method takes into account the entire possibility distribution in calculating its representative point. This method is similar to the formula for calculating the center of gravity in physics, if we view μ A (x) as the density of mass at x. If x is discrete, the fuzzification result of A is: COA(A) = x μ A (x)*x/ x μ A (x). The main disadvantage of the COA method is its high computational cost. However, the calculation can be simplified for some fuzzy models. 10

Defuzzification The Height Method: This method can be viewed as a two step procedure. First we convert the consequent membership function c i into crisp consequent y = c i where c i is the center of gravity of c i. The centroid defuzzification is then applied to the rules with crisp consequents with the following formula: y= M i=1 w i *c i / M i=1 w i where w i is the degree to which i th rule matches the input data. This method reduces the computation cost and facilitates the application of neural networks learning to fuzzy systems; hence, many well-known neuro-fuzzy models use this type of defuzzification method. The main disadvantage of this method is that it is not well justified and is often considered an approximation to the centroid defuzzification. An example for a Fuzzy Model 11

Types of Fuzzy Rule-Based Models short long Types of Fuzzy Rule-Based Models low high 12

Types of Fuzzy Rule-Based Models maintain speed increase speed decrease speed Types of Fuzzy Rule-Based Models 13

Types of Fuzzy Rule-Based Models Types of Fuzzy Rule-Based Models 14

Types of Fuzzy Rule-Based Models Types of Fuzzy Rule-Based Models 15

Inference Mechanism Water Tank Example Inference Mechanism Water Tank Example 16

Inference Mechanism Water Tank Example Inference Mechanism Water Tank Example 17

Rudimentary Flow Mixing Controller R1: IF the target temperature T is Low THEN set the voltage to V (i.e., turn on the cold flow). R2: IF the target temperature T is High THEN set the voltage to V (i.e., turn on the hot flow). Membership functions of the taget temperature are; μ μ 1 High 1 Low T T Rudimentary Flow Mixing Controller 18

Washing Machine Example Inference Mechanism 19

Inference Mechanism Inference Mechanism 20

21