Homework 8 Min Max “Temperature is low” AND “Temperature is middle”

Slides:



Advertisements
Similar presentations
Fuzzy Logic 11/6/2001. Agenda General Definition Applications Formal Definitions Operations Rules Fuzzy Air Conditioner Controller Structure.
Advertisements

 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
Fuzzy Inference and Defuzzification
CS 561, Sessions This time: Fuzzy Logic and Fuzzy Inference Why use fuzzy logic? Tipping example Fuzzy set theory Fuzzy inference.
CS 561, Sessions This time: Fuzzy Logic and Fuzzy Inference Why use fuzzy logic? Tipping example Fuzzy set theory Fuzzy inference.
Fuzzy logic Fuzzy Expert Systems Yeni Herdiyeni Departemen Ilmu Komputer.
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”
EEE-8005 Industrial automation SDL Module leader: Dr. Damian Giaouris Room: E3.16 Phone: Module Leader.
Lecture 07 Fuzzy Reasoning
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.
Chapter 18 Fuzzy Reasoning.
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.
Introduction to Fuzzy Logic Control
Indian Institute of Technology Bombay GIS-based mineral resource potential mapping - Modelling approaches  Exploration datasets with homogenous coverage.
Fuzzy Logic. Priyaranga Koswatta Mundhenk and Itti, 2007.
CPSC 386 Artificial Intelligence Ellen Walker Hiram College
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,
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
Lógica difusa  Bayesian updating and certainty theory are techniques for handling the uncertainty that arises, or is assumed to arise, from statistical.
Fuzzy Inference Systems. Fuzzy inference (reasoning) is the actual process of mapping from a given input to an output using fuzzy logic. The process involves.
“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 systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Homework 5 Min Max “Temperature is low” AND “Temperature is middle”
NEURO-FUZZY LOGIC 1 X 0 A age Crisp version for young age.
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.
© Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference.
Lecture 8 Introduction to Neural Networks and Fuzzy Logic President UniversityErwin SitompulNNFL 8/1 Dr.-Ing. Erwin Sitompul President University
S PEED CONTROL OF DC MOTOR BY FUZZY CONTROLLER MD MUSTAFA KAMAL ROLL NO M E (CONTROL AND INSTRUMENTATION)
Chapter 13 (Continued) Fuzzy Expert Systems 1. Fuzzy Rule-based Expert System 2.
This time: Fuzzy Logic and Fuzzy Inference
Introduction to Fuzzy Logic and Fuzzy Systems
Fuzzy Logic Control What is Fuzzy Logic ? Logic and Fuzzy Logic
What is a fuzzy rule? IF x is A THEN y is B
Artificial Intelligence CIS 342
Fuzzy Systems Michael J. Watts
Question: Is it warm in here?
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Introduction to Fuzzy Logic
Fuzzy Logic 11/6/2001.
Artificial Intelligence
Stanisław H. Żak School of Electrical and Computer Engineering
Integrated Physics and Chemistry
Introduction to Fuzzy Logic
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Dr. Unnikrishnan P.C. Professor, EEE
Fuzzy System Structure
منطق فازی.
Dr. Unnikrishnan P.C. Professor, EEE
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
This time: Fuzzy Logic and Fuzzy Inference
Lecture 5 Fuzzy expert systems: Fuzzy inference
Dr. Unnikrishnan P.C. Professor, EEE
This time: Fuzzy Logic and Fuzzy Inference
Fuzzy Logic Bai Xiao.
Fuzzy Inference Systems
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:

Homework 8 Min Max “Temperature is low” AND “Temperature is middle” Fuzzy Logic Membership Function Homework 8 Min “Temperature is low” AND “Temperature is middle” Max “Temperature is low” OR “Temperature is middle”

Homework 8 Algebraic product Algebraic sum Fuzzy Logic Membership Function Homework 8 Algebraic product “Temperature is low” AND “Temperature is middle” Algebraic sum “Temperature is low” OR “Temperature is middle”

Homework 8 Bounded product Bounded sum Fuzzy Logic Membership Function Homework 8 Bounded product “Temperature is low” AND “Temperature is middle” Bounded sum “Temperature is low” OR “Temperature is middle”

Further Fuzzy Set Operations Fuzzy Logic Fuzzy Control Further Fuzzy Set Operations Dilation Concentration

Fuzzy Logic Fuzzy Control Fuzzy Control Loop

Fuzzy Logic Fuzzy Control Fuzzy Inference Prior to fuzzy control, the followings must be defined: Fuzzy membership functions Fuzzy logic operators Fuzzy rules, including fuzzy linguistic value and linguistic variable The processing steps in a fuzzy control include: Fuzzification Implication / Inference Core Accumulation Defuzzification

Fuzzy Rules Example of a fuzzy rule while “Driving a Car”: Fuzzy Logic Fuzzy Control Fuzzy Rules Example of a fuzzy rule while “Driving a Car”: “IF the distance to the car in front is small, AND the distance is decreasing slowly, THEN decelerate quite big” The question that arises: Given a certain distance and a certain change of distance, what (crisp) value of acceleration should we select?

