Logical Systems and Knowledge Representation Fuzzy Logical Systems 1.

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.
A set is a collection of objects A special kind of set Fuzzy Sets
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
Soft Computing. Per Printz Madsen Section of Automation and Control
CLASSICAL LOGIC and FUZZY LOGIC. CLASSICAL LOGIC In classical logic, a simple proposition P is a linguistic, or declarative, statement contained within.
CS344 Artificial Intelligence Prof. Pushpak Bhattacharya Class on 6 Mar 2007.
Fuzzy Expert System Fuzzy Logic
AI TECHNIQUES Fuzzy Logic (Fuzzy System). Fuzzy Logic : An Idea.
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 SET THEORY ABBY YINGER. DEFINITIONS WHAT IS A FUZZY SET? Definition: A fuzzy set is any set that allows its members to have different grades of.
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,
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.
Chapter 18 Fuzzy Reasoning.
MAE 552 Heuristic Optimization Instructor: John Eddy Lecture #32 4/19/02 Fuzzy Logic.
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.
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
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.
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 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.
1 Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi SCCS451 Artificial Intelligence Week 9.
Lógica difusa  Bayesian updating and certainty theory are techniques for handling the uncertainty that arises, or is assumed to arise, from statistical.
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.
Topic 2 Fuzzy Logic Control. Ming-Feng Yeh2-2 Outlines Basic concepts of fuzzy set theory Fuzzy relations Fuzzy logic control General Fuzzy System R.R.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
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.
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture 5 – 08/08/05 Prof. Pushpak Bhattacharyya FUZZY LOGIC & INFERENCING.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
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.
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.
Introduction to Fuzzy Logic and Fuzzy Systems
Artificial Intelligence CIS 342
Expert System Structure
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Introduction to Fuzzy Logic
Fuzzy Logic 11/6/2001.
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy Logic and Fuzzy Sets
Fuzzy System Structure
Dr. Unnikrishnan P.C. Professor, EEE
Intelligent Systems and Soft Computing
FUZZIFICATION AND DEFUZZIFICATION
Dr. Unnikrishnan P.C. Professor, EEE
Classical Sets and Fuzzy Sets
06th October 2005 Dr Bogdan L. Vrusias
© Negnevitsky, Pearson Education, Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what is.
Presentation transcript:

Logical Systems and Knowledge Representation Fuzzy Logical Systems 1

2 n Classical sets and fuzzy sets n Fuzzy sets and knowledge n Linguistic variables and hedges n Operations of fuzzy sets n Summary

3 Classical Sets

4 What is most important about classical sets? 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.

5 What is important about Classical Sets? Logic is two valued Complement (either in or out) Containment Intersection Union Distributive Laws The classical set theory developed in the late 19th century by Georg Cantor describes how crisp sets can interact. These interactions are called operations.

6 Fuzzy Sets and Knowledge? n Experts rely on common sense when they solve problems. n How can we represent expert knowledge that uses vague and ambiguous terms in a computer? n Fuzzy logic is based on the idea that all things admit of degrees. Temperature, height, speed, distance, beauty  all come on a sliding scale. The motor is running really hot. Tom is a very tall guy.

Fuzzy Logic Simultaneously handle numeric and linguistic data in a unified algorithm

8 n In 1965 Lotfi Zadeh, published his famous paper “Fuzzy sets”. Zadeh extended the work on possibility theory into a formal system of mathematical logic, and introduced a new concept for applying natural language terms. This new logic for representing and manipulating fuzzy terms was called fuzzy logic, and Zadeh became the originator of fuzzy logic.

9 Range of logical values in Boolean and fuzzy logic

10 n Boolean logic uses sharp distinctions. It forces us to draw lines between members of a class and non- members. For instance, we may say, Tom is tall because his height is 181 cm. If we drew a line at 180 cm, we would find that David, who is 179 cm, is short. Is David really not a tall man or we have just drawn an arbitrary line in the sand? n This is not how people think.

11 n Fuzzy logic models how people think. It attempts to model our sense of words, our decision making and our common sense. As a result, it is leading to new, more human, knowledge representation and inferencing systems.

12 Unlike two-valued Boolean logic, fuzzy logic is multi-valued. 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). Instead of just black and white, it employs the spectrum of colours, accepting that things can be partly true and partly false at the same time.

13 n 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. This degree is usually taken as a real number in the interval [0,1].

