ChapterPDF Available

Thresholding Algorithm Applied to Chest X-Ray Images with Pneumonia

Authors:

Abstract and Figures

Chest radiography is one of the most widely used imaging techniques for the detection and diagnosis of lung diseases. However, the correct extraction of information in these images is a tedious and challenging task that depends on the experience of radiologists. Due to this, in recent years, computer-aided diagnostic tools have been implemented to improve the quality and productivity in the diagnosis of radiological tests. The segmentation process represents an important step for any automatic method of information extraction because it simplifies the representation of images. Recently, the use of the threshold segmentation technique has become popular due to its simplicity in implementation and precision. In this work, is proposed an efficient segmentation approach based on the Whale Optimization Algorithm (WOA) to treat the maximization of two statistical criteria, the Otsu’s variance and the Kapur’s entropy. The method is tested for the segmentation of X-ray images to visually diagnose pneumonia, determining details such as the scope, location of the infection, and some complications that may arise. To validate the efficacy of the approach with both statistical criteria, it is tested with chest radiography images from a database and compared with four other metaheuristic algorithms. Comparisons are made to verify the quality of the segmented image using the PSNR, SSIM and FSIM metrics. According to the experimental results, the WOA algorithm used to maximize the variance of Otsu presents a better segmentation compared to the other algorithms.
Content may be subject to copyright.
Thresholding Algorithm Applied
to Chest X-Ray Images with Pneumonia
Jesus Murillo-Olmos, Erick Rodríguez-Esparza, Marco Pérez-Cisneros,
Daniel Zaldivar, Erik Cuevas, Gerardo Trejo-Caballero, and Angel A. Juan
1 Introduction
Respiratory diseases are the main reasons of death worldwide [44]. According to the
World Health Org a n i z a t i o n ( W H O ) , i n 2 0 0 8 , t h e r e w e r e 9 . 5 m i l l i o n d e a t h s world-
wide due to lung diseases such as tuberculosis, pneumonia, lung cancer, and chronic
obstructive pulmonary disease [41]. Furthermore, the WHO announced a list of the
top ten causes of death in the world in 2018. Within this list are lower respiratory
J. Murillo-Olmos (B)·E. Rodríguez-Esparza ·M. Pérez-Cisneros ·D. Zaldivar ·E. Cuevas
Universidad de Guadalajara, CUCEI, Blv. Gral. Marcelino García Barragán 1421, Olímpica,
44430 Guadalajara, Jal., Mexico
e-mail: jesus.murilloO@alumno.udg.mx
E. Rodríguez-Esparza
e-mail: erick.rodriguez@deusto.es
M. Pérez-Cisneros
e-mail: marco.perez@cucei.udg.mx
D. Zaldivar
e-mail: daniel.zaldivar@cucei.udg.mx
E. Cuevas
e-mail: erik.cuevas@cucei.udg.mx
E. Rodríguez-Esparza
DeustoTech, Faculty of Engineering, University of Deusto, Av. Universidades,
24, 48007 Bilbao, Spain
G. Trejo-Caballero
Instituto Tecnológico Superior de Irapuato, Carr. Irapuato-Silao km. 12.5, Irapuato, Gto., Mexico
e-mail: getrejo@itesi.edu.mx
A. A. Juan
IIN3—Computer Science Department, Universitat Oberta de Catalunya, Castelldefels, Spain
e-mail: ajuanp@uoc.edu
©TheAuthor(s),underexclusivelicensetoSpringerNatureSwitzerlandAG2021
D. Oliva et al. (eds.), Metaheuristics in Machine Learning: Theory and Applications,
Studies in Computational Intelligence 967,
https://doi.org/10.1007/978-3-030-70542- 8_16
359
360 J. Murillo-Olmos et al.
tract infections that remain the deadliest infectious disease, causing 3 million deaths
worldwide in 2016 [64]. These statistics confirm that lung diseases have continued
to be the leading causes of death and disability worldwide for the past decades.
Pneumonia is a disease of the lower respiratory tract, usually caused by an infec-
tious agent that causes inflammation of the alveoli in one or both lungs. The alveoli
in healthy people fill with air when breathing; while the alveoli in sick patients fill
with pus (purulent matter) or liquid, which makes breathing painful and limits the
absorption of oxygen. This disease can range in severity from mild to life-threatening.
Pneumonia kills millions of people each year, making it a leading cause of death for
babies and young children, people over 65, and people with health problems or with
weakened immune systems [47]. To detect this disease, the doctor first evaluates
symptoms such as cough, fever, sputum production, chest pain, and abnormal lung
auscultation. If the doctor suspects with this physical evaluation the presence of
pneumonia, diagnostic tests are performed, such as a chest X-ray, blood tests, among
others. Chest radiography is one of the most widely used non-invasive diagnostic test
because it helps to diagnose pneumonia and determine the extent visually, location
of the infection, and added complications [80]. In an X-ray, the alveoli that are filled
with fluid or inflammatory tissue due to pneumonia are seen in white, while healthy
alveoli, which are filled with air, are black [56].
The chest X-ray contains a wealth of information about a patient’s health. How-
ever, correctly detecting information on chest radiography is a challenging, tedious,
and subjective task that depends on the experience and professional training of expert
doctors [72]. Furthermore, this interpretation also depends on momentary factors
such as fatigue, distraction, and concentration [53]. Because of this, computer-aided
diagnostic (CADx) tools have begun to be developed and applied to improve the
quality and productivity of radiologists’ tasks, by maximizing the accuracy and con-
sistency of diagnostics, and by minimizing the time of reading the images [69].
CADx tools include multiple elements such as artificial intelligence concepts,
computer vision, and medical image processing [25]. However, digital image pro-
cessing techniques have become an elementary process to improve medical images,
since they are commonly affected by noise or phenomena that difficult their correct
interpretation. Those artifacts that affect medical images, such as the physiological
system, can reduce contrast and detail visibility [79].
The image segmentation (IS) is a fundamental technique in image processing [1,
45]. It is considered as a process of partitioning a digital image into several segments,
or pixels [34,59,66]. Segmentation is the stage where a significant commitment is
made during automated analysis by delineating structures of interest and discrimi-
nating them from background tissue. These algorithms operate on the intensity or
texture variations of the image using techniques that include thresholding, region
growing, deformable templates, and pattern recognition [9,30].
The thresholding (TH) technique of images is one of the most popular methods
for image segmentation due to its simplicity in the implementation [28,62,88].
This method works by taking the histogram information to find a unique threshold
value to divide the pixels into two classes. Over the past decade, the TH method
Thresholding Algorithm Applied to Chest X-Ray Images … 361
has been reformulated to efficiently record multiple threshold values for multilevel
thresholding (MTH) technique [58,63].
In recent years, MTH techniques have been used in the medical applications
domain to segment images due to their simplicity, high precision, and robustness
compared to other methods [2,73]. As in the case of the work of Chavarin et al., in
which brain injuries are detected using magnetic resonance imaging (MRI) through
a multilevel segmentation [11]. Likewise, also in the works of Oliva et al. and Itzel et
al., MTH are applied to MRI images of the brain to assist in the diagnosis of different
brain diseases [6,7,61]. Other examples are in the detection of abnormal masses
in mammography images as in the works of Rodriguez et al. [7476]. Furthermore,
Hinojosa et al. segmented images from histological samples of the breast to detect
cancer tissue [31]andDíazetal.todetectareaswithcancerthroughthermalimages
of the breast [16]. Additionally, Ibrahim et al. segmented lesions in skin cancer
efficiently [35]. Finally, Primitivo et al. used this technique for the segmentation of
vascular vessels in retinographies [68].
There are two types of approaches to find the optimal threshold values, parametric
and non-parametric [57,60]. The parametric approach estimates the parameters of the
probability density functions. In contrast, the non-parametric method uses a discrim-
inatory criterion (entropy, class variance, and error rate) to separate pixels into homo-
geneous regions [3,5]. Still, this criterion must be optimized to determine the opti-
mal threshold values [13,55]. In recent years, optimizations have been used, through
metaheuristic algorithms, of different entropy criteria, such as Kapur’s entropy, Tsal-
lis entropy, and cross-entropy for multilevel thresholding segmentation [20].
In the literature, there are various proposals and approaches to metaheuristic
algorithms that are divided according to their inspiration in evolutionary algorithms,
swarm intelligence, physical laws, and human behavior [15]. In Table1,someopti-
mizers are listed classified according to their inspiration. As noted, many metaheuris-
tic algorithms present good results in tests performed using benchmarks. However,
according to the “No Free Lunch” theorem [84], not all algorithms can solve a spe-
cific problem with precision. This is because there is no universal algorithm that
efficiently solves any type of problem.
This article presents the multilevel segmentation of X-ray images for the detection
of pneumonia through the Whale Optimization Algorithm (WOA) [51]. This meta-
heuristic algorithm mimics the social behavior of humpback whales. In this work,
acomparisonismadeusingasobjectivefunctionthemaximizationofthestatisti-
cal criteria of the variance of Otsu and the Kapur’s entropy, to find the statistical
criterion that works best for these images. Besides, different threshold numbers are
tested to obtain the best settings based on the metrics used to assess the quality of the
results. The experiments are performed using a database of chest radiography images,
publicly available online, to evaluate the performance of the proposed methodology.
The next sections of the chapter are as follows. In Sect.2, the WOA algorithm is
introduced. Section3provides the basics of image segmentation and introduces the
Otsu’s variance and Kapur’s entropy method. Then, in Sect.4presents the proposed
methodology. The results and the discussions are provided in Sect.5.Finally,Sect.6
includes some conclusions and future work.
362 J. Murillo-Olmos et al.
Table 1 List of main optimizers based on their classification
Category Algorithm Authors Year
Evolutionary Genetic algorithm (GA) Holland [32]1992
Genetic programming (GP) Koza and Koza [42]1992
Evolutionary strategies (ES) Michalewicz [49]1994
Differential evolution (DE) Storn and Price [81]1997
Swarm intelligence Particle swarm optimization
(PSO)
Eberhart and Kennedy [18]1995
Ant colony optimization
(ACO)
Dorigo and Di Caro [17]1999
Artificial bee colony (ABC) Karaboga and Basturk [37]2007
Firefly optimization (FFO) Yang [85]2010
Social spider optimization
(SSO)
Cuevas et al. [12]2013
Grey wolf optimizer (GWO) Mirjalili et al. [52]2014
Grasshopper optimization
algorithm (GOA)
Saremi et al. [77]2017
Selfish herd optimizer
(SHO)
Fausto et al. [21]2017
Yellow saddle goatfish
algorithm (YSGA)
Zaldivar et al. [86]2018
Harris hawks optimization
(HHO)
Heidari et al. [29]2019
Side-blotched lizard
algorithm (SBLA)
Maciel et al. [46]2020
Physical laws Central force optimization
(CFO)
Formato [22]2007
Gravitational search
algorithm (GSA)
Rashedi et al. [71]2009
Ray optimization Kaveh and Khayatazad [38]2012
Black hole algorithm (BHA) Hatamlou [27]2013
Sine-cosine algorithm
(SCA)
Mirjalili [50]2016
Human behavior Harmony search algorithm
(HS)
Geem et al. [23]2001
Imperialist competitive
algorithm (ICA)
Atashpaz-Gargari and Lucas
[8]
2007
Tea che r-l ear nin g-ba sed
optimization (TLBO)
Rao et al. [70]2010
Gaining-sharing knowledge
based algorithm (GSK)
Mohamed et al. [54]2019
Thresholding Algorithm Applied to Chest X-Ray Images … 363
2 The Whale Optimization Algorithm
The Whale Optimization Algorithm (WOA) [51] is a metaheuristic optimization algo-
rithm that mimics the hunting behavior of humpback whales, this algorithm uses a
spiral to simulate the bubble-net attacking mechanism of humpback whales. Since
the position of the optimal design in the search space is not previously known, the
WOA algorithm assumes that the current best candidate solution is the target prey
or is close to the optimum. After the best agent is defined, the other search agents
will hence try to update their position towards the best search agent. This behavior
is represented by:
!
D=!!!
!
C·!
X(t)!
X(t)!!!(1)
!
X(t+1)=!
X(t)!
A·!
D(2)
where tindicates the current iteration, !
Aand !
Care coefficient vectors, !
Xis the
position vector of the best solution obtained o far, !
Xis the position vector, $$ is the
absolute value, and ·is an element-by-element multiplication. It is worth mentioning
here that !
Xshould be updated in each iteration if there is a better solution. The
vectors !
Aand !
Care calculated as follow:
!
A=2a·!ra(3)
!
C=2·!r(4)
where ais a linearly decreased from 2 to 0 over the course of iterations, and !ris a
random vector with values [0,1].
2.1 Exploitation Phase
In order to mathematically model the bubble-net behavior of humpback whales, two
approaches are designed as follow:
Shrinking encircling mechanism:Thisbehaviorisarchivedbydecreasingvalue
of ain Eq.3.Figure1ashowsthepossiblepositionfrom(X,Y)towards (X,Y)
that can be achieved by 0 A1ina2Dspace.
Spiral updating position:AscanbeseeninFig.1baspiralequationiscreated
between the position of whale and prey to mimic the helix-shaped movement of
humpback whales as follow:
!
X(t+1)=!
D&·ebl ·cos(2πl)+!
X(t)(5)
364 J. Murillo-Olmos et al.
Fig. 1 Bubble-net search mechanism implemented in WOA [51]
where !
D&=!!!
!
X(t)!
X(t)!!!and indicate the distance of the ith whale to the prey
(best solution obtained so far), bis a constant for defining the shape of the loga-
rithmic spiral and lis a random number between [1,1].
2.2 Exploration Phase
The same approach based on the variation of the !
Avector can be utilized to search
for prey (exploration). The mathematical model is as follow:
!
D=!!!
!
C·
Xrand !
X!!!(6)
!
X(t+1)=
Xrand !
A·!
D(7)
where
Xrand is a random position vector chosen from the current population.
3 Image Multilevel Thresholding
Thresholding is a process in which the pixels of a grayscale image are divided into
sets depending on their intensity levels of the pixels (L).Forthisclassicationofthe
pixels is necessary to select a threshold value (th)and apply the simple next rule:
C1pif 0p<th
C2pif thp<L1(8)
Thresholding Algorithm Applied to Chest X-Ray Images … 365
where pis one of the m×npixels of the grayscale image (Ig)that can be represented
in Llevels. The rule in Eq.8correspond to a bilevel thresholding and can be extended
for multiple sets:
C1pif 0p<th1
C2pif th
1p<th2
Ci+1pif th
ip<thi+1
Cn1pif th
np<L1
(9)
where the different th represent the different thresholds. The problem in bilevel and
multilevel thresholding is to select the th values that correctly identify the classes.
Otsu’s and Kapur’s methods propose a different objective function that must be
maximized in order to find the optimal values.
3.1 Otsu’s Method Based in Between-Class Variance
This method is a non-parametric technique for thresholding proposed by Otsu [65]
that employs the maximum variance value of the different classes as a criterion to
segment the image. Taking the Lintensity levels and the histogram information. The
probability of the intensity values is defined by:
Phc
i=hc
i
NP
NP
"
i=1
Phc
i=1(10)
where iis a specific intensity level (0iL1),cis the component of the image,
NP is the total number of the pixels in the image. hc
iis the histogram and represents
the number of pixels that corresponds to the iintensity level in c.Thehistogramis
normalized to a probability distribution Phc
i.Forthesimplesegmentation(bilevel),
two classes are defined by:
c1=Phc
i
ωc
0(th),..., Phc
th
ωc
0(th)and c2=Phc
th+1
ωc
1(th),..., Phc
L
ωc
1(th)(11)
where ωc
0and ωc
1(th)are probabilities for C1and C2,asitishownby:
ωC
0(th)=
th
"
i=1
PhC
i,ω
C
1(th)=
L
"
i=th+1
PhC
i(12)
366 J. Murillo-Olmos et al.
It is necessary to compute the mean levels µC
0and µC
1that defined the classes
using Eq.13.
µC
0=
th
"
i=1
iPhC
i
µC
0(th)
C
1=
L
"
i=th+1
iPhC
i
µC
1(th)(13)
In Eq.13,Cdepends on the objective function. Therefore, the optimization prob-
lem is reduced to find the intensity level that maximized the equation.
fOtsu(th)=max(σ2C
B(th)), 0th L1(14)
where σ2C
B(th)is the Otsu’s variance for given th value. Therefore, the optimization
problem is reduce to find the intensity level that maximized Eq.14.Theobjective
function fOtsu(th)can thus be rewritten for multiple thresholds as follow:
fOtsu(TH )=max(σ2C
B(TH )), 0thiL1,i=1,2,3,...,k(15)
where TH =[th1,th2,...,thk1],isavectorcontainingmultiplethresholdsandtheir
variance is computed through Eq.16.
σ2C
B=
K
"
i=1
σC
i=
K
"
i=1
ωC
iC
iµC
T)2(16)
where irepresents and specifics class. ωC
iand µC
jare the probability of occurrence
and the mean of class, respectively. For multilevel thresholding, such values are
obtained using Eq.17.
ωC
0(th)=
th1
"
i=1
PhC
i
ωC
1(th)=
th2
"
i=th1+1
PhC
i
.
.
..
.
.
ωC
k1(th)=
L
"
i=thk
PhC
i
(17)
Thresholding Algorithm Applied to Chest X-Ray Images … 367
and for the mean values using Eq.18.
µC
0=
th1
"
i=1
iPhC
i
ωC
0(th1)
µC
1=
th2
"
i=th1+1
iPhC
i
ωC
0(th2)
.
.
..
.
.
µC
k1=
L
"
i=thk+1
iPhC
i
ωC
1(thk)
(18)
where Ccorresponds to the image component.
3.2 Kapur’s Method Based in Entropy
Another non-parametric method used to determine the optimal threshold values has
been proposed by Kapur [36]. It is based on the entropy and the probability distribu-
tion of the image histogram. The method aims to find the optimal th that maximizes
the overall entropy. The entropy of an image measures the compactness and separa-
bility among classes. In this sense, when the optimal th value appropriately separates
the classes, the entropy has the maximum value. For the bilevel example, the objective
function of the Kapur’s problem can be defined as:
fKapur (th)=HC
1+HC
2,C=#1,2,4ifRGBimage
1ifgrayscaleimage (19)
where the entropies H1and H2are computed by the following model:
HC
1=
th
"
i=1
PhC
i
ωC
0
ln $PhC
i
ωC
0%,HC
2=
L
"
i=th+1
PhC
i
ωC
1
ln $PhC
i
ωC
1%(20)
where ω0(th)and ω1(th)are probabilities distributions for C1and C2.Similartothe
Otsu’s method, the entropy based approach can be extended for multiple threshold
values, for such a case, it is necessary to divide the image into kclasses using a
similar number of thresholds. Under such conditions, the new objective function is
defined by:
fKapur (th)=
k
"
i=1
HC
i,C=#1,2,4ifRGBimage
1ifgrayscaleimage (21)
368 J. Murillo-Olmos et al.
where TH =[th1,th2,...,thk1]is a vector that contains multiple thresholds. Each
entropy is computed separately with it is respective th,soEq.20 is expanded for k
entropies.
HC
1=
L
"
i=1
PhC
i
ωC
0
ln $PhC
i
ωC
0%,
HC
2=
L
"
i=th1+1
PhC
i
ωC
1
ln $PhC
i
ωC
1%,
.
.
..
.
.
HC
1=
L
"
i=1
PhC
i
ωC
0
ln $PhC
i
ωC
0%
(22)
The values of the probability occurrence (ωC
0,ω
C
1,...,ω
C
k1)of the kclasses are
obtained by:
ωC
0(th)=
th
"
i=1
PhC
i
ωC
1(th)=
th2
"
i=th1+1
PhC
i
.
.
..
.
.
ωC
k+1(th)=
th
"
i=thk+1
PhC
i
(23)
and the probability distribution PhC
iis obtained using Eq.20.Finally,toseparatethe
pixels in the respective classes, it is necessary to use Eq.9.
C1pif 0 p<th1
C2pif th1p<th2
Cipif thip<thi+1
Cnpif thnp<L1
where {th1,th2,...,thi,thi+1,thk}represent the different thresholds. The problem
for bilevel and multilevel thresholding is to select the optimal values that correctly
identify the classes. Otsu’s and Kapur’s methods propose a different objective func-
tion that must be maximized in order to find optimal threshold values.
Thresholding Algorithm Applied to Chest X-Ray Images … 369
4 Automatic Detection of Thresholds Values Using WOA
with Kapur and Otsu as Objective Functions
Initially, manual preprocessing is performed to remove artifacts and cut edges that
appear in the X-ray image as noise. Then, a WOA-based multilevel threshold seg-
mentation is applied with Kapur and Otsu as objective functions, followed by the
selection of the best number of regions for segmentation compared to a healthy chest.
Finally, the results of the previous steps are compared among other algorithms. Below
are the actions of Algorithm 1 application for multilevel segmentation.
Algorithm 1: Application algorithm
Read Image IGr;
Calculated the hGr of the IGr;
Initialize the WOA parameters itermax,nt,Agents;
Initialize the location of a population of WOA with Agents in nt dimensions.;
Calculate the fitness of each search agent;
X=the best search agent;
t<itermax;
Update parameters;
Update the position of the current search agent by Eq. 5or Eq. 7;
Select a random search agent;
Evaluate the objective function using Otsu Eq. 15,orKapurEq.21;
Update Xif there is a better solution;
t=t+1
where IGr represents the grayscale image, hGr the image histogram, nt the threshold
number, and Agents the algorithm population. All experiments were performed using
Matlab on an Intel i5 2.30GHz CPU with 8 GB of RAM.
4.1 Dataset Description
The digital images used for this proposed method are X-ray images of the chest
(anteroposterior) selected from retrospective cohorts of pediatric patients aged one to
five years from the Guangzhou Women’s and Children’s Medical Center, Guangzhou.
All chest X-ray images were performed as part of routine clinical care for patients
[39].
370 J. Murillo-Olmos et al.
4.2 Experiments Details
The present work has been carried out on a set of eight samples, four images of
patients with pneumonia and four healthy patients. All images have the same size
(512 ×512 pixels) and are in JPEG format [33,78].
The WOA algorithm applied in multilevel segmentation is compared against the
Firefly Optimization (FFO) [85], Sine-Cosine Algorithm (SCA) [50], Differential
Evolution (DE) [81] and Particle Swarm Optimization (PSO) [18]. All of these algo-
rithms are stochastic, so it is necessary to use adequate statistics to compare the
efficiency of the algorithm. Therefore, all algorithms are run 35 times per image,
and according to related literature, the number of thresholds for testing is set to
th =2,3,4,5,6,7[4,24,26].
In each experiment, the stop criteria is set to 150 iterations. This is because
increasing this value does not affect WOA performance in terms of the quality of
the solution. Therefore, this value has been selected to maintain compatibility with
similar works reported in the literature [14,33,78].
The internal parameters of each algorithm were adjusted according to the refer-
ences proposed [18,50,81,85].
4.3 Metrics
Image quality evaluation methods are divided into objective and subjective methods
[43]. Subjective methods are based on human judgment and operate without any
reference [40]. While on the other hand, objective methods are based on comparisons
[10] that use explicit numerical criteria through references, such as ground truth or
prior knowledge in terms of statistical parameters [19,48]. The metrics used in this
work belong to the classification of objective methods.
4.3.1 Peak Signal-to-Noise Ratio
The peak-to-signal ratio (PSNR) is used to compare the similarity of an image (image
segmented) against a reference image (original image) based on the mean square error
(RMSE) of each pixel [4,33,67]. PSNR and RMSE are defined in Eq.24.
PSNR =log10
255
RMSE ,(dB)
RMSE =&'ro
i=1'co
j=1[IC
0(i,j)IC
th (i,j)]
ro ×co
(24)
Thresholding Algorithm Applied to Chest X-Ray Images … 371
where Ic
0is the original image, IC
th is the segmented image, Cdepends on the image
(RGB or grayscale) and ro,co are the total number of rows and columns of the image,
respectively.
4.3.2 Structural Similarity
Structural similarity index (SSIM) is a method for measuring the internal structures
between two images. This metric compares local patterns of pixel intensities [82].
SSIM (x,y)=[l(x,y)]α·[c(x,y)]β·[s(x,y)]γ(25)
where α>0,β>0andγ>0, simplify the expression, α=β=σ=1andC3=
C2/2. Where lis for luminance comparison, cis the contrast comparison, sis for the
structure comparison [82].
SSIM (x,y)=(2µxµy+C1)(2σxy +C2)
*µ2
x+µ2
y+C1+*σ2
x+σ2
y+C2+(26)
4.3.3 Feature Similarity
The feature similarity index (FSIM) maps features and measures the similarities
between two images [87]. The calculation of the FSIM index consists of two stages.
First, the local similarity map is calculated. Then, the similarity map is grouped into a
single similarity score. The FSIM index between two components f1and f2is defined
in Eq.27.
FSIM ='x'( SL(x)PCm(x)
'x'( PCm(x)(27)
where (means the entire spatial domain of the image. SLis the similarity of the
components. PC is a phase congruence that postulates that the characteristics are
perceived at points, where the Fourier components are maxima in phase.
5 Experimental Results
The set of eight images, four of healthy patients and four of patients with pneumonia,
used as a point of reference for the development of this work are presented in Figs.2
and 3,respectively.Furthermore,ontherightsideoftheimages,theircorresponding
histograms are presented, where it is possible to observe the heterogeneity in the
intensities of the gray levels of each image, which makes it possible to test the
behavior of the proposed approach with different data to verify the robustness.
372 J. Murillo-Olmos et al.
(a) Person 1 bacteria 2
050100150200250
Gray Level
0
2000
4000
6000
8000
10000
12000
14000
Frequency
(b)
(c) Person 3 bacteria 10
0 50 100 150 200 250
Gray Level
0
0.5
1
1.5
2
2.5
3
3.5
Frequency
10
4
(d)
(e) Person 7 bacteria 25
050100150200250
Gray Level
0
2000
4000
6000
8000
10000
12000
14000
16000
Frequency
(f)
(g) Person 7 bacteria 28
0 50 100 150 200 250
Gray Level
0
1000
2000
3000
4000
5000
6000
7000
8000
9000
Frequency
(h)
Fig. 2 a, c, e, g are pneumonia images dataset, b, d, f, h are histograms of the images
Thresholding Algorithm Applied to Chest X-Ray Images … 373
(a) IM-0145
0 50 100 150 200 250
Gray Level
0
2
4
6
8
10
12
14
16
18
Frequency
10
4
(b)
(c) IM-0211
0 50 100 150 200 250
Gray Level
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
Frequency
10
4
(d)
(e) IM-0224
0 50 100 150 200 250
Gray Level
0
0.5
1
1.5
2
2.5
Frequency
10
4
(f)
(g) IM-0225
0 50 100 150 200 250
Gray Level
0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
Frequency
10
4
(h)
Fig. 3 a, c, e, h are healthy images dataset, b, d, f, h are histograms of the images
374 J. Murillo-Olmos et al.
5.1 Results of Otsu’s Objective Function
The results with the best average value, concerning the metrics, are marked in bold
for a better appreciation. In Table2,presentsthePSNRvaluesobtainedforeach
of the algorithms. In general, the highest PSNR values are obtained using the WOA
algorithm, and it can be observed that in the images corresponding to person 7 bacteria
25 and person 7 bacteria 28, the proposed algorithm presents more favorable results
in five thresholds of the seven possible. However, in the remaining two thresholds,
the performance of the algorithm is not so far from the values obtained by the DE and
PSO algorithms. In cases where the algorithm presents the least amount of optimal
values with two thresholds, it occurs in healthy images corresponding to IM-0224
and IM-0225. While for the remaining five thresholds, it presents the same trend
since it is not that far from the results with the algorithms with the highest average
PSNR. The PSO and DE algorithms also present the averages of the highest values
in at least two thresholds. This reflects that although the algorithm does not present
the most favorable result in all segmentation cases, it does present significant results
in most cases compared to the other algorithms compared in this work. Based on
the PSNR evaluated in this table, it can also be observed that the standard deviation
of the algorithm does not present the lowest values in any case, but in general, it is
close to the best values obtained by the PSO algorithm.
Table3presents the comparison of the average SSIM values obtained for the Otsu
maximization approach. The possible values of the metric are in the intervals of [0,
1]. The WOA algorithm does not present the best results except in the case of the
healthy image IM-0145, in which the highest values of this metric are presented in
four of the seven thresholds tested. In the other cases, it is close to the highest average
values obtained by the SCA and DE algorithms. Regarding the standard deviation
that represents the stability of the algorithm in the 35 executions, the algorithm with
the lowest values is the DE.
In Table4,theaverageresultsoftheFSIMmetricappliedtothedifferentalgo-
rithms are observed. The best values, similar to the previous tables, are presented
in bold, the highest values with the most significant performance when segmenting
the images. Similar to the PSNR metric, the most optimal mean values are obtained
through the WOA algorithm, in which the corresponding healthy images IM-0145,
IM-0211 and IM-0224 present the most favorable results in six or more of the thresh-
olds tested. However, in the case of pneumonia images, significant results are only
presented in Person 1 bacteria 2 and Person 3 bacteria 12. While for the images
Person 7 bacteria 25 and Person 7 bacteria 28 the best values are obtained by the
DE algorithm. In addition, the PSO and DE algorithms are the ones that present the
lowest standard deviation values, representing the highest stability.
In general, it is shown that in most cases, the WOA algorithm presents the best
results when evaluating the three metrics (PSNR, SSIM, and FSIM) used to measure
the quality of the segmentation with respect to the algorithms mentioned to make
the comparisons. However, in cases where significant results are not presented, the
results are not far from the average of the optimal values.
Thresholding Algorithm Applied to Chest X-Ray Images … 375
Table 2 Comparison of the Otsu results of the PSNR values obtained by WOA, FFO, SCA, DE and PSO
Image nTh WOA FFO SCA DE PSO
PSNR STD PSNR STD PSNR STD PSNR STD PSNR STD
Person 1
bacteria 2
212.2999 5.289E01 11.8334 1.659E01 11.7998 9.008E15 11.7998 9.008E15 11.7998 9.008E15
316.6040 4.979E01 15.8855 2.325E01 16.1793 3.217E02 16.1724 4.919E02 16.1663 5.194E02
419.2838 5.157E01 18.1041 7.205E01 18.8722 2.491E01 18.8859 1.943E01 18.9405 1.485E01
521.2304 6.338E01 19.6552 8.494E01 20.7602 3.984E01 21.1319 1.498E01 21.1248 1.537E01
622.8456 6.012E01 20.8944 9.442E01 21.8228 6.029E01 22.8481 1.590E01 22.8766 2.018E01
723.8127 6.097E01 21.9780 7.019E01 22.9918 6.317E01 23.9101 2.973E01 23.9025 2.740E01
824.7188 5.667E01 22.8859 9.507E01 23.6906 8.027E01 25.1740 3.043E01 25.2231 2.802E01
Person 3
bacteria 12
212.9665 1.017E+00 11.7265 3.804E02 11.7229 4.130E02 11.7334 3.752E02 11.7315 3.685E02
316.1680 7.138E01 15.0379 7.555E01 15.3539 1.686E01 15.3393 2.048E02 15.3289 2.361E02
418.4325 7.836E01 17.6130 7.534E01 17.9652 3.328E01 18.0898 2.071E01 18.1595 2.770E01
520.5745 5.509E01 19.2200 8.841E01 19.9306 5.392E01 20.1932 2.408E01 20.1829 2.666E01
621.8708 3.372E01 20.7765 7.480E01 21.2693 4.948E01 21.8608 2.623E01 21.9288 3.100E01
722.9412 5.550E01 21.5261 8.946E01 22.3569 6.718E01 23.2217 3.030E01 23.2423 3.375E01
823.9023 6.611E01 22.2433 8.112E01 22.9944 6.971E01 24.1976 4.371E01 24.1788 4.420E01
Person 7
bacteria 25
212.5911 5.575E01 12.3193 6.432E02 12.3200 1.533E02 12.3205 1.757E02 12.3130 1.576E02
316.6192 3.342E01 16.1942 3.471E01 16.5075 2.160E02 16.5100 2.125E02 16.5118 2.458E02
419.0023 2.798E01 18.3375 5.345E01 18.7777 1.085E01 18.8258 5.273E02 18.8261 4.440E02
521.6581 2.574E01 19.9531 6.482E01 21.1536 5.545E01 21.6261 2.977E02 21.6172 3.290E02
623.3708 3.877E01 21.2480 7.654E01 22.4489 5.400E01 23.3091 6.029E02 23.3253 6.785E02
724.6061 4.991E01 22.3525 8.141E01 23.4900 6.961E01 24.7016 9.182E02 24.7257 1.004E01
825.7457 3.840E01 23.4233 8.313E01 24.2428 7.474E01 25.9659 1.032E01 25.9958 1.110E01
(continued)
376 J. Murillo-Olmos et al.
Table 2 (continued)
Image nTh WOA FFO SCA DE PSO
PSNR STD PSNR STD PSNR STD PSNR STD PSNR STD
Person 7
bacteria 28
212.1593 4.362E01 11.8419 1.536E01 11.8338 9.008E15 11.8338 9.008E15 11.8338 9.008E15
316.8274 4.700E01 15.9799 5.468E01 16.4698 4.337E02 16.4761 1.869E02 16.4756 1.791E02
418.9568 2.974E01 18.1277 5.415E01 18.7307 8.029E02 18.8095 2.978E02 18.7998 3.178E02
521.4010 6.282E01 19.8752 7.302E01 20.8220 5.196E01 21.3877 3.500E02 21.3694 9.056E02
623.0807 5.295E01 20.9970 7.916E01 21.9493 7.254E01 23.0149 7.034E02 23.0412 8.755E02
724.1102 5.886E01 22.4315 9.189E01 22.9219 8.844E01 24.3211 2.074E01 24.3596 2.009E01
825.1435 6.043E01 22.7508 9.846E01 23.6934 8.816E01 25.2575 1.892E01 25.3678 2.343E01
IM0145 213.3077 1.066E+00 12.2721 4.948E02 12.2722 3.961E02 12.2809 3.878E02 12.2728 4.008E02
316.5396 6.720E01 15.3799 7.109E01 15.6968 1.679E01 15.7248 7.639E02 15.7023 6.000E02
418.7285 5.329E01 17.5817 7.966E01 18.2705 2.548E01 18.2888 2.499E01 18.3177 2.241E01
520.5660 5.569E01 19.2078 9.779E01 20.1059 4.385E01 20.3898 2.567E01 20.3830 2.372E01
621.9873 4.346E01 20.6971 7.626E01 21.3160 5.113E01 21.9362 2.420E01 21.9018 2.221E01
723.1335 4.437E01 21.6586 7.744E01 22.3905 4.690E01 23.2328 2.796E01 23.1942 2.636E01
823.9742 5.717E01 22.8182 8.293E01 23.2828 5.795E01 24.2761 3.277E01 24.3226 3.094E01
IM0211 213.1157 8.080E01 12.0886 4.703E02 12.1010 1.673E02 12.1030 1.710E02 12.1059 1.405E02
316.6426 6.101E01 15.7754 4.439E01 15.9762 1.099E01 15.9557 1.045E01 16.0009 9.209E02
418.5793 4.188E01 17.8337 7.236E01 18.3292 2.561E01 18.3744 1.832E01 18.3752 1.956E01
520.5375 4.273E01 19.4555 8.866E01 20.2144 3.072E01 20.5986 1.245E01 20.6121 9.440E02
621.9512 4.931E01 20.5433 8.376E01 21.5547 4.823E01 22.0293 1.905E01 21.9799 2.181E01
722.8830 5.142E01 21.7674 8.088E01 22.5129 5.062E01 23.0913 1.801E01 23.0384 2.787E01
823.6592 4.088E01 22.5349 6.440E01 23.1277 6.586E01 23.9839 3.109E01 23.9991 3.343E01
(continued)
Thresholding Algorithm Applied to Chest X-Ray Images … 377
Table 2 (continued)
Image nTh WOA FFO SCA DE PSO
PSNR STD PSNR STD PSNR STD PSNR STD PSNR STD
IM0224 210.5842 4.599E01 10.4698 4.666E01 10.6027 3.143E01 10.5160 3.062E01 10.4677 2.804E01
315.3641 5.955E01 15.0556 7.713E01 15.0472 4.108E01 15.3059 7.206E15 15.3059 7.206E15
418.5185 4.266E01 17.2953 8.884E01 18.0730 3.156E01 18.4260 1.117E01 18.3818 1.301E01
520.0450 6.809E01 19.0665 7.764E01 19.9189 5.346E01 20.2669 2.443E01 20.2341 2.377E01
621.2687 7.409E01 20.1864 9.586E01 20.8796 7.195E01 21.7731 3.373E01 21.7253 4.297E01
722.5141 7.902E01 21.2963 1.070E+00 21.9134 7.392E01 22.7059 4.032E01 22.8867 3.333E01
823.4369 8.832E01 22.1699 8.640E01 22.8727 7.678E01 23.8280 5.248E01 23.8357 5.800E01
IM0225 212.3125 6.820E01 11.6028 1.221E01 11.5157 5.405E15 11.5157 5.405E15 11.5157 5.405E15
316.2275 7.313E01 15.1013 7.435E01 15.5739 2.618E01 15.5193 3.199E01 15.6248 2.411E01
417.8274 8.512E01 17.1953 7.783E01 17.7114 5.664E01 18.0259 3.046E01 18.0441 3.015E01
519.9000 8.025E01 19.0592 6.532E01 19.9717 3.989E01 20.0805 4.320E01 19.9690 4.339E01
620.9757 7.825E01 20.3371 8.357E01 20.5697 7.132E01 21.4292 5.324E01 21.4301 5.233E01
722.0365 1.050E+00 21.1230 9.119E01 21.6201 8.950E01 22.4315 5.519E01 22.0964 6.189E01
822.8044 8.835E01 21.9180 1.078E+00 22.3468 7.680E01 22.9111 6.138E01 23.2017 4.772E01
378 J. Murillo-Olmos et al.
Table 3 Comparison of the Otsu results of the SSIM values obtained by WOA, FFO, SCA, DE and PSO
Image nTh WOA FFO SCA DE PSO
SSIM STD SSIM STD SSIM STD SSIM STD SSIM STD
Person 1
bacteria 2
20.50324 2.141E02 0.51514 1.949E02 0.50869 1.126E16 0.50869 1.126E16 0.50869 1.126E16
30.64344 1.663E02 0.64870 1.944E02 0.65212 4.993E03 0.65237 6.116E03 0.65337 7.091E03
40.70234 1.653E02 0.70080 2.315E02 0.71040 4.720E03 0.71333 4.967E03 0.71258 4.706E03
50.72578 1.113E02 0.71554 2.169E02 0.72945 8.957E03 0.73343 3.472E03 0.73380 3.091E03
60.74012 8.597E03 0.72884 2.405E02 0.73729 1.699E02 0.74781 2.586E03 0.74674 3.760E03
70.74467 7.356E03 0.74401 2.194E02 0.75149 1.339E02 0.74768 4.953E03 0.75135 7.538E03
80.76359 6.608E03 0.75802 1.945E02 0.76044 1.871E02 0.76543 3.657E03 0.76710 3.179E03
Person 3
bacteria 12
20.51544 2.642E02 0.52373 9.370E03 0.52558 8.163E03 0.52322 7.808E03 0.52385 7.602E03
30.66418 1.799E02 0.66633 1.425E02 0.67237 3.466E03 0.67317 2.811E03 0.67175 3.241E03
40.68100 1.303E02 0.68219 1.761E02 0.68868 8.875E03 0.68851 6.221E03 0.68839 5.410E03
50.70664 8.025E03 0.69927 1.750E02 0.70480 1.198E02 0.70634 6.830E03 0.70773 7.776E03
60.72044 8.276E03 0.72091 1.850E02 0.72296 1.495E02 0.71987 9.895E03 0.72070 1.042E02
70.74075 8.648E03 0.72999 1.951E02 0.73790 1.472E02 0.74248 6.970E03 0.74137 7.684E03
80.75445 1.432E02 0.74847 1.406E02 0.75305 1.474E02 0.75633 8.333E03 0.75946 1.068E02
Person 7
bacteria 25
20.57960 2.292E02 0.59070 1.303E02 0.58664 2.526E03 0.58673 2.894E03 0.58548 2.592E03
30.67584 1.313E02 0.68004 2.195E02 0.68099 4.249E03 0.68027 4.789E03 0.67981 4.778E03
40.69294 1.270E02 0.70852 2.542E02 0.69782 5.711E03 0.69920 1.758E03 0.69922 1.593E03
50.76581 9.125E03 0.75496 2.446E02 0.76890 1.489E02 0.76789 1.302E03 0.76858 1.474E03
60.78364 1.170E02 0.77393 2.288E02 0.78990 1.034E02 0.79237 3.259E03 0.79122 3.025E03
70.79919 7.246E03 0.78674 2.698E02 0.79948 1.301E02 0.80595 6.262E03 0.80497 6.128E03
80.81012 5.525E03 0.80015 1.765E02 0.81110 1.287E02 0.81412 2.584E03 0.81515 2.960E03
(continued)
Thresholding Algorithm Applied to Chest X-Ray Images … 379
Table 3 (continued)
Image nTh WOA FFO SCA DE PSO
SSIM STD SSIM STD SSIM STD SSIM STD SSIM STD
Person 7
bacteria 28
20.45255 1.711E02 0.46020 1.378E02 0.45933 1.689E16 0.45933 1.689E16 0.45933 1.689E16
30.61610 1.591E02 0.61174 3.586E02 0.62591 6.424E03 0.62522 5.030E03 0.62473 5.060E03
40.65346 1.163E02 0.67116 4.001E02 0.65661 7.730E03 0.66196 1.329E03 0.66139 1.640E03
50.73117 1.276E02 0.72063 2.833E02 0.73695 1.806E02 0.74202 2.657E03 0.74015 4.979E03
60.74960 8.397E03 0.72956 2.989E02 0.74004 1.865E02 0.75885 3.093E03 0.75879 3.320E03
70.76808 8.505E03 0.75461 2.128E02 0.75658 1.620E02 0.77634 2.844E03 0.77499 4.491E03
80.78188 7.525E03 0.75289 2.167E02 0.77054 1.705E02 0.78355 4.676E03 0.78610 5.537E03
IM0145 20.46925 1.628E02 0.46858 1.118E02 0.47260 6.511E03 0.47061 6.664E03 0.47236 6.688E03
30.58463 1.049E02 0.57731 1.758E02 0.58697 5.212E03 0.58847 1.269E03 0.58823 1.418E03
40.61875 9.462E03 0.60502 1.812E02 0.61604 5.653E03 0.61551 5.055E03 0.61523 5.080E03
50.64947 8.394E03 0.63797 1.920E02 0.64399 1.008E02 0.64763 6.162E03 0.64861 4.593E03
60.67621 8.556E03 0.66256 1.927E02 0.66364 1.121E02 0.67407 4.911E03 0.67430 5.805E03
70.70581 1.026E02 0.68685 1.592E02 0.69572 1.433E02 0.70557 4.482E03 0.70451 3.773E03
80.72853 1.117E02 0.70958 1.628E02 0.71586 1.283E02 0.73369 6.690E03 0.73244 6.754E03
IM0211 20.40035 1.703E02 0.41722 1.197E02 0.41785 5.238E03 0.41854 5.401E03 0.41927 4.546E03
30.52922 1.081E02 0.55233 1.542E02 0.55593 3.503E03 0.55645 3.624E03 0.55409 4.145E03
40.55331 4.772E03 0.57453 1.905E02 0.57830 5.661E03 0.57602 3.638E03 0.57567 2.071E03
50.58097 7.711E03 0.59095 1.796E02 0.59713 9.359E03 0.60099 5.181E03 0.59949 5.828E03
60.61285 1.492E02 0.61399 2.042E02 0.62192 9.001E03 0.62203 7.414E03 0.62010 7.494E03
70.63336 1.468E02 0.64216 2.882E02 0.65435 2.468E02 0.63934 4.804E03 0.64403 1.593E02
80.65562 2.358E02 0.65964 2.777E02 0.66913 2.548E02 0.66801 1.777E02 0.66861 2.077E02
(continued)
380 J. Murillo-Olmos et al.
Table 3 (continued)
Image nTh WOA FFO SCA DE PSO
SSIM STD SSIM STD SSIM STD SSIM STD SSIM STD
IM0224 20.40169 2.325E02 0.45933 3.247E02 0.46806 2.196E02 0.46190 2.104E02 0.45841 1.899E02
30.54936 2.464E02 0.60124 4.064E02 0.58111 1.692E02 0.58860 1.126E16 0.58860 1.126E16
40.61712 1.347E02 0.63938 2.184E02 0.64538 9.346E03 0.65450 5.863E03 0.64960 6.500E03
50.64461 8.516E03 0.66918 1.878E02 0.67272 9.532E03 0.67307 5.100E03 0.67199 5.582E03
60.67024 1.232E02 0.68772 1.812E02 0.69069 1.397E02 0.69643 6.283E03 0.69586 6.760E03
70.69882 1.126E02 0.70115 1.777E02 0.71118 1.575E02 0.72071 8.708E03 0.72046 9.361E03
80.71871 1.730E02 0.71596 1.708E02 0.72469 1.523E02 0.73932 1.285E02 0.73843 1.454E02
IM0225 20.35728 1.201E02 0.37682 2.433E02 0.35799 1.126E16 0.35799 1.126E16 0.35799 1.126E16
30.56602 1.534E02 0.57893 2.121E02 0.58838 1.183E02 0.58951 1.048E02 0.58769 1.024E02
40.57494 1.463E02 0.59375 2.070E02 0.60036 1.148E02 0.60454 2.330E03 0.60419 2.266E03
50.59523 1.286E02 0.62086 2.352E02 0.62315 9.148E03 0.62281 8.051E03 0.62018 1.028E02
60.61261 2.425E02 0.63721 3.238E02 0.63486 2.129E02 0.62956 7.584E03 0.63118 9.457E03
70.62851 2.305E02 0.65009 2.548E02 0.65207 2.670E02 0.64137 1.190E02 0.64212 2.013E02
80.65338 3.615E02 0.67483 5.017E02 0.67895 3.569E02 0.65539 2.456E02 0.66021 2.317E02
Thresholding Algorithm Applied to Chest X-Ray Images … 381
Table 4 Comparison of the Otsu results of the FSIM values obtained by WOA, FFO, SCA, DE and PSO
Image nTh WOA FFO SCA DE PSO
FSIM STD FSIM STD FSIM STD FSIM STD FSIM STD
Person 1
bacteria 2
20.70092 1.90E02 0.70344 4.37E03 0.70115 2.25E16 0.70115 2.25E16 0.70115 2.25E16
30.72606 8.99E03 0.72354 7.94E03 0.72351 2.39E03 0.72275 2.11E03 0.72326 1.44E03
40.76836 6.07E03 0.76029 1.15E02 0.76555 3.80E03 0.76711 3.12E03 0.76690 2.56E03
50.81008 7.53E03 0.77976 1.69E02 0.80520 6.09E03 0.80966 2.92E03 0.81002 2.97E03
60.84507 5.87E03 0.80573 1.94E02 0.82919 1.63E02 0.84805 2.92E03 0.84755 2.50E03
70.86244 7.02E03 0.82832 1.94E02 0.84922 1.35E02 0.86751 4.86E03 0.86862 5.81E03
80.87807 1.05E02 0.84933 1.68E02 0.86131 1.89E02 0.88791 4.78E03 0.89010 3.33E03
Person 3
bacteria 12
20.65365 2.11E02 0.63958 3.73E04 0.63955 2.78E04 0.63959 3.00E04 0.63955 2.93E04
30.68425 1.40E02 0.67080 1.06E02 0.66880 2.90E03 0.66869 1.28E03 0.66804 1.47E03
40.73168 1.45E02 0.71778 1.34E02 0.72168 6.23E03 0.72228 3.68E03 0.72236 3.80E03
50.78498 1.01E02 0.75456 1.89E02 0.76820 1.01E02 0.77513 4.51E03 0.77481 5.88E03
60.81717 7.61E03 0.79073 1.73E02 0.80223 1.39E02 0.81683 5.06E03 0.81830 4.98E03
70.84456 1.53E02 0.81247 1.82E02 0.82873 1.69E02 0.84817 6.48E03 0.84875 6.27E03
80.86517 1.35E02 0.82765 1.73E02 0.84767 1.67E02 0.87193 8.34E03 0.87186 8.44E03
Person 7
bacteria 25
20.72805 1.21E02 0.72663 1.84E03 0.72762 3.97E04 0.72754 4.22E04 0.72775 3.51E04
30.76751 8.38E03 0.76801 1.09E02 0.76987 2.39E03 0.76991 2.82E03 0.76957 2.73E03
40.77891 5.78E03 0.77650 1.27E02 0.78020 3.58E03 0.78079 1.71E03 0.78063 1.57E03
50.79423 3.43E03 0.79192 1.48E02 0.79686 6.31E03 0.79471 8.38E04 0.79486 7.25E04
60.81957 5.12E03 0.80662 1.63E02 0.81764 9.58E03 0.82290 2.43E03 0.82192 2.60E03
70.84095 4.96E03 0.82141 2.17E02 0.83055 9.36E03 0.84467 3.12E03 0.84319 2.73E03
80.85789 6.86E03 0.83281 1.29E02 0.84175 1.42E02 0.86169 2.70E03 0.86296 2.65E03
(continued)
382 J. Murillo-Olmos et al.
Table 4 (continued)
Image nTh WOA FFO SCA DE PSO
FSIM STD FSIM STD FSIM STD FSIM STD FSIM STD
Person 7
bacteria 28
20.71594 9.19E03 0.71602 6.01E03 0.71582 5.63E16 0.71582 5.63E16 0.71582 5.63E16
30.74580 8.38E03 0.74800 1.46E02 0.75046 2.36E03 0.75034 2.59E03 0.75004 2.68E03
40.78260 3.64E03 0.77828 1.73E02 0.78330 6.53E03 0.78543 2.09E03 0.78573 1.87E03
50.81086 5.46E03 0.80012 1.62E02 0.81100 1.13E02 0.81338 2.02E03 0.81220 3.81E03
60.84333 3.82E03 0.81838 2.05E02 0.83586 1.37E02 0.84799 3.48E03 0.84731 3.73E03
70.87335 7.75E03 0.84077 1.83E02 0.85310 1.40E02 0.87915 2.05E03 0.87821 2.44E03
80.89042 5.79E03 0.84733 1.57E02 0.86796 1.41E02 0.89858 2.14E03 0.89711 4.28E03
IM0145 20.63478 2.91E02 0.60666 7.17E04 0.60697 3.19E04 0.60698 2.80E04 0.60697 3.18E04
30.69589 2.90E02 0.65578 1.27E02 0.65881 3.39E03 0.65955 2.00E03 0.65894 1.63E03
40.76140 1.98E02 0.72986 1.23E02 0.74219 3.49E03 0.74260 3.14E03 0.74273 2.86E03
50.82439 1.74E02 0.78011 2.46E02 0.80334 1.12E02 0.81044 3.22E03 0.81010 2.91E03
60.86124 9.49E03 0.82107 1.81E02 0.83820 1.63E02 0.85491 2.91E03 0.85416 3.08E03
70.89040 1.10E02 0.84503 2.05E02 0.86284 1.44E02 0.88946 5.78E03 0.88897 6.59E03
80.90422 1.43E02 0.87157 1.95E02 0.88577 1.48E02 0.91127 7.20E03 0.91217 7.05E03
IM0211 20.63807 2.05E02 0.61108 1.44E03 0.61196 1.20E04 0.61195 1.21E04 0.61192 9.69E05
30.68296 2.40E02 0.65305 6.47E03 0.64959 2.57E03 0.64906 2.67E03 0.65080 2.92E03
40.75179 1.41E02 0.71886 1.09E02 0.72851 1.97E03 0.72866 1.71E03 0.72795 1.47E03
50.80827 1.15E02 0.77270 1.42E02 0.78747 3.54E03 0.79222 2.10E03 0.79151 2.26E03
60.84926 1.19E02 0.79988 1.93E02 0.82497 1.42E02 0.84035 2.52E03 0.83980 2.94E03
70.87440 1.16E02 0.83516 2.14E02 0.85458 1.13E02 0.87159 6.43E03 0.87199 7.11E03
80.89496 1.19E02 0.85431 1.58E02 0.87348 1.38E02 0.89661 6.98E03 0.89784 5.29E03
(continued)
Thresholding Algorithm Applied to Chest X-Ray Images … 383
Table 4 (continued)
Image nTh WOA FFO SCA DE PSO
FSIM STD FSIM STD FSIM STD FSIM STD FSIM STD
IM0224 20.64286 2.01E02 0.62103 5.53E03 0.62220 3.92E03 0.62104 3.45E03 0.62034 2.85E03
30.69762 1.75E02 0.66925 9.01E03 0.67466 4.91E03 0.67143 3.38E16 0.67143 3.38E16
40.76260 1.40E02 0.72517 1.26E02 0.73300 5.33E03 0.73866 3.94E03 0.73666 3.86E03
50.81261 1.56E02 0.76685 1.54E02 0.78649 1.23E02 0.79649 5.81E03 0.79609 5.03E03
60.83835 1.83E02 0.79454 2.09E02 0.81274 1.61E02 0.83223 7.50E03 0.83323 8.26E03
70.86783 1.59E02 0.82512 2.29E02 0.83702 1.42E02 0.85507 8.42E03 0.85939 8.23E03
80.88411 1.65E02 0.83915 1.92E02 0.85928 1.64E02 0.88050 1.08E02 0.88182 1.15E02
IM0225 20.60607 2.11E02 0.58598 2.75E03 0.58932 0.00E+00 0.58932 0.00E+00 0.58932 0.00E+00
30.65243 1.83E02 0.62846 6.10E03 0.62878 4.01E03 0.62868 4.56E03 0.62943 3.89E03
40.70933 1.37E02 0.69306 8.70E03 0.69532 5.16E03 0.69671 2.01E03 0.69731 2.32E03
50.77262 1.74E02 0.74352 1.89E02 0.76512 6.85E03 0.76642 5.95E03 0.76327 6.05E03
60.80743 1.65E02 0.78142 2.36E02 0.78830 1.95E02 0.80747 1.09E02 0.80995 1.07E02
70.83762 2.38E02 0.80409 2.26E02 0.82120 1.84E02 0.84106 1.35E02 0.83056 1.61E02
80.85590 1.89E02 0.82736 2.44E02 0.83471 2.19E02 0.85552 1.45E02 0.86376 1.54E02
384 J. Murillo-Olmos et al.
Table 5 Results after applying segmentation using the WOA metaheuristic algorithm for the max-
imization of the Otsu’s variance
2345
0 50 100 150 200 250 300
0
2000
4000
6000
8000
10000
12000
14000
0 50 100 150 200 250 300
0
2000
4000
6000
8000
10000
12000
14000
050100150200250300
0
2000
4000
6000
8000
10000
12000
14000
050100150200250300
0
2000
4000
6000
8000
10000
12000
14000
678
Person 1 bacteria 2
0 50 100 150 200 250 300
0
2000
4000
6000
8000
10000
12000
14000
0 50 100 150 200 250 300
0
2000
4000
6000
8000
10000
12000
14000
050100150200250300
0
2000
4000
6000
8000
10000
12000
14000
Tables 5and 6show some visual results of the segmented images using the seven
thresholds together with their corresponding histogram through the WOA algorithm
to maximize the Otsu’s objective function, where the different thresholds selected
by the algorithm are marked with a red vertical line. As it is possible to determine
in both tables, with a higher number of thresholds, the features and details of the
X-ray images can be better appreciated for the detection of pneumonia in patients in
asimplerandfasterway.
5.2 Results of Kapur’s Objective Function
The results obtained when applying the PSNR, SSIM and FSIM metrics to evaluate
the quality of the segmentation using Kapur maximization for all algorithms are
exposed in the three tables below. Similar to the results shown with Otsu’s objective
function, the best results are presented in bold.
In Table7,thePSNRvaluesobtainedforeachofthealgorithmsareshown.This
metric allows evaluating the affinity between the original image and the segmented
Thresholding Algorithm Applied to Chest X-Ray Images … 385
Table 6 Results after applying segmentation using the WOA metaheuristic algorithm for the max-
imization of the Otsu’s variance
2345
05010015020025030
0
0
0.5
1
1.5
2
2.5 105
05010015020025030
0
0
0.5
1
1.5
2
2.5 105
0 50 100 150 200 250 30
0
0
0.5
1
1.5
2
2.5 105
0 50 100 150 200 250 30
0
0
0.5
1
1.5
2
2.5 105
567
Person 3 bacteria 12
05010015020025030
0
0
0.5
1
1.5
2
2.5 105
05010015020025030
0
0
0.5
1
1.5
2
2.5 105
0 50 100 150 200 250 30
0
0
0.5
1
1.5
2
2.5 105
image, with a higher value representing better quality. The highest values are obtained
through the PSO algorithm, and in the other cases, the highest values are distributed
in the WOA, FFO, SCA and DE algorithms. Similarly, measuring the stability with
the standard deviation of the 35 runs, the PSO algorithm presents the smallest values
at most of the thresholds in the eight images.
Table8presents a comparison with the mean SSIM metric values obtained using
the Kapur’s method as an objective function. The PSO algorithm presents the best
results in five or six thresholds for the cases of pneumonia images. While for the
healthy images, the best values are distributed among the five compared algorithms.
Table9shows a trend similar to the average results of the PSNR metric revealed in
Table7. Therefore, the highest values are obtained using the PSO and DE algorithm,
and for the other cases, the optimal values are distributed between the WOA, FFO
and SCA algorithms. And in the same way, the algorithms that presented the best
stability in the 35 runs are the PSO and the DE.
386 J. Murillo-Olmos et al.
Table 7 Comparison of the Kapur results of the PSNR values obtained by WOA, FFO, SCA, DE and PSO
Image nTh WOA FFO SCA DE PSO
PSNR STD PSNR STD PSNR STD PSNR STD PSNR STD
Person 1
bacteria 2
211.8482 3.60E15 11.8345 2.37E01 11.8482 3.60E15 11.8482 3.60E15 11.8482 3.60E15
315.6694 1.26E14 15.4054 7.52E01 15.7041 5.67E02 15.6694 1.26E14 15.6694 1.26E14
418.5988 1.12E+00 17.7136 1.07E+00 18.8035 7.06E01 18.5751 1.18E+00 18.9462 5.61E01
519.0139 9.77E02 18.2991 1.58E+00 18.7118 1.35E+00 19.5135 9.76E01 21.2012 7.74E01
620.7474 9.31E01 20.2595 1.27E+00 19.4659 1.38E+00 21.2215 6.01E01 21.6529 1.19E01
722.1361 5.10E01 21.0263 1.58E+00 20.7620 1.31E+00 21.7349 5.54E03 22.8052 9.25E01
823.5189 4.74E01 21.3375 1.71E+00 21.1708 1.64E+00 23.6457 1.99E03 23.9651 5.20E01
Person 3
bacteria 12
211.4112 9.01E15 11.3355 3.54E01 11.4112 9.01E15 11.4112 9.01E15 11.4112 9.01E15
314.6246 3.60E15 14.1884 1.33E+00 14.6401 1.17E01 14.6246 3.60E15 14.6246 3.60E15
414.7258 1.08E14 16.1456 1.50E+00 14.8091 4.91E01 14.9961 7.75E01 15.3340 1.07E+00
517.1886 1.94E03 17.7411 1.77E+00 17.5086 1.01E+00 17.1882 0.00E+00 17.1882 0.00E+00
619.6195 2.81E02 19.5368 1.61E+00 19.7731 1.07E+00 19.6325 3.86E02 19.6232 2.56E02
721.8931 4.21E01 19.6359 1.31E+00 20.9804 9.92E01 22.1495 2.96E01 21.6622 1.04E01
823.7633 4.23E01 21.0581 1.77E+00 21.3894 1.01E+00 23.8466 6.37E02 23.7324 5.79E01
Person 7
bacteria 25
212.0278 0.00E+00 11.8649 3.90E01 12.0278 0.00E+00 12.0278 0.00E+00 12.0278 0.00E+00
312.0525 7.73E02 14.5483 1.67E+00 11.9330 3.54E01 12.5248 1.13E+00 14.4297 1.20E+00
415.2842 4.20E01 16.2841 2.21E+00 14.9431 8.40E01 15.1156 6.37E01 16.8132 1.93E+00
518.7517 1.67E01 17.8088 2.04E+00 17.5756 8.43E01 18.8292 1.44E14 19.1227 5.16E01
620.3725 3.98E01 19.4024 2.21E+00 19.4174 1.19E+00 20.0034 1.08E14 20.2427 7.31E01
722.4290 7.48E01 19.3266 2.35E+00 20.5432 1.54E+00 22.6281 1.80E14 22.6729 2.54E01
823.2230 9.47E01 21.0587 1.86E+00 20.8153 1.30E+00 23.7706 7.76E01 23.9228 6.51E01
(continued)
Thresholding Algorithm Applied to Chest X-Ray Images … 387
Table 7 (continued)
Image nTh WOA FFO SCA DE PSO
PSNR STD PSNR STD PSNR STD PSNR STD PSNR STD
Person 7
bacteria 28
25.5921 3.60E15 12.2034 2.39E01 5.5921 3.60E15 11.9122 1.55E+00 12.0980 1.12E+00
312.2512 1.38E01 13.9578 2.28E+00 12.1929 1.67E01 12.8678 1.46E+00 14.7280 1.54E+00
416.0199 4.06E01 16.0276 2.21E+00 15.3591 4.88E01 15.6680 1.80E15 16.8742 1.73E+00
519.1369 1.83E01 17.5419 2.03E+00 18.2427 6.48E01 19.2640 6.76E02 19.6196 8.51E01
621.2804 3.93E01 18.6022 2.14E+00 19.8878 7.64E01 21.4936 1.08E14 21.5333 3.08E01
722.2265 9.73E01 19.6603 1.75E+00 20.7727 1.30E+00 23.3189 2.55E02 23.0968 5.98E01
823.2773 9.10E01 20.7504 1.70E+00 20.9407 1.73E+00 23.1309 5.91E01 24.0791 4.65E01
IM0145 211.1639 7.21E15 11.1014 7.70E01 11.1639 7.21E15 11.1639 7.21E15 11.1639 7.21E15
314.4589 1.08E14 13.7873 1.27E+00 14.4900 1.91E01 14.4589 1.08E14 14.4589 1.08E14
414.6863 4.27E02 15.6310 1.57E+00 14.7664 4.99E01 14.7124 1.80E15 14.7124 1.80E15
516.9685 2.62E02 17.2745 2.00E+00 16.8310 8.93E01 16.9638 5.17E03 16.9623 7.21E15
618.4685 6.20E02 18.7011 2.01E+00 19.2282 1.11E+00 18.5555 8.53E03 18.5509 3.22E03
719.4969 7.82E02 19.4845 1.89E+00 20.6854 9.68E01 20.4026 3.28E01 19.4672 6.61E02
821.1276 3.22E01 21.0283 1.32E+00 21.3733 9.80E01 22.3260 6.45E01 21.0716 8.13E02
IM0211 212.0689 3.60E15 11.9852 1.95E01 12.0485 1.80E15 12.0485 1.80E15 12.0485 1.80E15
316.2654 0.00E+00 15.3712 6.95E01 16.2515 2.90E02 16.2683 7.21E15 16.2683 7.21E15
416.5498 7.21E15 16.9205 1.31E+00 16.3991 1.42E01 16.6166 3.50E01 16.6166 3.50E01
519.1006 2.30E02 17.8834 1.22E+00 18.4193 5.09E01 19.1081 1.41E02 19.1107 0.00E+00
620.2925 2.26E01 19.1997 1.14E+00 19.6172 6.57E01 20.1964 9.40E03 20.1980 0.00E+00
721.8327 1.49E02 20.3832 1.46E+00 20.8773 8.08E01 21.8697 1.80E14 21.8697 1.80E14
822.9210 7.17E01 21.4162 1.25E+00 21.2227 9.28E01 23.4605 1.39E02 23.4006 2.50E01
(continued)
388 J. Murillo-Olmos et al.
Table 7 (continued)
Image nTh WOA FFO SCA DE PSO
PSNR STD PSNR STD PSNR STD PSNR STD PSNR STD
IM0224 210.3273 3.60E15 10.7090 6.25E01 10.3245 3.60E15 10.3245 3.60E15 10.3245 3.60E15
315.6773 3.60E15 14.6500 8.36E01 15.6782 5.54E02 15.6727 1.80E15 15.6727 1.80E15
418.3297 3.60E15 16.9321 1.03E+00 18.1651 2.72E01 18.3949 1.44E14 18.3949 1.44E14
519.7359 1.83E03 18.5024 1.13E+00 19.6624 5.05E01 19.7248 0.00E+00 19.7248 0.00E+00
621.8317 7.21E15 19.6219 1.46E+00 20.7485 7.34E01 21.8827 1.80E14 21.7681 4.80E01
721.8991 4.45E02 20.2612 1.28E+00 21.3748 1.10E+00 21.7474 3.44E01 22.2432 4.74E01
823.2258 3.70E02 21.4318 1.52E+00 21.8446 1.57E+00 23.2004 1.60E01 23.2698 3.22E02
IM0225 211.5085 7.21E15 11.5143 2.02E01 11.5023 7.21E15 11.5023 7.21E15 11.5023 7.21E15
315.6921 5.40E15 15.0226 7.33E01 15.6925 7.30E02 15.6846 1.80E15 15.6846 1.80E15
418.4596 8.72E03 17.2198 9.20E01 18.3705 1.27E01 18.4530 0.00E+00 18.4530 0.00E+00
518.5975 9.66E02 17.8417 1.56E+00 18.3429 5.72E01 18.5855 7.29E02 18.9474 7.95E01
619.9769 8.64E01 19.2052 1.11E+00 19.4016 7.93E01 19.1200 3.20E03 19.9770 8.99E01
721.5098 1.11E02 20.2321 1.39E+00 20.5036 9.11E01 21.5426 1.08E14 21.5419 3.86E03
823.0300 8.00E03 21.1671 1.59E+00 21.4078 8.54E01 23.0296 3.60E15 23.0315 8.34E03
Thresholding Algorithm Applied to Chest X-Ray Images … 389
Table 8 Comparison of the Kapur results of the SSIM values obtained by WOA, FFO, SCA, DE and PSO
Image nTh WOA FFO SCA DE PSO
SSIM STD SSIM STD SSIM STD SSIM STD SSIM STD
Person 1
bacteria 2
20.5889 1.126E16 0.5803 1.9670E02 0.5889 1.126E16 0.5889 1.126E16 0.5889 1.126E16
30.6778 2.252E16 0.6668 2.4632E02 0.6776 1.875E03 0.6778 2.252E16 0.6778 2.252E16
40.7063 1.547E02 0.6997 3.1366E02 0.7082 1.667E02 0.7070 1.482E02 0.7112 5.709E03
50.7102 7.835E03 0.6972 3.5053E02 0.7178 1.684E02 0.7162 7.985E03 0.7299 6.341E03
60.7351 5.291E03 0.7298 2.5939E02 0.7353 1.805E02 0.7344 4.178E03 0.7459 9.237E03
70.7504 4.069E03 0.7500 2.9168E02 0.7515 2.183E02 0.7520 1.712E04 0.7586 7.053E03
80.7625 5.385E03 0.7414 2.8010E02 0.7646 2.003E02 0.7655 6.549E04 0.7670 2.934E03
Person 3
bacteria 12
20.4654 2.252E16 0.4669 3.2098E02 0.4654 2.252E16 0.4654 2.252E16 0.4654 2.252E16
30.5491 0.000E+00 0.5502 6.1788E02 0.5503 5.138E03 0.5491 0.000E+00 0.5491 0.000E+00
40.5549 1.126E16 0.6041 4.9215E02 0.5584 2.128E02 0.5599 1.436E02 0.5661 1.978E02
50.6052 2.231E04 0.6541 6.4805E02 0.6245 3.539E02 0.6052 1.126E16 0.6052 1.126E16
60.6555 6.781E04 0.6764 4.0966E02 0.6784 3.844E02 0.6559 1.289E03 0.6555 8.430E04
70.6998 1.324E02 0.7035 3.5554E02 0.7242 1.656E02 0.7052 7.912E03 0.6927 2.177E03
80.7401 8.425E03 0.7278 3.2443E02 0.7378 1.597E02 0.7426 9.477E04 0.7379 1.278E02
Person 7
bacteria 25
20.6302 5.630E16 0.6255 1.2133E02 0.6302 5.630E16 0.6302 5.630E16 0.6302 5.630E16
30.6292 3.780E03 0.6861 6.3711E02 0.6275 5.565E03 0.6465 3.694E02 0.7089 3.923E02
40.7193 1.340E02 0.7385 4.1976E02 0.7177 1.568E02 0.7289 5.844E03 0.7445 1.775E02
50.7590 1.180E02 0.7477 3.8302E02 0.7647 1.762E02 0.7630 3.378E16 0.7700 1.229E02
60.7843 5.273E03 0.7657 3.8356E02 0.7816 1.652E02 0.7910 3.378E16 0.7911 3.097E03
70.7977 5.796E03 0.7703 4.3060E02 0.7943 1.587E02 0.8001 5.630E16 0.8005 2.397E03
80.8044 1.046E02 0.7849 3.4776E02 0.8044 2.407E02 0.8118 5.501E03 0.8115 5.648E03
(continued)
390 J. Murillo-Olmos et al.
Table 8 (continued)
Image nTh WOA FFO SCA DE PSO
SSIM STD SSIM STD SSIM STD SSIM STD SSIM STD
Person 7
bacteria 28
20.0065 4.398E18 0.5278 1.6240E02 0.0065 4.398E18 0.4937 1.198E01 0.5080 8.597E02
30.5210 1.581E02 0.5917 1.0076E01 0.5245 2.122E02 0.5552 6.599E02 0.6415 7.494E02
40.6637 2.621E02 0.6233 9.7840E02 0.6819 1.808E02 0.6873 2.252E16 0.6971 1.399E02
50.7204 5.539E03 0.6663 6.7075E02 0.7201 2.077E02 0.7175 2.672E03 0.7218 8.893E03
60.7378 5.596E03 0.7104 4.8023E02 0.7381 2.464E02 0.7391 6.756E16 0.7409 3.589E03
70.7489 9.549E03 0.7217 3.3304E02 0.7550 1.864E02 0.7585 1.457E03 0.7560 5.681E03
80.7631 9.309E03 0.7412 3.2691E02 0.7626 2.915E02 0.7634 8.056E03 0.7677 5.801E03
IM0145 20.3585 1.126E16 0.3604 4.6412E02 0.3585 1.126E16 0.3585 1.126E16 0.3585 1.126E16
30.4545 0.000E+00 0.4361 4.8799E02 0.4559 7.949E03 0.4545 0.000E+00 0.4545 0.000E+00
40.4635 1.418E03 0.4970 5.7737E02 0.4675 2.051E02 0.4644 3.378E16 0.4644 3.378E16
50.5230 8.235E04 0.5543 6.0898E02 0.5240 2.708E02 0.5230 4.959E04 0.5228 3.378E16
60.5709 1.020E03 0.6034 5.8655E02 0.5962 2.904E02 0.5724 2.393E04 0.5722 9.029E05
70.5984 1.460E03 0.6285 4.5832E02 0.6467 2.482E02 0.6223 1.002E02 0.5978 1.149E03
80.6497 4.814E03 0.6753 2.3725E02 0.6744 1.894E02 0.6706 1.104E02 0.6489 1.403E03
IM0211 20.3876 1.689E16 0.4176 3.7168E02 0.4053 0.000E+00 0.4053 0.000E+00 0.4053 0.000E+00
30.5006 2.252E16 0.5030 5.0735E02 0.5235 5.609E03 0.5243 2.252E16 0.5243 2.252E16
40.5042 1.126E16 0.5477 3.8432E02 0.5283 1.485E02 0.5287 5.285E03 0.5287 5.285E03
50.5501 1.527E03 0.5755 3.4730E02 0.5840 1.403E02 0.5703 1.677E03 0.5698 3.378E16
60.5891 5.033E04 0.6012 2.4331E02 0.6073 1.052E02 0.6089 5.514E05 0.6089 0.000E+00
70.6086 3.766E04 0.6190 2.5590E02 0.6276 1.835E02 0.6262 0.000E+00 0.6262 0.000E+00
80.6263 1.151E02 0.6623 2.6656E02 0.6663 2.924E02 0.6476 1.125E04 0.6469 3.460E03
(continued)
Thresholding Algorithm Applied to Chest X-Ray Images … 391
Table 8 (continued)
Image nTh WOA FFO SCA DE PSO
SSIM STD SSIM STD SSIM STD SSIM STD SSIM STD
IM0224 20.5907 1.126E16 0.6076 3.1357E02 0.6210 2.252E16 0.6210 2.252E16 0.6210 2.252E16
30.6167 2.252E16 0.6447 3.1831E02 0.6490 4.332E03 0.6521 4.504E16 0.6521 4.504E16
40.6216 1.126E16 0.6561 2.8207E02 0.6526 6.501E03 0.6515 5.630E16 0.6515 5.630E16
50.6445 1.000E04 0.6683 1.8229E02 0.6736 6.049E03 0.6739 5.630E16 0.6739 5.630E16
60.6670 1.126E16 0.6814 2.6033E02 0.6862 1.191E02 0.6915 4.504E16 0.6905 4.096E03
70.6699 4.295E04 0.7036 2.3034E02 0.6969 1.632E02 0.6975 3.289E03 0.6962 3.408E03
80.6868 7.515E04 0.7137 2.2509E02 0.7132 1.501E02 0.7094 2.741E03 0.7064 5.625E04
IM0225 20.3413 2.815E16 0.3740 4.3267E02 0.3554 1.689E16 0.3554 1.689E16 0.3554 1.689E16
30.4904 4.504E16 0.5143 6.4015E02 0.5096 7.192E03 0.5079 1.126E16 0.5079 1.126E16
40.5612 9.846E04 0.5718 5.0850E02 0.5777 1.182E02 0.5793 1.126E16 0.5793 1.126E16
50.5648 1.357E02 0.5838 6.1699E02 0.5897 2.303E02 0.5802 1.035E02 0.5858 1.368E02
60.6076 9.829E03 0.6118 3.6607E02 0.6226 1.788E02 0.6347 2.158E04 0.6256 1.035E02
70.6269 6.637E04 0.6239 4.0711E02 0.6362 1.413E02 0.6449 3.378E16 0.6449 1.316E04
80.6384 1.957E04 0.6546 3.5947E02 0.6584 3.303E02 0.6544 3.378E16 0.6544 1.174E05
392 J. Murillo-Olmos et al.
Table 9 Comparison of the Kapur results of the FSIM values obtained by WOA, FFO, SCA, DE and PSO
Image nTh WOA FFO SCA DE PSO
FSIM STD FSIM STD FSIM STD FSIM STD FSIM STD
Person 1
bacteria 2
20.7180 3.378E16 0.7169 3.959E03 0.7180 3.378E16 0.7180 3.378E16 0.7180 3.378E16
30.7237 2.252E16 0.7272 9.647E03 0.7233 9.412E04 0.7237 2.252E16 0.7237 2.252E16
40.7582 1.389E02 0.7516 1.854E02 0.7615 8.260E03 0.7585 1.311E02 0.7626 6.667E03
50.7636 3.561E03 0.7669 2.635E02 0.7707 1.652E02 0.7719 1.670E02 0.8008 1.324E02
60.8001 9.940E03 0.7959 2.825E02 0.7890 2.221E02 0.8045 7.000E03 0.8162 7.238E03
70.8281 8.355E03 0.8176 2.633E02 0.8130 2.173E02 0.8211 2.421E04 0.8418 1.826E02
80.8555 9.790E03 0.8203 3.081E02 0.8232 2.380E02 0.8589 4.297E04 0.8647 9.621E03
Person 3
bacteria 12
20.6364 1.126E16 0.6352 3.065E03 0.6364 1.126E16 0.6364 1.126E16 0.6364 1.126E16
30.6897 3.378E16 0.6818 1.592E02 0.6901 1.659E03 0.6897 3.378E16 0.6897 3.378E16
40.7001 2.252E16 0.7132 2.359E02 0.6957 8.375E03 0.7042 1.165E02 0.7093 1.606E02
50.7477 4.641E05 0.7349 2.905E02 0.7415 1.253E02 0.7477 3.378E16 0.7477 3.378E16
60.7965 4.172E04 0.7726 3.132E02 0.7840 1.103E02 0.7964 4.004E04 0.7963 2.268E04
70.8330 3.219E03 0.7800 2.787E02 0.8027 1.931E02 0.8354 2.703E03 0.8315 7.726E04
80.8655 7.701E03 0.8120 2.915E02 0.8188 2.022E02 0.8674 8.684E04 0.8650 9.316E03
Person 7
bacteria 25
20.7193 5.630E16 0.7182 3.709E03 0.7193 5.630E16 0.7193 5.630E16 0.7193 5.630E16
30.7195 8.512E04 0.7535 1.926E02 0.7184 2.854E03 0.7258 1.485E02 0.7509 1.577E02
40.7628 7.120E03 0.7704 2.732E02 0.7574 1.159E02 0.7592 3.948E03 0.7697 1.199E02
50.7830 4.847E03 0.7800 2.402E02 0.7851 1.617E02 0.7822 3.378E16 0.7868 8.091E03
60.7989 3.664E03 0.7961 2.797E02 0.7960 1.434E02 0.8007 2.252E16 0.8020 6.092E03
70.8175 7.187E03 0.7981 2.812E02 0.8086 1.611E02 0.8217 7.882E16 0.8220 2.182E03
80.8275 1.095E02 0.8092 2.924E02 0.8168 1.856E02 0.8324 5.363E03 0.8333 5.958E03
(continued)
Thresholding Algorithm Applied to Chest X-Ray Images … 393
Table 9 (continued)
Image nTh WOA FFO SCA DE PSO
FSIM STD FSIM STD FSIM STD FSIM STD FSIM STD
Person 7
bacteria 28
20.7178 0.011E+00 0.7352 5.043E03 0.7187 0.012E+00 0.7360 0.000E+00 0.7360 0.000E+00
30.7350 4.931E03 0.7309 2.963E02 0.7342 2.994E03 0.7372 1.062E02 0.7456 6.027E03
40.7509 6.446E03 0.7565 3.264E02 0.7579 1.897E02 0.7493 0.000E+00 0.7589 1.381E02
50.7791 2.318E03 0.7674 3.347E02 0.7768 1.762E02 0.7785 9.368E04 0.7840 1.191E02
60.8091 6.017E03 0.7916 3.704E02 0.8068 2.245E02 0.8094 3.378E16 0.8115 6.493E03
70.8278 1.733E02 0.8008 3.391E02 0.8206 2.145E02 0.8479 7.316E04 0.8434 1.207E02
80.8486 1.863E02 0.8185 2.375E02 0.8398 2.976E02 0.8500 9.649E03 0.8621 8.907E03
IM0145 20.5965 4.504E16 0.5931 1.083E02 0.5965 4.504E16 0.5965 4.504E16 0.5965 4.504E16
30.6819 5.630E16 0.6647 2.258E02 0.6822 1.646E03 0.6819 5.630E16 0.6819 5.630E16
40.6960 3.408E04 0.7088 3.104E02 0.6969 5.886E03 0.6962 5.630E16 0.6962 5.630E16
50.7648 1.851E04 0.7469 3.343E02 0.7543 1.099E02 0.7647 6.987E05 0.7647 4.504E16
60.8061 3.713E04 0.7799 3.348E02 0.8005 1.645E02 0.8064 8.597E05 0.8064 1.039E05
70.8238 8.845E04 0.8034 3.927E02 0.8322 1.841E02 0.8405 7.580E03 0.8234 6.373E04
80.8601 4.519E03 0.8363 3.407E02 0.8509 2.056E02 0.8744 1.025E02 0.8593 1.147E03
IM0211 20.6134 1.126E16 0.6078 3.222E03 0.6112 0.000E+00 0.6112 0.000E+00 0.6112 0.000E+00
30.6689 1.126E16 0.6547 8.793E03 0.6651 1.182E03 0.6656 5.630E16 0.6656 5.630E16
40.6903 2.252E16 0.7027 2.273E02 0.6822 5.823E03 0.6872 7.114E03 0.6872 7.114E03
50.7580 7.334E04 0.7433 2.297E02 0.7451 6.832E03 0.7512 7.374E04 0.7513 1.126E16
60.8159 4.617E03 0.7774 2.654E02 0.7927 1.425E02 0.8070 2.890E04 0.8071 2.252E16
70.8570 3.138E04 0.8074 2.909E02 0.8285 1.820E02 0.8508 4.504E16 0.8508 4.504E16
80.8865 1.795E02 0.8326 3.136E02 0.8404 2.022E02 0.8916 2.253E04 0.8903 6.029E03
(continued)
394 J. Murillo-Olmos et al.
Table 9 (continued)
Image nTh WOA FFO SCA DE PSO
FSIM STD FSIM STD FSIM STD FSIM STD FSIM STD
IM0224 20.6387 2.252E16 0.6409 5.491E03 0.6404 2.252E16 0.6404 2.252E16 0.6404 2.252E16
30.6706 5.630E16 0.6675 1.687E02 0.6647 2.075E03 0.6660 2.252E16 0.6660 2.252E16
40.7432 3.378E16 0.7120 1.933E02 0.7322 5.551E03 0.7341 5.630E16 0.7341 5.630E16
50.7777 4.701E05 0.7523 2.308E02 0.7690 1.278E02 0.7665 5.630E16 0.7665 5.630E16
60.8378 3.378E16 0.7850 2.884E02 0.8042 1.651E02 0.8268 2.252E16 0.8239 1.214E02
70.8453 8.299E04 0.8012 2.710E02 0.8261 2.327E02 0.8316 7.860E03 0.8418 1.217E02
80.8823 9.779E04 0.8286 3.195E02 0.8413 2.904E02 0.8682 3.823E03 0.8703 8.394E04
IM0225 20.5894 1.126E16 0.5866 2.690E03 0.5894 0.000E+00 0.5894 0.000E+00 0.5894 0.000E+00
30.6424 0.000E+00 0.6345 7.715E03 0.6407 9.280E04 0.6409 3.378E16 0.6409 3.378E16
40.7112 1.046E04 0.6914 1.290E02 0.7066 1.709E03 0.7082 2.252E16 0.7082 2.252E16
50.7243 7.524E03 0.7249 2.472E02 0.7172 1.518E02 0.7211 5.183E03 0.7287 1.770E02
60.7755 7.734E03 0.7637 2.403E02 0.7679 1.428E02 0.7642 2.439E05 0.7730 1.028E02
70.8294 4.572E04 0.7864 3.034E02 0.8046 1.972E02 0.8261 4.504E16 0.8260 1.704E04
80.8770 3.051E04 0.8204 3.303E02 0.8279 2.262E02 0.8732 4.504E16 0.8731 1.862E04
Thresholding Algorithm Applied to Chest X-Ray Images … 395
Table 1 0 Results after applying segmentation using the WOA metaheuristic algorithm for the
maximization of the Kapur’s entropy
2345
05010015020025030
0
0
2000
4000
6000
8000
10000
12000
14000
0 50 100 150 200 250 30
0
0
2000
4000
6000
8000
10000
12000
14000
0 50 100 150 200 250 30
0
0
2000
4000
6000
8000
10000
12000
14000
05010015020025030
0
0
2000
4000
6000
8000
10000
12000
14000
567
Person 1 bacteria 2
05010015020025030
0
0
2000
4000
6000
8000
10000
12000
14000
0 50 100 150 200 250 30
0
0
2000
4000
6000
8000
10000
12000
14000
0 50 100 150 200 250 30
0
0
2000
4000
6000
8000
10000
12000
14000
It can be observed in Tables7,9and 8that even though it does not present the
best results based on the PSNR and the SSIM, it does present the values with a lower
standard deviation in most cases, therefore, we can infer that the proposed combina-
tion of WOA and Kapur as an objective function offers a more robust combination
concerning the algorithms against which it competes.
Tables 10 and 11 show the visual results when maximizing the Kapur’s entropy of
the same two images with which the results using the Otsu’s objective function were
previously compared. The images are shown in the same way together with their
corresponding histogram and their thresholds marked with a red vertical line. As can
be seen in both images, only in one of them by increasing the number of thresholds
can be detected the details and features of pneumonia through X-ray images.
Tables 13 and 12 show the p-values obtained through the Wilcoxon test. This
non-parametric statistical test is used to statistically validate the numerical results
to indicate the significant differences between the behavior of one algorithm and
another [83]. These results are calculated by comparing the PSNR and FSIM values
between the WOA algorithm and each of the algorithms used in the comparison.
Four different pairs are presented which are WOA versus FFO, WOA versus SCA,
396 J. Murillo-Olmos et al.
Table 1 1 Results after applying segmentation using the WOA metaheuristic algorithm for the
maximization of the Kapur’s entropy
2345
05010015020025030
0
0
0.5
1
1.5
2
2.5 105
05010015020025030
0
0
0.5
1
1.5
2
2.5 105
0 50 100 150 200 250 30
0
0
0.5
1
1.5
2
2.5 105
0 50 100 150 200 250 30
0
0
0.5
1
1.5
2
2.5 105
567
Person 3 bacteria 12
05010015020025030
0
0
0.5
1
1.5
2
2.5 105
05010015020025030
0
0
0.5
1
1.5
2
2.5 105
0 50 100 150 200 250 30
0
0
0.5
1
1.5
2
2.5 105
WOA versus DE and WOA versus PSO. When these p-values are less than 0.05,
it represents that they are statistically significant and present differences between
them. The values lower than the p-value criterion are highlighted to simplify the
interpretation of these results since they reject the null hypothesis, which would
mean that they present differences between one and the other.
Specifically, Table 12 presents the values obtained through the Wilcoxon test based
on PSNR and FSIM using Otsu variance maximization as an objective function. It is
possible to see that the amount of values that are marked in bold is more significant
compared to the amount of data. These differences occur especially in images of
healthy patients, whereas for images of patients with pneumonia, the differences
arise for five or more number of thresholds. It is essential to mention that the results
with a NaN value represent that there is no difference between the results of the
algorithms.
On the other hand, in Table13 the values are presented in the same way using
Wilcoxon’s non-parametric test but using the Kapur entropy maximization function
Thresholding Algorithm Applied to Chest X-Ray Images … 397
Table 1 2 Comparison of the p-values obtained through the Wilcoxon signed-rank test between the pairs of WOA versus FFO, WOA versus SCA, WOA versus
DE and WOA versus PSO, for PSNR and FSIM using Otsu’s objective function
Image nTh FFO SCA DE PSO
PSNR FSIM PSNR FSIM PSNR FSIM PSNR FSIM
Person 1
bacteria 2
25.308E04 9.730E01 3.564E12 4.398E02 3.564E12 4.398E02 3.564E12 4.398E02
35.698E12 1.783E01 1.030E05 2.173E01 1.002E05 4.993E02 2.697E06 1.970E01
46.733E11 3.113E03 1.508E04 4.322E02 9.744E05 5.888E01 6.436E04 4.850E01
58.431E11 2.322E11 1.651E04 6.990E03 3.244E01 9.596E01 3.646E01 6.893E01
66.679E12 2.187E12 3.105E08 2.123E05 4.014E01 4.619E03 6.402E01 1.261E02
76.679E12 9.788E11 1.560E06 5.224E06 4.272E01 7.434E04 4.078E01 1.889E04
81.318E10 3.414E10 9.094E08 2.865E05 1.806E04 1.093E05 8.419E06 3.530E08
Person 3
bacteria 12
23.629E12 1.185E05 2.258E12 1.114E05 2.849E12 1.365E05 2.849E12 1.231E05
33.901E07 1.441E04 1.749E09 2.921E08 2.228E11 2.556E09 1.134E11 7.405E10
43.010E05 3.067E04 2.358E04 2.148E03 9.667E04 8.919E04 1.521E02 2.146E03
53.252E09 1.461E11 6.466E06 8.068E10 4.696E04 5.482E08 3.968E04 1.472E06
65.992E09 1.322E09 1.489E07 6.616E07 6.646E01 7.397E01 1.298E01 2.133E01
72.152E09 3.729E09 2.359E04 1.315E04 1.386E02 4.956E01 5.501E03 3.135E01
89.085E11 5.371E11 6.131E06 1.920E05 5.924E02 4.207E02 1.270E01 6.893E02
Person 7
bacteria 25
2 1.705E01 5.415E03 4.281E02 1.157E01 5.570E02 9.539E02 1.559E03 6.028E01
31.011E10 1.228E01 3.915E02 2.998E01 1.132E01 2.256E01 2.193E01 4.708E01
46.399E09 2.051E01 2.517E04 7.783E01 1.576E02 4.102E01 9.378E03 5.924E01
53.045E13 3.952E01 1.974E08 3.772E02 1.817E01 7.226E01 4.467E01 3.582E01
65.453E13 9.978E05 4.240E10 4.676E01 5.468E01 3.470E03 9.775E01 5.923E02
75.020E13 7.578E06 3.945E10 1.030E07 5.394E01 2.691E04 2.217E01 1.146E02
85.020E13 1.579E11 9.893E12 8.834E07 2.404E03 2.687E03 1.651E04 5.667E05
(continued)
398 J. Murillo-Olmos et al.
Table 1 2 (continued)
Image nTh FFO SCA DE PSO
PSNR FSIM PSNR FSIM PSNR FSIM PSNR FSIM
Person 7
bacteria 28
21.516E03 6.997E01 2.924E07 3.078E01 2.924E07 3.078E01 2.924E07 3.078E01
34.142E09 5.924E01 2.520E04 3.856E02 9.718E05 2.161E02 9.456E05 4.178E02
41.204E10 5.764E02 4.349E07 2.820E01 4.511E02 2.578E04 1.056E02 2.612E05
59.085E11 2.893E03 1.212E05 9.955E01 1.146E01 5.241E02 1.392E01 3.665E01
61.240E12 4.275E08 7.837E09 3.599E03 7.468E03 3.766E06 3.014E02 9.077E05
79.788E11 1.644E10 7.543E08 4.854E08 1.747E01 7.577E06 5.070E02 6.572E04
83.016E12 3.046E13 1.322E09 2.306E09 8.526E01 2.008E09 1.575E01 1.394E06
IM0145 25.316E10 2.396E10 1.747E10 1.068E09 5.500E10 NaN 2.125E10 1.042E09
32.246E08 2.727E08 1.330E09 5.651E09 7.676E10 NaN 9.167E11 2.713E09
48.029E08 1.149E09 6.855E05 1.317E06 1.146E04 7.392E04 1.766E04 2.243E06
53.991E09 1.991E11 7.136E04 7.012E07 1.162E01 7.109E01 1.136E01 1.917E03
61.223E10 1.716E12 8.339E07 9.296E10 5.173E01 2.709E05 2.260E01 3.849E05
79.788E11 1.070E11 8.545E08 2.745E10 2.975E01 5.940E13 4.404E01 5.246E01
82.559E08 1.520E09 1.414E05 3.389E06 1.430E02 5.335E10 9.747E03 2.127E02
IM0211 28.555E13 2.910E13 5.712E13 2.084E13 7.061E13 2.005E13 5.897E13 1.811E13
31.489E07 1.788E07 6.445E07 8.938E10 4.550E07 1.471E10 2.361E06 1.452E08
41.746E06 3.312E13 3.348E03 3.045E13 1.109E02 3.042E13 1.221E02 3.038E13
51.030E07 3.046E13 1.846E03 3.913E13 3.413E01 8.924E13 2.175E01 5.913E13
61.055E10 8.939E13 2.068E03 1.770E10 3.244E01 6.233E05 7.312E01 3.849E05
71.168E08 3.676E11 3.599E03 1.093E08 6.233E02 3.706E01 1.712E01 4.815E01
82.953E10 2.187E12 6.572E04 2.248E08 4.324E04 5.100E01 6.050E04 2.217E01
(continued)
Thresholding Algorithm Applied to Chest X-Ray Images … 399
Table 1 2 (continued)
Image nTh FFO SCA DE PSO
PSNR FSIM PSNR FSIM PSNR FSIM PSNR FSIM
IM0224 24.467E01 1.804E06 6.227E01 3.395E05 7.386E01 2.083E06 4.582E01 4.258E07
33.706E01 1.578E11 4.550E02 1.497E10 1.000E+00 6.415E15 1.000E+00 6.415E15
41.417E09 1.345E12 1.846E06 1.053E12 8.565E02 9.541E12 2.118E02 2.475E12
53.902E07 1.860E12 2.577E01 4.893E09 2.483E01 1.746E06 3.135E01 1.317E06
63.389E06 9.788E11 3.772E02 5.239E07 2.316E03 3.669E02 6.531E03 7.609E02
72.064E06 4.616E11 2.893E03 4.896E10 2.175E01 3.345E04 9.128E03 1.887E02
82.145E07 8.457E12 2.789E03 2.570E07 6.233E02 1.609E01 5.924E02 3.889E01
IM0225 23.323E07 2.054E07 6.411E15 9.472E03 6.411E15 9.472E03 6.411E15 9.472E03
32.570E07 2.306E09 5.937E05 5.634E10 2.346E05 8.647E10 2.254E04 1.317E09
45.120E04 3.466E07 2.052E01 1.176E06 4.604E01 4.870E06 4.012E01 1.805E05
53.849E05 5.509E08 6.242E01 1.887E02 2.624E01 3.876E02 6.083E01 5.499E03
62.148E03 7.189E06 1.830E02 1.315E04 6.531E03 9.059E01 6.100E03 4.539E01
77.189E05 1.583E07 3.376E02 9.870E04 1.242E01 4.956E01 8.880E01 6.557E02
85.804E04 4.212E06 1.040E02 8.676E05 6.976E01 7.740E01 2.394E02 4.207E02
400 J. Murillo-Olmos et al.
Table 1 3 Comparison of the p-values obtained through the Wilcoxon signed-rank test between the pairs of WOA versus FFO, WOA versus SCA, WOA versus
DE and WOA versus PSO, for PSNR and FSIM using Kapur’s objective function
Image nTh DE FFO PSO SCA
PSNR FSIM PSNR FSIM PSNR FSIM PSNR FSIM
Person 1
bacteria 2
2 3.832E01 8.008E02 NaN NaN NaN NaN NaN NaN
3 1.956E01 3.069E02 7.927E05 4.525E04 NaN NaN NaN NaN
41.216E07 8.670E02 5.897E02 5.088E01 7.257E01 8.927E01 2.591E01 2.324E01
54.559E02 5.468E01 1.725E04 1.430E02 8.396E02 6.703E02 8.255E12 5.934E12
6 1.386E01 6.402E01 6.231E05 5.499E03 1.716E02 9.206E02 1.123E10 6.050E09
74.144E04 1.542E01 7.012E07 9.107E04 1.594E05 7.231E12 1.137E02 1.534E01
84.272E09 3.530E08 7.515E10 3.037E09 1.940E01 4.330E01 2.469E03 1.094E02
Person 3
bacteria 12
2 6.651E01 3.832E01 NaN NaN NaN NaN NaN NaN
3 3.893E01 3.893E01 8.298E01 4.730E02 NaN NaN NaN NaN
41.504E05 5.375E04 3.893E01 3.069E02 4.241E02 4.241E02 1.499E03 1.499E03
53.166E02 1.982E01 5.786E04 3.361E02 3.309E01 3.309E01 3.309E01 3.309E01
6 6.842E01 7.113E04 4.109E03 4.440E10 3.614E01 7.150E01 5.985E02 1.544E02
72.026E10 5.625E12 4.432E05 1.126E12 4.943E03 1.109E03 1.512E01 2.228E01
83.244E12 1.335E12 1.448E12 1.134E12 2.131E01 5.618E01 1.215E01 2.222E01
Person 7
bacteria 25
2 2.782E01 2.782E01 NaN NaN NaN NaN NaN NaN
34.622E08 1.999E10 2.433E01 2.433E01 3.732E01 3.732E01 8.649E11 8.649E11
41.452E03 7.511E03 6.345E02 6.332E03 5.406E03 7.757E02 1.940E02 5.085E03
52.611E02 1.747E01 3.977E09 9.220E02 1.094E03 2.146E04 2.334E05 4.362E01
64.809E02 9.059E01 2.257E04 2.052E01 1.444E11 4.676E03 1.436E06 2.282E02
76.730E11 1.157E03 7.835E09 1.252E03 6.651E01 1.194E08 9.000E01 4.340E08
82.145E07 1.112E03 1.770E10 1.261E02 4.643E02 1.635E01 2.119E03 5.594E02
(continued)
Thresholding Algorithm Applied to Chest X-Ray Images … 401
Table 1 3 (continued)
Image nTh DE FFO PSO SCA
PSNR FSIM PSNR FSIM PSNR FSIM PSNR FSIM
Person 7
bacteria 28
26.033E15 8.120E11 NaN 6.757E03 1.668E15 3.321E13 2.640E16 2.483E13
36.329E02 5.205E01 1.239E03 8.201E02 6.188E02 4.514E03 1.350E09 2.606E10
47.383E01 2.599E01 4.659E08 3.812E03 6.872E05 4.973E04 7.734E01 5.606E01
52.549E05 2.299E01 3.024E11 6.209E02 2.848E03 1.542E02 1.225E03 9.291E01
64.010E08 1.944E02 2.150E11 5.695E01 2.047E07 3.893E01 7.411E05 4.882E01
76.853E09 7.135E04 1.276E05 2.304E01 5.849E08 7.556E11 1.995E06 4.128E08
81.644E10 7.430E07 1.520E09 1.416E01 3.528E01 9.059E01 5.694E06 9.477E04
IM0145 23.891E01 3.891E01 NaN NaN NaN NaN NaN NaN
39.472E03 2.047E07 8.298E01 5.111E01 NaN NaN NaN NaN
41.860E04 1.279E02 4.502E02 1.279E02 7.392E04 7.392E04 7.392E04 7.392E04
53.457E02 1.029E02 8.112E02 2.491E06 7.109E01 7.109E01 1.602E01 1.602E01
62.182E02 4.666E05 1.476E05 1.466E02 7.960E10 2.709E05 2.085E09 4.222E05
72.878E01 1.082E03 9.933E10 1.833E02 3.303E13 5.940E13 2.493E02 1.148E02
86.000E01 1.409E04 1.671E01 4.777E02 2.534E11 5.335E10 3.279E01 3.164E01
IM0211 23.892E01 6.332E15 3.776E17 3.776E17 3.776E17 3.776E17 3.776E17 3.776E17
31.811E13 6.415E15 8.400E02 6.357E15 3.776E17 3.776E17 3.776E17 3.776E17
43.069E02 5.375E04 8.289E11 1.811E13 6.095E17 2.825E15 6.095E17 2.825E15
51.375E07 4.827E02 5.698E12 3.261E13 1.643E10 2.128E14 4.518E15 4.518E15
61.144E05 9.863E10 1.464E06 1.141E11 2.308E03 8.947E15 2.454E03 6.282E15
72.110E04 2.921E12 7.425E10 4.339E11 1.895E15 1.895E15 1.895E15 1.895E15
81.774E07 1.965E11 5.202E10 1.883E10 8.273E10 1.027E02 3.827E05 9.362E03
(continued)
402 J. Murillo-Olmos et al.
Table 1 3 (continued)
Image nTh DE FFO PSO SCA
PSNR FSIM PSNR FSIM PSNR FSIM PSNR FSIM
IM0224 25.363E04 2.037E07 3.776E17 3.776E17 3.776E17 3.776E17 3.776E17 3.776E17
31.346E09 6.691E01 8.392E02 6.250E15 3.776E17 3.776E17 3.776E17 3.776E17
48.289E11 1.811E13 3.069E02 6.415E15 3.776E17 3.776E17 3.776E17 3.776E17
53.675E10 5.369E07 4.062E01 1.167E03 6.593E16 6.593E16 6.593E16 6.593E16
64.248E12 6.415E15 4.248E12 6.415E15 3.776E17 3.776E17 1.501E13 9.470E17
71.198E09 8.803E11 5.609E02 3.036E04 1.019E03 5.504E12 1.968E10 2.397E04
88.338E06 1.424E12 7.918E08 8.904E11 3.526E01 2.970E13 2.032E06 1.336E13
IM0225 23.067E02 4.223E12 3.776E17 3.776E17 3.776E17 3.776E17 3.776E17 3.776E17
32.047E07 2.047E07 1.000E+00 6.343E15 3.776E17 3.776E17 3.776E17 3.776E17
42.251E14 1.707E14 2.574E04 1.707E14 5.777E12 1.417E16 5.777E12 1.417E16
59.633E03 7.468E01 3.375E07 2.712E08 1.455E04 2.538E13 8.278E13 1.285E06
63.781E03 8.384E03 3.647E03 1.081E03 3.499E02 1.453E14 1.366E02 4.723E04
73.686E05 5.928E10 7.509E09 3.772E09 1.629E15 1.629E15 4.747E15 2.393E15
84.725E13 1.266E14 3.323E13 1.389E14 1.501E13 9.470E17 3.945E06 8.811E16
Thresholding Algorithm Applied to Chest X-Ray Images 403
as an objective function. In the same way as the previous table, the results behave
similarly and the most remarkable difference between algorithms occurs for the
four images of healthy patients. However, signi cant differences in the images of
pneumonia patients occur with a threshold number of four or more.
6Conclusions
The WOA presented as a metaheuristic algorithm to nd the thresholds to ef ciently
segment the images is a good and viable option that offers results with good perfor-
mance for the proposed application based on the metrics used to measure the quality
of the segmentation. According to the results obtained, when using the Otsuís objec-
tive function, it presents better results compared to the Kapurís objective function.
The WOA algorithm shows good performance when using Otsuís maximization
of variance in the eight test images for the three metrics and in the results to verify
robustness through the standard deviation of the 35 runs. Although the results of the
maximization of the Kapur entropy present greater robustness and stability when
comparing the standard deviation, it did not offer the best values in the evaluated
metrics. In addition to the visual results, when using the Kapurís objective function, it
does not present enough details and features in the images of patients with pneumonia
to be able to detect lung lesions more easily and quickly.
In the case of the application presented in this work, it will be used for future
work given the results obtained as a step in the processing of the images for the
CADx tools used to correctly detect the information in the chest X-ray images, and
from this maximize accuracy and consistency in diagnoses and reduce radiologistsí
reading times.
References
1. M. Abd Elaziz, A.A. Ewees, D. Oliva, Hyper-heuristic method for multilevel thresholding
image segmentation. Expert Syst. Appl. 146,113201(2020)
2. M. Abd Elaziz, A.A. Ewees, D. Yousri, H.S.N. Alwerfali, Q.A. Awad, S. Lu, M.A. Al-Qaness,
An improved marine predators algorithm with fuzzy entropy for multi-level thresholding: real
world example of covid-19 CT image segmentation. IEEE Access 8,125306125330(2020)
3. M. Abd Elaziz, U. Sarkar, S. Nag, S. Hinojosa, D. Oliva, Improving image thresholding by the
type II fuzzy entropy and a hybrid optimization algorithm. Soft Comput. 121 (2020)
4. B. Akay, A study on particle swarm optimization and arti cial bee colony algorithms for
multilevel thresholding. Appl. Soft Comput. 13(6), 30663091 (2013)
5. H. Andrea, I. Aranguren, D. Oliva, M. Abd Elaziz, E. Cuevas, Ef cient image segmentation
through 2D histograms and an improved owl search algorithm. Int. J. Mach. Learn. Cybern.
120 (2020)
6. I. Aranguren, A. Valdivia, B. Morales-Castaeda, D. Oliva, M. Abd Elaziz, M. Perez-Cisneros,
Improving the segmentation of magnetic resonance brain images using the lshade optimization
algorithm. Biomed. Signal Process. Control 64,102259(2021)
404 J. Murillo-Olmos et al.
7. I. Aranguren, A. Valdivia, M.A. Pérez, Segmentation of magnetic resonance brain images
through the self-adaptive differential evolution algorithm and the minimum cross-entropy cri-
terion, in Applications of Hybrid Metaheuristic Algorithms for Image Processing (Springer,
2020), pp. 311–350
8. E. Atashpaz-Gargari, C. Lucas, Imperialist competitive algorithm: an algorithm for optimiza-
tion inspired by imperialistic competition, in 2007 IEEE Congress on Evolutionary Computa-
tion (IEEE, 2007), pp. 4661–4667
9. I. Bankman, Handbook of Medical Image Processing and Analysis (Elsevier, 2008)
10. M. Cadik, P. Slavik, Evaluation of two principal approaches to objective image quality assess-
ment, in Proceedings. Eighth International Conference on Information Visualisation, 2004. IV
2004 (IEEE, 2004), pp. 513–518
11. Á. Chavarin, J. Gálvez, O. Avalos, Image thresholding with metaheuristic algorithms for
cerebral injuries, in Applications of Hybrid Metaheuristic Algorithms for Image Processing
(Springer, 2020), pp. 457–471
12. E. Cuevas, M. Cienfuegos, D. ZaldíVar, M. Pérez-Cisneros, A swarm optimization algorithm
inspired in the behavior of the social-spider. Expert Syst. Appl. 40(16), 6374–6384 (2013)
13. E. Cuevas, V. Osuna, D. Oliva et al., Evolutionary Computation Techniques: A Comparative
Perspective,vol.686(Springer,Berlin,Germany,2017)
14. S. Das, A. Biswas, S. Dasgupta, A. Abraham, Bacterial Foraging Optimization Algorithm:
Theoretical Foundations, Analysis, and Applications (2009), pp. 23–55
15. G. Dhiman, A. Kaur, Optimizing the design of airfoil and optical buffer problems using spotted
hyena optimizer. Designs 2(3), 28 (2018)
16. M.A. Díaz-Cortés, N. Ortega-Sánchez, S. Hinojosa, D. Oliva, E. Cuevas, R. Rojas, A. Demin,
A multi-level thresholding method for breast thermograms analysis using dragonfly algorithm.
Infrared Phys. Technol. 93,346361(2018)
17. M. Dorigo, G. Di Caro, Ant colony optimization: a new meta-heuristic, in Proceedings of the
1999 Congress on Evolutionary Computation—-CEC99 (Cat. No. 99TH8406), vol. 2 (IEEE,
1999), pp. 1470–1477
18. R. Eberhart, J. Kennedy,A new optimizer using particle swarm theory, in MHS’95. Proceedings
of the Sixth International Symposium on Micro Machine and Human Science (IEEE, 1995),
pp. 39–43
19. O. Elbadawy, M.R. El-Sakka, M.S. Kamel, An information theoretic image-quality measure, in
Conference Proceedings.IEEE Canadian Conference on Electrical and Computer Engineering
(Cat. No. 98TH8341), vol. 1 (IEEE, 1998), pp. 169–172
20. A.A. Ewees, M. Abd Elaziz, M.A. Al-Qaness, H.A. Khalil, S. Kim, Improved artificial bee
colony using sine-cosine algorithm for multi-level thresholding image segmentation. IEEE
Access 8,2630426315(2020)
21. F. Fausto, E. Cuevas, A. Valdivia, A. González, A global optimization algorithm inspired in
the behavior of selfish herds. Biosystems 160,3955(2017)
22. R.A. Formato, Central force optimization. Prog. Electromagn. Res. 77,425491(2007)
23. Z.W. Geem, J.H. Kim, G.V. Loganathan, A new heuristic optimization algorithm: harmony
search. Simulation 76(2), 60–68 (2001)
24. P. Ghamisi, M.S. Couceiro, J.A. Benediktsson, N.M. Ferreira, An efficient method for segmen-
tation of images based on fractional calculus and natural selection. Expert Syst. Appl. 39(16),
12407–12417 (2012)
25. B. Halalli, A. Makandar, Computer aided diagnosis—medical image analysis techniques.
Breast Imaging (2017)
26. K. Hammouche, M. Diaf, P. Siarry, A comparative study of various meta-heuristic techniques
applied to the multilevel thresholding problem. Eng. Appl. Artif. Intell. 23(5), 676–688 (2010)
27. A. Hatamlou, Black hole: a new heuristic optimization approach for data clustering. Inf. Sci.
222,175184(2013)
28. L. He, S. Huang, Modified firefly algorithm based multilevel thresholding for color image
segmentation. Neurocomputing 240,152174(2017)
Thresholding Algorithm Applied to Chest X-Ray Images … 405
29. A.A. Heidari, S. Mirjalili, H. Faris, I. Aljarah, M. Mafarja, H. Chen, Harris hawks optimization:
algorithm and applications. Future Gener. Comput. Syst. 97,849872(2019)
30. G.R. Hernández, M.A. Navarro, N. Ortega-Sánchez, D. Oliva, M. Pérez-Cisneros, Failure
detection on electronic systems using thermal images and metaheuristic algorithms. IEEE Lat.
Am. Trans. 18(08), 1371–1380 (2020)
31. S. Hinojosa, K.G. Dhal, M.A. Elaziz, D. Oliva, E. Cuevas, Entropy-based imagery segmentation
for breast histology using the stochastic fractal search. Neurocomputing 321,201215(2018)
32. J.H. Holland, Genetic algorithms. Sci. Am. 267(1), 66–73 (1992)
33. M.H. Horng, Multilevel thresholding selection based on the artificial bee colony algorithm for
image segmentation. Expert Syst. Appl. 38(11), 13785–13791 (2011)
34. E.H. Houssein, B.E.d. Helmy, D. Oliva, A.A. Elngar, H. Shaban, A novel black widow opti-
mization algorithm for multilevel thresholding image segmentation. Expert Syst. Appl. 114159
(2020)
35. E. Ibrahim, A. Ewees, M. Eisa, Proposed method for segmenting skin lesions images, in
Emerging Trends in Electrical, Communications, and Information Technologies (Springer,
2020), pp. 13–23
36. J.N. Kapur, P.K. Sahoo, A.K. Wong, A new method for gray-level picture thresholding using
the entropy of the histogram. Comput. Vis. Graph. Image Process. 29(3), 273–285 (1985)
37. D. Karaboga, B. Basturk, A powerful and efficient algorithm for numerical function optimiza-
tion: artificial bee colony (ABC) algorithm. J. Global Optim. 39(3), 459–471 (2007)
38. A. Kaveh, M. Khayatazad, A new meta-heuristic method: ray optimization. Comput. Struct.
112,283294(2012)
39. D. Kermany, K. Zhang, M. Goldbaum, Labeled optical coherence tomography (OCT) and
chest X-ray images for classification. Mendeley Data 2(2018). https://doi.org/10.17632/
RSCBJBR9SJ.2
40. J.S. Kim, M.S. Cho, B.T. Choi, Study on the methods of digital image quality evaluation, in
2004 IEEE Region 10 Conference TENCON 2004 (IEEE, 2004), pp. 359–362
41. M. Kiran, I. Ahmed, N. Khan, A.G. Reddy, Chest X-ray segmentation using Sauvola threshold-
ing and Gaussian derivatives responses. J. Ambient Intell. Hum. Comput. 10(10), 4179–4195
(2019)
42. J.R. Koza, J.R. Koza, Genetic Programming: On the Programming of Computers by Means of
Natural Selection,vol.1(MITPress,Cambridge,MA,1992)
43. R. Kreis, Issues of spectral quality in clinical 1H-magnetic resonance spectroscopy and a gallery
of artifacts. NMR Biomed. 17,361381(2004)
44. H.H. Kyu, C.E. Stein, C.B. Pinto, I. Rakovac, M.W. Weber, T.D. Purnat, J.E. Amuah, S.D.
Glenn, K. Cercy, S. Biryukov et al., Causes of death among children aged 5–14 years in the
who European region: a systematic analysis for the global burden of disease study 2016. Lancet
Child Adolesc. Health 2(5), 321–337 (2018)
45. C. Liu, W.Liu, W. Xing, A weighted edge-based level set method based on multi-local statistical
information for noisy image segmentation. J. Vis. Commun. Image Represent. 59,89107
(2019)
46. O. Maciel, E. Cuevas, M.A. Navarro, D. Zaldívar, S. Hinojosa, Side-blotched lizard algorithm:
apolymorphicpopulationapproach.Appl.SoftComput.88,106039(2020)
47. C.S. Mani, Acute pneumonia and its complications. Principles and Practice of Pediatric Infec-
tious Diseases (2018), p. 238
48. A. Medda, V. DeBrunner, Color image quality indexbased on the UIQI, in 2006 IEEE Southwest
Symposium on Image Analysis and Interpretation (IEEE, 2006), pp. 213–217
49. Z. Michalewicz, Evolution strategies and other methods, in Genetic Algorithms + Data Struc-
tures = Evolution Programs (Springer, Berlin, Heidelberg, 1994), pp. 167–184
50. S. Mirjalili, SCA: a sine cosine algorithm for solving optimization problems. Knowl.-Based
Syst. 96,120133(2016)
51. S. Mirjalili, A. Lewis, The whale optimization algorithm. Adv. Eng. Softw. 95,5167(2016)
52. S. Mirjalili, S.M. Mirjalili, A. Lewis, Grey wolf optimizer. Adv. Eng. Softw. 69,4661(2014)
406 J. Murillo-Olmos et al.
53. A. Mittal, D. Kumar, M. Mittal, T. Saba, I. Abunadi, A. Rehman, S. Roy, Detecting pneumonia
using convolutions and dynamic capsule routing for chest X-ray images. Sensors 20(4), 1068
(2020)
54. A.W. Mohamed, A.A. Hadi, A.K. Mohamed, Gaining-sharing knowledge based algorithm for
solving optimization problems: a novel nature-inspired algorithm. Int. J. Mach. Learn. Cybern.
11,15011529(2019)
55. H.S. Naji Alwerfali, M.A. Al-qaness, M. Abd Elaziz, A.A. Ewees, D. Oliva, S. Lu, Multi-level
image thresholding based on modified spherical search optimizer and fuzzy entropy. Entropy
22(3), 328 (2020)
56. M. Niederman, J. Bass, G.D. Campbell, A. Fein, R. Grossman, L. Mandell, T. Marrie, A. Torres,
V. Yu et al., Guidelines for the initial management of adults with community-acquired pneu-
monia: diagnosis, assessment of severity, and initial antimicrobial therapy. Am. Rev. Respir.
Dis. 148(5), 1418–1426 (1993)
57. D. Oliva, M. Abd Elaziz, S. Hinojosa, Metaheuristic Algorithms for Image Segmentation:
Theory and Applications,vol.825(Springer,Cham,2019)
58. D. Oliva, E. Cuevas, G. Pajares, D. Zaldivar, V. Osuna, A multilevel thresholding algorithm
using electromagnetism optimization. Neurocomputing 139,357381(2014)
59. D. Oliva, M.A. Elaziz, S. Hinojosa, Image segmentation using metaheuristics, in Metaheuristic
Algorithms for Image Segmentation: Theory and Applications (Springer, Cham, 2019), pp. 47–
58
60. D. Oliva, S. Hinojosa, M. Abd Elaziz, N. Ortega-Sánchez, Context based image segmentation
using antlion optimization and sine cosine algorithm. Multimed. Tools Appl. 77(19), 25761–
25797 (2018)
61. D. Oliva, S. Hinojosa, E. Cuevas, G. Pajares, O. Avalos, J. Gálvez, Cross entropy based thresh-
olding for magnetic resonance brain images using crow search algorithm. Expert Syst. Appl.
79,164180(2017)
62. D. Oliva, M.S. Martins, V. Osuna-Enciso, E.F. de Morais, Combining information from thresh-
olding techniques through an evolutionary Bayesian network algorithm. Appl. Soft Comput.
90,106147(2020)
63. D. Oliva, S. Nag, M. Abd Elaziz, U. Sarkar, S. Hinojosa, Multilevel thresholding by fuzzy type
II sets using evolutionary algorithms. Swarm Evol. Comput. 51,100591(2019)
64. World Health Organization, World Health S t a t i s t i c s 2 0 1 6 : M o n i t o r i n g H e a l t h f o r t h e S D Gs
Sustainable Development Goals (World Health Organization, 2016)
65. N. Otsu, A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man
Cybern. 9(1), 62–66 (1979)
66. N.R. Pal, S.K. Pal, A review on image segmentation techniques. Pattern Recogn. 26(9), 1277–
1294 (1993)
67. S.K. Pal, D. Bhandari, M.K. Kundu, Genetic algorithms for optimal image enhancement.
Pattern Recogn. Lett. 15(3), 261–271 (1994)
68. D. Primitivo, R. Alma, C. Erik, V. Arturo, C. Edgar, P.C. Marco, Z. Daniel, A hybrid method
for blood vessel segmentation in images. Biocybern. Biomed. Eng. 39(3), 814–824 (2019)
69. T. Rahmat, A. Ismail, S. Aliman, Chest X-rays image classification in medical image analysis.
Appl. Med. Inform. 40(3–4), 63–73 (2018)
70. R.V. Rao, V.J. Savsani, D. Vakharia, Teaching-learning-based optimization: a novel method for
constrained mechanical design optimization problems. Comput.-Aided Des. 43(3), 303–315
(2011)
71. E. Rashedi, H. Nezamabadi-Pour, S. Saryazdi, GSA: a gravitational search algorithm. Inf. Sci.
179(13), 2232–2248 (2009)
72. A.R. Reddy, G.S.R. Teja, D.S. Tej, P.V. Babu, Prediction of Pneumonia Using Deep Learning
(2019)
73. E. Rodríguez-Esparza, L.A. Zanella-Calzada, D. Oliva, A.A. Heidari, D. Zaldivar, M. Pérez-
Cisneros, L.K. Foong, An efficient Harris hawks-inspired image segmentation method. Expert
Syst. Appl. 155,113428(2020)
Thresholding Algorithm Applied to Chest X-Ray Images … 407
74. E. Rodríguez-Esparza, L.A. Zanella-Calzada, D. Oliva, S. Hinojosa, M. Pérez-Cisneros, Multi-
level segmentation for automatic detection of malignant masses in digital mammograms based
on threshold comparison, in 2019 IEEE Latin American Conference on Computational Intel-
ligence (LA-CCI) (IEEE, 2019), pp. 1–6
75. E. Rodríguez-Esparza, L.A. Zanella-Calzada, D. Oliva, M. Pérez-Cisneros, Automatic detec-
tion and classification of abnormal tissues on digital mammograms based on a bag-of-visual-
words approach, in Medical Imaging 2020: Computer-Aided Diagnosis,vol.11314(Interna-
tional Society for Optics and Photonics, 2020), p. 1131424
76. E. Rodríguez-Esparza, L.A. Zanella-Calzada, D. Zaldivar, C.E. Galván-Tejada, Automatic
detection of malignant masses in digital mammograms based on a MCET-HHO approach,
in Applications of Hybrid Metaheuristic Algorithms for Image Processing (Springer, Cham,
2020), pp. 351–374
77. S. Saremi, S. Mirjalili, A. Lewis, Grasshopper optimisation algorithm: theory and application.
Adv. Eng. Softw. 105,3047(2017)
78. P. Sathya, R. Kayalvizhi, Optimal multilevel thresholding using bacterial foraging algorithm.
Expert Syst. Appl. 38(12), 15549–15564 (2011)
79. E. Seeram, E. Seeram, Digital image processing concepts, in Digital Radiography (Springer,
Singapore, 2019), pp. 21–39. https://doi.org/10.1007/978-981-13-3244- 9_2
80. A. Sharma, D. Raju, S. Ranjan, Detection of pneumonia clouds in chest X-ray using image
processing approach, in 2017 Nirma University International Conference on Engineering
(NUiCONE) (IEEE, 2017), pp. 1–4
81. R. Storn, K. Price, Differential evolution—a simple and efficient heuristic for global optimiza-
tion over continuous spaces. J. Glob. Optim. 11(4), 341–359 (1997)
82. Z. Wang, A.C. Bovik, H.R. Sheikh, E.P. Simoncelli, Image quality assessment: from error
visibility to structural similarity. IEEE Trans. Image Process. 13(4), 600–612 (2004)
83. F. Wilcoxon, Individual comparisons by ranking methods, in Breakthroughs in Statistics
(Springer, Cham, 1992), pp. 196–202
84. D.H. Wolpert, W.G. Macready et al., No free lunch theorems for optimization. IEEE Trans.
Evol. Comput. 1(1), 67–82 (1997)
85. X.S. Yang, Firefly algorithm, levy flights and global optimization, in Researchand Development
in Intelligent Systems,vol.XXVI(Springer,London,2010),pp.209218
86. D. Zaldivar, B. Morales, A. Rodriguez, A. Valdivia-G, E. Cuevas, M. Perez-Cisneros, A novel
bio-inspired optimization model based on yellow saddle goatfish behavior. Biosystems 174,
1–21 (2018)
87. L. Zhang, L. Zhang, X. Mou, D. Zhang, FSIM: a feature similarity index for image quality
assessment. IEEE Trans. Image Process. 20(8), 2378–2386 (2011)
88. D. Zhao, L. Liu, F. Yu, A.A. Heidari, M. Wang, D. Oliva, K. Muhammad, H. Chen, Ant
colony optimization with horizontal and vertical crossover search: fundamental visions for
multi-threshold image segmentation. Expert Syst. Appl. 167,114122(2020)
... Su et al. 7 have also used Kapur's entropy together with the multiverse optimization for analysis of COVID-19 X-ray images. Murillo-Olmos et al. 8 also used Kapur's entropy for multilevel thresholding of COVID-19 X-ray images. The reason of the choice of using Kapur's entropy may be due to the simplicity in implementation. ...
... The Kapur's entropy function is used for multiclass segmentation in References [7][8][9] This method is totally dependent on the spatial domain distribution of the gray levels. The scheme uses the histogram. ...
Article
Full-text available
Coronavirus outbreaks during the last couple of years created a huge health disaster for human lives. Diagnosis of COVID‐19 infections is, thus, very important for the medical practitioners. For a quick detection, analysis of the COVID‐19 chest X‐ray images is inevitable. Therefore, there is a strong need for the development of a multiclass segmentation method for the purpose. Earlier techniques used for multiclass segmentation of images are mostly based on entropy measurements. Nonetheless, entropy methods are not efficient when the gray‐level distribution of the image is nonuniform. To address this problem, a novel adaptive class weight adjustment‐based multiclass segmentation error minimization technique for COVID‐19 chest X‐ray image analysis is investigated. Theoretical investigations on the first‐hand objective functions are presented. The results on both the biclass and multiclass segmentation of medical images are enlightened. The key to our success is the adjustment of the pixel counts of different classes adaptively to reduce the error of segmentation. The COVID‐19 chest X‐ray images are taken from the Kaggle Radiography database for the experiments. The proposed method is compared with the state‐of‐the‐art methods based on Tsallis, Kapur's, Masi, and Rényi entropy. The well‐known segmentation metrics are used for an empirical analysis. Our method achieved a performance increase of around 8.03% in the case of PSNR values, 3.01% for FSIM, and 4.16% for SSIM. The proposed technique would be useful for extracting dots from micro‐array images of DNA sequences and multiclass segmentation of the biomedical images such as MRI, CT, and PET.
Article
Full-text available
Coronavirus disease 2019 (COVID-19) has caused a massive disaster in every human life field, including health, education, economics, and tourism, over the last year and a half. Rapid interpretation of COVID-19 patients' X-ray images is critical for diagnosis and, consequently, treatment of the disease. The major goal of this research is to develop a computational tool that can quickly and accurately determine the severity of an illness using COVID-19 chest X-ray pictures and improve the degree of diagnosis using a modified whale optimization method (WOA). To improve the WOA, a random initialization of the population is integrated during the global search phase. The parameters, coefficient vector (A) and constant value (b), are changed so that the algorithm can explore in the early stages while also exploiting the search space extensively in the latter stages. The efficiency of the proposed modified whale optimization algorithm with population reduction (mWOAPR) method is assessed by using it to segment six benchmark images using multilevel thresholding approach and Kapur's entropy-based fitness function calculated from the 2D histogram of greyscale images. By gathering three distinct COVID-19 chest X-ray images, the projected algorithm (mWOAPR) is utilized to segment the COVID-19 chest X-ray images. In both benchmark pictures and COVID-19 chest X-ray images, comparisons of the evaluated findings with basic and modified forms of metaheuristic algorithms supported the suggested mWOAPR's improved performance.
Article
Full-text available
For any help and guidance regarding this research, readers, and industry activists can refer to the background info at http://aliasgharheidari. com. The ant colony optimization (ACO) is the most exceptionally fundamental swarm-based solver for realizing discrete problems. In order to make it also suitable for solving continuous problems, a variant of ACO (ACOR) has been proposed already. The deep-rooted ACO always stands out in the eyes of well-educated researchers as one of the best-designed metaheuristic ways for realizing the solutions to real-world problems. However, ACOR has some stochastic components that need to be further improved in terms of solution quality and convergence speed. Therefore, to effectively improve these aspects, this in-depth research introduced horizontal crossover search (HCS) and vertical crossover search (VCS) into the ACOR and improved the selection mechanism of the original ACOR to form an improved algorithm (CCACO) for the first time. In CCACO, the HCS is mainly intended to increase the convergence rate. Meanwhile, the VCS and the developed selection mechanism are mainly aimed at effectively improving the ability to avoid dwindling into local optimal (LO) and the convergence accuracy. To reach next-level strong results for image segmentation and better illustrate its effectiveness, we conducted a series of comparative experiments with 30 benchmark functions from IEEE CEC 2014. In the experiment, we compared the developed CCACO with well-known conventional algorithms and advanced ones. All experimental results also show that its convergence speed and solution quality are superior to other algorithms, and its ability to avoid dropping into local optimum (LO) is more reliable than that of its peers. Furthermore, to further illustrate its enhanced performance, we applied it to image segmentation based on the multi-threshold image segmentation (MTIS) method with a non-local means 2D histogram and Kapur's entropy. In the experiment, it was compared with existing competitive algorithms at low and high threshold levels. The experimental results show that the proposed CCACO achieves excellent segmentation results at both low and high threshold levels.
Article
Full-text available
Optimization is used in different fields of engineering to solve complex problems. In image processing, multilevel thresholding requires to find the optimal configuration of thresholds to obtain accurate segmented images. In this case, the use of two-dimensional histograms is helpful because they permit us to combine information from the image preserving different features. This paper introduces a new method for multilevel image thresholding segmentation based on the improved version of the owl search algorithm (iOSA) and 2D histograms. The performance of the iOSA is enhanced with the inclusion of a new strategy in the optimization process. Moreover, in the initialization step, it is applied the opposition-based learning. Meanwhile, the 2D histograms permit to maintain more information of the image. Considering such modifications, the iOSA performs a better exploration of the search space during the early iterations, preserving the exploitation of the prominent regions using a self-adaptive variable. The iOSA is employed to allocate the optimal threshold values that segment the image by using the 2D Rényi entropy as an objective function. To test the efficiency of the iOSA, a set of experiments were performed which validate the quality of the segmentation and evaluate the optimization results efficacy. Moreover, to prove that the iOSA is a promising alternative for optimization and image processing problems, statistical tests and analyses were also conducted.
Article
Full-text available
Medical imaging techniques play a critical role in diagnosing diseases and patient healthcare. They help in treatment, diagnosis, and early detection. Image segmentation is one of the most important steps in processing medical images, and it has been widely used in many applications. Multi-level thresholding (MLT) is considered as one of the simplest and most effective image segmentation techniques. Traditional approaches apply histogram methods; however, these methods face some challenges. In recent years, swarm intelligence methods have been leveraged in MLT, which is considered an NP-hard problem. One of the main drawbacks of the SI methods is when searching for optimum solutions, and some may get stuck in local optima. This because during the run of SI methods, they create random sequences among different operators. In this study, we propose a hybrid SI based approach that combines the features of two SI methods, marine predators algorithm (MPA) and moth-flame optimization (MFO). The proposed approach is called MPAMFO, in which, the MFO is utilized as a local search method for MPA to avoid trapping at local optima. The MPAMFO is proposed as an MLT approach for image segmentation, which showed excellent performance in all experiments. To test the performance of MPAMFO, two experiments were carried out. The first one is to segment ten natural gray-scale images. The second experiment tested the MPAMFO for a real-world application, such as CT images of COVID-19. Therefore, thirteen CT images were used to test the performance of MPAMFO. Furthermore, extensive comparisons with several SI methods have been implemented to examine the quality and the performance of the MPAMFO. Overall experimental results confirm that the MPAMFO is an efficient MLT approach that approved its superiority over other existing methods.
Article
Full-text available
Segmentation is considered an important part of image processing. There are commonly used segmentation techniques to improve the thresholding process, such as Otsu and Kapur. The use of these techniques allows us to find the regions of interest in an image by accurately grouping the pixel intensity levels. On the other hand, the use of thermal images makes it possible to obtain information about the temperature of an object and to capture the infrared radiation of the electromagnetic spectrum through cameras that transform the radiated energy into heat information. The segmentation of this kind of images represents a challenging problem that requires a huge computational effort. This work proposes the use of metaheuristic algorithms, combined with segmentation techniques and applied to thermal images, to detect faults and contribute to the preventive maintenance of electronic systems.
Article
Full-text available
Segmentation is a crucial phase in image processing because it simplifies the representation of an image and facilitates its analysis. The multilevel thresholding method is more efficient for segmenting digital mammograms compared to the classic bi-level thresholding since it uses a higher number of intensities to represent different regions in the image. In the literature, there are different techniques for multilevel segmentation; however, most of these approaches do not obtain good segmented images. In addition, they are computationally expensive. Recently, statistical criteria such as Otsu, Kapur, and cross-entropy have been utilized in combination with evolutionary and swarm-based strategies to investigate the optimal threshold values for multilevel segmentation. In this paper, an efficient methodology for multilevel segmentation is proposed using the Harris Hawks Optimization (HHO) algorithm and the minimum cross-entropy as a fitness function. To substantiate the results and effectiveness of the HHO-based method, it has been tested over a benchmark set of reference images, with the Berkeley segmentation database, and with medical images of digital mammography. The proposed HHO-based solver is verified based on other comparable optimizers and two machine learning algorithms K-means and the Fuzzy IterAg. The comparisons were performed based on three groups. This first one is to provide evidence of the optimization capabilities of the HHO using the Wilcoxon test, and the second is to verify segmented image quality using the PSNR, SSIM, and FSIM metrics. Then, the third way is to verify the segmented image comparing it with the ground-truth through the metrics PRI, GCE, and VoI. The experimental results, which are validated by statistical analysis, show that the introduced method produces efficient and reliable results in terms of quality, consistency, and accuracy in comparison with the other methods. This HHO-based method presents an improvement over other segmentation approaches that are currently used in the literature.
Chapter
Full-text available
Digital image processing techniques have become an important process within medical images. These techniques allow the improvement of the images in order to facilitate their interpretation for specialists. Within these are the segmentation methods, which help to divide the images by regions based on different approaches, in order to identify details that may be complex to distinguish initially. In this work, it is proposed the implementation of a multilevel threshold segmentation technique applied to mammography images, based on the Harris Hawks Optimization (HHO) algorithm, in order to identify regions of interest (ROIs) that contain malignant masses. The method of minimum cross entropy thresholding (MCET) is used to select the optimal threshold values for the segmentation. For the development of this work, four mammography images were used (all with presence of a malignant tumor), in their two views, craniocaudal (CC) and mediolateral oblique (MLO), obtained from the Digital Database for Screening Mammography (DDSM). Finally, the ROIs calculated were compared with the original ROIs of the database through a series of metrics, to evaluate the behavior of the algorithm. According to the results obtained, where it is shown that the agreement between the original ROIs and the calculated ROIs is significantly high, it is possible to conclude that the proposal of the MCET-HHO algorithm allows the automatic identification of ROIs containing malignant tumors in mammography images with significant accuracy.
Article
Segmentation is a crucial step in image processing applications. This process separates pixels of the image into multiple classes that permits the analysis of the objects contained in the scene. Multilevel thresholding is a method that easily performs this task, the problem is to find the best set of thresholds that properly segment each image. Techniques as Otsu's between class variance or Kapur's entropy helps to find the best thresholds but they are computationally expensive for more than two thresholds. To overcome such problem this paper introduces the use of the novel meta-heuristic algorithm called Black Widow Optimization (BWO) to find the best threshold configuration using Otsu or Kapur as objective function. To evaluate the performance and effectiveness of the BWO-based method, it has been considered the use of a variety of benchmark images, and compared against six well-known meta-heuristic algorithms including; the Gray Wolf Optimization (GWO), Moth Flame Optimization (MFO), Whale Optimization Algorithm (WOA), Sine-Cosine Algorithm (SCA), Slap Swarm Algorithm (SSA), and Equilibrium Optimization (EO). The experimental results have revealed that the proposed BWO-based method outperform the competitor algorithms in terms of the fitness values as well as the others performance measures such as PSNR, SSIM and FSIM. The statistical analysis manifests that the BWO-based method achieves efficient and reliable results in comparison with the other methods. Therefore, BWO-based method was found to be most promising for multi-level image segmentation problem over other segmentation approaches that are currently used in the literature.
Article
Segmentation is an essential preprocessing step in techniques for image analysis. The automatic segmentation of brain magnetic resonance imaging has been exhaustively investigated since the accurate use of this kind of methods permits the diagnosis and identification of several diseases. Thresholding is a straightforward and efficient technique for image segmentation. Nonetheless, thresholding based approaches tend to increase the computational cost based on the number of thresholds used for the segmentation. Therefore, metaheuristic algorithms are an important tool that helps to find the optimal values in multilevel thresholding. The adaptive differential evolution, based in numerous successes through history, with linear population size reduction (LSHADE) is a robust metaheuristic algorithm that efficiently solves numerical optimization problems. The main advantage of LSHADE is its capability to adapt its internal parameters according to prior knowledge acquired along the evolutionary process. Meanwhile, the continuous reduction of the population improves the exploitation process. This article presents a multilevel thresholding approach based on the LSHADE method for the seg-mentation of magnetic resonance brain imaging. The proposed method has been tested using three groups of reference images-the first group consists of grayscale standard benchmark images, the second group consists of magnetic resonance T2-weighted brain images, and the third group is formed by images of unhealthy brains affected by tumors. In turn, the performance of the intended approach was compared with distinct metaheuristic algorithms and machine learning methods. The statistically verified results demonstrate that the suggested approach improves consistency and segmentation quality.
Book
This book presents a study of the most important methods of image segmentation and how they are extended and improved using metaheuristic algorithms. The segmentation approaches selected have been extensively applied to the task of segmentation (especially in thresholding), and have also been implemented using various metaheuristics and hybridization techniques leading to a broader understanding of how image segmentation problems can be solved from an optimization perspective. The field of image processing is constantly changing due to the extensive integration of cameras in devices; for example, smart phones and cars now have embedded cameras. The images have to be accurately analyzed, and crucial pre-processing steps, like image segmentation, and artificial intelligence, including metaheuristics, are applied in the automatic analysis of digital images. Metaheuristic algorithms have also been used in various fields of science and technology as the demand for new methods designed to solve complex optimization problems increases. This didactic book is primarily intended for undergraduate and postgraduate students of science, engineering, and computational mathematics. It is also suitable for courses such as artificial intelligence, advanced image processing, and computational intelligence. The material is also useful for researches in the fields of evolutionary computation, artificial intelligence, and image processing.
Chapter
The segmentation is regarded as a vital step in preprocessing techniques for image analysis. Automatic segmentation of brain magnetic resonance images has been extensively investigated since with a precise segmentation can be identified and diagnosed several brain diseases. Thresholding is an important simple but efficient technique of image segmentation. Various strategies have been submitted to find optimal thresholds. Amongst those methods, the minimum cross-entropy (MCE) has been broadly implemented due to its simpleness. Although MCE is quite effective in bilevel thresholding, the computational cost increases exponentially the higher the number of thresholds (th) to find. This article introduces a new approach called MCE-SADE for multilevel thresholding using the Self-Adaptive Differential Evolution (SADE) algorithm. SADE is a robust metaheuristic algorithm (MA) that resolve general problems efficiently since, through evolution, the parameters and the proper learning strategy are continuously adjusted pursuant to prior knowledge. The optimum th values are found minimizing cross-entropy through SADE algorithm. The proposed method is tested in two groups of reference images; the primary group is formed of standard test images, while the following group consists of brain magnetic resonance images. In turn, MCE-SADE is compared with two metaheuristic algorithms, Grey Wolf Optimizer (GWO) and Competitive Imperialist Algorithm (ICA). From the experimental results, it is observed that MCE-SADE results improve in terms of consistency and quality in contrast to GWO and ICA based methods.