Fuzzy Expert Systems. Lecture Outline What is fuzzy thinking? What is fuzzy thinking? Fuzzy sets Fuzzy sets Linguistic variables and hedges Linguistic.

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 Logic 11/6/2001. Agenda General Definition Applications Formal Definitions Operations Rules Fuzzy Air Conditioner Controller Structure.
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
Fuzzy Logic The restriction of classical propositional calculus to a two- valued logic has created many interesting paradoxes over the ages. For example,
CLASSICAL LOGIC and FUZZY LOGIC. CLASSICAL LOGIC In classical logic, a simple proposition P is a linguistic, or declarative, statement contained within.
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 System. Basic Notions 1.Fuzzy Sets 2.Fuzzy representation in computer 3.Linguistic variables and hedges 4.Operations of fuzzy sets 5.Fuzzy.
FUZZY SYSTEMS. Fuzzy Systems Fuzzy Sets – To quantify and reason about fuzzy or vague terms of natural language – Example: hot, cold temperature small,
Fuzzy Sets and Fuzzy Logic Theory and Applications
Lecture 07 Fuzzy Reasoning
Fuzzy Expert System.
1 Pertemuan 21 MEMBERSHIP FUNCTION Matakuliah: H0434/Jaringan Syaraf Tiruan Tahun: 2005 Versi: 1.
PART 1 From classical sets to fuzzy sets 1. Introduction 2. Crisp sets: an overview 3. Fuzzy sets: basic types 4. Fuzzy sets: basic concepts FUZZY SETS.
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.
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.
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.
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.
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
Fuzzy Logic. WHAT IS FUZZY LOGIC? Definition of fuzzy Fuzzy – “not clear, distinct, or precise; blurred” Definition of fuzzy logic A form of knowledge.
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.
Lógica difusa  Bayesian updating and certainty theory are techniques for handling the uncertainty that arises, or is assumed to arise, from statistical.
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 Optimization D Nagesh Kumar, IISc Water Resources Planning and Management: M9L1 Advanced Topics.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
Ch.3 Fuzzy Rules and Fuzzy Reasoning
Fuzzy Logic.
Fuzzy Logic 1. Introduction Form of multivalued logic Deals reasoning that is approximate rather than precise The fuzzy logic variables may have a membership.
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
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy Logic 11/6/2001.
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy System Structure
CLASSICAL LOGIC and FUZZY LOGIC
Dr. Unnikrishnan P.C. Professor, EEE
Intelligent Systems and Soft Computing
FUZZIFICATION AND DEFUZZIFICATION
Dr. Unnikrishnan P.C. Professor, EEE
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 Systems

Lecture Outline What is fuzzy thinking? What is fuzzy thinking? Fuzzy sets Fuzzy sets Linguistic variables and hedges Linguistic variables and hedges Operations of fuzzy sets Operations of fuzzy sets Fuzzy rules Fuzzy rules Summary Summary

Fuzzy Logic How can we represent expert knowledge that uses vague and ambiguous terms in a computer? How can we represent expert knowledge that uses vague and ambiguous terms in a computer? Fuzzy logic is not logic that is fuzzy, but logic that is used to describe fuzziness. Fuzzy logic is not logic that is fuzzy, but logic that is used to describe fuzziness. Fuzzy logic is the theory of fuzzy sets. Fuzzy logic is the theory of fuzzy sets. Fuzzy logic is based on the idea that things can be described by a range of linguistic variation. Fuzzy logic is based on the idea that things can be described by a range of linguistic variation. Temperature, height, speed, distance, beauty  all come on a sliding scale. Temperature, height, speed, distance, beauty  all come on a sliding scale. The motor is running really hot. The motor is running really hot. Tom is a very tall guy. Tom is a very tall guy.

Crisp Sets n Boolean logic forces us to draw lines between members of a class and non-members. n e.g we may say, Tom is tall because his height is 181 cm. n If we drew a line at 180 cm, we would find that David, who is 179 cm, is small. n Is David really a small man or we have just drawn an arbitrary distinction?

