Financial Informatics XI: Fuzzy Rule-based Systems

Similar documents
Fuzzy Logic and Fuzzy Systems Knowledge Representation & Reasoning

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

Fuzzy Logic and Fuzzy Systems

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

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

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

Revision: Fuzzy logic

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

Fuzzy Logic and Fuzzy Systems Properties & Relationships

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

Financial Informatics IX: Fuzzy Sets

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

Fundamentals. 2.1 Fuzzy logic theory

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

Reasoning Systems Chapter 4. Dr Ahmed Rafea

Uncertain System Control: An Engineering Approach

This time: Fuzzy Logic and Fuzzy Inference

UNIVERSITY OF SURREY

What Is Fuzzy Logic?

This time: Fuzzy Logic and Fuzzy Inference

MODELLING THERMAL COMFORT FOR TROPICS USING FUZZY LOGIC

9. Fuzzy Control Systems

FUZZY CONTROL. Khurshid Ahmad, Professor of Computer Science, Department of Computer Science Trinity College, Dublin-2, IRELAND Nov 15-16th, 2011

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

APPLICATION OF AIR HEATER AND COOLER USING FUZZY LOGIC CONTROL SYSTEM

Fuzzy Control Systems Process of Fuzzy Control

Classical Set Theory. Outline. Classical Set Theory. 4. Linguistic model, approximate reasoning. 1. Fuzzy sets and set-theoretic operations.

Fuzzy Logic. An introduction. Universitat Politécnica de Catalunya. Departament de Teoria del Senyal i Comunicacions.

Lecture 1: Introduction & Fuzzy Control I

Rule-Based Fuzzy Model

Fuzzy expert systems

is implemented by a fuzzy relation R i and is defined as

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

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

CHAPTER 5 FUZZY LOGIC FOR ATTITUDE CONTROL

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

Uncertain Logic with Multiple Predicates

It rains now. (true) The followings are not propositions.

Lecture 06. (Fuzzy Inference System)

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

Handling Uncertainty using FUZZY LOGIC

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

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

A Powerful way to analyze and control a complex system

Chapter 11 Fuzzy Logic Control

DISCRETE STRUCTURES WEEK5 LECTURE1

Reduced Size Rule Set Based Fuzzy Logic Dual Input Power System Stabilizer

Introduction to fuzzy logic

Propositional Logic. Yimei Xiang 11 February format strictly follow the laws and never skip any step.

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

ABSTRACT I. INTRODUCTION II. FUZZY MODEL SRUCTURE

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

Analyzing fuzzy and contextual approaches to vagueness by semantic games

a. ~p : if p is T, then ~p is F, and vice versa

Institute for Advanced Management Systems Research Department of Information Technologies Åbo Akademi University. Fuzzy Logic Controllers - Tutorial

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

EFFECT OF VARYING CONTROLLER PARAMETERS ON THE PERFORMANCE OF A FUZZY LOGIC CONTROL SYSTEM

Motivation. From Propositions To Fuzzy Logic and Rules. Propositional Logic What is a proposition anyway? Outline

Fuzzy Systems. Fuzzy Control

Financial Informatics XVII:

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

Logical Agents. September 14, 2004

Introduction to fuzzy sets

Logic and Philosophical Logic. 1 Inferentialism. Inferentialism and Meaning Underdetermination

1. Brief History of Intelligent Control Systems Design Technology

RamchandraBhosale, Bindu R (Electrical Department, Fr.CRIT,Navi Mumbai,India)

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

Artificial Intelligence. Propositional logic

CRITICALITY ASSESSMENT RISK; CONTRIBUTION OF FUZZY LOGIC

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Knowledge based Agents

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

5. Lecture Fuzzy Systems

Chapter 4: Classical Propositional Semantics

Towards Smooth Monotonicity in Fuzzy Inference System based on Gradual Generalized Modus Ponens

Fuzzy Expert Systems Lecture 3 (Fuzzy Logic)

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Hamidreza Rashidy Kanan. Electrical Engineering Department, Bu-Ali Sina University

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Abstract. Keywords. Introduction

FUZZY CONTROL OF CHAOS

Probabilistic clustering

Uncertainty and Rules

Fuzzy Expert Systems Lecture 3 (Fuzzy Logic)

Propositional Logic Not Enough

CHAPTER V TYPE 2 FUZZY LOGIC CONTROLLERS

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Learning Goals of CS245 Logic and Computation

