Fuzzy logic Fuzzy Expert Systems Yeni Herdiyeni Departemen Ilmu Komputer.

Slides:



Advertisements
Similar presentations
© Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference.
Advertisements

Fuzzy Logic 11/6/2001. Agenda General Definition Applications Formal Definitions Operations Rules Fuzzy Air Conditioner Controller Structure.
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
1 Chap 4: Fuzzy Expert Systems Part 2 Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi SCCS451 Artificial Intelligence.

 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
AI – CS364 Fuzzy Logic Fuzzy Logic 3 03 rd October 2006 Dr Bogdan L. Vrusias
Fuzzy Logic and its Application to Web Caching
AI – CS289 Fuzzy Logic Fuzzy Tutorial 16 th October 2006 Dr Bogdan L. Vrusias
1 What is a fuzzy rule? A fuzzy rule can be defined as a conditional statement in the form: IF x is A THEN y is B where x and y are linguistic variables;
Fuzzy Expert System. Basic Notions 1.Fuzzy Sets 2.Fuzzy representation in computer 3.Linguistic variables and hedges 4.Operations of fuzzy sets 5.Fuzzy.
Fuzzy Expert Systems. Lecture Outline What is fuzzy thinking? What is fuzzy thinking? Fuzzy sets Fuzzy sets Linguistic variables and hedges Linguistic.
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
Lecture 07 Fuzzy Reasoning
Fuzzy Logic Control Lect 5 Fuzzy Logic Control Basil Hamed
6/9/2015Intelligent Systems and Soft Computing1 Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno.
Fuzzy Logic Based on a system of non-digital (continuous & fuzzy without crisp boundaries) set theory and rules. Developed by Lotfi Zadeh in 1965 Its advantage.
Fuzzy Expert System.
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
Fuzzy Medical Image Segmentation
Chapter 18 Fuzzy Reasoning.
1 Chapter 18 Fuzzy Reasoning. 2 Chapter 18 Contents (1) l Bivalent and Multivalent Logics l Linguistic Variables l Fuzzy Sets l Membership Functions l.
WELCOME TO THE WORLD OF FUZZY SYSTEMS. DEFINITION Fuzzy logic is a superset of conventional (Boolean) logic that has been extended to handle the concept.
Ming-Feng Yeh General Fuzzy Systems A fuzzy system is a static nonlinear mapping between its inputs and outputs (i.e., it is not a dynamic system).
Fuzzy Logic Dave Saad CS498. Origin Proposed as a mathematical model similar to traditional set theory but with the possibility of partial set membership.
09th October 2006 Dr Bogdan L. Vrusias
Introduction to Fuzzy Logic Control
The Equivalence between fuzzy logic controllers and PD controllers for single input systems Professor: Chi-Jo Wang Student: Nguyen Thi Hoai Nam Student.
Fuzzy Logic. Priyaranga Koswatta Mundhenk and Itti, 2007.
GreenHouse Climate Controller Fuzzy Logic Programing Greenhouse Climate Controller Using Fuzzy Logic Programming Anantharaman Sriraman September 2, 2003.
Fuzzy logic Introduction 2 Fuzzy Sets & Fuzzy Rules Aleksandar Rakić
Fuzzy Expert Systems. 2 Fuzzy Logic Four types of fuzzy logics Classic logic Crisp setence: Height(John, 180) → Weight(John, 60) Crisp data: Height(John,
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Sugeno fuzzy inference Case study.
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Fuzzy expert systems Chapter #9.
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
Fuzzy Inference (Expert) System
1 Fuzzy Logic and Fuzzy Systems –X: Relationship and Membership 1 Khurshid Ahmad, Professor of Computer Science, Department of Computer Science Trinity.
Lec 34 Fuzzy Logic Control (II)
Fuzzy Sets and Control. Fuzzy Logic The definition of Fuzzy logic is a form of multi-valued logic derived frommulti-valued logic fuzzy setfuzzy set theory.
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 12 FUZZY.
Fuzzy Expert System Fuzzy Inference دكترمحسن كاهاني
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
1 Lecture 4 The Fuzzy Controller design. 2 By a fuzzy logic controller (FLC) we mean a control law that is described by a knowledge-based system consisting.
October Fuzzy Expert Systems CS364 Artificial Intelligence.
Chapter 10 FUZZY CONTROL Chi-Yuan Yeh.
© Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference.
Chapter 13 (Continued) Fuzzy Expert Systems 1. Fuzzy Rule-based Expert System 2.
Introduction to Fuzzy Logic and Fuzzy Systems
What is a fuzzy rule? IF x is A THEN y is B
Artificial Intelligence CIS 342
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Fuzzy Logic Control Lect 5 Fuzzy Logic Control Basil Hamed Electrical Engineering Islamic University of Gaza.
Fuzzy Logic 11/6/2001.
Building a Fuzzy Expert System
Artificial Intelligence
Stanisław H. Żak School of Electrical and Computer Engineering
Fuzzy Logic and Fuzzy Sets
Homework 8 Min Max “Temperature is low” AND “Temperature is middle”
Introduction to Fuzzy Logic
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Dr. Unnikrishnan P.C. Professor, EEE
Dr. Unnikrishnan P.C. Professor, EEE
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
Lecture 5 Fuzzy expert systems: Fuzzy inference
Dr. Unnikrishnan P.C. Professor, EEE
Fuzzy Logic Bai Xiao.
Fuzzy Logic Based on a system of non-digital (continuous & fuzzy without crisp boundaries) set theory and rules. Developed by Lotfi Zadeh in 1965 Its advantage.
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

Fuzzy logic Fuzzy Expert Systems Yeni Herdiyeni Departemen Ilmu Komputer

2 Fuzzy Expert System Development Process 1. 1.Specify the problem; define linguistic variables Determine fuzzy sets Bring out and construct fuzzy rules Encode the fuzzy sets, fuzzy rules and procedures to perform fuzzy inference into the expert system Evaluate and tune the system.

3 1a. Specify the problem Air-conditioning involves the delivery of air, which can be warmed or cooled and have its humidity raised or lowered. An air-conditioner is an apparatus for controlling, especially lowering, the temperature and humidity of an enclosed space. An air-conditioner typically has a fan which blows/cools/circulates fresh air and has a cooler. The cooler is controlled by a thermostat. Generally, the amount of air being compressed is proportional to the ambient temperature. 1b. Define linguistic variables Ambient Temperature Air-conditioner Fan Speed Example: Air Conditioner

4 2. Determine Fuzzy Sets Fuzzy sets can have a variety of shapes. However, a triangle or a trapezoid can often provide an adequate representation of the expert knowledge, and at the same time, significantly simplifies the process of computation. Fuzzy sets are defined both for input and output variables!

5 2. Determine Fuzzy Sets: Temperature Temp ( 0 C). COLDCOOL PLEASAN T WARMHOT 0Y*NNNN 5YYNNN 10NYNNN 12.5NY*NNN 15NYNNN 17.5NNY*NN 20NNNYN 22.5NNNY*N 25NNNYN 27.5NNNNY 30NNNNY* Temp ( 0 C). COLDCOOLPLEASANTWARMHOT 0<  (T)<1  (T)=1  (T)=0 Example: Air Conditioner

6 2. Determine Fuzzy Sets: Fan Speed Rev/sec(RPM)MINIMALSLOWMEDIUMFASTBLAST 0Y*NNNN 10YNNNN 20YYNNN 30NY*NNN 40NYNNN 50NNY*NN 60NNNYN 70NNNY*N 80NNNYY 90NNNNY 100NNNNY* Example: Air Conditioner

7 3. Bring out and construct fuzzy rules RULE 1: IF is THEN is RULE 1: IF temp is cold THEN speed is minimal RULE 2: IF is THEN is RULE 2: IF temp is cool THEN speed is slow RULE 3: IF is THEN is RULE 3: IF temp is pleasant THEN speed is medium RULE 4: IF is THEN is RULE 4: IF temp is warm THEN speed is fast RULE 5: IF is THEN is RULE 5: IF temp is hot THEN speed is blast Example: Air Conditioner To accomplish this task, we might ask the expert to describe how the problem can be solved using the fuzzy linguistic variables defined previously. To accomplish this task, we might ask the expert to describe how the problem can be solved using the fuzzy linguistic variables defined previously. Required knowledge also can be collected from other sources such as books, computer databases, flow diagrams and observed human behaviour. Required knowledge also can be collected from other sources such as books, computer databases, flow diagrams and observed human behaviour.

8 4. Encode the fuzzy sets, fuzzy rules and procedures to perform fuzzy inference into the expert system To accomplish this task, we may choose one of two options: to build our system using a programming language such as C/C++ or Pascal, or to build our system using a programming language such as C/C++ or Pascal, or to apply a fuzzy logic development tool such as MATLAB Fuzzy Logic Toolbox or Fuzzy Knowledge Builder. to apply a fuzzy logic development tool such as MATLAB Fuzzy Logic Toolbox or Fuzzy Knowledge Builder.

9 5. Evaluate and tune the system The last, and the most laborious, task is to evaluate and tune the system. We want to see whether our fuzzy system meets the requirements specified at the beginning. The last, and the most laborious, task is to evaluate and tune the system. We want to see whether our fuzzy system meets the requirements specified at the beginning. Evaluation of the system output is performed for test situations on the several representative values of input variables. Fuzzy Logic development tools often can generate surface to help us evaluate and analyze the system’s performance. Evaluation of the system output is performed for test situations on the several representative values of input variables. Fuzzy Logic development tools often can generate surface to help us evaluate and analyze the system’s performance. Tuning of the system consists of reviewing, adding and/or changing the membership functions and rules in order to increase the performance of the system. Tuning of the system consists of reviewing, adding and/or changing the membership functions and rules in order to increase the performance of the system.

10 5a. Evaluate the system Consider a temperature of 16 o C, use the system to compute the optimal fan speed. Example: Air Conditioner RECALL: Operation of a fuzzy expert system: Fuzzification: determination of the degree of membership of crisp inputs in appropriate fuzzy sets. Inference: evaluation of fuzzy rules to produce an output for each rule. Aggregation: combination of the outputs of all rules. Defuzzification: computation of crisp output

11 Fuzzification  Affected fuzzy sets: COOL and PLEASANT  COOL (T) = (17.5 – 16)/(17.5 – 12.5) = 1.5/5 = 0.3 Temp=16  COLD  COOL  PLEASANT  WARM  HOT Example: Air Conditioner

12 Inference RULE 1: IF is THEN is RULE 1: IF temp is cold THEN speed is minimal RULE 2: IF is THEN is RULE 2: IF temp is cool THEN speed is slow RULE 3: IF is THEN is RULE 3: IF temp is pleasant THEN speed is medium RULE 4: IF is THEN is RULE 4: IF temp is warm THEN speed is fast RULE 5: IF is THEN is RULE 5: IF temp is hot THEN speed is blast Example: Air Conditioner RULE 2: IF temp is cool (0.3) THEN speed is slow (0.3) RULE 3: IF temp is pleasant (0.4) THEN speed is medium (0.4)

13 Aggregation Example: Air Conditioner Defuzzification speed is slow (0.3)speed is medium (0.4) + COG = 0.125(12.5) (15) + 0.3( … ) + 0.4( … ) (57.5) = 45.54rpm (11) + 0.4(5)

14 Input – Output Plot Example: Air Conditioner one input – one output gives nonlinear transfer characteristic More general example: two inputs – one output gives 3D transfer surface

15 5b. Tune fuzzy system to improve performance Review model input and output variables, and if required redefine their ranges. Review model input and output variables, and if required redefine their ranges. Review the fuzzy sets, and if required define additional sets on the universe of discourse. The use of wide fuzzy sets may cause the fuzzy system to perform roughly. Review the fuzzy sets, and if required define additional sets on the universe of discourse. The use of wide fuzzy sets may cause the fuzzy system to perform roughly. Provide sufficient overlap between neighbouring sets. It is suggested that triangle-to-triangle and trapezoid-to-triangle fuzzy sets should overlap between 25% to 50% of their bases. Provide sufficient overlap between neighbouring sets. It is suggested that triangle-to-triangle and trapezoid-to-triangle fuzzy sets should overlap between 25% to 50% of their bases. Review the existing rules, and if required add new rules to the rule base. Review the existing rules, and if required add new rules to the rule base. Examine the rule base for opportunities to write hedge rules to capture the pathological behaviour of the system. Examine the rule base for opportunities to write hedge rules to capture the pathological behaviour of the system. Adjust the rule execution weights. Most fuzzy logic tools allow control of the importance of rules by changing a weight multiplier. Adjust the rule execution weights. Most fuzzy logic tools allow control of the importance of rules by changing a weight multiplier. Revise shapes of the fuzzy sets. In most cases, fuzzy systems are highly tolerant of a shape approximation. Revise shapes of the fuzzy sets. In most cases, fuzzy systems are highly tolerant of a shape approximation.