Crisp Sets A subset U of a set S can be defined as a set of ordered pairs with a first element from the set S, and a second element from the set { 0, 1} A subset U of a set S can be defined as a set of ordered pairs with a first element from the set S, and a second element from the set { 0, 1} This defines a mapping between elements of S and elements of the set { 0, l }. This defines a mapping between elements of S and elements of the set { 0, l }. zero is non-membership, one represents membership. zero is non-membership, one represents membership. The truth or falsity of the statement : x is in U is determined by finding the ordered pair whose first element is x. The statement is true if the second element of the ordered pair is l, and false if it is 0. The truth or falsity of the statement : x is in U is determined by finding the ordered pair whose first element is x. The statement is true if the second element of the ordered pair is l, and false if it is 0.

Fuzzy concepts Truth values (in fuzzy logic) or membership values (in fuzzy sets) are indicated by a value on the range [0.0,1.0], (0.0 = absolute Falseness,1.0 = absolute Truth.) Truth values (in fuzzy logic) or membership values (in fuzzy sets) are indicated by a value on the range [0.0,1.0], (0.0 = absolute Falseness,1.0 = absolute Truth.) eg “Jane is old.” eg “Jane is old.” If Jane's age was 75, we might assign the statement the truth value of If Jane's age was 75, we might assign the statement the truth value of The statement could be translated into set terminology: The statement could be translated into set terminology: “Jane is a member of the set of old people.” “Jane is a member of the set of old people.” This statement would be rendered symbolically with fuzzy sets as: mOLD(Jane) = 0.80 This statement would be rendered symbolically with fuzzy sets as: mOLD(Jane) = 0.80 where m is the membership function, operating on the fuzzy set of old people, which returns a value between 0.0 and 1.0. where m is the membership function, operating on the fuzzy set of old people, which returns a value between 0.0 and 1.0.

Fuzzy concepts The probabilistic approach yields the natural- language statement, “There is a 80% chance that Jane is old,” The probabilistic approach yields the natural- language statement, “There is a 80% chance that Jane is old,” The fuzzy terminology corresponds to “Jane's degree of membership within the set of old people is 0.80.” The fuzzy terminology corresponds to “Jane's degree of membership within the set of old people is 0.80.”

Fuzzy Logic Fuzzy logic is a set of mathematical principles for knowledge representation based on degrees of membership. Fuzzy logic is a set of mathematical principles for knowledge representation based on degrees of membership. fuzzy logic is multi-valued. fuzzy logic is multi-valued. It deals with degrees of membership and degrees of truth. It deals with degrees of membership and degrees of truth. Fuzzy logic uses the continuum of logical values between 0 (completely false) and 1 (completely true). Fuzzy logic uses the continuum of logical values between 0 (completely false) and 1 (completely true).

Range of logical values in Boolean and fuzzy 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. The basic idea of the fuzzy set theory is that an element belongs to a fuzzy set with a certain degree of membership. Thus, a proposition is not either true or false, but may be partly true (or partly false) to any degree. Thus, a proposition is not either true or false, but may be partly true (or partly false) to any degree. This degree is usually taken as a real number in the interval [0,1]. This degree is usually taken as a real number in the interval [0,1].

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 x-axis represents the universe of discourse  the range of all possible values applicable to a chosen variable. The x-axis represents the universe of discourse  the range of all possible values applicable to a chosen variable. In our case, the variable is the man height. In our case, the variable is the man height. The y-axis represents the membership value of the fuzzy set. The y-axis represents the membership value of the fuzzy set. In our case, the fuzzy set of “tall men” maps height values into corresponding membership values. In our case, the fuzzy set of “tall men” maps height values into corresponding membership values.

A fuzzy set is a set with fuzzy boundaries. n Let X be the universe of discourse and its elements be denoted as x. In the classical set theory, crisp set A of X is defined as function f A (x) called the characteristic function of A f A (x): X  {0, 1}, where This set maps universe X to a set of two elements. For any element x of universe X, characteristic function f A (x) is equal to 1 if x is an element of set A, and is equal to 0 if x is not an element of A. n This set maps universe X to a set of two elements. For any element x of universe X, characteristic function f A (x) is equal to 1 if x is an element of set A, and is equal to 0 if x is not an element of A.

