Академический Документы
Профессиональный Документы
Культура Документы
.in
rs
de
ea
yr
Hybrid Systems – Integration of NN, GA and FS : Course Lecture 41 – 42, notes, slides
.m
w
w
www.myreaders.info/ , RC Chakraborty, e-mail rcchak@gmail.com , Aug. 10, 2010
,w
ty
http://www.myreaders.info/html/soft_computing.html
or
ab
kr
www.myreaders.info
ha
C
C
R
Hybrid Systems
Integration of Neural Network,
Fuzzy Logic & Genetic Algorithm
Soft Computing
yr
.m
w
w
Integration of Neural Network,
,w
ty
or
Soft Computing
C
C
R
Topics
(Lectures 41, 42 2 hours) Slides
6. References 41
02
fo
.in
rs
de
ea
yr
Hybrid Systems
.m
w
w
,w
ty
Integration of NN FL GA
or
ab
kr
What is Hybridization ?
ha
C
C
R
as subroutine;
− Embedded hybrid system : the technologies participating appear to be
fused totally.
ea
1. Introduction :
yr
.m
w
w
Hybridization - Integration of NN , FL , and GA
,w
ty
or
ab
Fuzzy logic, Neural networks and Genetic algorithms are soft computing
kr
ha
Neural Networks (NNs) are highly simplified model of human nervous system
which mimic our ability to adapt to circumstances and learn from past
experience. Neural Networks systems are represented by different architectures
like single and multilayer feed forward network. The networks offers back
proposition generalization, associative memory and adaptive resonance theory.
ea
1.1 Hybrid Systems
yr
.m
w
w
Hybrid systems employ more than one technology to solve a problem.
,w
ty
or
05
fo
.in
rs
de
SC – Hybrid Systems - Introduction
ea
• Sequential Hybrid System
yr
.m
w
w
,w
input and it goes on. However, this is one of the weakest form of
C
C
R
06
fo
.in
rs
de
SC – Hybrid Systems - Introduction
ea
• Auxiliary Hybrid System
yr
.m
w
w
In Auxiliary hybrid system, one technology calls the other technology
,w
ty
or
it over for further use. This type of hybridization is better than the
R
sequential hybrids.
07
fo
.in
rs
de
SC – Hybrid Systems - Introduction
ea
• Embedded Hybrid System
yr
.m
w
w
In Embedded hybrid system, the technologies participating are
,w
ty
or
08
fo
.in
rs
de
SC – Hybrid Systems - Introduction
ea
1.2 Neural Networks, Fuzzy Logic, and Genetic Algorithms Hybrids
yr
.m
w
w
Neural Networks, Fuzzy Logic, and Genetic Algorithms are three
,w
ty
or
distinct technologies.
ab
kr
ha
C
09
fo
.in
rs
de
SC – Hybrid Systems - Introduction
ea
• Neuro-Fuzzy Hybrid
yr
.m
w
w
Neural Networks and Fuzzy logic represents two distinct methodologies to
,w
ty
or
deal with uncertainty. Each of these has its own merits and demerits.
ab
kr
Neural Networks :
ha
C
C
ea
• Neuro-Genetic Hybrids
yr
.m
w
w
The Neural Networks and Genetic Algorithms represents two distinct
,w
ty
or
methodologies.
ab
kr
conventional counterparts.
− The gradient descent learning algorithms have reported difficulties in
leaning the topology of the networks whose weights they optimize.
− GA based algorithms have provided encouraging results especially
with regard to face recognition, animal control, and others.
− Genetic algorithms encode the parameters of NNs as a string of
properties of the network, i.e. chromosomes. A large population of
chromosomes representing many possible parameters sets, for the
given NN, is generated.
− GA-NN is also known as GANN have the ability to locate the
neighborhood of the optimal solution quicker than other conventional
search strategies.
− The drawbacks of GANN algorithms are : large amount of memory
ea
• Fuzzy-Genetic Hybrids
yr
.m
w
w
Fuzzy systems have been integrated with GAs.
,w
ty
or
ab
The fuzzy systems like NNs (feed forward) are universal approximator
kr
ha
12
fo
.in
rs
de
SC – Hybrid Systems - Introduction
ea
1.3 Typical Hybrid Systems
yr
.m
w The Systems considered are listed below.
w
,w
ty
or
13
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
2. Genetic Algorithm (GA) based Back Propagation Network (BPN)
yr
.m
w
w
Neural networks (NNs) are the adaptive system that changes its structure
,w
ty
or
Limitations of BPN :
− BPN can recognize patterns similar to those they have learnt, but do not
have the ability to recognize new patterns.
− BPN must be sufficiently trained to extract enough general features
applicable to both seen and unseen; over training to network may have
undesired effects.
14
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
[ continued from previous slide ]
yr
.m
w Genetic Algorithms (GAs) are adaptive search and optimization algorithms,
w
,w
ty
− The BPN determines its weight based on gradient search technique and
The GA based techniques for determining weights in a BPN are explained next.
15
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
2.1 GA based techniques for determining weights in a BPN
yr
.m
w
w
Genetic algorithms work with population of individual strings.
,w
ty
or
considered,
R
All these aspects of GAs for determining weights of BPN are illustrated
in next few slides.
16
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
• Coding
yr
.m
w
w
Assume a BPN configuration ℓ - m – n where
,w
ty
or
ie choose 40 chromosomes
Chromosome
Chromosome
17
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
• Weight Extraction
yr
.m
w
w
Extract weights from each chromosomes, later to determine the fitness
,w
ty
or
values.
ab
kr
Let xkd+1 , xkd+2 , . . x(k + 1)d represent kth gene (k ≥ 0) in the chromosomes.
The Chromosomes are stated in the Fig. The weights extracted from all
the eight genes are :
■ Gene 0 : 84321 ,
Here we have, k = 0 , d = 5 , and xkd +1 is x1 such that
5 ≤ x1 = 8 ≤ 9. Hence, the weight extracted is
3
4 x 10 + 3 x 102 + 2 x 10 +1
W0 = + = +4.321
103
■ Gene 1 : 46234 ,
Here we have, k = 1 , d = 5 , and xkd +1 is x6 such that
0 ≤ x6 = 4 ≤ 5. Hence, the weight extracted is
3
6 x 10 + 2 x 102 + 3 x 10 +4
W1 = − 103 = − 6.234
ea
• Fitness Function :
yr
.m
w
w
A fitness is devised for each problem.
,w
ty
or
Example :
ab
kr
The matrix on the right, represents a set of input I (I11 , I21) (T11 , T21)
ha
C
19
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
[ continued from previous slide fitness fuction]
yr
.m
w Algorithm
w
,w
ty
or
{
ab
kr
Ii
C
C
E i =Σ
2
(Tji–O ji ) where O i is the output vector calculated by BPN;
j
Find the root mean square E of the errors E i , i =1,2,...,N
i.e. E = ( ( Σ Ei )/N) 1/2
i
Calculate the Fitness value F i for each of the individual string of the
population as F i = 1 / E
}
Output F i for each C i , i = 1 , 2 , . . . , p ;
}
20
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
[ continued from previous slide - Fitness Function ]
yr
.m
w
w
Thus the Fitness values Fi for all chromosomes in the initial
,w
ty
, 2 , . . , 40 are computed.
ha
C
C
Initial
Population of Extracted
Chromosomes weight sets
C01 w01
Training BPN Compute
Fitness
C02 w02
Extract Input Output
----
--- F i =1/E
weights weights Error E
----
---
C040 W
0
40 Fitness
Values
21
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
• Reproduction of Offspring
yr
.m
w
w
Before the parent chromosomes reproduce offspring :
,w
ty
or
min
fitness F and then replacing it with a duplicate copy of C with
ha
k
C
C
max
highest fitness F ;
R
i.e., the best fit individuals have multiple copies while worst fit
individuals die off.
Offspring B A
Oa Ob
22
fo
.in
rs
de
SC – Hybrid Systems – GA based BPN
ea
[ continued from previous slide - Reproduction ]
yr
.m
w Example :
w
,w
ty
max min
− Let F = Fk be maximum and F = Fℓ be minimum fitness value
C
R
C01 F1 C01 F1
ea
• Selection of Parent Chromosomes
yr
.m
w
w
The previous slide illustrated Reproduction of the Offspring.
,w
ty
or
Here, sample "Selection Of Parents" for the "Two Points Crossover" operator
ab
kr
The Crossover Points of the Chromosomes are randomly chosen for each
parent pairs as shown in the Fig. below.
Chromosomes -Mating Pool
C1
1 C1
2 C1k C1ℓ C140
Crossover
points
Selected Parent Pairs
The Genes are exchanged for Mutation as shown in the Fig. below.
Chromosomes -Mating Pool
C11 C12 C1k C1ℓ C140
New Population P1
ea
• Convergence
yr
.m
w
w
For any problem, if GA is correctly implemented, the population evolves
,w
ty
or
global optimum.
ha
C
C
R
− the best individuals replicated and the reproduction carried out using
two-point crossover operators form the next generation P2 of the
chromosomes.
− the process of generation proceeds until at one stage 95% of the
chromosomes in the population Pi converge to the same fitness value.
− at that stage, the weights extracted from the population Pi are the
final weights to be used by BPN.
25
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy BPN
ea
3. Fuzzy Back Propagation Network
yr
.m
w
w
Neural Networks and Fuzzy logic (NN-FL) represents two distinct methodologies
,w
ty
or
26
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy BPN
ea
3.1 LR-type Fuzzy Numbers
yr
.m
w
w
The LR-type fuzzy number are special type of representation of fuzzy
,w
ty
or
• Definition
ha
~
C
C
m–x
L for x ≤ m, α>0
µ ~ (x) α
M =
m–x
R for x ≤ m , β > 0
β
m–x m–x
L = max (0, 1 - α
)
α
m–x m–x
R = max (0, 1 - )
α α
~
LR-type fuzzy number M can be represented as (m, α, β) LR shown below.
Member ship
deg µ ~ (x)
M
00 α m, β x
Note : If α and β are both zero, then L-R type function indicates a
crisp value. The choice of L and R functions is specific to problem.
27
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy BPN
ea
• Operations on LR-type Fuzzy Numbers
yr
.m
~ ~
w γ , δ) LR be two L R-type fuzzy
w
Let M = (m, α , β) LR and N = (n,
,w
ty
or
■ Addition
C
C
R
(m, α , β) LR (n, γ , δ) LR = (m + n, α + γ, β + δ ) LR
■ Substraction
(m, α , β) LR (n, γ , δ) LR = (m - n, α + δ , β + γ ) LR
■ Multiplicaion
■ Scalar Multiplicaion
λ*(m, α , β) LR = (λm, λα , λβ) LR , ∀λ ≥ 0 , λ ∈ R
28
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy BPN
ea
• Fuzzy Neuron
yr
.m
w The fuzzy neuron is the basic element of Fuzzy BP network. Fig. below
w
,w
ty
~ ~
W1
C
I1
C
R
~ ~
I2 W2
~
~
Net j Function
W3
∑
~
I3
~
CE f O j
Wn-1
~
In-1 ~
Wn
~ Fig Fuzzy Neuron j
In
~ ,I~1 , I~2 , . . ~
Given input vector I = In
~ ~ , ~ , ..
,w ~
and weight vector W = 1 w2 wn
ea
[ continued from previous slide – Fuzzy Neuron ]
yr
.m
w
w
Note :
,w
ty
~ ~
or
In the fuzzy neuron, both input vector In and weight vector wn are
ab
kr
ha
~ ~
For input vector I = ,I~1 , I~2 , . . ~
In the input component Iisi
~ ~ ~
represented by the LR-type fuzzy number Imi, I α i, I β .i
~ ~ , ~ , ..
,w ~
Similarly, for the weight vector W = 1 w2 wthe
n weight vector
~ ~ ~ ~
component wi is represented as wmi , wαi , w β i.
30
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy BPN
ea
• Architecture of Fuzzy BP
yr
.m
w
w
Fuzzy Back Propagation Network (BP) is a 3-layered feed forward
,w
ty
or
architecture. The 3 layers are: input layer, hidden layer and output layer.
ab
kr
~ ~
Op1 W11 I'p1 O'p1 V11 I"p1 "
.
Ip1
1 1 1 O p1
W1j V1k
~ ~
Ipi Opj Wij I'pj O'pj Vjk I"pk O"pk
i j k
~ ~
Ipℓ Opℓ Wℓm I'pm "
O'pm Vmn I pn O"pn
ℓ m n
~ ,I~ , I~ , .. ~
Let Ip = p1 p2 Ipℓ , for p = 1, 2, . . , N, be the pth pattern
~
− Let Opi be the output value of i th input neuron.
− Let O'pj and O'pk are jth and kth crisp defuzzification outputs of
the hidden and output layer neurons respectively.
th
− Let Wij is the fuzzy connection weight between i input node and
th
j hidden node.
− Let Vjk is the fuzzy connection weight between jth hidden node and
th
k output node.
[Continued in next slide]
31
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy BPN
ea
[ continued from previous slide – Architecture of Fuzzy BP]
yr
.m
w
w
,w
Input neurons:
kr
ha
C
~ ~
C
Opi Ipi
R
= , i= 1,2,..., ℓ .
Hidden neurons:
O' pj = f ( NET pj ) , i = 1 , 2 , . . . , m .
ℓ
where NET pj = C E ( Σ Wij O' pi )
i=0
Out neurons:
O" pk = f ( NET pk ) , i = 1 , 2 , . . . , n . ,
m
where NET pk = C E ( Σ Vjk O' pj )
j=0
32
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy AM
ea
4. Fuzzy Associative Memory
yr
.m
w
w
,w
A fuzzy logic system contains the sets used to categorize input data (i.e.,
ty
or
ab
fuzzification), the decision rules that are applied to each set, and then a
kr
ha
FAM has many applications; one such application is modeling the operations
of washing machine.
33
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy AM
ea
• Example : Washing Machine (FAM Model)
yr
.m
w
w
For a washing machine , the input/output variables are :
,w
ty
or
Output variable : washing time (T) , depends upon two input variables.
ab
kr
Input variables are : weight of clothes (X) and stream of water (Y).
ha
C
C
R
0.4
0.2
0.0
0.0 2.5 5.0 7.5 10
Weight (X)
■ Stream of water is Y µY S M L
1.0
0.4
0.2
0.0
0.0 16 40 64 80
Stream (Y)
■ Washing time is T
µT 1.0 S M L
− range is from 0 to 100 and
0.8
0.4
0.2
0.0
0.0 25 50 75 100
Washing time (T)
34
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy AM
ea
[ continued from previous slide – Model of Washing Machine]
yr
.m
w
w
The problem indicates, that there are two inputs and one-output
,w
ty
or
Weight (X)
Washing time (T)
S M L
S M L L
Stream (Y) M S M L
L S S L
35
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy AM
ea
■ Fuzzy Representation :
yr
.m
w
w
The fuzzy sets representation, while X = 3.2 Kg and Y = 32
,w
ty
or
0/L }
C
C
0/L }
µT
1.0
0.8
0.6
0.4
0.2
0.0 20 35
25 50 60
0.0 75 100
36
fo
.in
rs
de
ea
SC – Hybrid Systems – Fuzzy AM
yr
.m
■ Defuzzification
w
w
,w
ty
n n
Z COG = Σ µc (Z j ) Z j / Σ µc (Z j ) where
j=1 j=1
j = 1, . . . , n , is the number of quantization levels of the output,
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 }
The calculated washing time using COG formula T = 41.025 min.
37
fo
.in
rs
de
SC – Hybrid Systems – Fuzzy ART
ea
5. Simplified Fuzzy ARTMAP
yr
.m
w
w
ART is a neural network topology whose dynamics are based on Adaptive
,w
ty
or
unsupervised algorithms.
ha
C
C
− The Supervised ART algorithms that are named with the suffix "MAP", as
ARTMAP. Here the algorithms cluster both the inputs and targets and
The ART systems have many variations : ART1, ART2, Fuzzy ART, ARTMAP.
ART1: The simplest variety of ART networks, accepting only binary inputs.
ea
• Supervised ARTMAP System
yr
.m
w
w
ARTMAP is also known as predictive ART. The Fig. below shows a
,w
ty
or
inter-ART module called the Map Field. The Map Field forms predictive
ha
C
C
tracking rule. If ARTa and ARTb are disconnected then each module
would be of self-organize category, groupings their respective input sets.
b
Training
ART b
Match
Tracking
ART a
ea
• Comparing ARTMAP with Back-Propagation Networks
yr
.m
w
w
ARTMAP networks are self-stabilizing, while in BP networks the new
,w
ty
or
phases while ARTMAP systems perform and learn at the same time
R
ea
6. References : Textbooks
yr
.m
w
w
1. "Neural Network, Fuzzy Logic, and Genetic Algorithms - Synthesis and
,w
ty
Sinha and Madan M. Gupta (2000), Academic Press, Chapter 1-25, page 1-625.
3. "Soft Computing and Intelligent Systems Design - Theory, Tools and Applications",
by Fakhreddine karray and Clarence de Silva (2004), Addison Wesley, chapter 7,
page 337-361.
5. "Fuzzy Logic: Intelligence, Control, and Information", by John Yen, Reza Langari,
(1999 ), Prentice Hall, Chapter 15-17, page 425-500.
6. "Fuzzy Logic and Neuro Fuzzy Applications Explained", by Constantin Von Altrock,
(1995), Prentice Hall, Chapter 4, page 63-79.
41