Fuzzy Logic and Fuzzy Cognitive Map: MATH 800 - 4 Fall 2011
Fuzzy Logic and Fuzzy Cognitive Map: MATH 800 - 4 Fall 2011
MATH 800 – 4
Fall 2011
Vijay Mago, Postdoctoral Fellow, The Modelling of Complex Social Systems (MoCSSy) Program, The
IRMACS Centre, Simon Fraser University, BC, Canada.
[email protected]
• Fuzzy Logic Introduction
• Fuzzy Numbers
• Fuzzy Sets
• Fuzzy Inference System
• Examples
• Modelling the Underground Economy in Taiwan Prof. Lotfi A. Zadeh
• Rainfall Events Prediction
• Fuzzy Toolbox or libraries
2
Fuzzy Logic Introduction
• Fuzzy Number
• Number ‘x’
x-2 x-1 x x+1 x+2
• Near ‘x’
• Almost ‘x’
• Fuzzy Sets
In a crisp set, membership or non-membership of element ‘x’ in set
A is described by a characteristic function
4
Fuzzy Logic Introduction
• Fuzzy Sets...
A fuzzy set A in U may be represented as a set of ordered
pairs. Each pair consists of a generic element x and its grade of
membership function; that is
5
Fuzzy Logic Introduction
• Fuzzy Sets...
• Fuzzy set operations
• OR
• AND
• NOT
6
Fuzzy Logic Introduction
7
Fuzzy Logic Introduction
Mamdani Method
8
Fuzzy Logic Introduction
9
Fuzzy Logic Introduction
• Rules:
Rule1: If x is A3 or y is B1 Then z is C1
Rule2: If x is A2 and y is B2 Then z is C2
Rule3: If x is A1 Then z is C3
10
Fuzzy Logic Introduction
• Rules:
Rule1: If research_funding is adequate or project_staffing is small Then risk is low
11
Fuzzy Logic Introduction
12
Fuzzy Logic Introduction
Antecedent Consequent
13
Fuzzy Logic Introduction
14
Fuzzy Logic Introduction
15
Fuzzy Logic Introduction
16
Fuzzy Logic Introduction
17
Example 1:
Inputs:
o Tax Rate (TR)
o Degree of government regulations (REG)
Output
o The size of Underground Economy (UE)
18
Example 1…
19
Example 2:
Inputs:
o Relative humidity
o Total cloud cover
o Wind direction
o Temperature and
o Surface pressure
Output
o Rainfall events
20
Example 2…
21
Toolboxes and Libraries for FL
22
Q….Q…Q ???
Kosko:
You can never get the science right to more than a few
decimal places. That's one reason we find chaos when
we look at things up close.
http://sipi.usc.edu/~kosko/index.html
23
Fuzzy Logic… so far
• Fuzzy-logic-related patents:
• Over 4800 in Japan
• 1500 + in the United States.
24
25
Fuzzy Cognitive Map
• Introduction
26
Fuzzy Cognitive Map
• Introduction…
• Basic structure of FCM
• Each arc (Ci, Cj) is directed as well as weighted, and represents causal link
27
Fuzzy Cognitive Map
• Introduction…
• Basic structure of FCM…
excitatory
inhibitory
28
Fuzzy Cognitive Map
• Introduction…
• Basic structure of FCM…
Sanitation
-0.9/VH facilities
# of
diseases /
1000 -0.9/VH
residents
+0.8/H Bacteria
per area
29
Fuzzy Cognitive Map
• Introduction…
• Adjacency matrix
C1 C2 C3 …
C1 0 VH VL .
W= C2 H 0 0 .
C3 VL H 0 .
... . . . .
30
Fuzzy Cognitive Map
• Introduction…
?
31
Fuzzy Cognitive Map
• Introduction…
• Transfer function of FCM
(a)
(b)
(c)
32
Fuzzy Cognitive Map
Step 1: Definition of the initial vector A that corresponds to the elements-concepts identified by
experts’ suggestions and available knowledge.
Step 2: Multiply the initial vector A with the matrix W defined by experts
Step 3: The resultant vector A at time step k is updated using function threshold ‘ f ’.
Step 4: This new vector is considered as an initial vector in the next iteration.
Step 5: Steps 2–4 are repeated until epsilon (where epsilon is a residual, describing the minimum
error difference among the subsequent concepts)
33
Fuzzy Cognitive Map
• Example 1:
• Example 2:
• Example 3:
• Example 4:
37
FCM?
38