Fuzzy and Rough Sets Part I

THE LOGIC OF COMPOUND STATEMENTS

Solving Linear Programming Problems with Fuzzy Data

Introduction to Pragmatics

Identification of Expansive Soils and Assessment of Expansion Potential by Fuzzy Approach

Logic and Propositional Calculus

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

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

FUZZY CONTROL OF CHAOS

On Fuzzy Internal Rate of Return

CHAPTER 11. Introduction to Intuitionistic Logic

Transcription:

Financial Informatics XI: Fuzzy Rule-based Systems Khurshid Ahmad, Professor of Computer Science, Department of Computer Science Trinity College, Dublin-2, IRELAND November 19 th, 28. https://www.cs.tcd.ie/khurshid.ahmad/teaching.html 1 1

Fuzzy Rule-based Systems Once we have found that the knowledge of a specialism can be epressed through linguistic variables and rules of thumb, that involve imprecise antecedents and consequents, then we have a basis of a knowledge-base. In this knowledge-base facts are represented through linguistic variables and the rules follow fuzzy logic. In traditional epert systems facts are stated crisply and rules follow classical propositional logic. 2

Fuzzy Rule-based Systems But in the real world some of our knowledge of facts is derived from the use of sensors quantity of heat measured in degrees Centigrade; length measured in meters; weight the quantity of matter measured in grams. This quantitative, and rather precise factual information has to be mapped onto the term-set of a linguistic variable the process of fuzzification 3

Fuzzy Rule-based Systems Once mapped the rules within a knowledge base are invoked systematically to see which of the rules is fired and to what degree the process of inference. In traditional epert systems, only those rules fire whose antecedents are true in fuzzy epert systems rules may fire to a certain degree: all rules may fire to a degree between zero and unity. 4

Fuzzy Rule-based Systems Knowledge Representation Linguistic Variables Informally, a linguistic variable is a variable whose values are words or sentences in a natural or artificial language. For eample, if age is interpreted as a linguistic variable, then its term-set, T, that is, the set of its linguistic values, might be T age young + old + very young + not young + very old + very very young +rather young + more or less young +... where each of the terms in Tage is a label of a fuzzy subset of a universe of discourse, say U [,1]. 5

Fuzzy Rule-based Systems Knowledge Representation Linguistic Variables In knowledge representation attempts are made to represent comple concepts which are rich in meaning. What appears to us as simple concepts, say height, heat or colour, concepts for which we have physical, perceptible, and standardised measurements, for instance metre, degrees Celsius, wavelength in Angstroms A o, are given meaning-rich and ambiguous linguistic assignments: For height we have {short, medium, tall}; heat we have { cold, warm, hot} colour we have {red, blue, green} 6

Fuzzy Rule-based Systems Knowledge Representation Linguistic Variables This mapping from the perceptible, measurable and standardisable data to a cognitive, vague, and ambiguous linguistic description involves the mapping of the raw data onto a fuzzy set. The linguistic description variable- can be modified to make the description more diffuse or highly focussed with the help of the fuzzy modifiers It is the combination of the raw data values with the linguistic feature fuzzy sets, that helps to capture the meaning encapsulated in a given concept through fuzzy logic concepts of fuzzy sets, membership functions, and fuzzy logic operations including conjunction and disjunction, quantification, and negation. 7

Fuzzy Rule-based Systems Knowledge Representation Linguistic Variables For eample, the primary terms in the equation above are young and old, whose meaning might be defined by their respective compatibility functions young and old. From these, then, the meaning - or, equivalently, the compatibility functions - of the non-primary terms in equation 1 above may be computed by the application of a semantic rule. very young young 2 more or less old old 1/2 not very young 1- young 2 8

Fuzzy Rule-based Systems Knowledge Representation The fuzzy rules, or vague rules, are also called linguistic rules comprising an antecedent/premise the IF part and a consequent/conclusion the THEN part. The antecedent/premise describes an object or event or state in the form of a fuzzy specification of a measured value. The consequent/conclusion specifies an appropriate fuzzy value. 9

Operational Aspects But, of course, we have to see what influence each rule has given the fuzzy input values. An averaging procedure is adopted to compute the effective contribution of each of the rules. This is the process of composition. 1

Operational Aspects And, finally, we have to convert the fuzzy values outputted by the inference procedure onto a crisp number that can be used in the real world. This process is called defuzzification. 11

