Design of fuzzy systems

Similar documents
Assignment #4: Fuzzy Robot Controller

CHAPTER 4 FREQUENCY STABILIZATION USING FUZZY LOGIC CONTROLLER

Introduction 3 Fuzzy Inference. Aleksandar Rakić Contents

Fuzzy if-then rules fuzzy database modeling

Chapter 7 Fuzzy Logic Controller

FUZZY INFERENCE SYSTEMS

7. Decision Making

Dinner for Two, Reprise

FuzzyLite v1.03 A Fuzzy Inference System written in C++ by Juan Rada-Vilela Supported by the Foundation for the Advancement of Soft Computing

CHAPTER 5 FUZZY LOGIC CONTROL

Fuzzy System Model for Management of Driver Distractions in Motor Vehicles

Fuzzy Expert Systems Lecture 8 (Fuzzy Systems)

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

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

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

Fuzzy logic controllers

jfuzzylogic: A Robust and Flexible Fuzzy-Logic Inference System Language Implementation

The Use of Fuzzy Logic at Support of Manager Decision Making

Reference Variables Generation Using a Fuzzy Trajectory Controller for PM Tubular Linear Synchronous Motor Drive

Outlines. Fuzzy Membership Function Design Using Information Theory Measures and Genetic Algorithms. Outlines

ARTIFICIAL INTELLIGENCE. Uncertainty: fuzzy systems

FUZZY INFERENCE. Siti Zaiton Mohd Hashim, PhD

CHAPTER 3 FUZZY INFERENCE SYSTEM

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

Приложение на Теорията на Размитата Логика при Моделирането на Бизнес Процеси и Вземане на Управленски Решения

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

Fuzzy Range Query in XML

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

What is all the Fuzz about?

CHAPTER 3 INTELLIGENT FUZZY LOGIC CONTROLLER

Industrial Automation course

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

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

fuzzylite a fuzzy logic control library in C++

Fuzzy and Crisp Representations of Real-Valued Input for Learning Classifier Systems

Fuzzy Systems (1/2) Francesco Masulli

ANALYTICAL STRUCTURES FOR FUZZY PID CONTROLLERS AND APPLICATIONS

Aircraft Landing Control Using Fuzzy Logic and Neural Networks

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

Fuzzy Based Decision System for Gate Limiter of Hydro Power Plant

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

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

Florida State University Libraries

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

Lecture notes. Com Page 1

Selection of Defuzzification Method to Obtain Crisp Value for Representing Uncertain Data in a Modified Sweep Algorithm

Using Matlab Real-Time Workshop in teaching control design techniques

Designing Interval Type-2 Fuzzy Controllers by Sarsa Learning

On the Use of Fuzzy Techniques for Partial Scan Insertion Based on the Testability metrics

Knowledge Representation Techniques

Unit V. Neural Fuzzy System

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

Design of Different Fuzzy Controllers for Delayed Systems

Machine Learning & Statistical Models

ADAPTIVE NEURO FUZZY INFERENCE SYSTEM FOR HIGHWAY ACCIDENTS ANALYSIS

MATHEMATICAL MODEL FOR SURFACE ROUGHNESS OF 2.5D MILLING USING FUZZY LOGIC MODEL.

Fuzzy Logic Controller

CHAPTER - 3 FUZZY SET THEORY AND MULTI CRITERIA DECISION MAKING

Development of a Generic and Configurable Fuzzy Logic Systems Library for Real-Time Control Applications using an Object-oriented Approach

ISSN: ISO 9001:2008 Certified International Journal of Engineering and Innovative Technology (IJEIT) Volume 4, Issue 3, September 2014

Artificial Intelligence for Interactive Media and Games CS/IMGD 4100 (B 16) 1. Background and Motivation

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

ANALYSIS AND REASONING OF DATA IN THE DATABASE USING FUZZY SYSTEM MODELLING

What is all the Fuzz about?

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

ARTIFICIAL INTELLIGENCE - FUZZY LOGIC SYSTEMS

Performance Assurance in Virtualized Data Centers

MECHATRONICS 3M LECTURE NOTES. Prepared by Frank Wornle School of Mechanical Engineering The University of Adelaide 1 0.

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

JFML (Java Fuzzy Markup Language) - Documentation

Interval Type 2 Fuzzy Logic System: Construction and Applications

CHAPTER 3 FUZZY RULE BASED MODEL FOR FAULT DIAGNOSIS

CS 354R: Computer Game Technology

TOOL WEAR CONDITION MONITORING IN TAPPING PROCESS BY FUZZY LOGIC

Solving A Nonlinear Side Constrained Transportation Problem. by Using Spanning Tree-based Genetic Algorithm. with Fuzzy Logic Controller

Design of Fuzzy Logic Controller for Speed Regulation of BLDC motor using MATLAB

Tuning Fuzzy Control Rules via Genetic Algorithms: An Experimental Evaluation

TOPSIS Modification with Interval Type-2 Fuzzy Numbers

