Demonstration Notebook: 2.3, 2.4, 2.5, 2.8.6, 2.8.7. - Manual: 1.6, 1.7 ... input to be used by the inference engine. IIntelligent Control. I the inference engine. 9 ...
ECE 4951 - Spring 2010
Introduction to Intelligent Control Part 6 Prof. Marian S. Stachowicz Laboratory for Intelligent Systems ECE Department, University of Minnesota Duluth
February 4 - 5, 2010
Fuzzy System Part 2
Outline • Fuzzy System - Fuzzifier - Defuzzifier • Fuzzy Decision Making
IIntelligent Control I
3
References for reading
1. M.S. Stachowicz, Lance Beall, Fuzzy Logic Package, Version-2 for Mathematica 5.1, Wolfram Research, Inc., 2003 - Demonstration Notebook: 2.3, 2.4, 2.5, 2.8.6, 2.8.7 - Manual: 1.6, 1.7, 1.8 2. J. S. R. Jang, C.T. Sun, E. Mizutani, Neuro-Fuzzy and Soft Computing, Prentice Fall, 1997 Chapter 3, 4 3. G.J. Klir, Bo Yuan, Fuzzy Set and Fuzzy Logic, Prentice Hall, 1995 Chapters 5
IIntelligent Control I
4
Fuzzy system
IIntelligent Control I
5
Components of Fuzzy Systems
• • • •
Fuzzy knowledge base Fuzzifier Inference engine Defuzzifier
IIntelligent Control I
6
Fuzzy knowledge base • The knowledge base is made up of fuzzy rules in the form of IF-THEN statements. • This is the main part of the fuzzy system since the other components of the system are there to implement the rules in an appropriate manner.
IIntelligent Control I
7
Inference engine • The inference engine decides how to process the rules in the knowledge base using the fuzzy inputs from the fuzzifier.
IIntelligent Control I
8
Fuzzifier
• The fuzzifier decides how the crisp input will be converted into a fuzzy input to be used by the inference engine.
IIntelligent Control I
9
Fuzzifiers
• A fuzzifier maps a crisp point to a fuzzy set. u ∈ U ⊂ Rn to a fuzzy set A ⊂ U
IIntelligent Control I
10
Fuzzifiers
– singleton fuzzifier, – Gaussian fuzzifier, – triangular fuzzifier.
IIntelligent Control I
11
Singleton fuzzifier • The input is converted into fuzzy singletons A(u) = 1 at u, A(u) = 0 elsewhere - simplifies calculations - cannot suppress noise in the input. IIntelligent Control I
12
Singleton fuzzifier
IIntelligent Control I
13
Gaussian fuzzifier • The input is converted into Gaussian FS A(u) = exp[-(u1-u1*)/a1]2*…* exp[-(un-un*)/an]2 - simplifies calculations if MFs are Gaussian - suppress noise in the input.
IIntelligent Control I
14
Gaussian fuzzifier
IIntelligent Control I
15
Triangular fuzzifier • The input is converted into triangular fuzzy set A(u) = (1- |u1-u1*|/b1)*…* (1- |un-un*|/bn) - simplifies calculations if MFs are triangular - suppress noise in the input.
IIntelligent Control I
16
Triangular fuzzifier
IIntelligent Control I
17
Summary • The singleton fuzzifier simplifies the computation involved in any fuzzy inference engine. • The Gaussian and triangular fuzzifiers also simplify the computation in the fuzzy inference engine with Gaussian and triangular MFs. • The Gaussian and triangular fuzzifiers can suppress noise in the input, but singleton fuzzifier cannot.
IIntelligent Control I
18
Defuzzifier
• The defuzzifier decides how to convert the fuzzy result from the inference engine back into a crisp value.
IIntelligent Control I
19
Defuzzifiers • A defuzzifier maps a fuzzy set to a crisp point. – center of area, – mean of max, – bisector of area, – smallest of max, – largest of max. IIntelligent Control I
20
Center of area CenterOfArea[FS1, ShowGraph -> True] Center of area is 9.21739.
IIntelligent Control I
21
Mean of max
MeanOfMax[FS1, ShowGraph -> True]; Mean of max is 9.5.
IIntelligent Control I
22
Bisector of area BisectorOfArea[FS1, ShowGraph -> True]; Bisector of area is 9.
IIntelligent Control I
23
Smallest of max
SmallestOfMax[FS1, ShowGraph -> True]; Smallest of max is 6.
IIntelligent Control I
24
Largest of max
LargestOfMax[FS1, ShowGraph -> True]; Largest of max is 13.
IIntelligent Control I
25
FUZZY SYSTEM AS UNIVERSAL APPROXIMATOR
For any given real continuous function g(u) on U g(u) : U ⊂ Rn→R and arbitrary e> 0, there exists a fuzzy system f(u) such that sup | f(u) - g(u) | < e
for all u ∈ U.
IIntelligent Control I
26
Fuzzy system
The goal of fuzzy systems is to approximate the nonlinear function g(x).
IIntelligent Control I
27
Knowledge about g(x)
1. The analytic formula for g(x) is know at the start. 2. We do not know the formula for g(x), but we can determine g(x) for any arbitrary x ∈ U. 3.
We don't know the formula for g(x), and we only have a finite set of input-output pairs (xi,g(xi)), where xi can not be chosen arbitrarily.
IIntelligent Control I
28
UNIVERSAL APPROXIMATOR
-
The fuzzy systems f(u): with product inference engine, singleton fuzzifier, center average defuzzifier, and Gaussian membership functions are universal approximators. IIntelligent Control I
29
Thank you.
Demo 1 Defuzzification strategies
Demo 2 a Measurement of similarities
Demo 2 b Measurement of fuzziness