Operational Aspects The operation of a fuzzy epert system depends on the eecution of FOUR major tasks: Fuzzification, Inference, Composition, Defuzzification. 12

Operational Aspects Fuzzification involves the choice of variables, fuzzy input and output variables and defuzzified output variables, definition of membership functions for the input variables and the description of fuzzy rules. 13

Operational Aspects Fuzzification : The membership functions defined on the input variables are applied to their actual values to determine the degree of truth for each rule premise. The degree of truth for a rule's premise is sometimes referred to as its α alpha value. If a rule's premise has a non-zero degree of truth, that is if the rule applies at all, then the rule is said to fire. 14

Operational Aspects Inference: The truth-value for the premise of each rule is computed and the conclusion applied to each part of the rule. This results in one fuzzy subset assigned to each output variable for each rule. 15

Operational Aspects Inference: MIN and PRODUCT are two inference methods. 1. In MIN inferencing the output membership function is clipped off at a height corresponding to the computed degree of truth of a rule's premise. This corresponds to the traditional interpretation of the fuzzy logic's AND operation. 2. In PRODUCT inferencing the output membership function is scaled by the premise's computed degree of truth. 16

Operational Aspects Composition: All the fuzzy subsets assigned to each output variable are combined together to form a single fuzzy subset for each output variable. 17

Operational Aspects Composition: MAX and SUM are two composition rules: 1. In MAX composition, the combined fuzzy subset is constructed by taking the pointwise maimum over all the fuzzy subsets assigned to the output variable by the inference rule. 2. The SUM composition, the combined output fuzzy subset is constructed by taking the pointwise sum over all the fuzzy subsets assigned to output variable by their inference rule. Note that this can result in truth values greater than 1. 18

Operational Aspects Defuzzification: The fuzzy value produced at the composition stage needs to be converted to a single number or a crisp value. 19

Operational Aspects Defuzzification: The crisp value is essentially the centre of the area under the curve of the new fuzzy subset derived from the composition stage. Such a computation takes into account the effect of each rule ina proportionate manner. Sometimes, however, it is important to take only into account those rules that have the maimum impact. Hence there are different methods of defuzzication. 2

Operational Aspects Defuzzification: Two popular defuzzification techniques are the CENTROID and MAXIMUM techniques. 1. The use of CENTROID technique relies on using the centre of gravity of the membership function to calculate the crisp value of the output variable. 2. The MAXIMUM techniques, and there are a number of them, broadly speaking, use one of the variable values at which the fuzzy subset has its maimum truth value to compute the crisp value. 21

Operational Aspects DEFUZZIFICATION: The Centre of Gravity COG of the output of the rules: Formally, the crisp value is the value located under the centre of gravity of the area that is given by the function η yε Y output 1... 1. n y dy yε Y y output 1.... n y dy 22

Operational Aspects DEFUZZIFICATION: The crisp value h can be obtained by approimating the integral with a sum η Σ 1 output 1.... n Σy y output 1.... n y The centre of gravity approach attempts to take the rules into consideration according to their degree of applicability. If a rule dominates during a certain interval then its dominance is discounted in other intervals. 23

Operational Aspects DEFUZZIFICATION: Another method of defuzzification is that of Mean of Maima MOM Method. Here again the weighted sum and weighted membership are worked out, ecept that the membership function is given another alpha level cut corresponding to the maimum value of the output fuzzy set. The crisp value for MOM method is given as: η Ma 1 output Σ 1... y Ma output. n 1... n y where Ma output 1... n denotes the set of all outputs y, with output output 1... n y Ma 1... n 24

Worked Eample: Credit Risk Appraisal The Shamrock Phone Company sells mobile phones using the following rules: IF salary is ecellent OR debts are small IF salary is good AND debts are large IF salary is poor THEN risk is Low THEN risk is Medium THEN risk is High 25

Worked Eample: Credit Risk Appraisal The membership functions for the linguistic variables SALARY and DEBTS are given in units of 1, Euros, or 1K, and the RISK in percentage terms; in the following values of membership functions relating to salaries and debts, the kilo symbol K has been omitted. 26

