1 Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi SCCS451 Artificial Intelligence Week 9.

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

1 Chap 4: Fuzzy Expert Systems Part 2 Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi SCCS451 Artificial Intelligence.
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
Copyright © Cengage Learning. All rights reserved.
Instructor: Hayk Melikya
(CSC 102) Discrete Structures Lecture 14.
Fuzzy Sets and Applications Introduction Introduction Fuzzy Sets and Operations Fuzzy Sets and Operations.
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.
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
Type of Uncertainty 1.vagueness: associated with the difficulty of making sharp or precise distinctions in the world.  the concept of fuzzy set provides.
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.
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.
Ragionamento in condizioni di incertezza: Approccio fuzzy Paolo Radaelli Corso di Inelligenza Articifiale - Elementi.
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 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ć
Classical Sets and Fuzzy Sets
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.
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.
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.
Computational Intelligence Winter Term 2015/16 Prof. Dr. Günter Rudolph Lehrstuhl für Algorithm Engineering (LS 11) Fakultät für Informatik TU Dortmund.
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
Computational Intelligence
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Introduction to Fuzzy Logic
Fuzzy Logic 11/6/2001.
Artificial Intelligence
Fuzzy Expert Systems (part 1) By: H.Nematzadeh
Fuzzy Logic and Fuzzy Sets
Intelligent Systems and Soft Computing
Financial Informatics –IX: Fuzzy Sets
FUZZIFICATION AND DEFUZZIFICATION
Computational Intelligence
Classical Sets and Fuzzy Sets
06th October 2005 Dr Bogdan L. Vrusias
Computational Intelligence
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.
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Presentation transcript:

1 Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi SCCS451 Artificial Intelligence Week 9

2 Traditional Logic What is Fuzzy Logic? Boolean Logic VS Fuzzy Logic What is Fuzzy Set? Linguistic Variable and Hedges Operations of Fuzzy Sets Properties of Fuzzy Sets

3 Is it hot or cold? Do you like playing crossword? Do you like Harry Potter or not? ONEZERO Only two values

4 HOTHOT COLD Do not Like Harry Do not Like Harry

5 Only two inputs: zero and one Only two outputs: zero and one

6 Definitely easy Really easy Very very easy Very easy Easy Quite easy

7 You could possibly have a cold. You are certainly have chicken pox. It is likely that you may have ไข้หวัด It is quite likely that I cannot go to a party It looks like it is going to rain I am certain that Mum will not like this bag

8

9 very really quite more or less very extremely VAGUE & AMBIGUOUS

10 Fuzzy Logic Unclear The formal systematic study of the principles of valid inference and correct reasoning a form of multi-valued logic derived from fuzzy set theory to deal with reasoning that is approximate rather than precise. (Wikipedia) a theoretical system used in mathematics, computing and philosophy to deal with statements which are neither true nor false (dictionary.cambridge.org)

11 “Fuzzy logic” is not logic that is fuzzy but logic that is used to describe fuzziness

12 “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 Zadeh 1965 (Master of Fuzzy Logic)

13 Boolean LogicFuzzy Logic Two – Valued Logic: Zero & One Multi – Valued Logic Sharp boundary (crisp) Range of values Degree of memberships degree of truth Model senses of words

14 Tall Short

15 X = Universe of Discourse Y = Membership Value

16 Q: Does the Cretan philosopher tell the truth when he asserts that “All Cretans always lie’? Boolean Logic: This assertion contains a contradiction. Fuzzy Logic: The philosopher does and does not tell the truth! The barber of a village gives a hair cut only to those who do not cut their hair themselves? Q: Who cuts the barber’s hair? Boolean Logic: This assertion contains a contradiction. Fuzzy Logic: The barber cuts and does not cut his own hair!

17 Use a concept of Set to represent the idea of classical set and fuzzy set

18 f A (x) called the characteristic function of A Principle of Dichotomy: a classic set theory imposes a sharp boundary f A (x): X  {0, 1}, where

19  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.  A(x) : membership function of set A membership value (0<= degree <=1): shows the degree of membership Basic idea: an element belongs to a fuzzy set with a certain degree of membership fuzzy set is a set with fuzzy boundaries

20 1.Define the membership function 2.Perform knowledge acquisition from… 1)Single expert 2)Multiple experts

21 1.Define the membership function: short, average, tall 2.Knowledge Acquisition 1)Fuzzy Sets: short, average, tall 2)Universe of Discourse (height): short, average, tall

22

23 Representation of crisp and fuzzy subset of X

