Building a Fuzzy Expert System

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.

Graphical Technique of Inference
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
Fuzzy Logic and its Application to Web Caching
Fuzzy logic Fuzzy Expert Systems Yeni Herdiyeni Departemen Ilmu Komputer.
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 SYSTEMS. Fuzzy Systems Fuzzy Sets – To quantify and reason about fuzzy or vague terms of natural language – Example: hot, cold temperature small,
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 Expert System.
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.
S. Mandayam/ ANN/ECE Dept./Rowan University Artificial Neural Networks ECE /ECE Fall 2008 Shreekanth Mandayam ECE Department Rowan University.
09th October 2006 Dr Bogdan L. Vrusias
Function: Definition A function is a correspondence from a first set, called the domain, to a second set, called the range, such that each element in the.
Designing Antecedent Membership Functions
Fuzzy Logic. Priyaranga Koswatta Mundhenk and Itti, 2007.
FUZZY LOGIC Babu Appat. OVERVIEW What is Fuzzy Logic? Where did it begin? Fuzzy Logic vs. Neural Networks Fuzzy Logic in Control Systems Fuzzy Logic in.
Fuzzy logic Introduction 2 Fuzzy Sets & Fuzzy Rules Aleksandar Rakić
Experimental determination of motor model parameters ETEC6419.
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,
Chapter 2 Sections 1- 3 Functions and Graphs. Definition of a Relation A Relation is a mapping, or pairing, of input values with output. A set of ordered.
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.
1 Fuzzy Logic and Fuzzy Systems –X: Relationship and Membership 1 Khurshid Ahmad, Professor of Computer Science, Department of Computer Science Trinity.
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.
Fuzzy systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Fuzzy Expert System Fuzzy Inference دكترمحسن كاهاني
Homework 5 Min Max “Temperature is low” AND “Temperature is middle”
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
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.
S PEED CONTROL OF DC MOTOR BY FUZZY CONTROLLER MD MUSTAFA KAMAL ROLL NO M E (CONTROL AND INSTRUMENTATION)
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
Functions 12-4 Warm Up Problem of the Day Lesson Presentation
Fuzzy Inference Systems
A great man who created a complete new mathematics with many practical applications.
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.
Artificial Intelligence
Stanisław H. Żak School of Electrical and Computer Engineering
Meaning of “fuzzy”, Definition of Fuzzy Logic
Fuzzy Logic and Fuzzy Sets
Homework 8 Min Max “Temperature is low” AND “Temperature is middle”
Chapter 2 Section 2 Linear Equations Pt 1
Dr. Unnikrishnan P.C. Professor, EEE
Fuzzy System Structure
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
Lecture 5 Fuzzy expert systems: Fuzzy inference
Meaning of “fuzzy”, Definition of Fuzzy Logic
Function Rules and Tables.
Define evaluate and compare functions
An application: A Client Financial Risk Tolerance Model
Meaning of “fuzzy”, Definition of Fuzzy Logic
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

Building a Fuzzy Expert System Chapter 13 (Continued) Building a Fuzzy Expert System Air conditioner Determining number of spare in a service center

Steps of Building an Expert System Specify the problem and define linguistic variables. Determine fuzzy sets. Elicit 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.

Example 1: Air Conditioner Consider an air-conditioner, which has five control switches: COLD, COOL, PLEASANT, WARM and HOT. Linguistic variable: Temperature Linguistic Values: COLD, COOL, PLEASANT, WARM and HOT The corresponding speeds of the motor: MINIMAL, SLOW, MEDIUM, FAST and BLAST. Linguistic variable: Speed Linguistic Values: MINIMAL, SLOW, MEDIUM, FAST and BLAST

Temperature Graduations Temp (0C). COLD COOL PLEASANT WARM HOT Y* N 5 Y 10 12.5 15 17.5 20 22.5 25 27.5 30 Y : temp value belongs to the set (0<A(x)<1) Y* : temp value is the ideal member to the set (A(x)=1) N : temp value is not a member of the set (A(x)=0)

Temperature Fuzzy Sets Linear membership functions

Analytical Expression of the Temperature COLD: for 0 ≤ t ≤ 10 COLD(t) = – t / 10 + 1 COOL: for 0 ≤ t ≤ 12.5 COOL(t) = t / 12.5 for 12.5 ≤ t ≤ 17.5 COOL(t) = – t / 5 + 3.5 etc… all based on the linear equation: y = ax + b

Speed Graduations Speed (RPM) MINIMAL SLOW MEDIUM FAST BLAST Y* N 10 Y Y* N 10 Y 20 30 40 50 60 70 80 90 100 Y : speed value belongs to the set (0<A(x)<1) Y* : speed value is the ideal member to the set (A(x)=1) N : speed value is not a member of the set (A(x)=0)

Speed Fuzzy Sets Linear membership functions

Analytical Expression of the Speed MINIMAL: for 0 ≤ v ≤ 30 MINIMAL(v) = – v / 30 + 1 SLOW: for 10 ≤ v ≤ 30 SLOW(v) = v / 20 – 0.5 for 30 ≤ v ≤ 50 SLOW(v) = – v / 20 + 2.5 etc… all based on the linear equation: y = ax + b

Fuzzy Rules The rules governing the air-conditioner are as follows: IF TEMP is COLD THEN SPEED is MINIMAL RULE 2: IF TEMP is COOL THEN SPEED is SLOW RULE 3: IF TEMP is PLEASANT THEN SPEED is MEDIUM RULE 4: IF TEMP is WARM THEN SPEED is FAST RULE 5: IF TEMP is HOT THEN SPEED is BLAST

Example 2: Determining # of Spare in a Service Center A service center keeps spare parts and repairs failed ones. A customer brings a failed item and receives a spare of the same type. Failed parts are repaired, placed on the shelf If the required spare is available on the shelf, the customer takes it and leaves the service center. However, if there is no spare on the shelf, the customer has to wait until the needed item becomes available. The objective here is to advise a manager of the service center on certain decision policies to keep the customers satisfied.

1. Specify the Problem and Define Linguistic Variables n: the initial number of spares m: the customer’s mean delay s: number of servers ρ: repair utilization factor Ratio of customer arrival rate to customer departure rate, or Ratio of item’s failure rate to repair Manager tries to keep it high, to increase the productivity Three inputs: m, s and ρ One output: n In other words, a manager of the service center wants to determine the number of spares required to maintain the actual mean delay in customer service within an acceptable range.

1. Specify the Problem and Define Linguistic Variables Inputs

1. Specify the Problem and Define Linguistic Variables Output

2. Determine Fuzzy Sets

2. Determine Fuzzy Sets

3. Elicit and Construct Fuzzy Rules A very basic Fuzzy rule set suppose: m and s are fixed values relation between the repair utilisation factor ρ, and the number of spares n

3. Elicit and Construct Fuzzy Rules Relation between s (number of servers) and m (mean delay): It is often convenient to represent fuzzy rules in a matrix form, so-called fuzzy associative memory (FAM). 3*3 FAM that will represent the rest of the rules in a matrix form:

3. Elicit and Construct Fuzzy Rules The cube 3*3*3 FAM representation

Rule Table

Matlab Fuzzy Toolbox Fuzzy CLIPS … 4. Encode the Fuzzy Sets, Fuzzy Rules and Procedures to Perform Fuzzy Inference into the Expert System Matlab Fuzzy Toolbox Fuzzy CLIPS …

5. Evaluate and Tune the System 3D plot of the rules