27 Fuzzy Rule-based Systems: Worked Eample: Credit Risk Appraisal All membership functions are piecewise linear with 8%. 1, 6%;, 6%; 4% 1, 8%; 2% &, 2% ; 1, 4% ;, 6. 1, 15;, 1; 1, 5;, 1. 1, 6;, 75 ; 1, 1 ; 5 &, 12; 1, 9;, arg arg High Risk High Risk Medium Risk Medium Risk Low Risk Low Risk e L Debt e L Debt Small Debt Small Debt Poor Salary Poor Salary Good Salary Good Salary Ecellent Salary Ecellent Salary

Worked Eample: Credit Risk Appraisal Jim has applied for a mobile telephone: his salary is Є14K and his debts amount to Є6K. Use the above rule base to compute the risk associated with Jim using the mean of maima in the Defuzzification task. Let us look at each of the four tasks involved in finding the level of risk associated with Jim. 28

Worked Eample: Credit Risk Appraisal FUZZIFICATION: Salary: 14K Euros Ecellent 14 1 Good 14 Poor 14 Debts: 6k Euros Small 6 Large 6 1 29

Worked Eample: Credit Risk Appraisal INFERENCE: Risk Evaluation Rule 1 : Ecellent Salary O R Small Debts ma Ecellent Salary, Small Debts Low Risk ma[ 1,] 1 Rule 2 : Good Salary AND Large Debts min[ Good Salary, Large Debts ] Medium Risk min[,1] Rule 3 : Poor Salary High Risk 3

Worked Eample: Credit Risk Appraisal AGGREGATION & COMPOSITION Only one rule fires and aggregation/composition is unneccessary 31

Fuzzy Rule-based Systems Worked Eample: Credit Risk Appraisa DEFUZZIFICATION: In Mean of Maima MOM Method the weighted sum and weighted membership are worked out, ecept that the membership function is given by another alpha level cut corresponding to the maimum value of the output fuzzy set. The crisp value for MOM method is given as: η Risk Ma Risk Ma Risk Risk * Risk Risk 32

Worked Eample: Credit Risk Appraisal DEFUZZIFICATION: In Mean of Maima MOM Method the weighted sum and weighted membership are worked out, ecept that the membership function is given another alpha level cut corresponding to the maimum value of the output fuzzy set. The crisp value for MOM method is given as: Rule 1: 1 Rule 2: Rule 3: η η + 1 + 2*1 % 3 1 3 3 1% 33

Worked Eample: Credit Risk Appraisal DEFUZZIFICATION: The more widely used centre of area or gravity method requires a weighted average over all the values of the variables, rather than just those where the membership function is the highest: COG 1% Risk % 1% % Risk 34

Worked Eample: Credit Risk Appraisal DEFUZZIFICATION: COG: The more widely used centre of area or gravity method requires a weighted average over all the values of the variables, rather than just those where the membership function is the highest: + 1 + 2 1+.5*3 1 + 1+ 1+.5 % 45 3.5 12.857% 35

Worked Eample: Credit Risk Appraisal DEFUZZIFICATION: MOM: 1% COG: 12.857% COG usually gives higher results than MOM. 36

Operational Aspects The operation of a fuzzy epert system depends on the eecution of FOUR major tasks: Fuzzification, Inference, Composition, Defuzzification. 37

Worked Eample: Fuzzy Air Conditioner Recall that the rules governing the airconditioner are as follows: RULE#1: IF TEMP is COLD THEN SPEED is MINIMAL RULE#2: IF TEMP is COOL THEN SPEED is SLOW RULE#3: IF TEMP is PLEASENT THEN SPEED is MEDIUM RULE#4: IF TEMP is WARM THEN SPEED is FAST RULE#5: IF TEMP is HOT THEN SPEED is BLAST 38

Worked Eample: Fuzzy Air Conditioner Consider the case when we require the air-conditioner to operate at 16 C. 39

Worked Eample: Fuzzy Air Conditioner The operation of a fuzzy epert system depends on the eecution of FOUR major tasks: Fuzzification: Crisp Value Linguistic Variables 16C Cool/Pleasant Inference: Rules containing the linguistic variables Rules 2 & 3 Composition: Create new membership function of the alpha levelled functions for Cool and Pleasent Defuzzification: Eamine the fuzzy sets of SLOW and MEDIUM and obtain a SPEED value in RPM 4

Worked Eample: Fuzzy Air Conditioner There are two challenges: ahow to interpret and how to represent vague rules with the help of appropriate fuzzy sets? bhow to find an inference mechanism that is founded on well-defined semantics and that permits approimate reasoning by means of a conjunctive general system of vague rules and case-specific vague facts? 41

