Fuzzy expert systems

Similar documents
Rule-Based Fuzzy Model

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

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

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

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

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

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

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

Handling Uncertainty using FUZZY LOGIC

This time: Fuzzy Logic and Fuzzy Inference

Fundamentals. 2.1 Fuzzy logic theory

Revision: Fuzzy logic

Lecture 1: Introduction & Fuzzy Control I

This time: Fuzzy Logic and Fuzzy Inference

Lecture 06. (Fuzzy Inference System)

Financial Informatics XI: Fuzzy Rule-based Systems

What Is Fuzzy Logic?

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

Fuzzy control systems. Miklós Gerzson

Algorithms for Increasing of the Effectiveness of the Making Decisions by Intelligent Fuzzy Systems

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

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

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017

Fuzzy Control Systems Process of Fuzzy Control

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

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

ABSTRACT I. INTRODUCTION II. FUZZY MODEL SRUCTURE

Interval Type-2 Fuzzy Logic Systems Made Simple by Using Type-1 Mathematics

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

CHAPTER V TYPE 2 FUZZY LOGIC CONTROLLERS

Fuzzy Expert Systems Lecture 6 (Fuzzy Logic )

Analysis of Defuzzification Method for Rainfall Event

An Integrated Approach for Process Control Valves Diagnosis Using Fuzzy Logic

Uncertainty and Rules

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

Computational Intelligence Lecture 6:Fuzzy Rule Base and Fuzzy Inference Engine

SOFT COMPUTING (PECS 3401)-FUZZY LOGIC

1. Brief History of Intelligent Control Systems Design Technology

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

CHAPTER 5 FUZZY LOGIC FOR ATTITUDE CONTROL

5. Lecture Fuzzy Systems

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

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

Faster Adaptive Network Based Fuzzy Inference System

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

Computational Intelligence Lecture 13:Fuzzy Logic

Fuzzy controller for adjustment of liquid level in the tank

UNIVERSITY OF SURREY

CHAPTER 5 FREQUENCY STABILIZATION USING SUPERVISORY EXPERT FUZZY CONTROLLER

Fuzzy Systems. Fuzzy Control

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

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

FUZZY CONTROL OF CHAOS

FUZZY CONTROL OF CHAOS

Learning from Examples

APPLICATION OF AIR HEATER AND COOLER USING FUZZY LOGIC CONTROL SYSTEM

Civil Engineering. Elixir Civil Engg. 112 (2017)

What is fuzzy? A dictionary definition. And so what is a Fuzzy Set? events. a not clear Set? 1. Of or resembling fuzz.

Prediction of Ultimate Shear Capacity of Reinforced Normal and High Strength Concrete Beams Without Stirrups Using Fuzzy Logic

Fuzzy Logic and Fuzzy Systems

Fuzzy Logic Control for Half Car Suspension System Using Matlab

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

Fuzzy Systems for Control Applications

Fuzzy Sets and Fuzzy Logic

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

Wind Turbine Power Generation: Response Prediction

Models for Inexact Reasoning. Fuzzy Logic Lesson 8 Fuzzy Controllers. Master in Computational Logic Department of Artificial Intelligence

Adaptive fuzzy observer and robust controller for a 2-DOF robot arm Sangeetha Bindiganavile Nagesh

Environment Protection Engineering MATRIX METHOD FOR ESTIMATING THE RISK OF FAILURE IN THE COLLECTIVE WATER SUPPLY SYSTEM USING FUZZY LOGIC

Fuzzy Logic Controller

Application of Fuzzy Logic and Uncertainties Measurement in Environmental Information Systems

Image Enhancement: Methods. Digital Image Processing. No Explicit definition. Spatial Domain: Frequency Domain:

Fuzzy Sets, Fuzzy Logic, and Fuzzy Systems II

Fuzzy Logic Controller Based on Association Rules

DESIGN OF A FUZZY EXPERT SYSTEM FOR MAGNETIC FILTER PERFORMANCE ACCORDING TO MAGNETIC FIELD

CRITICALITY ASSESSMENT RISK; CONTRIBUTION OF FUZZY LOGIC

Chapter 2 Introduction to Fuzzy Systems

A linguistic fuzzy model with a monotone rule base is not always monotone

URL: < %2f _8>

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

Fuzzy Expert Systems Lecture 3 (Fuzzy Logic)

Intuitionistic Fuzzy Logic Control for Washing Machines

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

Fuzzy Logic. Chapter Introduction. 2.2 Industrial Applications

Uncertain System Control: An Engineering Approach

Financial Informatics IX: Fuzzy Sets

Rule-based Mamdani-type fuzzy modeling of skin permeability

OPTIMAL CAPACITOR PLACEMENT USING FUZZY LOGIC

Improvement of Process Failure Mode and Effects Analysis using Fuzzy Logic

SOFT COMPUTING TECHNIQUES FOR MAJOR ROOF FALLS IN BORD AND PILLAR IN UNDERGROUND COAL MINES USING MAMDANI FUZZY MODEL