14 n In the fuzzy theory, 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. This set allows a continuum of possible choices. For any element x of universe X, membership function  A (x) equals the degree to which x is an element of set A. This degree, a value between 0 and 1, represents the degree of membership, also called membership value, of element x in set A.

15 The complement of a set is an opposite of this set. For example, if we have the set of tall men, its complement is the set of NOT tall men. When we remove the tall men set from the universe of discourse, we obtain the complement. If A is the fuzzy set, its complement  A can be found as follows:  A (x) = 1   A (x) n Complement

16 A set can contain other sets. The smaller set is called the subset. For example, the set of tall men contains all tall men; very tall men is a subset of tall men. However, the tall men set is just a subset of the set of men. In crisp sets, all elements of a subset entirely belong to a larger set. In fuzzy sets, however, each element can belong less to the subset than to the larger set. Elements of the fuzzy subset have smaller memberships in it than in the larger set. n Containment

17 In classical set theory, an intersection between two sets contains the elements shared by these sets. In fuzzy sets, an element may partly belong to both sets with different memberships. A fuzzy intersection is the lower membership in both sets of each element. The fuzzy intersection of two fuzzy sets A and B on universe of discourse X:  A  B (x) = min [  A (x),  B (x)] =  A (x)   B (x), where x  X n Intersection

18 The union of two crisp sets consists of every element that falls into either set. In fuzzy sets, the union is the reverse of the intersection. That is, the union is the largest membership value of the element in either set. The fuzzy operation for forming the union of two fuzzy sets A and B on universe X can be given as:  A  B (x) = max [  A (x),  B (x)] =  A (x)   B (x), where x  X n Union

19 Fuzzy term 'tall' The elements of the fuzzy set “tall men” are all men, but their degrees of membership depend on their height

20 Crisp and fuzzy sets of “tall men”

21 n 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. According to this representation, the universe of men’s heights consists of all tall men. n 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.

22 Fuzzy set 'young' Fuzzy Term young Age Grade of Membership  young(25) = 1,  young(30) = 0.8,...,  young(50) = 0

23 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  consists of three sets: short, average and tall men. 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, and at the same time, he is also a member of the tall men set with a degree of 0.4.

24 Crisp and fuzzy sets of short, average and tall men

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

26 Fuzzy Set Hierarchy in FuzzyJESS

27 Fuzzy variables in JESS FuzzyVariable height = new FuzzyVariable("height",150,210, "centimeters"); FuzzySet Short = new RightLinearFuzzySet( 160,170); FuzzySet average = new TriangleFuzzySet( 165,175,185); FuzzySet tall = new LeftLinearFuzzySet(180,190 ); height.addTerm("short", Short); height.addTerm("average", average); height.addTerm("tall", tall);

28 FuzzyExample1a.java

29 PIFuzzySet FuzzySet average = new PIFuzzySet( 175,10);

30 SFuzzySet and ZFuzzySet

FuzzyVariable height = new FuzzyVariable("height",150,210, "centimeters"); FuzzySet Short = new RightLinearFuzzySet( 160,170); FuzzySet average = new TriangleFuzzySet( 165,175,185); FuzzySet tall = new SFuzzySet(160,195 ); height.addTerm("short", Short); height.addTerm("average", average); height.addTerm("tall", tall); FuzzyExample1b.java

32 'not' operation height.addTerm("tall", new LeftLinearFuzzySet(180,190)); height.addTerm("not_tall", "not tall");

33 Operations in Jess age.addTerm("both", "short and medium"); age.addTerm("both", "short or medium");

34 Linguistic variables and hedges n At the root of fuzzy set theory lies the idea of linguistic variables. n A linguistic variable is a fuzzy variable. For example, the statement “John is tall” implies that the linguistic variable John takes the linguistic value tall.

35 In fuzzy expert systems, linguistic variables are used in fuzzy rules. 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

36 n The range of possible values of a linguistic variable represents the universe of discourse of that variable. 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 carries with it 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.

37 Fuzzy sets with the hedge very

38 Representation of hedges in fuzzy logic

39 Representation of hedges in fuzzy logic (continued)

40 What does 'indeed' mean??? Shorter OED An emphasized (positive or negative) reply

41 Hedges in FuzzyJess height.addTerm("very_short", "very short"); height.addTerm(“very_very_short", "very very short"); height.addTerm("somewhat_short", "somewhat short"); height.addTerm(“ultra_short", “extremely short");