Worked Eample: Fuzzy Air Conditioner Consider the problem of controlling an air-conditioner again. The rules that are used to control the airconditioner can be epressed as a cross product: CONTROL TEMP SPEED 42

Worked Eample: Fuzzy Air Conditioner The rules can be epressed as a cross product of two term sets: Temperature and Speed. CONTROL TEMP SPEED Where the set of linguistic values of the term sets is given as TEMP COLD + COOL + PLEASANT + WARM + HOT SPEED MINIMAL + SLOW + MEDIUM + FAST + BLAST 43

Worked Eample: Fuzzy Air Conditioner Temperature Fuzzy Sets 1 T r u th V a lu e.9.8.7.6.5.4.3.2.1 5 1 15 2 25 3 Temperature Degrees C Cold Cool Pleasent Warm Hot 44

Worked Eample: Fuzzy Air Conditioner Speed Fuzzy Sets 1 T r u t h V a l u e.8.6.4.2 1 2 3 4 5 6 7 8 9 1 Speed MINIMAL SLOW MEDIUM FAST BLAST 45

Worked Eample: Fuzzy Air Conditioner Recall that the rules governing the airconditioner are as follows: RULE#1: IF TEMP is COLD THEN SPEED is MINIMAL RULE#2: IF TEMP is COOL THEN SPEED is SLOW RULE#3: IF TEMP is PLEASENT THEN SPEED is MEDIUM RULE#4: IF TEMP is WARM THEN SPEED is FAST RULE#5: IF TEMP is HOT THEN SPEED is BLAST 46

47 Fuzzy Rule-based Systems: Worked Eample: Fuzzy Air Conditioner The analytically epressed membership for the reference fuzzy subsets for the temperature are: 3 1 3 25 11 5. 2 ' ' 5. 27 5. 22 5. 5 5 5. 22 5. 17 5. 3 5 ' ' ' ; 2 5. 17 8 5. 2 5. 17 15 6 5. 2 ' ' ; 5. 17 5. 12 5. 3 5 5. 12 5. 12 ' ' ; 1 1 1 ' ' + + + T T T T T HOT T T T T T T WARM T T T T T T PLEASENT T T T T T T COOL T T T COLD HOT HOT WARM WARM PLEA PLEA COOL COOL COLD

48 Fuzzy Rule-based Systems: Worked Eample: Fuzzy Air Conditioner The analytically epressed membership for the reference fuzzy subsets for speed are: ; 1 1 1 7 3 7 3 ' ' ; 9 7 5. 4 2 7 5 5. 2 2 ' ' ; 6 5 6 1 5 4 4 1 ' ; 5 3 5. 2 2 3 1 5. 2 ' ' ; 3 1 3 ' ' + + + + V V V V V BLAST V V V V V V FAST V V V V V V L MEDIUM T V V V V V SLOW V V V MINIMAL BLAST BLAST FAST FAST MED MED SLOW SLOW MINIMAL

Worked Eample: Fuzzy Air Conditioner FUZZIFICATION: Consider that the temperature is 16 o C and we want our knowledge base to compute the speed. The fuzzification of the the crisp temperature gives the following membership for the Temperature fuzzy set: COLD COOL PLEASENT WARM HOT Temp16 o C.3.4 Fire Rule # #1 #2 #3 #4 #5 yes/no no yes yes no no 49

Worked Eample: Fuzzy Air Conditioner INFERENCE: Consider that the temperature is 16 o C and we want our knowledge base to compute the speed. Rule #2 & 3 are firing and are essentially the fuzzy patches made out of the cross products of COOL SLOW PLEASANT MEDIUM The COOL and PLEASANT sets have an output of.3 and.4 respectively. The fuzzy sets for SLOW and MEDIUM have to be given an α-level cut for these output values respectively: 5

Worked Eample: Fuzzy Air Conditioner COMPOSITION: The COOL and PLEASANT sets have an output of.3 and.4 respectively. The fuzzy sets for SLOW and MEDIUM have to be given an alpha-level cut for these output values respectively: Alpha-levelled Fuzzy Sets for Speed.5 Truth Value.4.3.2.1 MINIMAL SLOW MEDIUM FAST BLAST 1 2 3 4 5 6 7 8 9 1 Speed in RPM 51

