Clonal Selection Algorithm
Clonal Selection Algorithm
Abstract
The artificial immune system (AIS) is a new optimization technique which
mimics the defence system of animal organisms against pathogens. This paper
represents a review of the clonal selection theory (CLONALG), under the roof
of AIS. A biological background has been introduced to introduce to the way
the CLONALG works in engineering studies. The optimization procedure is
presented with a simulation example to illustrates CLONALG optimization
process.
Keywords
Artificial Immune System; Clonal Selection Theory; Optimization
Introduction
Natural immune systems (NIS), as the defense system of animal organisms against
pathogens, were the inspiration behind the artificial immune systems (AIS). The interest of
researchers is generated by such immune system features as: recognition of antigen (AG)
characteristics, pattern memorization capabilities, self-organizing memory, adaptation ability,
1
http://ljs.academicdirect.org/
A review of the clonal selection algorithm as an optimization method
Ahmed Y. HATATA, Mohamed G. OSMAN, Mohamed M. ALADL
immune response shaping, learning from examples, distributed and parallel data processing,
multilayer structure and generalization capability [1].
AIS based algorithms are divided into two major categories: population based and
network based. Network based algorithms use the concepts of immune network theory; while
population based algorithms use the other theories such as clonal selection and negative
selection [2]. This paper puts its focus on the clonal selection theory (CLONALG) as an
optimization process. The optimization algorithm starts by defining a purpose function f(x)
which needs to be optimized. Some possible candidate solutions are created; antibodies will
be used in the purpose function to calculate their affinity and this will determine the ones
which will be cloned for the next step. The cloned values are changed, mutated with a
predefined ratio and the affinities are recalculated and sorted. After certain evaluations of
affinity, affinity with the smallest value is the solution closest to our problem [3].
The CLONALG has some distinguished features. It operates on a population of points
in search space simultaneously, not on just one point, does not use the derivatives or any other
information, and employs probabilistic transition rules instead of deterministic ones. It also
has the ability of getting out local minima. As a relatively novel optimization algorithm, the
CLONALG has been successfully applied to solve various engineering problems [4].
Biological background
From Dorland's Illustrated Medical Dictionary [5], the immune system (IS) is a
complex system of cellular and molecular components having the primary function of
distinguishing self from not self and defense against foreign organisms or substances. So, the
main function of the IS that consists of innate and adaptive immunities is to distinguish
between foreign molecules that are called antigens (Ags) and that constitute self [6]. The
innate immunity provides immediate defense of the host and destroys Ags using
macrophages and natural killer cells. Its immune response has no immunological memory,
since the response cannot be alerted by repeated exposure to specific Ags. On the other hand,
adaptive immunity has an immunological memory for specific Ags. The immune response
consists of antigen-specific reactions of lymphocytes (T and B cells) which operates as an in-
cell mediate and humoral immunities. Each B cell can produce one form of antigen-specific
antibodies (Abs) to fight with Ags [7]. Figure 1, that is adapted from [8], shows an overview
of the IS main function.
2
Leonardo Journal of Sciences Issue 30, January-June 2017
ISSN 1583-0233 p. 1-14
3
A review of the clonal selection algorithm as an optimization method
Ahmed Y. HATATA, Mohamed G. OSMAN, Mohamed M. ALADL
Negative selection
Negative selection is a mechanism employed to help protect the body against self-
reactive lymphocytes. Such lymphocytes can occur because the building blocks of Abs are
different gene segments that are randomly composed and undergo a further somatic
hypermutation process. This process can therefore produce lymphocytes which are able to
recognize self-Ags [9]. The focus of negative selection algorithm is on anomaly detection
problems such as computer and network intrusion detection. Besides it is used in time series
prediction, image inspection and segmentation, and hardware fault tolerance [2].
4
Leonardo Journal of Sciences Issue 30, January-June 2017
ISSN 1583-0233 p. 1-14
5
A review of the clonal selection algorithm as an optimization method
Ahmed Y. HATATA, Mohamed G. OSMAN, Mohamed M. ALADL
Affinity maturation
The repertoire of Ag-activated B-cells in the immune response is divided into:
hypermutation and receptor editing. Hypermutation means the affinity of Abs increases from
a generation to the other thanks to the memory cells that memorize the experience of primary
exposure and use that to develop next Abs. This process is continuous [14,16]. Random
changes of the genes responsible for the Ag-Ab interactions lead to an affinity increase of the
Ab. These higher affinity variants are selected to enter the pool of the memory cells. Receptor
editing is essential for producing very high affinity Abs that can be selected to dominate the
response. Cells with low affinity or self-reactive receptors must be efficiently eliminated [17-
19].
Optimization
Based on the biological concept of AIS, optimization techniques have been built
considering AIS theories: immune network theory, negative selection and clonal selection.
This paper focuses on the clonal selection optimization algorithm (COLNALG). But, at first it
should be noted that [14]:
instead of antigen population, there is an objective function to be optimized;
each antibody Ab represents an element of the input space;
6
Leonardo Journal of Sciences Issue 30, January-June 2017
ISSN 1583-0233 p. 1-14
Abs affinity corresponds to the evaluation of the objective function for the given Ab;
number of clones generated n, for Abs will be
(1)
where n is the total number of clones generated for each of the Ags, f at is a multiplying
factor, N is the total number of Abs, gen is the number of iterations and round is the operator
that rounds its argument toward the closest integer. Each term of this sum corresponds to the
clone size of each selected Ab. For N=100 and f at=1 each affinity antibody Ab (i=1) will
produce 100 clones.
7
A review of the clonal selection algorithm as an optimization method
Ahmed Y. HATATA, Mohamed G. OSMAN, Mohamed M. ALADL
8
Leonardo Journal of Sciences Issue 30, January-June 2017
ISSN 1583-0233 p. 1-14
Simulation
To illustrate the CLONALG optimization technique, consider the objective function
f(x,y) which is intended to be optimized:
(2)
where f(x,y) is the objective function to be optimized and x&y are the corresponding
antibodies.
The purpose is to find the maximum value of the objective function and the
corresponding values of the antibodies x and y which are defined over the range [-1,1]. The
running parameters according to (1) are: N=100, f at=0.1 and gen=25. The main steps of the
proposed technique are as follows:
Step 1. Generate random values of the antibodies x and y producing an initial search space of
100 populations as shown in figure 5;
Step 2. Evaluate the objective function f(x,y) corresponding to step 1;
Step 3. Sort the new values of the objective function f(x,y) in ascending order;
Step 4. Sort the corresponding values of the antibodies x and y in the corresponding order of
the objective function f(x,y);
Step 5. The best individuals are reproduced (cloned) by the following function;
% Reproduction
function [T,pcs] = reprod(n,fat,N,ind,P,T);
% n -> number of clones
% fat -> multiplying factor
% ind -> best individuals
% T -> temporary population
% pcs -> final position of each clone
if n == 1,
cs = N;
T = ones(N,1) * P(ind(1),:);
else,
for i=1:n,
% cs(i) = round(fat*N/i);
cs(i) = round(fat*N);
pcs(i) = sum(cs);
T = [T; ones(cs(i),1) * P(ind(end-i+1),:)];
end;
end;
9
A review of the clonal selection algorithm as an optimization method
Ahmed Y. HATATA, Mohamed G. OSMAN, Mohamed M. ALADL
Step 6. Mutate the antibodies with a mutation probability Pm=0.01. Figure 6 shows the
antibodies population after the cloning and mutation processes;
Step 7. The affinity of the antibodies and will be calculated again;
Step 8. Steps will be repeated according to number of iterations.
10
Leonardo Journal of Sciences Issue 30, January-June 2017
ISSN 1583-0233 p. 1-14
To sum-up, this paper reviewed the three theories of artificial immune systems (AIS):
immune network theory, negative selection and clonal selection (CLONALG). Focusing on
the CLONALG verified that its capable of performing learning and maintenance of high
quality memory and solving complex problems. Simulation results confirm its effective and
efficient ability in solving the tested problem. This optimization code can be modified for
solving various engineering optimization problems. In a future work, the CLONALG code is
modified to get the optimum size of a hybrid power system consists of PV Panels, Wind
Turbines and Batteries. The objective function is considered as the cost function of the hybrid
system and the antibodies are considered as the components of the hybrid system. The main
goal of the optimization process is to satisfy the hourly load demand with the least probability
of cut-off power and the minimum overall cost.
11
A review of the clonal selection algorithm as an optimization method
Ahmed Y. HATATA, Mohamed G. OSMAN, Mohamed M. ALADL
12
Leonardo Journal of Sciences Issue 30, January-June 2017
ISSN 1583-0233 p. 1-14
References
1. Dudek G., An artificial immune system for classification with local feature selection,
IEEE Transactions on Evolutionary Computation, 2012, 16(6), p. 847-60.
2. Zheng J., Chen Y., Zhang W., A Survey of artificial immune applications, Artificial
Intelligence Review, 2010, 34(1), p. 19-34.
3. Ulker E. D., Ulker S., Comparison study for clonal selection algorithm and genetic
algorithm, arXiv preprint arXiv:1209.2717. 2012 Sep 12.
4. Babayigit B., Guney K., Akdagli A., A clonal selection algorithm for array pattern
nulling by controlling the positions of selected elements, Progress In Electromagnetics
Research B, 2008, 6, 257-66.
5. Combs D., Dorland's Illustrated Medical Dictionary, Journal of Family Practice, 1995.
6. Farmer J. D., Packard N. H., Perelson A.S., The immune system adaptation and machine
learning, Physica D: Nonlinear Phenomena, 1986, 22(1), p. 187-204.
8. De Castro L. N., Von Zuben F. J., Artificial immune systems: Part Ibasic theory and
applications, Universidade Estadual de Campinas, Dezembro de, Tech. Rep. 1999, 210.
9. Timmis J., Hone A., Stibor T., Clark E., Theoretical advances in artificial immune
systems, Theoretical Computer Science, 2008, 403(1), p. 11-32.
10. De Castro L.N., Timmis J., Artificial immune systems: a new computational intelligence
approach, Springer Science & Business Media, 2002.
11. Aickelin U., Dasgupta D., Gu F., Artificial immune systems, InSearch Methodologies,
2014, pp. 187-211.
12. De Castro L. N., Timmis J., An artificial immune network for multimodal function
optimization, Evolutionary Computation, 2002. CEC'02. Proceedings of the 2002
Congress, 2002, 1, p. 699-704.
13
A review of the clonal selection algorithm as an optimization method
Ahmed Y. HATATA, Mohamed G. OSMAN, Mohamed M. ALADL
13. De Castro L. N., Von Zuben F. J., de Deus Jr. G. A., The construction of a Boolean
competitive neural network using ideas from immunology, Neurocomputing, 2003, 50,
p. 51-85.
14. De Castro L. N., Von Zuben F. J., Learning and optimization using the clonal selection
principle, IEEE Transactions on Evolutionary Computation, 2002, 6(3), p. 239-51.
15. Sutton R. S., Barto A.G., Reinforcement learning: An introduction, Cambridge: MIT
press, 1998.
16. Banerjee S., An Immune System Inspired Approach to Automated Program Verification,
arXiv preprint arXiv:0905.2649. 2009 May 16.
17. Berek C., Ziegner M., The maturation of the immune response, Immunology Today,
1993, 14(8), p. 400-4.
18. George A. J., Gray D., Receptor editing during affinity maturation, Immunology Today
1999, 20(4), 196.
19. Nussenzweig M. C., Immune receptor editing: revise and select, Cell, 1998, 95(7), 875-
8.
20. De Castro L.N., Von Zuben F.J., The clonal selection algorithm with engineering
applications, Proceedings of GECCO, 2000, 2000, pp. 36-39.
14