Beruflich Dokumente
Kultur Dokumente
Chapter 4
Fuzzy Logic
4.1 Introduction
The human brain interprets the sensory information provided by organs. Fuzzy set
theory focus on processing the information. Numerical computation can be performed
using linguistic labels specified by membership functions. Moreover, a selection of
fuzzy if then rules forms the key component of a fuzzy inference system (FIS).Human
expertise in a specific application can be effectively modelled with FIS.
Although the fuzzy inference system has a structured knowledge representation of
fuzzy if then rules, it lacks the adaptability to deal with varying environments. Thus we
incorporate neural network learning concepts in fuzzy inference systems, resulting in
neuro- fuzzy modeling, a pivotal technique in soft computing
34 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
more than 6 feet are considered as tall person then the person whose height is 5 feet
11 inch will be not member of this classical set. The another limitation of classical set
is if a person is having height 6.1 feet and 7.0 feet both will be tall. There will be not
clear identification between both of them. It is the clear distinction between inclusion
and exclusion.
To overcome these situations fuzzy sets are available. The fuzzy set does not have
fixed boundary means an item belongs to particular set or not that process is gradual
and this is smooth transition characterized by fuzzy membership function. The fuzzy
set is important is certain areas like human thinking, especially in the domain of
pattern recognition. The fuzzy set does not mean randomness but it means uncertain
nature of things.
A = {a1, a2, a3......., an}, Here A is a set represented by classical set theory.
ai (i = 1,.....,n) are elements of A forms together a subset of the universal base set X.
The set A can be represented for all elements x X by its characteristic function
1
() = { }
0
() has only two values 0 (``false'') and 1 (``true'') according to the classical set
theory . These type of sets are called crisp sets too. Fuzzy sets are called Non Crisp
Sets. Characteristic function can be defined for fuzzy sets. Such function is a
generalization of that in equation and termed as membership function. To define
members in fuzzy set membership functions are used. The membership function
described the membership of fuzzy set.
35 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
Unlike classical set theory the normalized closed interval [0,1] describes the
membership functions A(x) values. Therefore, each membership function maps
elements of a given universal base set X which is itself a crisp set, into real numbers in
[0,1].
The membership function, A(x) notation for fuzzy set A can be described as
A : X [0,1]
Each fuzzy set is completely and uniquely defined by one particular membership
function. Consequently symbols of membership functions are also used as labels of
the associated fuzzy sets, such as big, small and others. The differences in the crisp
and fuzzy sets. [19]
The classical set crisp boundary is used so there is no uncertainty in the boundaries of
classical set. There are many examples of classical sets like, set of integer numbers
from 1 to 10. If we refer it as universe number then the cardinal number means total
36 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
All possible set of set A is called power set P(A). Suppose A={1,2,3,4} then the cardinal
number is nx=4. The power set is
P(A)={,{1},{2},{3},{4},{1,2},{1,3},{1,4},{2,3},{2,4},{3,4},
{1,2,3},{1,2,4},{2,3,4},{1,3,4},{1,2,3,4}}
Complement = { x | x A, x X}
Difference A|B = {x| x A and x B}
A
B
`
Figure 4.2: Union of Classical Sets A and B
37 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
U
A B
A U
B
38 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
The excluded middle axioms are very important because these set operations are not
valid for both classical set and fuzzy set.
39 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
4.6 (a) Crisp set A and its Complement (b) Crisp = (c) Crisp =
4.2.3 Fuzzy Set
In contrast to classical set, fuzzy set is a set without rigid boundaries. In fuzzy
set the boundaries are ambiguously specified. The fuzzy set has the flexibility in
modelling commonly used linguistic expressions.
The fuzzy set expresses the degree to which an element belongs to the set. The
characteristic function of a fuzzy set is allowed to have the values between 0
and 1, which denotes the degree of membership of an element in the given
set.
40 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
41 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
Fuzzy set holds all operations same as classical set, except excluded middle
axioms. The excluded middle axioms, extended for fuzzy sets, are expressed by
42 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
4.10 (a) Fuzzy Set A and its complement (b) Fuzzy (c) Fuzzy
4.3 Fuzzy Relations
Fuzzy rules are the key strength of fuzzy inference systems, which have the
most important modelling tool based on fuzzy set theory.
X is close to Y
X depends on Y
X and Y, looks alike
If X is large then Y is small
43 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
0.9 0.1
R2 = 0.2 0.3
0.5 0.6
1 0.5
x A
2 y 0.5
B
3 z
0.6
Relation-1 Relation-2
Figure 4.11 Fuzzy Relations
44 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
= { ((, ), (, ))} , ,
Then S will be relation that relates element in X that R contains to the element
in Z that Q contains, i.e...
Fuzzy rules and fuzzy reasoning are the key strength of fuzzy inference systems, which
have the most important modelling tool based on fuzzy set theory.
Obtaining fuzzy relation which represents the meaning of a given fuzzy rule
The linguistic variable can be characterized by a quintuple (x, T(x), X,G,M ) in which x
is the name of the variable, T(x) is the term set of x- set of its linguistic values or
linguistic terms. X is the universe, G is the syntactic rule and M is the semantic rule
that associates with each linguistic value A.
T(age) = { young, not young, very young, not very young, middle aged, not middle
aged, old, not old, very old, more or less old, not very young and not very old }
45 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
Negation: not
Let A be a linguistic value characterized by a fuzzy set with membership function A(.)
Ak = [
x
A ( x)]k / x
NOT (A) = [1
x
A ( x)] / x
A and B = A B = [
x
A ( x) B ( x)] / x
A or B = A U B = [
x
A ( x) B ( x)] / x
If x is A then y is B.
Where A and B are the linguistic values defined by fuzzy sets on universe of
discourse X and Y. Often x is A is called the antecedent or premise, while y is B is
called consequence or conclusion.
46 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
Before we can employ fuzzy if then rules to model and analyze a system, first we have
to finalize what is meant by the expression If x is a then y is b which is abbreviated
as AB
~
R= A B = A x B =
xxy
A ( x) * B ( y ) /( x, y )
The operator may represent and, or, bounded product, logical operations like {a, if b
=1; b, if a=1; o, Otherwise}
The main advantage of fuzzy logic is it allows the use of vague linguistic terms in the
rules.
Below are some reasons why we need to use fuzzy logic rather than linear system:
Fuzzy logic concepts are easy to understand. The concepts of mathematics used in
fuzzy reasoning are simple.
Fuzzy logic is flexible enough with any system and is easy to manage or add more
functionality without starting again from beginning.
47 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
Fuzzy logic tolerates inaccurate data also. Almost everything is imprecise and also
most things are imprecise even on cautious review. Fuzzy reasoning creates this
understanding in the process rather than moving it onto the end.
It can model nonlinear functions of random complexity. Any sets of input output
data can be matched by generating a fuzzy system.
Adaptive techniques like Adaptive Neuro-Fuzzy Inference Systems (ANFIS) have made
this process easier.
Fuzzy logic can be combined with conventional control techniques. Fuzzy systems do
not substitute conventional control methods, but in many cases fuzzy systems extend
them and make their implementation simple.
There are many ways of interpreting fuzzy rules, combining the output of several fuzzy
rules and defuzzifying the output
Fuzzy logic is not a solution for all problems. Fuzzy logic should not be used in certain
situations. Fuzzy logic is a suitable way to map an input space to an output space, but
it may not be convenient in all circumstances. If a simpler solution already exists, fuzzy
logic may not be advisable. Fuzzy logic is the modification of common sense - use
common sense when it is implemented and the right decision will probably been
48 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
made. For example, many controllers do a good job without using fuzzy logic.
However, if time is taken to become familiar with fuzzy logic. Fuzzy logic is a powerful
tool for dealing quickly and efficiently with uncertainties and nonlinearity.
Membership of the elements x of the base set X in the fuzzy set A is defined by the
membership function A(x), where A(x) is a large class of functions can be taken.
Functions generally used are linear functions like triangular or trapezoidal functions.
The grade or degree of membership A(x) of a membership function describes which
grade, it belongs to in the fuzzy set A. The value of this membership grade or degree is
in the unit interval [0, 1]. This is shown in Figure.
49 | P a g e
Image Processing for Movement Detection and Face Recognition using Fuzzy Neural Network
Let X = R+ be the set of possible ages of human beings. The fuzzy set B= about
50 years old may be expressed as
B= {(x, ,B(x) | x X }
B(x) = 1
x 50
4
1
10
Suppose the age of person is 45, then membership value will be 0.941 for the
set.
Set of Eyes having different colours like brown, black etc. The eye colour may be
brownish black or dark brown which cannot be classified as exactly brown eye or
exactly black eye. The fuzzy set provides the membership of the eye colour in the
black eye colour set.
50 | P a g e