
434 19. Artificial Immune Models
(i.e. different selection methods, e.g. negative or clonal selection).
The proposed multi-layered AIS consists of the following layers: the free-antibody
layer (F), B-Cell layer (B) and the memory layer (M). The set of training patterns,
D
T
, is seen as antigen. Each layer has an affinity threshold (a
F
, a
B
, a
M
), and a death
threshold (
F
,
B
,
M
). The death threshold is measured against the length of time
since a cell was last stimulated within a specific layer. If the death threshold does not
exceed this calculated length of time, the cell dies and is removed from the population
in the specific layer. The affinity threshold (a
F
, a
B
, a
M
) determines whether an
antigen binds to an entity within a specific layer. The affinity, f
a
, between an antigen
pattern and an entity in a layer is measured using Euclidean distance. Algorithm 19.4
summarizes the multi-layered AIS. The different parts of the algorithm are discussed
next.
An antigen, z
p
, first enters the free-antibody layer, F. In the free-antibody layer, the
antigen pattern is then presented to n
f
free-antibodies. The number of free-antibody
bindings is stored in the variable n
b
. The antigen, z
p
, then enters the B-Cell layer, B,
and is randomly presented to the B-Cells in this layer until it binds to one of the B-
Cells. After binding, the stimulated B-Cell, u
k
, produces a clone,
˜
u
k
, if the stimulation
level exceeds a predetermined stimulation threshold, γ
B
. The stimulation level is based
on the number of free-antibody bindings, n
b
, as calculated in the free-antibody layer.
The clone is then mutated as u
k
and added to the B-Cell layer. The stimulated B-
Cell, u
k
, produces free antibodies that are mutated versions of the original B-Cell.
The number of free antibodies produced by a B-Cell is defined in [468] as follows:
f
F
(z
p
, u
k
)=(a
max
− f
a
(z
p
, u
k
)) × α (19.2)
where f
F
is the number of antibodies that are added to the free-antibody layer, a
max
is the maximum possible distance between a B-Cell and an antigen pattern in the data
space (i.e. lowest possible affinity), f
a
(z
p
, u
k
) is the affinity between antigen, z
p
,and
B-Cell, u
k
,andα is some positive constant.
If an antigen does not bind to any of the B-Cells, a new B-Cell, u
new
,iscreatedwith
the same presentation as the unbinded antigen, z
p
. The new B-Cell is added to the
B-Cell layer resulting in a more diverse coverage of antigen data. The new B-Cell,
u
new
, also produces mutated free antibodies, which are added to the free-antibody
layer.
The final layer, M, consists only of memory cells and only responds to new memory
cells. The clone,
˜
u
k
, is presented as a new memory cell to the memory layer, M.The
memory cell with the lowest affinity to
˜
u
k
is selected as v
min
. If the affinity between
˜
u
k
and v
min
is lower than the predetermined memory threshold, a
M
,andtheaffinity
of
˜
u
k
is less than the affinity of v
min
with the antigen, z
p
(that was responsible for
the creation of the new memory cell,
˜
u
k
), then v
min
is replaced by the new memory
cell,
˜
u
k
. If the affinity between
˜
u
k
and v
min
is higher than the predetermined memory
threshold, a
M
, the new memory cell,
˜
u
k
, is added to the memory layer.
The multi-layered model improved the SSAIS model [626] (discussed in Section 19.4)
in that the multi-layered model obtained better compression on data while forming
stable clusters.