Intelligent Energy E cient and MAC aware Multipath QoS Routing Protocol for Wireless Multimedia Sensor Networks

Neural Networks Lesson 9 - Fuzzy Logic

Design and Synthesis of Temperature Controller Using Fuzzy for Industrial Application

SELECTION OF DEFUZZIFICATION METHOD TO OBTAIN CRISP VALUES FOR REPRESENTING UNCERTAIN DATA IN A MODIFIED SWEEP ALGORITHM

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

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

FUZZY SYSTEM FOR PLC

OPTIMIZATION OF FUZZY REGULATOR PARAMETERS BY GENETIC ALGORITHM

9. Lecture Neural Networks

Fuzzy Reasoning. Outline

FUZZY LOGIC CONTROL. Helsinki University of Technology Control Engineering Laboratory

Advanced Inference in Fuzzy Systems by Rule Base Compression

Speed regulation in fan rotation using fuzzy inference system

A Software Tool: Type-2 Fuzzy Logic Toolbox

Reduction in Space Complexity And Error Detection/Correction of a Fuzzy controller

Fuzzy Inference System based Edge Detection in Images

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

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

CHAPTER 3 ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM

CL7204-SOFT COMPUTING TECHNIQUES

Healthcare4VideoStorm: Making Smart Decisions Based on Storm Metrics

Fuzzy MADM Based Vertical Handover Algorithm for Enhancing Network Performances

Transcription:

Design of fuzzy systems Andrea Bonarini Artificial Intelligence and Robotics Lab Department of Electronics and Information Politecnico di Milano E-mail: bonarini@dei.polimi.it URL:http://www.dei.polimi.it/people/bonarini

Steps for fuzzy system design Problem definition Parametrization of the model: concepts Mapping definition: rules Implementation Testing Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 2 of 26

Problem definition Analogous to what done in classical model design Selection of the input variables Selection of the output variables Selection of the goals of the model Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 3 of 26

Selection of input variables In principle, numerical or ordinal variables so that it is possible to define fuzzy sets Variables that can be perceived from sensors, data or users computed from perceived variables (error, derivatives, composition of variables) In general, there are no a priori preclusions to select variables: it depends on the problem and the designer sensibility Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 4 of 26

Selection of output variables Output variables are the results of the model, so come directly from the modeler needs. For instance: for a control application, we might either have the control variables, or the respective increments for a decision support system we might have the decision to be taken Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 5 of 26

Selection of the goals of the fuzzy model The goals of the fuzzy models depend on the specifications For instance, a control system may reach the set point as soon as possible, with the least overshooting, as robustly as possible, etc. The goals should always be stated in advance, and guide the design. Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 6 of 26

System parametrization Selection of membership functions for all variables Selection of the inferential mechanism (which T- norms ) Selection of eventual fuzzyfication and defuzzyfication Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 7 of 26

Membership function selection Number of granules: not too many, nor too few (7?) Coverage: an output for any input value Boundary considerations How to reach equilibrium? Value density: more attention where needed Crosspoint: smoothness in the output Singletons or more general MFs for the output Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 8 of 26

How many MFs? It depends on the application. In general from 3 to 7. Why? The magic number 7: people usually cannot manage more than 7 ± 2 concepts at a time Let s try Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 9 of 26

An output for each input Any point in the range of input variables has to be covered by at least one fuzzy set participating to at least one rule 1 Close Medium Far YES 0 2 4 6 10 1 Close Medium Far NO 0 2 4 6 10 Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 10 of 26

Boundary considerations Boundary should be covered with maximum value 1 Close Medium Far YES 0 2 4 6 10 NO 1 Close Medium Far Saturation or not? 0 2 4 6 10 Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 11 of 26

How to reach equilibrium A mediating MF NEG ZERO POS IF (X is POS) THEN (U is NEG) IF (X is NEG) THEN (U is POS) IF (X is ZERO) THEN (U is ZERO) -10-5 0 5 10 NEG POS Just pushing -10-5 0 5 10 Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 12 of 26

How to distribute the MFs Evenly distributed Unevenly distributed NL NM NS ZE PS PM PL NL NM NS ZE PS PM PL X X Max robustness to noise More precision where needed Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 13 of 26

Singletons or other for the output Singletons: the weight of any cut is proportional to the cut level NEG ZERO POS 0.7 0.4-10 0 10 NEG ZERO POS Shapes: the relative wheight is higher for lower cuts 0 2 4 6 10 Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 14 of 26

How are MFs defined? Single expert Objective evaluation (e.g.: error wrt a set point) Interview (e.g.: operator of a control room) Multiple experts Probabilistic elaboration, possibly weighted by the expert reliability Automatic systems (NN, GA, ) working on data Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 15 of 26

Normalization It is common to normalize data on a standard range (e.g., 0 255) Linear normalization NON-linear normalizaton 1 Close Medium Far 1 Close Medium Far 0 2 4 6 10 0 2 4 6 10 1 Close Medium Far 1 Close Medium Far 0 51 102 153 255 0 127 255 mainly used in fuzzy µcontrollers to exploit the available precision Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 16 of 26

