Professional Documents
Culture Documents
Hybrid Systems
Integration of Neural Network,
Fuzzy Logic & Genetic Algorithm
Soft Computing
Hybrid systems, topic : Integration of neural networks, fuzzy logic
and genetic algorithms; Hybrid systems - sequential, auxiliar, and
embedded; Neuro-Fuzzy hybrid - integration of NN and FL; NeuroGenetic hybrids - integration of GAs and NNs
hybrids - integration of FL and GAs.
Back
Propagation
Networks
Genetic
hybridization
Fuzzy-Genetic
Algorithms
of
BPN
and
Based
GAs;
reproduction
of
offspring,
selection
of
parent
chromosomes,
FAM
Model
representation,
supervised
of
washing
defuzzification.
ARTMAP
propagation networks.
system,
machine
Simplified
comparing
variables,
fuzzy
ARTMAP
example
operations,
ARTMAP
with
:
back-
Hybrid Systems
Integration of Neural Network,
Fuzzy Logic & Genetic Algorithm
Soft Computing
Topics
(Lectures 41, 42
2 hours)
Slides
03-13
Typical
Hybrid systems.
2. Genetic Algorithms Based Back Propagation Networks
14-25
of
offspring,
Selection
of
parent
chromosomes,
Convergence.
3. Fuzzy Back Propagation Networks
26-32
Numbers; Fuzzy
33-37
38-40
41
Integration of NN FL GA
What is Hybridization ?
hybrid
technology
fashion;
Auxiliary hybrid system: the one technology calls the other technology
as subroutine;
Embedded hybrid system : the technologies participating appear to be
fused totally.
belonging
to
different
domains.
However,
each
of
these
1. Introduction :
which
are
inspired
by
biological
are
soft
computational
computing
processes
and
past
logic
addresses
the
imprecision
or
vagueness
in
description of the system. The sets have no crisp boundaries and provide a
gradual transition among the members and non-members of the set elements.
Genetic algorithms are inspired by biological evolution, can systemize random
search and reach to optimum characteristics.
Each of
these technologies
of problems
belonging
to
have
different
However,
to
each
wide
range
of
these
can
have
pitfalls
and
therefore need
better solution.
Hybrid
systems
have
been
classified
as
Sequential
hybrid
system,
the
technologies
are
used
in
pipelining fashion.
In Auxiliary hybrid system, one technology calls the other technology
as subroutine.
In Embedded hybrid
be fused totally.
05
system,
the
technologies
participating
appear
to
technology's
output
becomes
another
technology's
input and it goes on. However, this is one of the weakest form of
hybridization
since
an
integrated
Genetic
algorithm
combination
of
technologies
is
not
present.
Example:
preprocessor
obtains
the
optimal
processes
the
information provided
it over for further use. This type of hybridization is better than the
sequential hybrids.
Example
neuron-genetic
system
in
optimize
which
its
neural
structural
network
parameters
Embedded
integrated
hybrid
in such
system,
manner
the
that
technologies
they
participating
are
system
may
have
an
NN
which
receives
1.2
Networks,
Fuzzy
Logic,
and
Genetic
Algorithms
are
three
distinct technologies.
Each of these technologies has advantages and disadvantages.
It
so as
of other.
09
to
over
come the
weakness
of
one with
the
is
are
strength
Neuro-Fuzzy Hybrid
Neural Networks and Fuzzy logic represents two distinct methodologies to
deal with uncertainty. Each of these has its own merits and demerits.
Neural Networks :
Merits : Neural Networks, can model complex nonlinear relationships
and
are
appropriately
suited
for
classification
phenomenon
into
predetermined classes.
Demerits : Neural Network's output, precision is often limited to least
squares errors;
the training
data has to be chosen over entire range where the variables are
expected to change.
Fuzzy logic :
Merits : Fuzzy logic system, addresses the imprecision of inputs and
outputs
and
allow
greater
flexibility
in
integrated
systems
have
turned
out to be useful in :
accomplishing mathematical relationships among many variables in a
network's
expressiveness
and
flexibility
to
adapt
to
uncertain
environments.
Second, is to apply neuronal learning capabilities to fuzzy systems so
that
the
fuzzy
systems
become
more
adaptive
to
changing
Neuro-Genetic Hybrids
Networks
Algorithms :
have offered
themselves
as potential
candidates
conventional counterparts.
The gradient descent learning algorithms have reported difficulties in
have provided
encouraging
results
especially
sets,
for
the
the ability
to locate
the
conventional
search strategies.
The drawbacks of GANN algorithms are : large amount of memory
Fuzzy-Genetic Hybrids
fuzzy
systems
like
approximator
general
system
parameters
called
for
in
the
process,
so
that the system output matches the training data, have been tackled using
GAs.
input/output
variables
and
that
define
the
Network as the
host architecture)
3. Simplified Fuzzy ARTMAP
system
that
changes
its
structure
is then back-propagated
from
output
to
input
for
) where T
is target output
Limitations of BPN :
BPN can recognize patterns similar to those they have learnt, but do not
trained
to
extract
enough
general
features
applicable to both seen and unseen; over training to network may have
undesired effects.
14
ease of operation,
minimal requirements,
BPN
2.1 GA based techniques for determining weights
in a BPN
considered,
each individual string is assigned a fitness value,
high fit individuals participate in reproduction, yields new strings as
to the problem is
their ancestors,
processing
have
to
generate offspring.
All these aspects of GAs for determining weights of BPN are illustrated
in next few slides.
16
Coding
size
is
the
randomly
generated
initial
population
of
chromosomes.
Example :
where = 2 is input , m = 2
is
W12
V11
V12
W21
Inputs
W22
Input layer
= ( 2 + 2) . 2 = 8
1
V21
assume
Outputs
weight are
V22
Hidden layer
layer
output
Gene
digits
d=5
= 40 in length
Choose a population size p = 40
Gene
Gene
choose 40 chromosomes
Gene
Gene
Gene
k=0
k=1
k=2
k=3
k=4
k=5
k=6
k=7
84321
46234
78901
32104
42689
63421
46421
87640
14261
87654
12367
Chromosome
32478
76510
02461
84753
64321
Chromosome
Fig.
17
in
chromosome of weights is 8 x 5
ie
Gene
of
string S representing
Gene
number
Weight Extraction
x2 , . . . .
, ....
xkd+2 10d-2
d-3
+ xkd +3 10
+ . . . + x(k + 1)d ,
if 5 xkd +1 9
d-2
10
10
The
Chromosomes
the eight
are
genes are :
Gene 0 :
84321 ,
Here we have,
k=0,d=5,
3
W0 = +
Gene 1 :
Here we
4 x 10
+ 3 x 10
10
+ 2 x 10 + 1
= +4.321
46234 ,
have,
k=1,d=5,
and
0 x6 = 4 5.
3
W1 =
and
5 x1 = 8 9.
6 x 10
+ 2 x 10
+ 3 x 10 + 4
10
18
Gene 2 :
78901
yields
W2 = + 8.901
Gene 3 :
32104
yields
W3 = 2.104
Gene 4 :
42689
yields
W4 = 2.689
Gene 5 :
63421
yields
W5 = + 3.421
Gene 6 :
46421
yields
W6 = 6.421
Gene 7 :
87640
yields
W7 = + 7.640
= 6.234
all
Fitness Function :
A fitness is devised for each problem.
Example :
40
Let C01 , C0 , . . . , C0
Let
, w
, . . . . w0
0
1
40
0
1
,
0
o
2
o0
i = 1, 2, . . . , 40 .
1/2
Compute Fitness F1 :
The fitness
is given by
F1 = 1 / E .
0
and
Algorithm
Let (
Ii
Ti
= (I1i , I2i
Ti = (T1i , T2i
,, ...,
and
Ii)
,, ...,
where
Tn i )
C i,
i=1,2,...,p
whose size is p
{
Extract weights w
form C
Keeping w
i
Calculate error E i for each of the input instances using the formula below
E i =
(TjiO
ji
where O
Ei )/N)
population as F
1/2
value
i = 1 / E
Output F
}
20
for each C i , i = 1 , 2 , . . . , p ;
Thus
the
Fitness values Fi
population are
, 2 , . . , 40
in
the
initial
so F i , i = 1
are computed.
C0 1
C0 2
Extracted
weight sets
w0 1
w0 2
Training BPN
Compute
Fitness
ExtractInputOutput
-------
---
weightsweightsError E
F i =1/E
--C040
W0 40
Fitness
Values
Reproduction of Offspring
Before the parent chromosomes reproduce offspring :
First, form a mating pool by excluding that chromosome C with least
fitness
min
and
then replacing
highest fitness F
max
i.e.,
fit
the
best
it with
a duplicate copy of
with
worst
fit
individuals
have
multiple
copies
while
formed
Chromosomes
operator.
the
of
mating
respective
pool,
pairs
select
are
parent
pair
combined
at
random.
using
crossover
Pa
and
Pb,
Oa
and Ob
are produced.
Pa
Parent
Chromosomes
Pb
A
CrossoverCrossover Point 1
Point 1
B
Crossover Point 1 Crossover
Offspring Oa
B
A
22
Point 1
Ob
Example :
Consider the initial population of chromosomes P0 generated,
with
max
for 1
= Fk be maximum and
40
, k
where
min
=F
Fig. below
illustrates
min
with copies of
max
F1
Chromosomes
40
to C
C0
C02
F2
C0k
Fk
C0
Min Fitness
min
value F
F1
C0
C02
F2
C0k
Fk
F40
40
max
C0
40
Max Fitness
max
value F
-------
-------
Mating pool
F40
illustrated.
C1 1
C1 2
C1
C1k
C1 40
The Crossover Points of the Chromosomes are randomly chosen for each
parent pairs as shown in the Fig. below.
Chromosomes -Mating Pool
C11
C12
C1
C1k
C140
Crossover
points
The Genes are exchanged for Mutation as shown in the Fig. below.
C1 1
C1 2
C11
C1 2
C 1k
C1
C1 40
C1 k
C 1
C1 40
New Population P1
Thus
new
population P1
is created
comprising
40
Chromosomes
which
Convergence
For any problem, if GA is correctly
over successive generations with
implemented,
fitness
value
the
population
increasing
evolves
towards
the
global optimum.
Convergence is the progression towards increasing uniformity.
A population is said to have converged when 95% of the individuals
constituting the population share the same fitness value.
Example :
the
process
of
selection,
reproduction,
and crossover.
the fitness values for the chromosomes in P1 are computed.
the best individuals replicated and the reproduction carried out using two-
point
crossover
operators
form
the
next
generation
P2
of
the
chromosomes.
the
the
population
Pi are
the
Neural Networks and Fuzzy logic (NN-FL) represents two distinct methodologies
and the integration of NN and FL is called Neuro-Fuzzy systems.
Back Propagation Network (BPN) is a method of
training
multi-layer
neural
fuzzy
inputs
to crisp outputs.
Here, the
Fuzzy-Neuron
structure,
the architecture of
fuzzy BP,
its
learning
3.1
Definition
is of L-R type
~
A fuzzy member M
~ (x)
M
mx
m
x
for
if and only if
x m , 0
for x m , 0
wher
e
is a left reference
is a right
reference,
is called mean of
m,
,
M is a real number,
mx
mx
= max
0, 1
= max
0, 1
mx
mx
~
LR-type fuzzy number M can be represented as (m, , )
LR
shown below.
1
Member ship
deg ~ (x)
M
00
Fig.
Note :
m,
LR
be
Addition
(m, , )
LR
(n,
, ) LR
= (m + n, +
(m, , )
LR
(n,
, ) LR
= (m - n, + , +
(m, , )
LR
(n,
, ) LR =
(mn , m + n , m + n)
(m, , )
LR
(n,
, ) LR =
(mn , m - m , n - m)
(m, , )
LR
(n,
, ) LR =
(mn , - n - m , -n - m)
+)
LR
Substraction
) LR
Multiplicaion
m<0 , n<0
Scalar Multiplicaion
28
*(m, , )
LR
= (m, , )
*(m, , )
LR
= (m, - , -)
0 , R
RL
, < 0 , R
LR
LR
RL
for m0 , n0
for m<0 , n0
LR
for
Fuzzy Neuron
The fuzzy neuron is the basic element of Fuzzy BP network.
Fig. below
~
I2
~
I3
W1
W2
W3
~
Wn-1
~
In-1
Net
Function
CE
Wn
~
In
= ~
,
I1
= ~,
w1
~
W
I2
, ..
~
, w2 , . .
In
~
wn
Wi
Ii )) where
i=1
net
~
Wi
i=0
NET
Ii
( net )
CE
The function CE
is
the
centroid
of
triangular
fuzzy
treated
as
defuzzification
operation,
which
maps
fuzzy
weighted
If net = ( netm ,
net
net
~
CE
, ( netm
net
,net
net
) = netm +1/3 (
net
) = NET
29
Note :
wn are
,I1
I2
, .
.
~
W
component
30
wi
is represented as
mi
~
,w1 , w 2 , . .
~
w i
Ii is
I .i
~
wthe
n
w i
weight vector
Architecture of Fuzzy BP
Fuzzy Back Propagation Network (BP) is a 3-layered
feed
forward
architecture. The 3 layers are: input layer, hidden layer and output layer.
Considering a configuration of -input neurons, m-hidden neurons and noutput neurons, the architecture of Fuzzy BP is shown below.
~
Ip1
Op1W11I'p1
O'p1
W1j
~
Ipi
Ip
Op
Let
among N input
~
Here,
Ipi
Vjk
I"pk
"
kO
"
O'pm Vmn I
pk
"
nO
pn
pn
~
,Ip1 , Ip2 , . .
Ip
O' pj
Wm I'pm
Fig.
O" p1
V1k
WijI'pj
Opj
I " p1
V11
Ip
indicates the i
th
Ip
Let
~
O
p
i
Let
O'pj
and O'pk
th
are j
th
and k
=
th
~
,Ip1 , Ip2 , . . ~Ip
input neuron.
crisp defuzzification outputs of
th
Wij
th
th
output node.
[Continued in next
slide]
31
hidden node.
Let Vjk is
th
The computations
Input neurons:
~
Opi
~
I
p
i
, i= 1,2,..., .
Hidden neurons:
O' pj = f ( NET pj ) , i = 1 , 2 , . . . , m .
where
NET pj = C E (
Out neurons:
i=
0
Wij O' pi )
O" pk = f ( NET pk ) , i = 1 , 2 , . . . , n . ,
where
32
NET pk = C E (
j=0
Vjk O' pj )
A fuzzy logic system contains the sets used to categorize input data (i.e.,
fuzzification), the decision rules that are applied to each set, and then a
way of generating an output from the rule results (i.e., defuzzification).
In
the
fuzzification
stage,
data
point
is
assigned
degree
of
membership (DOM) determined by a membership function. The membership function is often a triangular function centered at a given point.
The Defuzzification is the name for a procedure to
fuzzy) output .
Associative Memory is a type of memory with a generalized addressing
method. The address is not the same as
traditional memory.
of
specific
input
the
An associative memory
representations
to
data
system
specific
location,
stores
output
as
in
mappings
representations.
Associative memory allows a fuzzy rule base to be stored. The inputs are
the degrees of membership, and the outputs are the fuzzy systems output.
Fuzzy Associative Memory (FAM) consists of a
single-layer
feed-forward
fuzzy neural network that stores fuzzy rules "If x is Xk then y is Yk" by
means of a fuzzy associative matrix.
FAM has many applications; one such application is modeling the operations
of washing machine.
33
Example :
SML
1.0
0.8
0.6
0.4
0.2
0.0
Stream of water is Y
0.
0
1.0
0.8
0.6
2.5
5.0
7.5
10
Weight (X)
SML
0.4
0.2
0.0
Washing time is T
range is from 0 to 100 and
the unit is minutes (min.)
0.
0
16
S
T
40
64
80
Stream (Y)
M
1.0
0.8
0.6
0.4
0.2
0.0
0.
0
25
50
75
100
The problem indicates, that there are two inputs and one-output
variables. The inference engineer is constructed based on fuzzy rule :
If < input variable > AND < input variable >
THEN < output variable >
Washing time
(T)
Stream (Y)
the
clothes
Fuzzy Representation :
the
membership
3.2 Kg
functions,
and
are
X3.2 Kg
= { 0.8/S,
0.2/M,
0/L }
Y32 liters/min.
= { 0.4/S, 0.8/M,
0/L }
20
60
as
= 32
follows:
T
1.0
0.8
0.6
0.4
0.2
0.0
0.
0
25
35
50
75
100
36
Defuzzification
COG
j=
1
j = 1, . . . , n ,
c (Z j ) Z
/
c (Z j )
where
j=
1
Referring to Fig in the previous slide and the formula for COG, we get
the fuzzy set of the washing time as w = { 0.8/20,
0.4/35,
0.2/60
Theory
unsupervised
The
(ART).
ART
networks
follow
both
supervised
and
algorithms.
algorithms
where
"nearest"
and
many
"closer"
are
iterative
modified
clustering
slightly
by
Also
ARTMAP :
two slightly
parameter
in the first
unit
in order
to make the
correct
classification.
The Fuzzy ARTMAP model
is
Field
Gain
Control
Map Field
Training
Orienting
Subsystem
ART b
MAP Field
Match
Tracking
ART a
a
Fig.
are
a BP network
has
old
information.
separate
training
A consequence of
and
performance
phases while ARTMAP systems perform and learn at the same time
ARTMAP networks are designed to work in real-time, while BP networks
their
training
phase.
ARTMAP systems can learn both in a fast as well as in a slow match
an established category,
while
depend
SC Hybrid Systems
6. References : Textbooks
41
1.
2.
3.
4.
5.
"Fuzzy Logic: Intelligence, Control, and Information", by John Yen, Reza Langari,
(1999 ), Prentice Hall, Chapter 15-17, page 425-500.
6.
7.