Worked Eample: Fuzzy Air Conditioner COMPOSITION: The fuzzy output from Rules 2 and 3 can be given as: a-level set.45.4.35.3.25.2.15.1.5 2 4 6 8 1 a-level set 52

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: Now we have to find a way to obtain one single number from the curve below one number corresponding to the speed of the air-conditioner s motor. a-level set.45.4.35.3.25.2.15.1.5 2 4 6 8 1 a-level set 53

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: Two popular defuzzification techniques are the CENTROID & MAXIMUM 54

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: First we can compute the Centre of Gravity COG or Centre of Area COA of the output of the rules: The COG involves the computation of the weighted sum of the Speed and the corresponding membership function of the output fuzzy set and the weighted sum of the membership function. 55

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: The Centre of Gravity COG of the output of the rules: Formally, the crisp value is the value located under the centre of gravity of the area that is given by the function η yε Y output 1... 1. n y dy yε Y y output 1.... n y dy 56

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: The centre of gravity approach attempts to take the rules into consideration according to their degree of applicability. If a rule dominates during a certain interval then its dominance is discounted in other intervals. There are problems with the notion of COG & COA. 57

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: The crisp value h can be obtained by approimating the integral with a sum η Σ 1 output 1.... n Σy y output 1.... n y The centre of gravity approach attempts to take the rules into consideration according to their degree of applicability. If a rule dominates during a certain interval then its dominance is discounted in other intervals. 58

DEFUZZIFICATION: The following is a small ecerpt of the computation: Fuzzy Rule-based Systems: Worked Eample: Fuzzy Air Conditioner SPEED MINIMAL SLOW OUTPUT OF 2 RULES WEIGHTED SPEED 12.5.125.125 1.5625 15.25.25 3.75 17.5.3.3 5.25 2.3.3 6 22.5.3.3 6.75 25.3.3 7.5 27.5.3.3 8.25 3.3.3 9 32.5.3.3 9.75 35.3.3 1.5 37.5.3.3 11.25 4.3.3 12 42.5.3.25.3 12.75 45.25.4.4 18 47.5.125.4.4 19 5.4.4 2 52.5.4.4 21 55.4.4 22 57.5.25.25 14.375 SUM 5.925 218.6875 59

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: The computation leads to a SINGLE VALUE for the speed an average value computed with respect to the centre of gravity of the output fuzzy set: And the computed speed is 36.91 RPM 218.6875/5.925. 6

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: Another method of defuzzification is that of Mean of Maima MOM Method. Here again the weighted sum and weighted membership are worked out, ecept that the membership function is given another alpha level cut corresponding to the maimum value of the output fuzzy set. The crisp value for MOM method is given as: η Ma 1 output y Ma Σ 1... n output 1... n where Ma output 1... n denotes the set of all outputs y, with output 1... n y output Ma 1... n y 61

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: Another method of defuzzification is that of Mean of Maima Method. Here again the weighted sum and weighted membership are worked out, ecept that the membership function is given another alpha level cut corresponding to the maimum value of the output fuzzy set. This value is.4 and the corresponding speed value is 5 RPM 1/2. SPEED MINIMAL SLOW OUTPUT OF 2 RULES WEIGHTED OUTPUT 45.25.4.4 18 47.5.125.4.4 19 5.4.4 2 52.5.4.4 21 55 SUM.4.4 2 22 1 62

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: Two popular defuzzification techniques are the CENTROID & MAXIMUM Comparison of two defuzzification methods Center of Gravity CoG & Mean of Maimum MoM Speed 1 9 8 7 6 5 4 3 2 1 5 1 15 2 25 3 Speed CoG Speed MoM Temperature o C 63

Worked Eample: Fuzzy Air Conditioner DEFUZZIFICATION: The speed at which the fan will operate will vary due to the method chosen: Method Fan Speed for 16 degrees Centigrade Speed Fuzzy Sets Centre of Gravity 36.91 Mean of Maima Temperature Fuzzy Sets 5 Truth Value 1.8.6.4.2 1 2 3 4 5 6 7 8 9 1 MINIMAL SLOW MEDIUM FAST BLAST Truth Value 1.9.8.7.6.5.4.3.2.1 5 1 15 2 25 3 Cold Cool Pleasent Warm Hot Speed Temperature Degrees C 64

Worked Eample: Fuzzy Air Conditioner R E C A P I T U L A T E 65