24 Crisp Set Let X be the universe of discourse X = {x 1, x 2, x 3, x 4, x 5 } Let A be a crisp subset of X, A = {x 2, x 5 } A can be described using a set of pair {(x i,  A(x i )} where  A(x i ) is the membership function A = { (x 1,0), (x 2,1), (x 3,0), (x 4,0), (x 5,0) }

25 Fuzzy Set A can be a fuzzy subset of X if and only if, A = { (x,  A(x) }x Є X,  A(x): X  [0, 1] it can be re-written as A = {  A(x 1 ) / x 1 }, {  A(x 2 ) / x 2 }, ….., {  A(x n ) / x n } e.g. Tall man = (0/180, 0.5/185, 1/190) Short man = (1/160, 0.5/165, 0/170)

26 Fuzzy sets must be represented as functions and then mapped the elements of the sets to their degree of membership Examples of functions:- Sigmoid Gaussian Pi In practice, most applications use linear fit functions (shown in Slide No. 20)

27 Sigmoid function Gaussian function Pi function

28 Trapezoidal function Triangular function

29 Triangular function The trapezoidal curve is a function of a vector x, and depends on four scalar parameters a, b, c, and d, as given by Trapezoidal function

30 The triangular curve is a function of a vector x, and depends on three scalar parameters a, b, and c, as given by Triangular function

31 Linguistic Variables & Hedges

32 IF THEN value object value object Examples: IF wind is strong THEN sailing is good IF speed is slow THEN stopping_distance is short IF project_duration is long THEN completion_risk is high Linguistic variable Linguistic value * linguistic variable == fuzzy variable

33 Andy quite likes Thai food hedges Mary looks very much like her mother Jim has been to several attractions in Thailand Hedges: terms that modify the shape of fuzzy sets e.g. very, somewhat, quite, more or less, and slightly

34 Hedges can modify verbs, adjectives, adverbs, or whole sentences. They are used as All-purpose modifiers: very, quite, extremely Truth-values: quite true, mostly false Probabilities: likely, not very likely Quantifiers: most, several, few Possibilities: almost impossible, quite possible

35 A man who is 185 cm tall is a member of the tall men set with a degree of membership of 0.5. He is also a member of the very tall men set with a degree of 0.15.

36 There are two types of “hedges”:- Concentration reduce the size of the fuzzy set e.g. very, very very, extremely, slightly decrease the degree of membership Dilation expand the size of the fuzzy set e.g. more or less, somewhat Increase the degree of the membership Intensification Intensifies the meaning of the whole sentence e.g. indeed Increase the degree of the membership above 0.5 and decrease those below 0.5

37 Concentration

38 Concentration dilation intensification

39 To expand or reduce the subset by modifying the degree of membership

40 If Alice has a 0.86 membership in the set of tall girls the equation of “very” is..  A(x) of very = [  A(x)] 2 So Alice will have a [0.86] 2 = membership in the set of very tall girls

41 If Alice has a 0.86 membership in the set of tall girls the equation of “very very” is..  A(x) of very very = [  A(x) of very] 4 = [  A(x)] 4 So Alice will have a [0.86] 4 = membership in the set of very very tall girls

42 The classical set theory developed in the late 19th century by Georg Cantor describes how crisp sets can interact. These interactions are called operations: - Complement - Containment - Intersection - Union

43 Complement is the opposite set of a given set e.g. if a set is X, the complement set is NOT X Questions:- Crisp Sets: Who does not belong to the set? Fuzzy Sets: How much do elements not belong to the set?

44 Equation  A(x) = 1   A(x) Example tall man = (0/180, 0.25/182.5, 0.5/185, 0.75/187.5, 1/190) NOT tall man = (1/180, 0.75/182.5, 0.5/185, 0.25/187.5, 0/190)

45 Containment: one set is the subset of another set Questions:- Crisp Sets: Which sets belong to which other sets? Fuzzy Sets: Which sets belong to other sets?

46 In crisp set, all elements of a subset entirely belong to a larger set i.e. the degree of membership is equal to 1. In fuzzy sets, each element can belong less to the subset than to the larger set. Example tall man = (0/180, 0.25/182.5, 0.5/185, 0.75/187.5, 1/190) very tall man = (0/180, 0.06/182.5, 0.25/185, 0.56/187.5, 1/190)

47 Intersection: the area where sets overlap In crisp sets, an element must belong to both sets In fuzzy sets, an element may partly belong to both sets with different memberships Questions:- Crisp Sets: Which element belongs to both sets? Fuzzy Sets: How much of the element is in both sets?

48 Equation  A  B(x) = min [  A(x),  B(x)] =  A(x)   B(x), where x  X tall man = (0/165, 0/175, 0.0/180, 0.25/182.5, 0.5/185, 1/190) average tall man = (0/165, 1/175, 0.5/180, 0.25/182.5, 0.0/185, 0/190) tall man  average man = (0/165, 0/175, 0.0/180, 0.25/182.5, 0.0/185, 0/190)

49

50 Union: the integration area of all sets In crisp sets, an element can belong to either sets. In fuzzy sets, the union is the largest membership value of the element in either set. Questions:- Crisp Sets: Which element belongs to either set? Fuzzy Sets: How much of the element is in either set?

51 Equation  A  B(x) = max [  A(x),  B(x)] =  A(x)   B(x), where x  X tall man = (0/165, 0/175, 0.0/180, 0.25/182.5, 0.5/185, 1/190) average tall man = (0/165, 1/175, 0.5/180, 0.25/182.5, 0.0/185, 0/190) tall man  average man = (0/165, 1/175, 0.5/180, 0.25/182.5, 0.5/185, 1/190)

52

53 The properties of set used in crisp sets can also be used in fuzzy sets Frequently used properties:- Commutativity Associatively Distributivity Idempotency Identity Involution Transitivity De Morgan’s Laws

54 Commutativity A  B = B  A Associatively A  (B  C) = (A  B )  C A  (B  C) = (A  B )  C Distributivity A  (B  C) = (A  B )  (A  C) A  (B  C) = (A  B )  (A  C)

55 Idempotency A  A = A A  A = A Identity A  Ф = A A  X = A A  Ф = Ф A  X = X where Ф is an empty set and X is a superset of A.

56 Involution  (  A) = A Transitivity If (A ⊂ B)  (B ⊂ C) then A ⊂ C De Morgan’s Laws  (A  B) =  A   B  (A  B) =  A   B

57

58 Properties and hedges can be used to obtain a variety of fuzzy sets from the existing ones. Assume that we have a fuzzy set A of tall men, we can derive a fuzzy set of very tall man:- Given fuzzy set A of tall men =  A (x) very tall men = [  A (x)] 2 NOT very tall men   A (x) = 1 - [  A (x)] 2

59 Given fuzzy set A of raining day =  A (x) fuzzy set B of cold day =  B (x) Derive a fuzzy set C of extremely cold and not raining day Derive a fuzzy set D of not very very cold or slightly raining day