ArticlePDF Available

A multilevel image thresholding using the animal migration optimization algorithm

Authors:

Abstract and Figures

Thresholding is an important and well-known technique that plays a major role in distinguishing the image objects from its background. In the other hand, separating the images into several different regions by determining multiple threshold values is called multilevel image thresholding. The Kapur entropy thresholding and maximum between-class variance (Otsu) have been widely used in image thresholding. However, these methods are computationally expensive and with increase in level numbers computational complexity increase exponentially. To overcome this problem, this paper presents animal migration optimization algorithm for multilevel thresholding. For evaluating the efficiency of proposed method, various benchmark images are used for carrying out the experiments, and obtained results via animal migration optimization algorithm compared with most popular optimization technique such as Particle Swarm Optimization, Genetic and bacterial foraging algorithm. Experimental results figure out that the proposed method provides better result than the other tested algorithms.
This content is subject to copyright. Terms and conditions apply.
Iran Journal of Computer Science
https://doi.org/10.1007/s42044-018-0022-5
ORIGINAL ARTICLE
A multilevel image thresholding using the animal migration
optimization algorithm
Taymaz Rahkar Farshi1
Received: 18 May 2018 / Accepted: 27 July 2018
© Springer Nature Switzerland AG 2018
Abstract
Thresholding is an important and well-known technique that plays a major role in distinguishing the image objects from its
background. In the other hand, separating the images into several different regions by determining multiple threshold values
is called multilevel image thresholding. The Kapur entropy thresholding and maximum between-class variance (Otsu) have
been widely used in image thresholding. However, these methods are computationally expensive and with increase in level
numbers computational complexity increase exponentially. To overcome this problem, this paper presents animal migration
optimization algorithm for multilevel thresholding. For evaluating the efficiency of proposed method, various benchmark
images are used for carrying out the experiments, and obtained results via animal migration optimization algorithm compared
with most popular optimization technique such as Particle Swarm Optimization, Genetic and bacterial foraging algorithm.
Experimental results figure out that the proposed method provides better result than the other tested algorithms.
Keywords Image segmentation ·Multilevel thresholding ·Animal migration optimization ·Kapur’s function ·Otsu’s function
1 Introduction
Segmentation is the fundamental and the basic step in image
processing and generally used in partitioning of images into
meaningful segments and objects. The aim of segmentation
is changing the representation of the images into images that
are meaningful and more simpler for interpreting and analyz-
ing [1]. Generally, in image processing applications, there are
many differences between grey levels of pixels that belong
to the background and those that belong to the foreground
(objects). Thresholding is one of the easiest and well-known
techniques for distinguishing the image objects from its back-
ground. Undoubtedly, image histogram in grey-level images
is a fully effective tool for developing algorithm in the field
of the image thresholding [2]. Dividing images into differ-
ent regions (background and object) by calculating a single
threshold value is known as bi-level thresholding [3], while
separating the images into several different regions by deter-
mining multiple threshold values is called multilevel image
thresholding [4,5].
BTaymaz Rahkar Farshi
taymaz.farshi@altinbas.edu.tr
1Computer Engineering Department, Altinbas University,
Istanbul, Turkey
Histogram of grey-level image is regarded as fully effec-
tive tool in image segmentation algorithm. The aim of
thresholding is determining a proper threshold value in bi-
level thresholding and determining proper multiple threshold
values in multilevel thresholding. The easiest problem is the
bi-level thresholding, where existing peaks represent the dif-
ferent segments, and the valley between the existing peaks
represents the threshold. Each pixel in an image which is
greater than the threshold value is replaced with a white pixel
and considered as an object pixel (foreground). On the other
hand, rest of the pixels that are less than threshold value
are replaced with black pixels and belong to the background
[6]. Moreover, the problem ramp up into more complex by
employing multilevel thresholding. Hence the image will be
segmented into many regions. Then pixels that are in same
range will be placed into a class [7].
In general, determining the exact locations of distinct val-
leys in an image histogram which include multiple peaks
(multimodal histogram) is not easy. A wide variety of algo-
rithms have been proposed in histogram thresholding area
[816]; a large number of these algorithms refer to bi-
level thresholding and rest of them address the multilevel
thresholding. Algorithms that are developed for bi-level
thresholding problems (such as Otsu and Entropy) [8,9] can
123
Iran Journal of Computer Science
also be extended to solve multilevel thresholding problems
[1719].
Optimal thresholds can be determined by analyzing and
evaluating the histogram information or by optimizing cer-
tain and reliable objective function [20,21]. In both of
bi-level and multilevel thresholding, the aim is determining
an accurate threshold or multiple thresholds, respectively.
In the linear search the search process performed by
considering all the elements. Hence, with increasing the
number of thresholds, computational complexity increases
exponentially. This limits the ability of multilevel threshold-
ing algorithms.
Meta-heuristic techniques have been proved to be an effi-
cient tool to solve such problems and they are one of the best
ways to yield optimal solutions and also can be helpful to
overcome these limitations [22]. PSO, Genetic, Firefly Algo-
rithm (FA), Cuckoo search, Artificial Bee Colony (ABC)
and bacterial foraging algorithm (BF), which are the heuris-
tic algorithms, have been applied in multilevel thresholding
[23].
Sathya and Kayalvizhi proposed bacterial foraging algo-
rithm, modified bacterial foraging algorithm and amended
bacterial foraging algorithm for the minimum variance and
maximum entropy criterions [22,24,25]. Moreover, Yin [26]
proposed a particle swarm optimization for the multilevel
minimum cross-entropy criterion; on the other hand, Horng
and jiang [2] applied the firefly optimization algorithm to
optimize minimum cross-entropy criterion. In addition to
the mentioned algorithms, Pal and et al. [27] also proposed
a multilevel thresholding algorithm for the minimum vari-
ance and maximum entropy criterions using Spider Monkey
Optimization Algorithm. Finally, Horng [28] also proposed
a multilevel thresholding algorithm based on ABC algorithm
to optimize the maximum entropy criterion.
Animal migration optimization (AMO) developed by
Xiangtao and et al. is one of the novel heuristic algorithm
[29].AMO is inspired by the animal migration behavior,
which is a widespread phenomenon that can be seen in most
of animal groups. In this study, AMO algorithm is used
to solve the problem of multilevel thresholding for image
segmentation. In the proposed method Otsu’s and Kapur’s
methods are considered as the objective functions. Experi-
mental results are reported and are also compared with some
widely used optimization algorithm for multilevel threshold-
ing.
The paper is structured as follows. Section 2presents
problem formulation. Section 3presents the concepts of ani-
mal migration model and algorithm. Section 4provides the
illustration of the proposed method. Section 5analyzes and
compares the results obtained for the proposed approach and
other methods. Finally, conclusion is presented in Sect. 6.
Fig. 1 The scheme of the local neighbourhood of an individual
2 Problem formulation
In this proposed paper, two most popular methods that were
used for finding optimal threshold on image histogram are
known by the name of Kapur entropy and the between-class
variance (Otsu’s) method. Both of these methods separately
are used for maximizing an objective function [25].
2.1 Entropy criterion method (Kapur’s method)
As stated by Kapur’s method, for bi-level thresholding, the
objective function is represented with the following equation:
J(t1)H0+H1(1)
where
H0−
t11
i0
pi
ω0ln pi
ω0
0
t11
i0
pi
and
H1−
L1
it1
pi
ω1ln pi
ω1
1
L1
it1
pi
Maximization of Eq. (1) is the objective function that
demonstrates grey-level optimal threshold. Here, H0repre-
sents partial entropy of histogram for first segment and H1
is for second segment. Kapur’s entropy criterion method can
also extended for settling problem of multilevel thresholding.
Then, the problem can be turned as a multi-dimensional prob-
lem. Determining all of threshold values can be described
with the following equation:
J(t1,t1,...,tm)H0+H1+H2+···+Hm(2)
123
Iran Journal of Computer Science
Fig. 2 Images used for performance evaluation
Table 1 Control parameters of the optimization algorithms
Algorithm Initial values of control parameters
AMO Neighbourhood length 5,δis a random number
controlled by a Gaussian distribution
PSO Cognitive coefficient (C1and C2)0.88, inertia
weight (W)0.91
GA Roulette selection, CR 0.8, Gaussian Mutation
scale 2shrink1
BF Number of chemotactic steps (Nc) 100,
swimming length (Ns) 3, number of
reproduction steps (Nre) 4, number of
elimination of dispersal events (Ned) 2, step
size(Ci) 5.1, probability of elimination and
dispersal (Ped) 0.25
where
H0−
t11
i0
pi
ω0ln pi
ω0
0
t11
i0
pi
H1−
t21
it1
pi
ω1ln pi
ω1
1
t21
it1
pi
H2−
t31
it2
pi
ω2ln pi
ω2
2
t31
it2
pi
.
.
.
Hm−
L1
itm
pi
ωmln pi
ωm
m
L1
itm
pi
2.2 Between-class variance method (Otsu’s method)
As stated by between-class variance (Otsu’s) method, for bi-
level thresholding, the objective function is represented with
the following equation:
J(t1)σ0+σ1(3)
where
σ0ω0(μ0μT)2and σ1ω1(μ1μT)2
with
ω0
t11
i0
pi
0
t11
i0
ip
i
ω0
ω1
L1
it1
pi
1
L1
it1
ip
i
ω1
μT
L1
i0
ip
i,
123
Iran Journal of Computer Science
Table 2 Comparison of best obtained objective and optimal threshold values based on Kapur
Test images No. of thresholds Average fitness value Average optimal threshold values
AMO PSO GA BF AMO PSO GA BF
Cameraman 2 12.2987 12.2802 12.2802 12.2651 125,196 125,196 125,196 125,196
315.4172 15.3880 15.3880 15.3765 43,101,196 44,102,196 44,102,196 44,103,196
418.6073 18.5497 18.5494 18.5080 42,96,145,196 42,96,145,198 42,96,145,197 42,97,145,197
521.3531 21.2613 21.2525 21.2230 41,96,143,191,221 42,96,145,191,222 42,90,133,180,214 26,66,108,153,201
Lenna 2 12.3753 12.3753 12.3464 12.3344 97,164 97,164 97,164 97,164
315.3737 15.3184 15.3184 15.2996 82,127,175 82,126,175 82,126,175 83,127,176
418.1020 18.0079 18.0061 17.9662 73,111, 147,183 66,101,140,181 68,103,141,180 68,102,141,180
520.7592 20.6093 20.6091 20.5042 63,94,127,162,193 63,94,128,163,194 63,94,128,163,194 63,95,128,162,194
Livingroom 2 12.4285 12.4059 12.4059 12.3945 89,170 94,175 94,175 94,175
3 15.5210 15.4056 15.5519 15.5262 49,107,178 60,123,192 47,104,175 48,104,174
4 18.4067 18.2453 18.4679 18.4198 46,100,159,215 47,102,171,230 47,98,149,196 47,98,150,194
521.1718 21.0947 21.1439 21.0683 45,93,139,183,233 47,98,145,188,236 44,87,125,163,199 41,86,125,164,199
Hunter 2 12.0302 12.0033 12.0033 11.9948 114,179 112,179 112,179 112,179
315.0333 14.9748 14.9745 14.9580 86,132,180 86,129,180 86,131,180 87,133,181
417.7674 17.6193 17.6581 17.6032 76,113,149,183 77,115,152,187 76,114,149,183 76,113,148,183
520.1427 20.0197 20.1024 20.0033 73,107,139,171,200 72,105,138,170,205 68,96,125,154,183 67,96,125,156,186
Pepper 2 12.6138 12.5852 12.5852 12.5781 76, 146 77,147 77,147 77,147
315.6802 15.6238 15.6238 15.6158 61,112,163 61,112,164 61,112,164 62,113,165
418.5368 18.5286 18.4608 18.4269 56,99,144,190 52,92,136,182 59,105,149,195 58,105,150,195
521.3175 21.3175 21.1922 21.1447 45,78,114,154,195 45,78,114,154,195 45,78,115,154,195 43,77,116,156,195
Mandrill 2 12.1245 12.1245 12.1245 12.1114 80,143 80,143 80,143 80,143
315.1310 15.1310 15.1309 15.1137 56,104,153 56,104,153 56,104,153 57,105,153
4 17.8940 17.8953 17.8936 17.8589 46,84,122,162 45,82,120,161, 47,85,124,163 45,83,121,161
5 20.5081 20.5084 20.5037 20.4341 40,73,107,139,172 40,73,106,139,172 42,75,108,140,172 38,72,106,141,174
123
Iran Journal of Computer Science
Table 3 Comparison of standard
deviation for Kapur based Test images No. of
thresholds
Standard deviation
AMO PSO GA BF
Cameraman 2 5.4202e15 3.6450e15 3.6450e15 0.0987
3 1.6113e05 9.1125e15 9.1125e15 0.0523
4 0.000031 3.6450e15 4.2827e04 0.0706
5 3.0161e04 3.6450e15 0.0232 0.0640
Lenna 2 0.0022 3.6450e15 3.6450e15 0.1082
3 0.0117 0 0 0.0985
4 0.0072 0.0092 0.0079 0.0876
5 3.4142e04 0 3.7072e04 0.0884
Livingroom 2 5.4202e15 5.4675e15 5.4675e15 0.0948
3 0.2346 0.2500 0.0013 0.0906
4 0.1465 0.0972 0.0040 0.0654
5 0.0202 7.2900e15 0.0031 0.0541
Hunter 2 1.8067e15 0 0 0.0819
3 7.5814e04 0 3.4816e04 0.0745
4 3.6134e15 0.1208 0.0012 0.0810
5 0.0705 0.0836 0.0085 0.0621
pepper 2 0 5.4675e15 5.4675e15 0.0650
3 9.0597e05 0 3.7205e06 0.0435
4 0.0145 0.0161 5.0796e04 0.0290
5 3.7449e15 1.0840e14 0.0011 0.0275
Mandrill 2 5.4675e15 5.4675e15 5.4675e15 0.1055
3 9.1125e15 9.1125e15 1.7303e04 0.0874
4 0.0021 0.0021 0.0023 0.0663
5 4.6559e04 3.6450e15 0.0048 0.0585
here μTis the mean of the whole image intensity, it is for-
mulated in following equation:
ω0μ0+ω1μ1μTand ω0+ω11
Like entropy criterion (Kapur’s) method, between-class
variance (Otsu’s) method can also be extended for settling
problem of multilevel thresholding, then the problem can be
tuned as a multiple dimension problem. Determining all of
threshold value can be described as Eq. (4):
J(t1,t2,...,tm)σ0+σ1+σ2+···+σm(4)
where
σ0ω0(μ0μT)2
σ1ω1(μ1μT)2
σ2ω2(μ2μT)2
.
.
.
σmωm(μmμT)2
with
ω0
t11
i0
pi
0
t11
i0
ip
i
ω0
ω1
t21
it1
pi
1
t21
it1
ip
i
ω1
.
.
.
ωm
L1
itm
pi
m
L1
itm
ip
i
ωm
In both of Otsu and Kapur methods, there are constrains
which are defined as:
t1<t2<t3<···<tm.
123
Iran Journal of Computer Science
Table 4 Comparison of PSNR and SSIM for Kapur based
Test images Number of
thresholds
Standard deviation
AMO PSO GA BF
PSNR SSIM PSNR SSIM PSNR SSIM PSNR SSIM
Cameraman 2 13.7753 0.5146 13.7753 0.5146 13.7753 0.5146 13.7753 0.5146
3 14.3070 0.6019 14.4263 0.6046 14.4263 0.6046 14.5417 0.60701
4 20.1555 0.6637 20.1555 0.6637 20.1633 0.6636 20.2167 0.66456
5 20.1686 0.6707 20.2799 0.6628 20.0774 0.6480 21.4091 0.68342
Lenna 2 14.5859 0.52382 14.5859 0.52382 14.5859 0.52382 16.838 0.51895
3 17.2232 0.6231 15.7096 0.62779 17.2244 0.62506 18.9112 0.61391
4 18.6493 0.67944 19.4767 0.69249 18.8699 0.67877 20.8974 0.64346
5 19.856 0.70838 19.7569 0.70255 19.8211 0.70712 22.2527 0.65467
Livingroom 2 14.631 0.49419 14.5962 0.48312 14.5962 0.48312 14.5962 0.48312
3 17.2887 0.60866 16.9132 0.57559 17.1987 0.61413 17.2845 0.61542
4 18.2184 0.64196 10.8862 0.38196 19.1671 0.66974 19.22 0.66957
5 19.8144 0.68587 19.6189 0.6816 21.2505 0.72583 21.0899 0.72317
Hunter 2 13.1492 0.3477 13.2331 0.35289 13.2331 0.35289 13.2331 0.35289
3 16.1986 0.48296 16.2147 0.48668 16.1971 0.48375 16.1222 0.48013
4 17.8826 0.56959 17.7638 0.56322 17.894 0.56994 17.9166 0.57187
5 18.4828 0.59193 18.5315 0.59075 19.2596 0.63065 19.3138 0.63115
Pepper 2 16.4554 0.58523 16.4435 0.58126 16.4435 0.58126 16.4435 0.58126
3 18.3578 0.65889 18.3578 0.65889 18.3578 0.65889 18.3571 0.65832
4 20.397 0.69456 20.397 0.69456 19.1435 0.68261 19.1194 0.68263
5 21.3492 0.74725 21.3492 0.74725 21.3756 0.74773 21.3604 0.74863
Mandrill 2 16.1789 0.61377 16.1789 0.61377 16.1789 0.61377 16.1789 0.61377
3 19.1587 0.72407 19.1587 0.72407 19.1587 0.72407 19.2053 0.72503
4 21.0974 0.77348 21.0733 0.77163 21.0668 0.77425 21.0887 0.77336
5 22.7607 0.82299 22.7317 0.82299 22.8556 0.825 22.5138 0.8171
123
Iran Journal of Computer Science
Table 5 Comparison of best obtained objective and optimal threshold values based on Otsu
Test images No. of thresholds Average fitness value Average optimal threshold values
AMO PSO GA BF AMO PSO GA BF
Cameraman 2 3.6098e+03 3.6098e+03 3.6039e+03 3.5985e+03 69,144 69,144 70,144 70,144
3 3.6765e+03 3.6774e+03 3.6774e+03 3.6735e+03 59,119,155 56,115,153 56,115,153 56,115,153
43.7325e+03 3.7325e+03 3.7324e+03 3.7264e+03 41,94,139,169 41,94,139,169 43,95,139,169 42,93,139,169
5 3.7617e+03 3.7631e+03 3.7624e+03 3.7544e+03 36,85,125,152,175 35,82,121,148,172 40,85,123,149,172 34,83,122,149,172
Lenna 2 1.9618e+03 1.9618e+03 1.9618e+03 1.9563e+03 92,152 92,152 93,151 93,151
32.1379e+03 2.1379e+03 2.1283e+03 2.1236e+03 79,125,172 79,125,172 81,127,171 81,126,171
42.2103e+03 2.2103e+03 2.1918e+03 2.1845e+03 74,112,145,177 74,112,145,177 75,114,145,180 74,114,145,179
5 2.2176e+03 2.2178e+03 2.2177e+03 2.2085e+03 73,108,136,160,188 73,109,136,160,188 71,105,133,157,186 70,107,134,160,189
Livingroom 2 1.6280e+03 1.6280e+03 1.6273e+03 1.6196e+03 86,145 86,145 87,145 87,145
31.7747e+03 1.7747e+03 1.7594e+03 1.7510e+03 73,123,164 73,123,164 76,123,163 75,123,163
41.8600e+03 1.8593e+03 1.8281e+03 1.8178e+03 48,91,132,168 48,92,133,168 56,97,132,168 56,97,132,168
51.9158e+03 1.9150e+03 1.8709e+03 1.8583e+03 47,86,123,151,182 47,87,124,152,182 51,89,121,148,179 45,86,120,146,177
Hunter 2 1.9962e+03 1.9962e+03 1.9945e+03 1.9907e+03 87,143 87,143 86,141 86,141
32.1396e+03 2.1396e+03 2.1153e+03 2.1114e+03 70,116,158 70,116,158 71,114,155 71,113,155
42.2643e+03 2.2443e+03 2.1697e+03 2.1653e+03 46,83,124,163 54,93,133,168 67,106,140,172 68,106,141,174
52.2006e+03 2.2006e+03 2.2006e+03 2.1935e+03 62,93,122,150,181 62,93,122,150,181 63,93,122,150,180 62,94,123,151,181
Pepper 2 2.4715e+03 2.4715e+03 2.4695e+03 2.4616e+03 66,135 66,135 69,136 69,136
32.6555e+03 2.6555e+03 2.6367e+03 2.6339e+03 61,118,167 61,118,167 64,119,166 64,119,167
42.7308e+03 2.7302e+03 2.6983e+03 2.6943e+03 53,90,130,175 50,88,128,173 48,86,126,170 48,87,126,169
52.7425e+03 2.7425e+03 2.7424e+03 2.7364e+03 43,79,113,146,177 43,79,113,146,177 44,80,113,146,177 44,78,113,147,178
Mandrill 2 1.3673e+03 1.3673e+03 1.3673e+03 1.3588e+03 98,148 98,148 98,148 98,148
31.4546e+03 1.4546e+03 1.4546e+03 1.4472e+03 86,124,159 86,124,159 86,124,159 86,124,159
41.5039e+03 1.5039e+03 1.5039e+03 1.4946e+03 73,106,135,165 73,106,135,165 73,106,135,165 73,106,135,165
5 1.5282e+03 1.5286e+03 1.5285e+03 1.5164e+03 68,98,123,146,171 69,100,125,148,172 69,100,125,148,172 66,96,122,146,171
123
Iran Journal of Computer Science
Table 6 Comparison of standard
deviation for Otsu based Test images No. of
thresholds
Standard deviation
AMO PSO GA BF
Cameraman 2 1.8501e12 1.8501e12 1.3997e12 44.2376
3 1.7373 53.9406 1.8662e12 15.9253
4 0.0120 9.3312e13 0.1830 10.8050
5 0.9896 4.6656e13 0.8725 7.1871
Lenna 2 9.2504e13 9.2504e13 2.3328e13 51.8123
3 1.3876e12 1.3876e12 0 23.8312
4 1.8352e12 1.8501e12 4.6656e13 15.3602
5 0.3689 0.3160 0.6278 9.8940
Livingroom 2 6.9378e13 6.9378e13 6.9984e13 64.2211
3 9.2504e13 9.2504e13 0 35.7859
4 0.1456 3.6995 0.0154 21.6782
5 2.3126e13 1.5258 0.2647 14.1206
Hunter 2 9.2504e13 9.2504e13 2.3328e13 31.9147
3 9.2504e13 9.2504e13 0 14.4766
4 12.6234 32.1884 0.0024 7.1271
5 0.0940 0 0.1160 6.5958
Pepper 2 9.2504e13 9.2504e13 0 71.8040
3 1.1012e15 0 4.6656e13 14.4440
4 0.4845 1.8383 0.0945 10.1671
5 0.1946 0.9984 0.1275 4.5501
Mandrill 2 4.6656e13 4.6656e13 4.6656e13 73.1514
3 4.6656e13 4.6656e13 4.6656e13 32.4821
4 4.6656e13 4.6656e13 0.0069 17.6939
5 0.5030 4.6656e13 0.0370 12.4319
3 Animal migration model and algorithm
The animal migration optimization algorithm is a new
meta-heuristic population-based optimization algorithm,
which is inspired by the natural animal migration behavior.
This algorithm consists of two processes. The first process is
simulation of moving animals to new position from current
position (migration process). For this motion there are three
essential rules that should be obeyed by each individual: (1)
the neighbours must move in the same direction; (2) keep dis-
tance between neighbours and (3) overlapping of neighbours
should be avoided. The latter process of algorithm simulates
leaving and joining interaction of animals in the group (pop-
ulation updating process). In this algorithm two simple ideas
are considering:
1. The animal with the best objective function value is con-
sidered as the leader, and its position is preserved in next
generation.
2. Size of population is fixed, and a new member will be
replaced with the existing animal probability pa. There-
fore, an animal is leaving from the group and a new one
will be joining instead of the leaving one.
Assume that the faced problem is a global optimization
problem and there are populations of candidate individu-
als. The individual is denoted as a multi-dimensional real
coded vector. Like other swarm-based optimization algo-
rithms, AMO also starts with a randomly initial population of
candidate. So, initialization of jth component from ith vector
defined as:
xj,i,0xj,min + randi,j[0,1]×xj,max xj,min,(5)
where randi,j [0, 1] is a random number with uniformly dis-
tribution between 0 and 1, i1, …, Nand j1, …, D. where
Ndenotes the population size.
As it was mentioned earlier, the algorithm consists of two
processes: migration and updating process. As it mentioned
123
Iran Journal of Computer Science
before for obeying the first rule in the migration process,
position of all individual group members should be differ-
ent. For the rest rules, all individual group members should
be moves to a new position under consideration of current
position of their neighbours. Ring topology has been applied
to determine local neighbourhood of an individual. Scheme
of the ring topology has been illustrated in Fig. 1.
In this algorithm, the topology of the neighbourhood is
as static and based on the indices set of vectors. Because
of easiness, the neighbourhood length for all dimensions of
each individual is set to five. In this case, for the ith index,
indices of neighbourhood animal are i2, i1, i,i+ 1 and
i + 2 as it is clear from Fig. 1. The first animal is the neighbor
of the last animal and vice versa. So the indices of neighbours
of first animal are 1, 2, 3, Nand N1. When the topology of
the neighbourhood has been constructed, one of neighbour
will be selected randomly and the individual position will be
updated according to this neighbour, as it is formulated in the
equation:
xi,G+1 xi,G+δ×xneighborhood,Gxi,G(6)
where xneighborhood,Gis the current position of the neighbour-
hood and δis depend on the problems. In the original paper of
AMO, δis a random number which is generated by Gaussian
distribution. During the process of population updating, some
animals leave the group, and then instead of those, some new
animal join in the population. Population size must be fixed,
so the number of the existing members cannot be changed
in any iteration performed. A new animal that desires to join
the group must be placed instead of an animal that has left
the group depending on a probability value . The probability
is related to fitness value. For the animal with the highest
fitness value probability Pa is 1 and for the animal with the
smallest fitness value probability, Pa is 1/N.
The pseudocode of this process is illustrated as follows:
where r1,r2are two randomly selected integers between
[1, Population size], and r1 r2 i. The new generated solu-
tion xi,G+ 1, will be evaluated to compare with the existing
solution xi,G
, if the fitness value of xi,G+1 is better than fit-
ness of Xi, G, the new solution will be xi,G+1; otherwise, the
accepted solution is xi, G. Algorithm 1 show the pseudocode
of standard animal migration optimization algorithm.
4 Multilevel thresholding based on AMO
In this proposed algorithm, optimum D-dimensional vector
x[t1,t2,t3,...,tD] will be obtained by maximized the
Eqs. (2)or(4). In AMO algorithm both of these objective
functions are also applied as the fitness function. Each indi-
vidual position corresponds to a solution. The number of
thresholds determines the dimension number of optimization
algorithm. Each dimension of optimization algorithm rep-
resents a solution to a threshold. The algorithm starts with
a D-dimension population that is initiated randomly. Each
dimension is constrained by bounds [0, 255]. So, initializa-
tion of jth component from ith vector defined as Eq. (7):
xj,i,0xj,0+ randi,j[0,1]×xj,255 xj,0(7)
Each solution is formulated as:
x[t1,t2,t3,..., tD] subject to 1 <t1<t2<t3<···<tm<L
123
Iran Journal of Computer Science
5 Experimental results and performance
evaluation
The proposed method and all compared algorithms (Genetic
Algorithm, Bacterial foraging optimization, Particle
Swarm Optimization) have been implemented in Mat-
lab programming language under a same PC with Intel
Core(TM) i7-3632QM 2.2 GH processor and 8 gigabytes
of RAM. To evaluate the efficiency of proposed method,
six benchmark images named “CAMERMAN”, “LENA”,
‘L˙
IV˙
INGROOM‘”, “HUNTER”, “PEPPER”, and “MAN-
DRILL” shown in Fig. 2are used for carrying out the
experiments.
Number of solutions (animals, particles, chromosome and
bacteria in AMO, PSO, GA, and BF, respectively) and num-
ber of maximum generation for all applied optimization
algorithm have been set to 200. The other parameters for
the algorithms used in the experiments are given in Table 1.
All the algorithms run 30 times over each test image. After
30 times running of the algorithms, the average of obtained
results for all runs is reported. The obtained thresholds by
Otsu’s and Kapur’s method and corresponding fitness values
of six test images with AMO, PSO, GA, and BF have been
reported in Tables 2and 5. For evaluating the consistency and
stability of algorithms, standard deviation (STD) has been
123
Iran Journal of Computer Science
Fig. 3 Segmented Lena, Livingroom, Hunter and Mandrill images by Otsu method with 2, 3, 4 and 5 “m”levels
calculated from the results obtained in the 30 times run of
algorithms and reported in Tables 3and 6. The formulation
of STD is expressed in equation
Figure 3shows the segmented Lena, Livingroom, Hunter
and Mandrill images by Otsu method with various “m”levels.
The best obtained results are bolded in each row. As it is clear
from Tables 2and 5, in most case the best results are obtained
by AMO algorithm. Also, Tables 3and 6reveal that except
BA, most of the calculated standard deviations from other
three algorithms are too small. By comparing Tables 3and 6
it turns out that the obtained standard deviation from Kapur
method is lower than Otsu method. Moreover, two well-
123
Iran Journal of Computer Science
Table 7 Comparison of PSNR and SSIM for Otsu based
Test images Number of
thresholds
Standard deviation
AMO PSO GA BF
PSNR SSIM PSNR SSIM PSNR SSIM PSNR SSIM
Cameraman 2 17.1732 0.59537 17.1732 0.59537 17.2478 0.59641 17.2478 0.59641
3 20.2363 0.63574 20.3227 0.64408 20.3227 0.64408 20.3227 0.64408
4 21.5455 0.65043 21.5455 0.65043 21.6175 0.65091 21.4807 0.64909
5 23.2902 0.68322 23.3765 0.68896 23.4499 0.68699 23.3814 0.6886
Lenna 2 15.2802 0.54522 15.2802 0.54522 15.2823 0.54652 15.2823 0.54652
3 17.3742 0.63411 17.3742 0.63411 17.3146 18.6142 17.3146 18.6142
4 18.6337 0.67846 18.6337 0.67846 0.62887 0.67729 18.6502 0.6786
5 19.2572 0.70155 19.2517 0.70288 19.4237 0.69785 19.4245 0.70323
Livingroom 2 16.0077 0.53765 16.0077 0.53765 15.9995 0.53677 15.9995 0.53677
3 18.1379 0.61375 18.1379 0.61375 18.1975 0.61634 18.1415 0.61475
4 20.54 0.70526 20.6179 0.70537 20.6735 0.70428 20.6735 0.70428
5 21.9078 0.74681 21.9366 0.7466 22.1618 0.75334 22.244 0.75756
Hunter 2 15.5292 0.45068 15.5292 0.45068 15.5917 0.45593 15.5917 0.45593
3 17.8573 0.5603 17.8573 0.5603 17.7883 0.56217 17.7709 0.56207
4 20.0522 0.6475 19.4655 0.62044 18.7652 0.60213 18.6814 0.59819
5 19.8157 0.65123 19.8157 0.65123 19.8157 0.65123 19.8263 0.65048
Pepper 2 16.2227 0.61328 16.2227 0.61328 16.3234 0.60961 16.3234 0.60961
3 18.3452 0.65895 18.3452 0.65895 18.4696 0.65733 18.4426 0.65726
4 20.6145 0.702 20.6753 0.71086 20.6804 0.71674 20.6766 0.71482
5 22.393 0.76129 22.393 0.76129 22.4186 0.7591 22.3611 0.76169
Mandrill 2 15.4335 0.58674 15.4335 0.58674 15.4335 0.58674 15.4335 0.58674
3 17.8513 0.67863 17.8513 0.67863 17.8513 0.67863 17.8513 0.67863
4 20.4155 0.77083 20.4155 0.77083 20.4155 0.77083 20.4155 0.77083
5 21.8362 0.81077 21.6952 0.80974 21.6952 0.80974 22.0639 0.8137
123
Iran Journal of Computer Science
known performance indicators, peak signal-to-noise ratio
(PSNR) and structural-similarity index (SSIM), are used to
compare the segmentation results using the multilevel image
threshold methods. General form of PSNR and SSIM can be
modelled as in Eqs. (8) and (9), respectively.
PSNR 10 log102552
MSE
MSE 1
M×N
M1
x0
N1
y0I(x,y)˜
I(x,y)2
(8)
Here Iand ˜
Iare original and segmented images of size M
×N, respectively.
SSIMI,˜
I2μIμ˜
I+c12σI˜
I+c2
μ2
Iμ2
˜
I+c1σ2
I+σ2
˜
I+c2(9)
where μIand μ˜
Iare the local sample averages of original
image Iand segmented image ˜
I, respectivelyσI, and σ˜
Ithe
local sample standard deviations of Iand ˜
I, respectively, σI˜
I
the local sample correlation coefficient between Iand ˜
I,C1,
C2 the constants required to balance the calculations. The
SSIM can take values in range [1, 1].
Tables 4and 7give the PSNR and SSIM results between
the original images and its threshold image for different algo-
rithms and number of thresholds, respectively. Experimental
results demonstrate that our proposed method is more impres-
sive and stable than other three compared methods.
σ1
N
N
i1
(xiμ)2(10)
where Nindicates number of runs, xiis fitness value in ith
run and μis mean values among all runs.
6 Conclusion
In this paper, based on animal migration optimization (AMO)
algorithm a new multilevel image thresholding is presented
for image segmentation. Kapur and Otsu are considered as
objective functions. The proposed method has been tested on
the various widely used benchmark images. Obtained results
via animal migration optimization algorithm are compared
with PSO, GA and BF methods. In most case, the obtained
results from proposed method give worthy results than the
other three tested algorithms in terms of objective function
value. Under consideration of standard deviation values, the
stability of the AMO is promising. In this study, the number
of thresholds was a pre-defined parameter. However, auto-
matic threshold number could be tested in future investigation
(Tables 5,6and 7).
Acknowledgements The author declares no conflict of interest in this
study.
Funding We confirm that we do not have a funding source.
Compliance with ethical standards
Conflict of interest The authors declare that they have no competing
interests.
References
1. Sarkar, S., Das, S., Chaudhuri, S.S.: A multilevel color image
thresholding scheme based on minimum cross entropy and dif-
ferential evolution. Pattern Recogn. Lett. 54, 27–35 (2015)
2. Horng, M.-H., Liou, R.-J.: Multilevel minimum cross entropy
threshold selection based on the firefly algorithm. Expert Syst.
Appl. 38(12), 14805–14811 (2011)
3. Chang, C.-C., Wang, L.-L.: A fast multilevel thresholding method
based on lowpass and highpass filtering. Pattern Recogn. Lett.
18(14), 1469–1478 (1997)
4. Kurban, T., Civicioglu, P., Kurban, R., Besdok, E.: Comparison of
evolutionary and swarm based computational techniques for mul-
tilevel color image thresholding. Appl. Soft Comput. 23, 128–143
(2014)
5. Oliva, D., Cuevas, E., Pajares, G., Zaldivar, D., Perez-Cisneros,
M.: Multilevel thresholding segmentation based on harmonysearch
optimization. J. Appl. Math. (2013)
6. Arora, S., Acharya, J., Verma, A., Panigrahi, P.K.: Multilevel
thresholding for image segmentation through a fast statistical recur-
sive algorithm. Pattern Recogn. Lett. 29(2), 119–125 (2008)
7. Maitra, M., Chatterjee, A.: A hybrid cooperative–comprehensive
learning based PSO algorithm for image segmentation using mul-
tilevel thresholding. Expert Syst. Appl. 34(2), 1341–1350 (2008)
8. Kapur, J.N., Sahoo, P.K., Wong, A.K.: A new method for gray-level
picture thresholding using the entropy of the histogram. Comput.
Vis. Graph. Image Process. 29(3), 273–285 (1985)
9. Otsu, N.: A threshold selection method from gray-level histograms.
Automatica 11(285–296), 23–27 (1975)
10. Pun, T.: Entropic thresholding, a new approach. Comput. Graph.
Image Process. 16(3), 210–239 (1981)
11. Brink, A.: Minimum Spatial Entropy Threshold Selection. In:
Vision, image and signal processing, IEE proceedings, vol. 3. IET,
pp 128–132 (1995)
12. Cheng, H., Chen, J.-R., Li, J.: Threshold selection based on fuzzy c-
partition entropy approach. Pattern Recogn. 31(7), 857–870 (1998)
13. Li, X., Zhao, Z., Cheng, H.: Fuzzy entropy threshold approach to
breast cancer detection. Inf. Sci. Appl. 4(1), 49–56 (1995)
14. Tobias, O.J., Seara, R.: Image segmentation by histogram thresh-
olding using fuzzy sets. IEEE Trans. Image Process. 11(12),
1457–1465 (2002)
15. Huang, L.-K., Wang, M.-J.J.: Image thresholding by minimizing
the measures of fuzziness. Pattern Recogn. 28(1), 41–51 (1995)
16. de Albuquerque, M.P., Esquef, I.A., Mello, A.G.: Image threshold-
ing using Tsallis entropy. Pattern Recogn. Lett. 25(9), 1059–1065
(2004)
123
Iran Journal of Computer Science
17. Liao, P.-S., Chen, T.-S., Chung, P.-C.: A fast algorithm for multi-
level thresholding. J. Inf. Sci. Eng. 17(5), 713–727 (2001)
18. Yin, P.-Y., Chen, L.-H.: A fast iterative scheme for multilevel
thresholding methods. Signal Process. 60(3), 305–313 (1997)
19. Cao, L., Shi, Z., Cheng, E.: Fast automatic multilevel thresholding
method. Electron. Lett. 38(16), 868–870 (2002)
20. Pikaz, A., Averbuch, A.: Digital image thresholding, based on topo-
logical stable-state. Pattern Recogn. 29(5), 829–843 (1996)
21. Hertz, L., Schafer, R.W.: Multilevel thresholding using edge match-
ing. Comput Vis Graph Image Process 44(3), 279–295 (1988)
22. Sathya, P., Kayalvizhi, R.: Modified bacterial foraging algorithm
based multilevel thresholding for image segmentation. Eng. Appl.
Artif. Intell. 24(4), 595–615 (2011)
23. Sezgin, M., Sankur, B.: Survey over image thresholding techniques
and quantitative performance evaluation. J. Electron. Imaging
13(1), 146–166 (2004)
24. Sathya, P., Kayalvizhi, R.: Amended bacterial foraging algorithm
for multilevel thresholding of magnetic resonance brain images.
Measurement 44(10), 1828–1848 (2011)
25. Sathya, P., Kayalvizhi, R.: Optimal segmentation of brain MRI
based on adaptive bacterial foraging algorithm. Neurocomputing
74(14), 2299–2313 (2011)
26. Yin, P.-Y.: Multilevel minimum cross entropy threshold selec-
tion based on particle swarm optimization. Appl. Math. Comput.
184(2), 503–513 (2007)
27. Pal, S.S., Kumar, S., Kashyap, M., Choudhary, Y., Bhattacharya,
M.: Multi-level Thresholding Segmentation Approach Based on
Spider Monkey Optimization Algorithm. In: Proceedings of the
second international conference on computer and communication
technologies. Springer, Berlin, pp 273–287 (2016)
28. Horng, M.-H.: Multilevel thresholding selection based on the arti-
ficial bee colony algorithm for image segmentation. Expert Syst.
Appl. 38(11), 13785–13791 (2011)
29. Li, X., Zhang, J., Yin, M.: Animal migration optimization: an opti-
mization algorithm inspired by animal migration behavior. Neural
Comput. Appl. 24(7–8), 1867–1877 (2014)
123
... Optimization algorithms are used in many domains to find the optimal solution for a specific problem; one of the most important domains is image segmentation, which used the AMO algorithm to find the optimal thresholds values for multilevel image thresholding [7]. Data mining is also an important and trendy domain that uses optimization algorithms like AMO to limit and reduce the results of association rule mining (ARM) and find the most useful and necessary rules [8]. ...
... Image segmentation is a very important step in image processing, and thresholding has become one of the most famous techniques used for image segmentation. Applying multilevel thresholding and determining the thresholds values is a very expensive process, so the AMO algorithm has been used to determine the optimum thresholds values in multilevel thresholding [7]. ...
... The AMO algorithm has been used in several domains to find the optimal solution for many problems; new methods based on AMO have been suggested to enhance the performance of the algorithm and get better result in these domains. Some of these methods were used to solve problems in a specific domain such as image processing [7], data mining [8,22], data clustering [19], and neural networks [6]. ...
... The most common approaches, including genetic [25], particle swarm [47], honey bee mating [26], artificial bee colony [14], firefly [27], ant colony [53], differential evolution [46], cuckoo Search [3], and bacterial foraging [48] algorithms, have been addressed for the past decade. A newly proposed algorithms, such as whale [8,37], gray wolf [30,31], moth swarm [56], animal migration [43], spider monkey [4], krill herd [9], harmony search [41], spherical search [39], flower pollination [49], bat [54], teaching-learning method [50], and elephant herding [51] in the last couple of years have been suggested for multilevel thresholding. The limits on convergence speed or accuracy are all of these methods and all experiments aim to match these two main aspects. ...
Article
Full-text available
In a variety of image processing applications, multilevel thresholding image segmentation has gotten a lot of interest. When traditional approaches are utilised, however, the process of obtaining the ideal threshold values takes time. Despite the fact that Hybrid metaheuristic methods can be used to overcome these limits, such approaches may be ineffective when dealing with a local solution. The present study proposes a multi-level image thresholding based hybridization strategy based Sine-Cosine Crow Search Algorithm(SCCSA) to make more efficient image segmentation. The main limitation of the classical Crow Search Algorithm (CSA) is that search agents sometimes do not produce the best solutions. To update a solution to the best solution, each search agent can use Sine-Cosine Algorithm (SCA) movements to update its position accordingly. This ensures a good balance between two goals (exploration and exploitation) would improve the efficiency of the search algorithm. The optimal threshold values are searched by the chosen objective functions of the otsu’s and kapur’s entropy approaches. The hybrid algorithm is evaluated in 12 standard image sets and then compared with the performance of other state-of-the-art algorithms such as ICSA, SCA, CSA and ABC. Experimental results showed that, in different metrics of the output such as objective function values, PSNR, STD values, Mean, SSIM, FSIM and CPU time, the proposed algorithm is consistently higher than other algorithms. In addition, the wilcoxon test is performed using the proposed algorithm to detect the significant differences between the other algorithms. The findings indicated that the proposed SCCSA succeeds with other well-known algorithms and has dominance over robust, accurate and convergent values.
... however, have a huge computational effort. Because of this, a wide variety of optimization algorithms have been applied to address this problem [25][26][27][28][29][30][31][32]. In this sense, the most well-known are Genetic Algorithm (GA) [33], Particle Swarm Optimization (PSO) Algorithm [34], Artificial Bee Colony (ABC) Algorithm [35], Honey Bee Mating Optimization (HBMO) [36], Animal Migration Optimization (AMO) Algorithm [37], Social Spider Algorithm (SSA) for Global Optimization [38], A Hybrid Firefly and Particle Swarm Optimization Algorithm [31], Human Mental Search (HMS) Algorithm [39], Black Widow Optimization (BWO) Algorithm [40]. ...
Preprint
Full-text available
Segmentation is an essential step of image processing that directly affects its success. Among the methods used for image segmentation, histogram-based thresholding is prevalent. Two well-known approaches to histogram-based thresholding are Otsu’s and Kapur’s methods in grey images that maximize the between-class variance and the entropy measure, respectively. Both techniques were introduced for bi-level thresholding. However, these techniques can be expanded to multilevel image thresholding. For this to occur, a large number of iterations are required to account for exact threshold values. To this end, various optimization techniques have been used to overcome this drawback. Recently, a new optimization algorithm called Battle Royal Optimizer (BRO) has been published, which is shown to solve various optimization tasks effectively. In this study, BRO has been applied to yield optimum threshold values in multilevel image thresholding. Here is also demonstrated the effectiveness of BRO for image segmentation on various images from the standard publicly accessible Berkeley segmentation dataset. We compare the performance of BRO to other state-of-the-art optimization-based methods and show that it outperforms them in terms of fitness value, Peak-Signal to Noise Ratio (PSNR), Structural Similarity Index Method (SSIM), Feature Similarity Index Method (FSIM), Color FSIM (FSIMc) and Standard Deviation (SD). The results of the proposed technique suggest that BRO is a promising approach for solving image segmentation tasks.
... Other similar works can be found in Refs. [8] and [9]. The Moth-flame optimization (MFO) [10] method is a novel algorithm proposed by Mirjalili which has performed great capacities in a few applications. ...
... Parametric approaches suffer from computational complexity and are time-consuming, [15,16]. Therefore, in recent years, many researchers have focused on non-parametric methods [17][18][19]. ...
Article
Image segmentation is an indispensable part of computer vision applications, and image thresholding is a popular one due to its simplicity and robustness. Generalised Masi entropy (GME) is an image thresholding method that exploits the additive/non-extensive information using entropic measure (r). r shows the measure of degree of extensibility and non-extensibility available in an image. From the literature, all research considered it as a fixed coefficient, while finding a proper value for r can enhance the efficacy of thresholding. This paper proposes a simple yet effective approach for adaptively finding a proper value for r without any background knowledge regarding the distribution of histogram. To this end, a new representation is proposed so that it can be used with any type of population-based metaheuristic (PBMH) algorithms. For the optimisation process, we use differential evolution (DE), as a representative. In addition, to further improve efficacy, we improve DE algorithm based on one-step k-means clustering, random-based sampling, Gaussian-based sampling, and opposition-based learning. Our extensive experiments compared to the most recent approaches on a set of benchmark images and in terms of several criteria clearly show that the proposed approach not only can find the proper value for r automatically but also it can improve the efficacy of GME-based image thresholding methods.
Article
Full-text available
Image segmentation, the process of partitioning an image into meaningful regions, is a fundamental step in image processing, crucial for applications like computer vision, medical imaging, and object recognition. Image segmentation is an essential step of image processing that directly affects its success. Among the methods used for image segmentation, histogram-based thresholding is prevalent. Two well-known approaches to histogram-based thresholding are Otsu’s and Kapur’s methods in gray images that maximize the between-class variance and the entropy measure, respectively. Both techniques were introduced for bi-level thresholding. However, these techniques can be expanded to multilevel image thresholding. For this to occur, a large number of iterations are required to account for exact threshold values. To this end, various optimization techniques have been used to overcome this drawback. Recently, a new optimization algorithm called Battle Royal Optimizer (BRO) has been published, which is shown to solve various optimization tasks effectively. In this study, BRO has been applied to yield optimum threshold values in multilevel image thresholding. Here is also demonstrated the effectiveness of BRO for image segmentation on various images from the standard publicly accessible Berkeley segmentation dataset. We compare the performance of BRO to other state-of-the-art optimization-based methods and show that it outperforms them in terms of fitness value, Peak Signal-to-Noise Ratio, Structural Similarity Index Method, Feature Similarity Index Method (FSIM), Color FSIM (FSIMc), and Standard Deviation. These results underscore the potential of BRO as a promising solution for image segmentation tasks, particularly through its effective implementation of multilevel thresholding.
Chapter
Full-text available
Moth-Flame Optimization algorithm is an emerging metaheuristic and has been widely used in both science and industry. Solving optimization problem using this algorithm requires addressing a number of challenges, including multiple objectives, constraints, binary decision variables, large-scale search space, dynamic objective function, and noisy parameters. Handbook of Moth-Flame Optimization Algorithm: Variants, Hybrids, Improvements, and Applications provides an in-depth analysis of this algorithm and the existing methods in the literature to cope with such challenges. Key Features: • Reviews the literature of the Moth-Flame Optimization algorithm • Provides an in-depth analysis of equations, mathematical models, and mechanisms of the Moth-Flame Optimization algorithm • Proposes different variants of the Moth-Flame Optimization algorithm to solve binary, multi-objective, noisy, dynamic, and combinatorial optimization problems • Demonstrates how to design, develop, and test different hybrids of Moth-Flame Optimization algorithm • Introduces several applications areas of the Moth-Flame Optimization algorithm This handbook will interest researchers in evolutionary computation and metaheuristics and those who are interested in applying Moth-Flame Optimization algorithm and swarm intelligence methods overall to different application areas.
Article
Full-text available
Salp swarm algorithm (SSA) is a simple and effective bio-inspired algorithm that is gaining popularity in global optimization problems. In this paper, first, based on the pinhole imaging phenomenon and opposition-based learning mechanism, a new strategy called pinhole-imaging-based learning (PIBL) is proposed. Then, the PIBL strategy is combined with orthogonal experimental design (OED) to propose an OPIBL mechanism that helps the algorithm to jump out of the local optimum. Second, a novel effective adaptive conversion parameter method is designed to enhance the balance between exploration and exploitation ability. To validate the performance of OPLSSA, comparative experiments are conducted based on 23 widely used benchmark functions and 30 IEEE CEC2017 benchmark problems. Compared with some well-established algorithms, OPLSSA performs better in most of the benchmark problems.
Article
Full-text available
Image Segmentation is an open research area in which Multi-level thresholding is a topic of current research. To automatically detect the threshold, histogram-based methods are commonly used. In this paper, histogram-based bi-level and multi-level segmentation are proposed for gray scale image using spider monkey optimization (SMO). In order to maximize Kapur’s and Otus’s objective functions, SMO algorithm is used. To test the results of SMO algorithm, we use standard test images. The standard images are pre-tested and Benchmarked with Particle Swarm Optimization (PSO) Algorithm. Results confirm that new segmentation method is able to improve upon result obtained by PSO in terms of optimum threshold values and CPU time.
Article
Full-text available
In this paper, a multilevel thresholding (MT) algorithm based on the harmony search algorithm (HSA) is introduced. HSA is an evolutionary method which is inspired in musicians improvising new harmonies while playing. Different to other evolutionary algorithms, HSA exhibits interesting search capabilities still keeping a low computational overhead. The proposed algorithm encodes random samples from a feasible search space inside the image histogram as candidate solutions, whereas their quality is evaluated considering the objective functions that are employed by the Otsu’s or Kapur’s methods. Guided by these objective values, the set of candidate solutions are evolved through the HSA operators until an optimal solution is found. Experimental results demonstrate the high performance of the proposed method for the segmentation of digital images.
Article
Full-text available
In this paper, we intend to propose a new heuristic optimization method, called animal migration optimization algorithm. This algorithm is inspired by the animal migration behavior, which is a ubiquitous phenomenon that can be found in all major animal groups, such as birds, mammals, fish, reptiles, amphibians, insects, and crustaceans. In our algorithm, there are mainly two processes. In the first process, the algorithm simulates how the groups of animals move from the current position to the new position. During this process, each individual should obey three main rules. In the latter process, the algorithm simulates how some animals leave the group and some join the group during the migration. In order to verify the performance of our approach, 23 benchmark functions are employed. The proposed method has been compared with other well-known heuristic search methods. Experimental results indicate that the proposed algorithm performs better than or at least comparable with state-of-the-art approaches from literature when considering the quality of the solution obtained.
Article
We propose a novel multi-level thresholding method for unsupervised separation between objects and background from a natural color image using the concept of the minimum cross entropy (MCE). MCE based thresholding techniques are widely popular for segmenting grayscale images. Color image segmentation is still a challenging field as it involves 3-D histogram unlike the 1-D histogram of grayscale images. Effectiveness of entropy based multi-level thresholding for color image is yet to be explored and this paper presents a humble contribution in this context. We have used differential evolution (DE), a simple yet efficient evolutionary algorithm of current interest, to improve the computation time and robustness of the proposed algorithm. The performance of DE is also investigated extensively through comparison with other well-known nature inspired global optimization techniques like genetic algorithm (GA), particle swarm optimization (PSO), and artificial bee colony (ABC). The proposed method is evaluated by comparing it with seven other prominent algorithms both qualitatively and quantitatively using a well known benchmark suite – the Barkley Segmentation Dataset (BSDS300) with 300 distinct images. Such comparison reflects the efficiency of our algorithm
Article
This paper introduces the comparison of evolutionary and swarm-based optimization algorithms for multilevel color image thresholding problem which is a process used for segmentation of an image into different regions. Thresholding has various applications such as video image compression, geovideo and document processing, particle counting, and object recognition. Evolutionary and swarm-based computation techniques are widely used to reduce the computational complexity of the multilevel thresholding problem. In this study, well-known evolutionary algorithms such as Evolution Strategy, Genetic Algorithm, Differential Evolution, Adaptive Differential Evolution and swarm-based algorithms such as Particle Swarm Optimization, Artificial Bee Colony, Cuckoo Search and Differential Search Algorithm have been used for solving multilevel thresholding problem. Kapur's entropy is used as the fitness function to be maximized. Experiments are conducted on 20 different test images to compare the algorithms in terms of quality, running CPU times and compression ratios. According to the statistical analysis of objective values, swarm based algorithms are more accurate and robust than evolutionary algorithms in general. However, experimental results exposed that evolutionary algorithms are faster than swarm based algorithms in terms of CPU running times.
Article
Magnetic Resonance (MR) brain image segmentation into several tissue classes is of significant interest to visualize and quantify individual anatomical structures. Traditionally, the segmentation is performed manually in a clinical environment that is operator dependant, difficult to reproduce and computationally expensive. To overcome these drawbacks, this paper proposes a new heuristic optimization algorithm, amended bacterial foraging (ABF) algorithm for multilevel thresholding of MR brain images. The optimal thresholds are found by maximizing Kapur’s (entropy criterion) and Otsu’s (between-class variance) thresholding functions using ABF algorithm. The proposed method is evaluated on 10 axial, T2 weighted MR brain image slices and compared with other evolutionary algorithms such as bacterial foraging (BF), particle swarm optimization (PSO) algorithm and genetic algorithm (GA). From the experimental results, it is observed that the new method is computationally more efficient, prediction wise more accurate and shows faster convergence compared to BF, PSO and GA methods. Applying the proposed thresholding algorithm to these images can help for the best segmentation of gray matter, white matter and cerebrospinal fluid which offers the possibility of improved clinical decision making and diagnosis.
Article
The previously published optimal thresholding techniques based on some objective functions are very efficient in the bi-level thresholding case, but they are impractical when extended to multilevel thresholding. The reason for this is their computational complexity which grows exponentially with the number of thresholds. In this paper, an iterative scheme is proposed to render these optimal thresholding techniques more practical. The proposed algorithm starts with a bi-level thresholding, then uses the initial results to obtain higher-order thresholds. This algorithm is iterative and the convergence is proved. We also introduce some useful programming techniques to make the computation more efficient. The proposed algorithm can therefore determine the number of thresholds automatically as well as save a significant amount of computing time.
Article
Thresholding is an effective method for simplifying images of solid objects on a solid background. Multiple thresholds are needed when thresholding images containing several objects of different brightness or reflectivity. Also, to account for variations of grey levels due to nonuniform illumination, it is often necessary to allow the thresholds to vary across the image. We describe a technique called edge matching, which provides a direct method of adjusting multiple thresholds so that the edges of the thresholded image closely match the edges of the original grey-tone image. The result is a threshold image that preserves the shape and geometrical structure of the objects in the image.
Article
A new method of thresholding a gray-scale image into a desired number of classes is proposed in this paper. The proposed method first evaluates the number of peaks in the histogram, then finds a suitable lowpass or highpass filter such that the number of peaks in the filtered histogram is equal to the desired number of classes. Then, valleys in the filtered histogram are used as thresholds. The proposed method is computationally fast and corresponds to human intuition. In the experiments, we compare the performance of our proposed method with other thresholding methods and the method is shown effective and efficient in multilevel thresholding.