Defuzzyfication Many different possibilities: Centroid Bisector Average of maxima Lowest maximum Highest maximum Center of the highest area... Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 17 of 26

Rule definition From experience Introspective analysis Structured interview From another model (e.g., a mathematical model) By using machine learning, or self-tuning techniques (NN, GA,...) Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 18 of 26

Selection of inferential engine The inferential engine depends on the operators selected for: AND of antecedent clauses min: the worst degree of matching is the most relevant product: all the degrees of matching are relevant Detachment: combination with the rule weight min product Aggregation of degrees of the same consequent max: the best degree is the most relevant probabilistic sum: all the collected knowledge is taken into account Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 19 of 26

Testing Aim: verify the design goals Possible activity Dynamic simulation, if the model of the subject is available E.g., if the model of the controlled system is available Static simulation (single I/O check, output (control) surface study) Test on the process, possibly under safe conditions Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 20 of 26

Available development tools Many tools, mainly for fuzzy control (including Matlab) Common features: guided definition of rules and MF visualization of control surfaces suite of MFs, operators and defuzzification methods support to testing support to learning optimized code production, for many processors Some tools for the development of generic fuzzy rule systems: FOOL, Fuzzy Clips, FLIP, FCL, Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 21 of 26

FCL: an IEEE standard IEEE-IEC document 61131-7 An example: model the aggressiveness of a character in a videogame FUNCTION_BLOCK \* VAR definition *\ VAR_INPUT Our_Health REAL; (* RANGE(0.. 100) *) Enemy_Health REAL; (* RANGE(0.. 100) *) END_VAR VAR_OUTPUT Aggressiveness REAL; (* RANGE(0.. 4) *) END_VAR Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 22 of 26

FCL Example (2): MF definition \* MF definition *\ FUZZIFY Our_Health TERM Near_Death := (0, 0) (0, 1) (50, 0) ; TERM Good := (14, 0) (50, 1) (83, 0) ; TERM Excellent := (50, 0) (100, 1) (100, 0) ; END_FUZZIFY Near_Death Good Excellent Our_Health FUZZIFY Enemy_Health TERM Near_Death := (0, 0) (0, 1) (50, 0) ; TERM Good := (14, 0) (50, 1) (83, 0) ; TERM Excellent := (50, 0) (100, 1) (100, 0) ; END_FUZZIFY FUZZIFY Aggressiveness TERM Run_Away := 1 ; TERM Fight_Defensively := 2 ; TERM All_Out_Attack := 3 ; END_FUZZIFY Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 23 of 26

FCL Example (3): defuzzyfication \* Definition of the defuzzyfication method *\ DEFUZZIFY Aggressiveness METHOD: MoM; \\Media of Maxima END_DEFUZZIFY Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 24 of 26

FCL Example (4): rule definition RULEBLOCK first AND:MIN; ACCU:MAX; RULE 0: IF (Our_Health IS Near_Death) AND (Enemy_Health IS Near_Death) THEN (Aggressiveness IS Fight_Defensively); RULE 1: IF (Our_Health IS Near_Death) AND (Enemy_Health IS Good) THEN (Aggressiveness IS Run_Away); RULE 2: IF (Our_Health IS Near_Death) AND (Enemy_Health IS Excellent) THEN (Aggressiveness IS Run_Away); RULE 3: IF (Our_Health IS Good) AND (Enemy_Health IS Near_Death) THEN (Aggressiveness IS All_Out_Attack); RULE 4: IF (Our_Health IS Good) AND (Enemy_Health IS Good) THEN (Aggressiveness IS Fight_Defensively); RULE 5: IF (Our_Health IS Good) AND (Enemy_Health IS Excellent) THEN (Aggressiveness IS Fight_Defensively); RULE 6: IF (Our_Health IS Excellent) AND (Enemy_Health IS Near_Death) THEN (Aggressiveness IS All_Out_Attack); RULE 7: IF (Our_Health IS Excellent) AND (Enemy_Health IS Good) THEN (Aggressiveness IS All_Out_Attack); RULE 8: IF (Our_Health IS Excellent) AND (Enemy_Health IS Excellent) THEN (Aggressiveness IS Fight_Defensively); END_RULEBLOCK END_FUNCTION_BLOCK Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 25 of 26

HW for fuzzy systems PC and assembly, or C (C++, Java, ) code Standard microcontroller (compiled fuzzy code) Fuzzy HW Fuzzy processor: almost only a RAM (everything is precomputed) with data acquisition (8 to 12 bit) and serial interface Standard microcontroller augmented with fuzzy instructions in the instruction set (e.g., fuzzyfy, defuzzyfy, ) Fuzzy processor integrated with other devices (e.g., pwm generator, ) Introduction to Fuzzy Design A. Bonarini (bonarini@dei.polimi.it) - 26 of 26