Fuzzy Expert Systems Lecture 3 (Fuzzy Logic)

Circuit Implementation of a Variable Universe Adaptive Fuzzy Logic Controller. Weiwei Shan

Lecture Notes On- K. Sridhar Patnaik(Lecturer) & Rashmi Sahay (Lecturer) Computer Sc. Dept. Birla Institute of Technology, Mesra

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

TEMPERATUTE PREDICTION USING HEURISTIC DATA MINING ON TWO-FACTOR FUZZY TIME-SERIES

CONTROL SYSTEMS, ROBOTICS AND AUTOMATION Vol. XVII - Analysis and Stability of Fuzzy Systems - Ralf Mikut and Georg Bretthauer

Fuzzy logic : principles and applications

CHAPTER 4 FUZZY AND NEURAL NETWORK FOR SR MOTOR

Transcription:

The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering ECOM5039:Artificial Intelligence Eng. Ibraheem Lubbad Fuzzy expert systems Main points: Fuzzy logic is determined as a set of mathematical principles for knowledge representation based on degrees of membership rather than on crisp membership of classical binary logic. Fuzzy sets The basic idea of the fuzzy set theory is that an element belongs to a fuzzy set with a certain degree of membership as a real number in the interval [0,1] horizontal axis represents the universe of discourse: the range of all possible values applicable to a chosen variable. µa (x): X - > [0,1] membership function of set A where : Linguistic variables : Linguistic variables : speed Linguistic values : slow, medium, fast µa (x)= 1 if x is totally in A µa (x)= 0 if x is not in A 0 < µa (x) < 1 if x is partly in A

Hedges: hedges terms that modify the shape of fuzzy sets,they include adverbs such as very, somewhat,, more or less and slightly. Representation of hedges in fuzzy logic

Operations of fuzzy sets: Complement Containment Intersection ( and ) Union ( or ) μ A (x)=1- μa (x) a set can contain other sets µ A Ո B ( x )=min[μa (x), μb (x) ]= µa (x) Ո µb (x) where x ϵ X µ A Ս B ( x )=max[μa (x), μb (x) ]= µa (x) Ս µb (x) where x ϵ X Fuzzy rules: If Linguistic variables is Linguistic value Then result Evaluating degree of membership the rule antecedent ( IF part ) THEN apply the result to the consequent (THEN part of the rule). * If the antecedent is true to some degree of membership, then the consequent is also true to that same degree. * If the consequent of a fuzzy rule have multiple parts, In this case, all parts of the consequent are affected equally by the antecedent. Fuzzy inference: It s a process of mapping from a given input to an output, we need to obtain a single crisp solution for the output variable using one of the following methods. inference methods: 1. Mamdani-style: 2. Sugeno-style: Mamdani The Mamdani-style fuzzy inference process is performed in four steps: 1) Fuzzification of the input variables 2) Rule evaluation 3) Aggregation of the rule outputs 4) Defuzzification.

Fuzzification: From the crisp inputs (by the expert), x1 and y1 we determine the degree to which these inputs belong to each of the appropriate fuzzy sets Rule evaluation: خاللها بحدد درجة انتماء عناصر المجموعة عن طريق تقاطع الخط العمودي مع الدالة االنتماء If there multiple antecedents we need to obtain a single number that (the truth value) represents the result of the antecedent evaluation, then applied to the consequent membership function. Aggregation of the rule outputs: we take the membership functions of all rule consequents previously clipped and combine them into a single fuzzy set. If there a multiple output variable then the output is one fuzzy set for each output variable. Defuzzification: Find the final output of a fuzzy system that will be a crisp number. We Use Centroid technique to finds the point where a vertical line would slice the aggregate set into two equal masses. Mathematically this centre of gravity (COG): Sugeno-style inference: it s the same mamdani process but it changed only a rule consequent. Instead of a fuzzy set, he used a mathematical function of the input variable that rule consequents are singletons that is unity at a single particular k point on the universe of discourse and zero everywhere else To find the weighted average (WA) of these singletons

Questions : Q 1) Determine the truth value of the following propositions P1 and P2. P1 = P is very true, P2 = P is false, where P = 30 is high, the truth value of P is 0.3,? Solution: µ very true = (µ true) 2 P1=0.09 P2=0.7 Q 2) For a given two fuzzy sets: A = ( 0/0, 0.5/20, 0.65/40, 0.85/60, 1.0 /80, 1.0 /100 ) B = ( 0/0, 0.45/20, 0.6/40, 0.8/60, 0.95/80, 1.0/100 ) Find the following membership functions using standard fuzzy operations: a) µ A Ս B ( x ) b) µ A Ո B ( x ) c) µ A ( x ) d) µ B ( x ) e) µ A Ս A ( x ) f) µ A Ո A ( x ) g) µ A Ո B ( x ) solution : a) µ A Ս B ( x )=(0/0, 0.5/20, 0.65/40, 0.85/60, 1/80, 1/100 ) b) µ A Ո B ( x )=(0/0, 0.45/20, 0.6/40, 0.8/60, 0.95/80, 1/100 ) c) µ A ( x ) =(1 / 0, 0.95/20, 0.35/40, 0.15/60, 0/80, 0/100) d) µ B ( x ) = (1/0, 0.55/20, 0.4/40, 0.2/60, 0.05/80, 0/100 ) e) µ A Ս A ( x )=(1/0, 0.5/20,0.65/40,0.85/60 1/80, 1/100) f) µ A Ո A ( x )= (0 /0, 0.5/20, 0.35 /40, 0.15/60 0.0 /80, 0.0/100 ) g) µ A Ո B ( x )= (1.0/0, 0.55/20, 0.4 /40, 0.2/60, 0.5 /80, 1.0 /100 )