Definition of Fuzzy Membership Functions Fuzzy Logic Fuzzy Control Definition of Fuzzy Membership Functions v. small Distance small perfect big v. big moderate Distance decrease slow fast very fast v. slow Acceleration –small zero +small +big –big

Observation/ measurement Fuzzy Logic Fuzzy Control Fuzzification Observation/ measurement Observation/ measurement v. small Distance small perfect big v. big moderate Distance decrease slow fast very fast v. slow Acceleration –small zero +small +big –big Distance between small and perfect Distance decrease can be moderate or fast What acceleration should be applied?

Observation/ measurement Fuzzy Logic Fuzzy Control Implication of Rules Observation/ measurement v. small Distance small perfect big v. big Acceleration –small zero +small +big –big 0.55 RULE 1: IF distance is small THEN decelerate small Inference core: Clipping Clip the fuzzy membership function of “–small” at the height given by the premises (0.55). Later, the clipped area will be considered in the final decision

Observation/ measurement Fuzzy Logic Fuzzy Control Implication of Rules Observation/ measurement moderate Distance decrease slow fast very fast v. slow Acceleration –small zero +small +big –big 0.7 RULE 2: IF distance decrease is moderate THEN keep the speed Inference core: Clipping Clip the fuzzy membership function of “zero” at the height given by the premises (0.7). Later, the clipped area will be considered in the final decision

Fuzzy Logic Fuzzy Control Accumulation From each rule, a clipped area is obtained. But, in the end only one single output is wanted. How do we make a final decision? –small zero +small +big –big Acceleration Rule 1 Rule 2 In the accumulation (aggregation) step, all clipped areas are merged into one merged area (taking the union). Rules with high premises will contribute large clipped area to the merged area. These rules will “pull” that merged area towards their own central value.

Fuzzy Logic Fuzzy Control Defuzzification –small zero +small +big –big Acceleration Center of gravity Crisp value In this last step, the returned value is the wanted acceleration. Out of many possible ways, the center of gravity is the commonly used method in defuzzification.

Fuzzy Logic Fuzzy Control Inference Core There are two approaches that can be used for inference core: acceleration 1. Clipping approach: 0.55 Min-Operator Fuzzification value Membership function acceleration 2. Scaling approach: 0.55 Algebraic Product

Review on Center of Gravity Fuzzy Logic Fuzzy Control Review on Center of Gravity Rectangle Triangle

Review on Center of Gravity Fuzzy Logic Fuzzy Control Review on Center of Gravity Isosceles Trapezoid Trapezoid

Summary of Fuzzy Control Fuzzy Logic Fuzzy Control Summary of Fuzzy Control Fuzzify inputs, determine the degree of membership for all terms in the premise. Apply fuzzy logic operators, if there are multiple terms in the premise (min-max, algebraic, bounded). Apply inference core (clipping, scaling, etc.) Accumulate all outputs (union operation i.e. max, sum, etc.) Defuzzify (center of gravity of the merged outputs, max-method, modified center of gravity, height method, etc)

Limitations of Fuzzy Control Fuzzy Logic Fuzzy Control Limitations of Fuzzy Control Definition and fine-tuning of membership functions need experience (covered range, number of MFs, shape). Defuzzification may produce undesired results (needs redefinition of membership functions).

Acceleration adj. [m/s2] Fuzzy Logic Fuzzy Control Homework 9 A fuzzy controller is to be used in driving a car. The fuzzy membership functions for the two inputs and one output are defined as below. v. small Distance to next car [m] small perfect big v. big 0 5 10 15 20 25 1 Speed change [m/s2] constant growing declining –small zero +small +big –big Acceleration adj. [m/s2] –2 –1 0 1 2 –10 –5 0 5 10

Fuzzy Logic Fuzzy Control Homework 9 (Cont.) A fuzzy controller is to be used in driving a car. The fuzzy rules are given as follows. Rule 1: IF distance is small AND speed is declining, THEN maintain acceleration. Rule 2: IF distance is small AND speed is constant, THEN acceleration adjustment negative small. Rule 3: IF distance is perfect AND speed is declining, THEN acceleration adjustment positive small. Rule 4: IF distance is perfect AND speed is constant, THEN maintain acceleration.

Fuzzy Logic Fuzzy Control Homework 9 (Cont.) Using Min-Max as fuzzy operators, clipping as inference core, union operator as accumulator, and center of gravity method as defuzzifier, find the output of the controller if the measurements confirms that distance to next car is 13 m and the speed is increasing by 2.5 m/s2.

Fuzzy Logic Fuzzy Control Homework 9A A driver of an open-air car determine how fast he drives based on the air temperature and the sky conditions. The corresponding fuzzy membership functions can be seen here.

Fuzzy Logic Fuzzy Control Homework 9A (Cont.) After years of experience, he summarizes his personal driving rules as follows: Rule 1: IF it is sunny AND warm, THEN drive fast. Rule 2: IF it is partly cloudy AND hot, THEN drive slow. Rule 3: IF it is partly cloudy, THEN drive fast. You are now assigned to design a fuzzy control with the following requirements: Fuzzy logic operators: algebraic sum / product Inference core: scaling Accumulator: union operator Defuzzification: center of gravity method The speed limit is 120 km/h. How fast will the driver go if in one day the temperature is 65 °F and the cloud cover is 25 %?