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.

Slides:



Advertisements
Similar presentations
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Advertisements

Fuzzy Sets and Fuzzy Logic
Fuzzy Expert System  An expert might say, “ Though the power transformer is slightly overloaded, I can keep this load for a while”.  Another expert.
Lecture 4 Fuzzy expert systems: Fuzzy logic
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.
Soft Computing. Per Printz Madsen Section of Automation and Control
CS344 Artificial Intelligence Prof. Pushpak Bhattacharya Class on 6 Mar 2007.
Fuzzy Expert System Fuzzy Logic
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 Systems. Lecture Outline What is fuzzy thinking? What is fuzzy thinking? Fuzzy sets Fuzzy sets Linguistic variables and hedges Linguistic.
Final Exam: May 10 Thursday. If event E occurs, then the probability that event H will occur is p ( H | E ) IF E ( evidence ) is true THEN H ( hypothesis.
FUZZY SYSTEMS. Fuzzy Systems Fuzzy Sets – To quantify and reason about fuzzy or vague terms of natural language – Example: hot, cold temperature small,
Lecture 07 Fuzzy Reasoning
Fuzzy Expert System.
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.
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
The Equivalence between fuzzy logic controllers and PD controllers for single input systems Professor: Chi-Jo Wang Student: Nguyen Thi Hoai Nam Student.
BEE4333 Intelligent Control
Rule-Based Fuzzy Model. In rule-based fuzzy systems, the relationships between variables are represented by means of fuzzy if–then rules of the following.
Indian Institute of Technology Bombay GIS-based mineral resource potential mapping - Modelling approaches  Exploration datasets with homogenous coverage.
9/3/2015Intelligent Systems and Soft Computing1 Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what.
Fuzzy logic Introduction 2 Fuzzy Sets & Fuzzy Rules Aleksandar Rakić
Fuzzy Sets Introduction/Overview Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto.
Classical Sets and Fuzzy Sets
Fuzzy Logic. Lecture Outline Fuzzy Systems Fuzzy Sets Membership Functions Fuzzy Operators Fuzzy Set Characteristics Fuzziness and Probability.
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
Theory and Applications
 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 Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi SCCS451 Artificial Intelligence Week 9.
Logical Systems and Knowledge Representation Fuzzy Logical Systems 1.
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.
Theory and Applications
“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.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
Fuzzy systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Chapter 13 Fuzzy Logic 1. Handling Uncertainty Probability-based approach and Bayesian theory Certainty factor and evidential reasoning Fuzzy logic 2.
AI Fuzzy Systems. History, State of the Art, and Future Development Sde Seminal Paper “Fuzzy Logic” by Prof. Lotfi Zadeh, Faculty in Electrical.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture 5 – 08/08/05 Prof. Pushpak Bhattacharyya FUZZY LOGIC & INFERENCING.
Ch.3 Fuzzy Rules and Fuzzy Reasoning
Fuzzy Logic.
Fuzzy Relations( 關係 ), Fuzzy Graphs( 圖 形 ), and Fuzzy Arithmetic( 運算 ) Chapter 4.
Lecture 4 Fuzzy expert systems: Fuzzy logic n Introduction, or what is fuzzy thinking? n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy.
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
Expert System Structure
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Week 11 Managing Knowledge
Fuzzy Logic and Fuzzy Sets
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Fuzzy System Structure
Dr. Unnikrishnan P.C. Professor, EEE
Intelligent Systems and Soft Computing
FUZZIFICATION AND DEFUZZIFICATION
Dr. Unnikrishnan P.C. Professor, EEE
This time: Fuzzy Logic and Fuzzy Inference
Classical Sets and Fuzzy Sets
06th October 2005 Dr Bogdan L. Vrusias
Introduction to Fuzzy Set Theory
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Presentation transcript:

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 rules 6.Reasoning with fuzzy rules 7.Fuzzy inference 8.Building fuzzy expert system

Fuzzy Logic 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 Logic Multi-valued Deals with degree of membership Degrees of truth Uses continuum of logical values between 0 (completely false) and 1(completely true)

Fuzzy Sets Fuzzy set Refer page 89 The basic idea of fuzzy set theory ; an element belongs to a fuzzy set with certain degree of membership. Not either true or false, but partly true(false) to any degree Taken as a real number in the interval Refer table 4.1, fig. 4.2.

Range of logical values in Boolean and fuzzy logic

Fuzzy set theory Crisp set –Let X be the universe of discourse and its elements be denoted as x. crisp set A of X is defined as function f A (x) of A f A (x): X  0,1 Where

Fuzzy set theory Fuzzy set –Fuzzy set A of universe X is defined by function  A (x) called membership function of set A  A (x): X  [0,1] where  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

The representation of fuzzy set Determine the membership function Method to determine membership function –Single expert –Multiple experts –Self generated by ANN, learn the data & derive the fuzzy sets.

n The classical example in fuzzy sets is tall men. The elements of the fuzzy set “tall men” are all men, but their degrees of membership depend on their height.

Crisp and fuzzy sets of “tall men”

The representation of fuzzy set Fuzzy set of tall men can be represented as fit- vector Tall men = (0/180, 0.5/185, 1/190) or Tall men = (0/180, 1/190) Fuzzy set of short and average men Short men = (1/160, 0.5/165, 0/170) or Short men = (1/160, 0/170) average men = (0/165, 1/175, 0/185)

Crisp and fuzzy sets of short, average and tall men

Representation of crisp and fuzzy subsets Typical functions that can be used to represent a fuzzy set are sigmoid, gaussian and pi. However, these functions increase the time of computation. Therefore, in practice, most applications use linear fit functions.

Linguistic variables and hedges A fuzzy variable E.g. the statement “John is tall” implies that the linguistic variable John takes the linguistic value tall In fuzzy ES linguistic variables are used in fuzzy rules IF wind is strong THEN sailing is good IF project duration is long THEN completion_risk is high IF the speed is slow THEN stopping_distance is short

Linguistic variables and hedges E.g. The linguistic variable speed have range between 0 and 220 km/hour may include fuzzy subsets as very slow, slow, medium, fast and very fast Hedges - fuzzy set qualifiers –Carries by a linguistic variable –Terms that modifies fuzzy sets –Includes adverb I.e. very, somewhat, quite, more or less and slightly –Can modify verbs, adjectives, adverbs or the whole sentence (pg 95)

How to represent a fuzzy set in a computer? n First, we determine the membership functions. In our “tall men” example, we can obtain fuzzy sets of tall, short and average men. n The universe of discourse  the men’s heights  n consists of three sets: short, average and tall men. n As you will see, a man who is 184 cm tall is a member of the average men set with a degree of membership of 0.1, n and at the same time, he is also a member of the tall men set with a degree of 0.4.

Linguistic variables and hedges Hedges act as operations –Very perform concentration and creates new subset –E.g. tall men derive the subset very tall men –Dilation : the of more or less tall men is broader than the set of tall men. –Refer figure 4.5. –Refer table 4.2

Fuzzy sets with the hedge very

Representation of hedges in fuzzy logic

Representation of hedges in fuzzy logic (continued)

Fuzzy sets operations operations 1.Complement 2.Containment 3.Intersection 4.Union 5.Commutativity 6.Associativity 7.Distrubutivity 8.Indempotency 9.Identity 10.Involution 11.Transitivity 12.De Morgan’s law

Cantor’s sets

Operations of fuzzy sets

Fuzzy rules Capturing human knowledge in fuzzy rules Form of fuzzy rules: IF x is A THEN y is B Where x and y are linguistic variables; A and B are linguistic values determined by fuzzy sets

Fuzzy rules Difference with classical rules –Classical IF-THEN rule uses binary logic e.g. Rule 1: IF speed is > 100 THEN the stopping_distance is long Rule 2: IF speed is < 40 THEN stopping_distance is short –The variable speed can have any numerical value between 0-220km/h –The linguistic variables stopping_distance can only take either long or short.

Fuzzy rules Difference with classical rules –Fuzzy IF-THEN rules uses binary logic e.g. Rule 1: IF speed is fast THEN the stopping_distance is long Rule 2: IF speed is slow THEN stopping_distance is short –The variable speed can have any numerical value between km/h but include fuzzy sets range, slow, medium and fast –The linguistic variables stopping_distance can be between 0 and 300m and may take fuzzy sets as short, medium or long Fuzzy expert systems merge the rules and consequently cut the number of rules at least 90%

Fuzzy sets of tall and heavy men These fuzzy sets provide the basis for a weight estimation model. The model is based on a relationship between a man’s height and his weight: IF height is tall THEN weight is heavy

The value of the output or a truth membership grade of the rule consequent can be estimated directly from a corresponding truth membership grade in the antecedent. This form of fuzzy inference uses a method called monotonic selection.

A fuzzy rule can have multiple antecedents, for example: IF project_duration is long AND project_staffing is large AND project_funding is inadequate THEN risk is high IF service is excellent OR food is delicious THEN tip is generous

The consequent of a fuzzy rule can also include multiple parts, for instance: IF temperature is hot THEN hot_water is reduced; cold_water is increased

Reasoning with Fuzzy rules Includes 2 distinct part –Evaluating the rule antecedent (the IF part) –Implication or applying the result to the consequent (the THEN part) Mechanism –In classical rule based system If the rule antecedent is true, the consequent is also true –In fuzzy systems, All rules fires to some extent, Partially fire If the antecedent is true to some degree of membership, then the consequent is also true to that same degree –Discuss fig. 4.8, 4.9

Reasoning with Fuzzy rules A fuzzy rule can have –Multiple parts of antecedent –Multiple parts of consequent (see example pg 105) In general fuzzy expert system incorporates not one but several rules that describe expert knowledge

Reasoning with Fuzzy rules The output of each rule is a fuzzy set but need to obtain a single number representing the ES output The output of the fuzzy sets are combined and transformed into a single number by.. –Aggregates all output fuzzy sets into a single output fuzzy set –Then defuzzifies the resulting fuzzy set into a single number –Fuzzy inference

Fuzzy inference c8_fuzzyES_2.ppt