n Fuzzy set A of universe X is defined by function  A (x) called the 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;  A (x) = 0 if x is not in A; 0 <  A (x) < 1 if x is partly in A. 0 <  A (x) < 1 if x is partly in A. n For any element x of universe X, membership function  A (x) equals the degree to which x is an element of set A. n This degree, a value between 0 and 1, represents the degree of membership, also called membership value, of element x in set A.

How to represent a fuzzy set in a computer? n Determine the membership functions. n In the “tall men” example, we can obtain fuzzy sets of tall, short and average men. n The universe of discourse consists of three sets: short, average and tall men. n a man who is 184 cm tall is a member of the average men set with degree of membership of 0.1, and he is also a member of the tall men set with a degree of 0.4.

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.

In fuzzy expert systems, linguistic variables are used in fuzzy rules. A linguistic variable is a fuzzy variable For example: IF wind is strong THEN sailing is good IF project_duration is long THEN completion_risk is high IF speed is slow THEN stopping_distance is short

n The range of possible values of a linguistic variable represents the universe of discourse of that variable. n For example, the universe of discourse of the linguistic variable speed might have the range between 0 and 220 km/h and may include such fuzzy subsets as very slow, slow, medium, fast, and very fast. n A linguistic variable includes the concept of fuzzy set qualifiers, called hedges. n Hedges are terms that modify the shape of fuzzy sets. They include adverbs such as very, somewhat, quite, more or less and slightly.

Hedges These operations are provided in an effort to maintain close ties to natural language, and to allow for the generation of fuzzy statements through mathematical calculations. These operations are provided in an effort to maintain close ties to natural language, and to allow for the generation of fuzzy statements through mathematical calculations.. The simplest example is in which one transforms the statement “Jane is old” to “Jane is very old.” The hedge `Very” is usually defined as follows:. The simplest example is in which one transforms the statement “Jane is old” to “Jane is very old.” The hedge `Very” is usually defined as follows: m”Very”A(x) = mA(x)^2 m”Very”A(x) = mA(x)^2 Thus, if mOLD(Jane) = 0.8, then mVERYOLD(Jane) = Thus, if mOLD(Jane) = 0.8, then mVERYOLD(Jane) = 0.64.

Fuzzy sets with the hedge very

Representation of hedges in fuzzy logic

Representation of hedges in fuzzy logic (continued)

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; and A and B are linguistic values determined by fuzzy sets on the universe of discourses X and Y, respectively.

What is the difference between classical and fuzzy rules? A classical IF-THEN rule uses binary logic, for example, Rule: 1 IF speed is > 100 THEN stopping_distance is long Rule: 2 IF speed is < 40 THEN stopping_distance is short

We can also represent the stopping distance rules in a fuzzy form: Rule: 1 IF speed is fast THEN stopping_distance is long Rule: 2 IF speed is slow THEN stopping_distance is short What is the difference between classical and fuzzy rules? n In a fuzzy system, all rules fire to some extent, or in other words they fire partially. If the antecedent is true to some degree of membership, then the consequent is also true to that same degree n In a fuzzy system, all rules fire to some extent, or in other words they fire partially. If the antecedent is true to some degree of membership, then the consequent is also true to that same degree.

Fuzzy Rules In fuzzy rules, the linguistic variable speed also has the range (the universe of discourse) between 0 and 220 km/h, but this range includes fuzzy sets, such as slow, medium and fast.In fuzzy rules, the linguistic variable speed also has the range (the universe of discourse) between 0 and 220 km/h, but this range includes fuzzy sets, such as slow, medium and fast. The universe of discourse of the linguistic variable stopping_distance can be between 0 and 300 m and may include such fuzzy sets as short, medium and long. The universe of discourse of the linguistic variable stopping_distance can be between 0 and 300 m and may include such fuzzy sets as short, medium and long.

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 cold_water is increased