Q 3) Suppose we define membership for linguistic variables heavy and light as follows: Heavy = (0.2/5, 0.4/8, 0.6/12, 0.8/20, 1/30 ) Light = (1/5, 0.8/8, 0.5/12, 0.1/20, 0/30) Develop membership functions for the following linguistic phrases: a) Very heavy. b) Alittle heavy c) Not very Light d) Not very hevey and not very light Solution: Very heavy = (0.04/5, 0.16/8, 0.36/12, 0.64/20, 1/30 ) Alittle heavy = (0.12/5, 0.3/8, 0.51/12, 0.75/20, 1/30 ) very Light = (1/5, 0.64/8, 0.25/12, 0.01/20, 0/30 ) Not very Light = (0/5, 0.36/8, 0.75/12, 0.99/20, 1/30 ) Not very hevey and not very light =[1- µ heavy (x) 2] Ո [1- µ light (x) 2 ] =(0/5, 0.36/8, 0.64/12, 0.36/20, 0/30 )

Q 4) Consider the following fuzzy expert system for weather forecast: R1 : IF arrow position is down THEN clouds (cf = 0.8) R2: IF arrow position is in the middle and moving down THEN clouds (cf = 0.6) R3 : IF arrow position is in the middle and moving up THEN sunny (cf = 0.6) R4 : IF arrow position is up THEN sunny ( cf = 0.8) The following two plots represent the membership functions of two fuzzy variables describing the position of the arrow of barometer (left) and the direction of its movement (right): P M The air pressure is measured in millibars, and the speed of its change in millibars per hour. when a given input pressure is 1020 millibars and the pressure changes 2 millibars every hour. Answer the following questions. a) How much is the arrow position Down, Up or in the Middle? µ Up(p) =0.5, µ down(p) =0.0, µ middle(p) =0.25

b) How much is the arrow moving Down or Up? µ Up(m) =0.0, µ down(m) =0.75 c) Using the membership values found above and confidences of the rules in the table calculate the degree of confidence in that the sky is clear or cloudy? Degrees of membership of the arrow position and movement (Fuzzification) µ (P=arrow position is down) = 0 µ (P=arrow position is in the middle) = 0.25 µ (P = arrow position is up) = 0.5 µ (M = arrow is moving down) = 0.75 µ (M =arrow is moving up) = 0 First, we find the combined membership values of condition parts of the rules( Rule evaluation): Rule 1 : IF arrow is down µ (P=arrow is down) = Rule 2 : IF arrow is in the middle and moving down µ (P=arrow is in the middle and M=moving down) = min[0.25, 0.75] = 0.25 Rule 3 : IF arrow is in the middle and moving up Rule 4 : IF arrow is up µ (P=arrow is in the middle and M=moving up) = min[0.25, 0] = 0, µ (P=arrow is up) = 0.5

To calculate the degree of confidence in conclusion of each rule, we need to multiply the the membership values of their conditions by the degrees of confidence (cf )of the rules itself: µ (result) = µ (condition) cf(rule). Using the cf values for rules we can calculate µ 1 (w=clouds) = 0 0.8 = 0 µ 2(w=clouds) = 0.25 0.6 = 0.15 µ 1(w=sunny) = 0 0.6 = 0 µ 2(w=sunny) = 0.5 0.8 = 0.4 Because we have two conclusions about for each type of weather, we need to use the following formula for combining memberships of two conclusions: µ (x) = µ 1(x) + µ 2(x) µ 1(x) µ 2(x) where µ 1(x) and µ 2(x) >= 0 So, the results are µ (W=clouds) = 0 + 0.15 0 0.15 = 0.15 µ (W=sunny) = 0 + 0.4 0 0.4 = 0.4 d) The following plot describe sunny and clouds sets for the output variable weather forecast,find the final crisp output? 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 Clouds Sunny 0 10 20 30 40 50 60 70 80 90 100 COG= (0+10+20+30+40) 0.15+(50 0.35)+(60+70+80+90+100) 0.4 5 0.15+5 0.4+0.35 = 71.3 The crisp output is 71.3 It means, for instance, that the weather forecast is 71.3% accourding crisp inputs. End