COMP 578 Fuzzy Sets in Data Mining Keith C.C. Chan Department of Computing The Hong Kong Polytechnic University.

Slides:



Advertisements
Similar presentations
Fuzzy Logic 11/6/2001. Agenda General Definition Applications Formal Definitions Operations Rules Fuzzy Air Conditioner Controller Structure.
Advertisements

Fuzzy Sets and Fuzzy Logic
Fuzzy Set and Opertion. Outline Fuzzy Set and Crisp Set Expanding concepts Standard operation of fuzzy set Fuzzy relations Operations on fuzzy relations.
Lecture 4 Fuzzy expert systems: Fuzzy logic
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
Soft Computing. Per Printz Madsen Section of Automation and Control
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 Sets and Applications Introduction Introduction Fuzzy Sets and Operations Fuzzy Sets and Operations.
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.
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
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.
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.
Introduction What is Fuzzy Logic? HOW DOES FL WORK? Differences between Classical set (crisps) and Fuzzy set theory Example 1 Example 2 Classifying Houses.
Fuzzy Logic BY: ASHLEY REYNOLDS. Where Fuzzy Logic Falls in the Field of Mathematics  Mathematics  Mathematical Logic and Foundations  Fuzzy Logic.
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.
CPSC 386 Artificial Intelligence Ellen Walker Hiram College
9/3/2015Intelligent Systems and Soft Computing1 Lecture 4 Fuzzy expert systems: Fuzzy logic Introduction, or what is fuzzy thinking? Introduction, or what.
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.
Theory and Applications
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
3. Rough set extensions  In the rough set literature, several extensions have been developed that attempt to handle better the uncertainty present in.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
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.
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.
FUZZY LOGIC INFORMATION RETRIEVAL MODEL Ferddie Quiroz Canlas, ME-CoE.
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.
Developed by Joseph GoguenJoseph Goguen. What is fuzzy sets Definition.
Fuzzy Expert System n Introduction n Fuzzy sets n Linguistic variables and hedges n Operations of fuzzy sets n Fuzzy rules n Summary.
Could Be Significant.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
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.
Chapter 3: Fuzzy Rules & Fuzzy Reasoning Extension Principle & Fuzzy Relations (3.2) Fuzzy if-then Rules(3.3) Fuzzy Reasonning (3.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.
Introduction to Fuzzy Logic and Fuzzy Systems
Artificial Intelligence CIS 342
Fuzzy Inference Systems
Fuzzy Control Electrical Engineering Islamic University of Gaza
Fuzzy Logic 11/6/2001.
Artificial Intelligence
Fuzzy Logic and Fuzzy Sets
Chap 3: Fuzzy Rules and Fuzzy Reasoning
CLASSICAL LOGIC and FUZZY LOGIC
Chap 3: Fuzzy Rules and Fuzzy Reasoning
FUZZIFICATION AND DEFUZZIFICATION
Classical Sets and Fuzzy Sets
Fuzzy Sets Neuro-Fuzzy and Soft Computing: Fuzzy Sets ...
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:

COMP 578 Fuzzy Sets in Data Mining Keith C.C. Chan Department of Computing The Hong Kong Polytechnic University

2 Fuzzy Data and Associations Fuzzy associations. Fuzzy associations. People who buy large water melon also buy many oranges. People who buy large water melon also buy many oranges. Fuzzy data in databases. Fuzzy data in databases. E.g. Large water melon E.g. Large water melon Definition of “large” = [5kg, 10kg]? Definition of “large” = [5kg, 10kg]? E.g. Many oranges E.g. Many oranges Definition of “many” = [10, 20]? Definition of “many” = [10, 20]?

3 Fuzziness in The Real World  Human reason approximately about behavior of a very complex system.  Closed-form mathematical expressions, e.g.,  provide precise descriptions of systems  with little complexity and uncertainty.  Fuzzy logic and reasoning for complex systems:  When no numerical data exist.  When only ambiguous or imprecise information is available.  When behavior can only be described and understood by:  Relating observed input and output approximately rather than exactly.

4 Uncertainty and Imprecision  Probability theory for modeling uncertainty arising from randomness (a matter of chance).  Fuzzy set theory for modeling uncertainty associated with vagueness, imprecision (lack of information).  Human communicate with a computer requires extreme precision (e.g. instructions in a software program).  Natural language is vague and imprecise but powerful.  Two individuals communicate in natural language that is vague and imprecise but powerful.  They do not require an identical definition of “tall” to communicate effectively but computer would require a specific height.  Fuzzy set theory uses linguistic variables, rather than quantitative variables, to represent imprecise concepts.

5 Applications of Fuzzy Logic  Sanyo fuzzy logic camcorders.  Fuzzy focusing and image stabilization.  Mitsubishi fuzzy air conditioner.  Controls T o changes according to human comfort indexes.  Matsushita fuzzy washing machine.  Sensors detect color, kind of clothes, the quantity of grit.  Select combinations of water temperature, detergent amount and wash and spin cycle time.  Sendai's 16-station subway system.  Fuzzy controller makes 70% fewer judgment errors in acceleration and braking than human operators.  Nissan fuzzy auto-transmission & anti-skid braking.  Tokyo's stock market.  At least one stock-trading portfolio based on fuzzy logic that outperformed the Nikkei Exchange average.  Fuzzy golf diagnostic systems, fuzzy toasters, fuzzy rice cookers, fuzzy vacuum cleaners, etc.

6 Classical Sets  X = universe of discourse = the set of all objects with the same characteristics.  Let n x = cardinality = total number of elements in X.  For crisp sets A and B in X, we define:  x  A  x belongs to A.  x  A  x does not belong to A.  For sets A and B on X:  A  B   x  A, x  B.  A  B  A is fully contained in B.  A = B  A  B and B  A.  The null set, , contains no elements.

7 Operations on Classical Sets  Union:  A  B = {x | x  A or x  B}.  Intersection:  A  B = {x | x  A and x  B}.  Complement:  A c = {x | x  A, x  X}.

8 Classical Sets in Association Mining How do you define the set of large water melons? How do you define the set of large water melons? Large Water Melons = {x | 5kg < weight(x) < 10kg}. Large Water Melons = {x | 5kg < weight(x) < 10kg}. How do you define the set of very large water melons? How do you define the set of very large water melons? Very Large Water Melons = {x | weight(x) > 10kg}. Very Large Water Melons = {x | weight(x) > 10kg}. What about a water melon that is exactly 9.9kg? What about a water melon that is exactly 9.9kg? What about a water melon that is exactly 10.1kg? What about a water melon that is exactly 10.1kg? The difference of 0.2kg makes one large and the other very large! The difference of 0.2kg makes one large and the other very large!

9 Fuzzy Sets  Transition between membership and non- membership can be gradual.  Fuzzy set contains elements which have varying degrees of membership.  Degree of membership measured by a function.  Function maps elements to a real numbered value on the interval 0 to 1,  A  [0,1].  Elements in a fuzzy set can also be members of other fuzzy sets on the same universe.

10 A Fuzzy Set Example  Example: A water melon of exactly 9.9kg can belong to: A water melon of exactly 9.9kg can belong to: The set “ large water melon ” with a degree of 0.1, and to The set “ large water melon ” with a degree of 0.1, and to The set of “ very large water melon ” with a degree of 0.9. The set of “ very large water melon ” with a degree of 0.9. But how do we determine the degree of membership? But how do we determine the degree of membership? It can be found from a fuzzy membership function. It can be found from a fuzzy membership function.

11 A Membership Function kg 8kg 9kg10kg3kg Very Large water melon Large water melon

12 Representing Degree of Membership  For a fuzzy set A, its membership function is represented as  A.   A (x i ) is the degree of membership of x i with respect to A.  For example,  Let A = Large water melon  Let x i be a water melon of 9.9kg.  From the membership function in the last slide,  A (x i ) = 0.1.

13 Representing Fuzzy Sets  A notation convention for fuzzy sets:  Numerator is membership value, horizontal bar is delimiter, Plus sign denotes a function-theoretic union.  Alternatively,  In general, e.g.

14 Example of A Fuzzy Set Representation  A definition of the fuzzy set LW= “ Large Water Melon ”.  Alternatively,  LW = {(6kg, 0.25), (7kg, 0.75), (8kg, 1.0), (9.9kg, 0.1), … }  In general, e.g.

15 Fuzzy Set Operations  Union:   A  B (x) = max(  A (x),  B (x)).  Intersection:   A  B (x) = min(  A (x),  B (x)).  Complement:  Containment:  If A  X   A (x)   X (x).

16 Fuzzy Logic  A fuzzy logic proposition, P, involves some concept without clearly defined boundaries.  Most natural language is fuzzy and involves vague and imprecise terms.  Truth value assigned to P can be any value on the interval [0, 1].  The degree of truth for P: x  A is equal to the membership grade of x  A. Negation, disjunction, conjunction, and implication are also defined for a fuzzy logic. Negation, disjunction, conjunction, and implication are also defined for a fuzzy logic.

17 Fuzzy Set for Data Mining How could fuzzy data be considered for association rule mining? How could fuzzy data be considered for association rule mining? How could the concept of fuzzy set be used for classification involving fuzzy classes. How could the concept of fuzzy set be used for classification involving fuzzy classes. E.g. Risk classification = {High, Medium, Low} E.g. Risk classification = {High, Medium, Low} With fuzzy sets, how could clustering be performed to take into consideration: With fuzzy sets, how could clustering be performed to take into consideration: Overlapping of clusters, and Overlapping of clusters, and To allow a record to belong to different clusters to different degrees. To allow a record to belong to different clusters to different degrees.

18 Fuzzy Association The interestingness measures: A  B The interestingness measures: A  B Lift Ratio: Pr(B|A)/Pr(B). Lift Ratio: Pr(B|A)/Pr(B). Support and Confidence: Pr(A,B) and Pr(B|A). Support and Confidence: Pr(A,B) and Pr(B|A). How much do you count? How much do you count? EggsCheese Water Mellon 2 boxes Low Fat {(Small, 0.35), (Medium, 0.65)} 1 box Hi Cal {(Small, 0.5), (Medium, 0.5)} 3 boxes Regular {(Medium, 0.75), (High, 0.25)} 1 box Low Fat {(Medium, 0.3), (High, 0.7)} 3 boxes Hi Cal {(Medium, 0.4), (High, 0.6)}

19 Fuzzy Classification Information Gain Information Gain How again do you count if a customer belongs partially to both a “high risk” and “low risk” group? How again do you count if a customer belongs partially to both a “high risk” and “low risk” group?

20 Fuzzy Clustering The mean height value for cluster 2 (short) is 5’3” and cluster 3 (medium) is 5’7”. The mean height value for cluster 2 (short) is 5’3” and cluster 3 (medium) is 5’7”. You are just over 5'5” and are classified "medium". You are just over 5'5” and are classified "medium". Fuzzy k-means is an extension of k-means. Fuzzy k-means is an extension of k-means. A membership value of each observation to each cluster is determined. A membership value of each observation to each cluster is determined. User specifies a fuzzy MF. User specifies a fuzzy MF. A height of 5'5'' may give you a membership value of 0.4 to cluster 1, 0.4 to cluster 2 and 0.1 to cluster 3. A height of 5'5'' may give you a membership value of 0.4 to cluster 1, 0.4 to cluster 2 and 0.1 to cluster 3.

Part II Fuzzy Rule Inferences

22 Approximate Reasoning  Reasoning about imprecise propositions is referred to as approximate reasoning.  Given fuzzy rules: (1) If x is A Then y is B.  Induce a new antecedent, say A', find B' by fuzzy composition:  B' = A'  R  The idea of an inverse relationship between fuzzy antecedents and fuzzy consequences arises from the composition operation.  The inference represent an approximate linguistic characteristic of the relation between two universes of discourse, X and Y.

23 Graphical Techniques of Inference  Procedures (matrix operations) to conduct inference of IF-THEN rules illustrated.  Use graphical techniques to conduct the inference computation manually with a few rules to verify the inference operations.  The graphical procedures can be easily extended and will hold for fuzzy ESs with any number of antecedents (inputs) and consequent (outputs).

24 An Example Conditions of two rules, R1 and R2, are both matched.