Literature DB >> 35261554

Boosting Marine Predators Algorithm by Salp Swarm Algorithm for Multilevel Thresholding Image Segmentation.

Laith Abualigah1,2, Nada Khalil Al-Okbi3, Mohamed Abd Elaziz4,5,6,7, Essam H Houssein8.   

Abstract

Pixel rating is considered one of the commonly used critical factors in digital image processing that depends on intensity. It is used to determine the optimal image segmentation threshold. In recent years, the optimum threshold has been selected with great interest due to its many applications. Several methods have been used to find the optimum threshold, including the Otsu and Kapur methods. These methods are appropriate and easy to implement to define a single or bi-level threshold. However, when they are extended to multiple levels, they will cause some problems, such as long time-consuming, the high computational cost, and the needed improvement in their accuracy. To avoid these problems and determine the optimal multilevel image segmentation threshold, we proposed a hybrid Marine Predators Algorithm (MPA) with Salp Swarm Algorithm (SSA) to determine the optimal multilevel threshold image segmentation MPASSA. The obtained solutions of the proposed method are represented using the image histogram. Several standard evaluation measures, such as (the fitness function, time consumer, Peak Signal-to-Noise Ratio, Structural Similarity Index, etc.…) are employed to evaluate the proposed segmentation method's effectiveness. Several benchmark images are used to validate the proposed algorithm's performance (MPASSA). The results showed that the proposed MPASSA got better results than other well-known optimization algorithms published in the literature.
© The Author(s), under exclusive licence to Springer Science+Business Media, LLC, part of Springer Nature 2022.

Entities:  

Keywords:  Image segmentation; Marine Predator algorithm; Meta-heuristic algorithms; Multilevel thresholding; Salp Swarm algorithm

Year:  2022        PMID: 35261554      PMCID: PMC8892122          DOI: 10.1007/s11042-022-12001-3

Source DB:  PubMed          Journal:  Multimed Tools Appl        ISSN: 1380-7501            Impact factor:   2.577


Introduction

Image segmentation is an important and challenging process [31]. It is involved in various fields, including pattern recognition, digital image processing, and artificial intelligence [32]. It is considered one of the most critical image processing steps that separate the image components into different parts by merging the same pixel groups. It is also used in the process of extracting object-related features from an image [37]. This is not an easy task; usually, the images contain some unwanted background noise. Various techniques are used in the segmentation process to subtract objects from images and separate or split them from backgrounds [21]. Image segmentation is also an essential step in computer vision. Also, it represents a necessary technique in image analysis, especially for medical image analysis. The images are divided into two types: color and gray ideas. Each of them has different methods of segmentation [46]. Image segmentation methods are classified into layer-based segmentation methods and block-based segmentation methods, as given in Fig. 1. Among the most popular segmentation techniques used are Threshold, Histogram, Edge detection, Watershed Transformation, Clustering, and Region-based methods. As for separating the objects from the background, the Threshold method is used. The segmentation method, which uses threshold, is characterized by its simplicity and accuracy compared to other methods [23]. So, it has received the attention of many researchers in this field.
Fig. 1

Methods of image segmentation

Methods of image segmentation The threshold method is widely used for dividing pixels in an image into different classes [49, 50]. There are two methods to determine image thresholds: the first is bi-level thresholding, and the second is multilevel thresholding. The first method divides the image into two categories based on the threshold value. It groups pixels densest from a threshold value into one class and pixels less dense than a threshold value into another level. They are often used to separate the foreground and background of the images. The process of dividing into two categories is insufficient, especially when the image is more complex and contains several objects with similar gray levels [45]. Therefore, it is necessary to extend the threshold levels from bi-level to multilevel [44]. The multilevel threshold (MTH) splits an image into several classes belonging to multiple objects in the image. In this method, it is possible to reveal more information and more items from the segmented image. Additionally, several histogram methods have been developed, such as Otsu’s method and Kapoor’s method. The basis for their work is to maximize the variance between classes and entropy to achieve homogeneity between categories. One of the problems caused by these methods is the complexity of the mathematical operations, primarily as the number of threshold levels increases to obtain better threshold values. Therefore, this problem’s solution lies in combining these Metaheuristic algorithms. Several algorithms are used by researchers, such as particle swarm optimization, social-spider optimization [40], and others [13]. In this case, conflict problems arise to achieve a specific objective; this target may not be suitable for image types. This is because each goal has a particular kind of image that makes it powerful. In the Otsu-based method, the best value of the threshold is maximizing the variance between classes. So, the choice of optimal thresholds in multilevel was a challenge over decades. Which affects segmentation accuracy. To address this weakness, this paper proposes an efficient multilevel threshold method depending on an enhanced Marine Predators Algorithm for image segmentation. The Salp Swarm Algorithm is used as a local search to improve the basic MPA’s performance in this proposed method. The proposed algorithm, MPASSA, is a hybrid optimization algorithm for MTH that beats on the shortcomings of individual optimization algorithms using the force of both MPA and SSA. The candidate solutions for the proposed method are represented using an image histogram. The hybrid technique combines the characteristics of two different methods (MPA and SSA). Therefore, the proposed hybrid algorithm (MPASSA) averts getting stuck on a local optimum and has a high ability to find the optimal solution for the image. Several standard evaluation metrics, such as the function of fitness, signal-to-noise ratio, structural similarity index, consumer time, etc., are used to evaluate the proposed segmentation method’s effectiveness. The MPASSA is assessed by using two experiments that have a set of images. In the first experiment set, two gray images are used. These images were widely applied in different studies to assess various segmentation algorithms. At the second experiment set, three-color images are used. Also, these images were involved in other studies to evaluate various segmentation algorithms. The results of MPASSA are compared with several optimization algorithms, such as WOA, PSO, AOA, SSA, MPA, and it shows significant performance improvement. The proposed method MPASSA has proved its effectiveness in all test cases. Both experiment sets’ performance indicates that the MPASSA is an effective segmentation method, and it can be used in various segmentation applications. The results reveal that the proposed MPASSA is better than other known optimization algorithms published in the literature. The main contributions of this study are summarized as follows. This research proposes a new image segmentation method using a multilevel threshold based on using optimization method. The SSA operators are used to enhance the exploitation ability of the MPA, called MPASSA. This research tests the proposed method’s performance in two experiment sets using two popular grayscale images and three-color popular images. The proposed method is compared with several state-of-the-art methods. The design of this paper is given as follows. Section 2 contains a literature review of the past and current image segmentation by multilevel thresholding algorithms. Section 3 presents the research methodology and techniques used in Image segmentation by multilevel thresholding algorithms. Section 4 illustrates the implemented proposed algorithms, the evolution measurements that have been used to test and evaluate the proposed algorithms, and research discussion and results. Finally, Section 5 presents the conclusion of this research, followed by suggestions and motivations for future work in the field of Hybrid Algorithms.

Background

One of the most critical image analysis problems and processing is the pixel segment into its various categories. The goal of segmentation is to identify elements and isolate them from the background and distinguish between pixels to improve contrast [41]. Several common methods can be used to solve this problem [5, 8, 12, 20, 26, 43, 53]. The most common segmentation techniques that researchers still use nowadays are Threshold, Histogram, Edge detection, Watershed Transformation, clustering, and Region-based methods [1]. There are two types of thresholds; threshold one value is called bi-level thresholds. If more than one threshold value is used, it is called a multilevel point, the second type. In the first type, pixels are divided into two categories. Pixels with an intensity level higher than the threshold value are classified as objects, while the remaining pixels are classified as a part of the background [38]. However, the second one used a multilevel threshold to divide the grayscale images into sections where it became necessary to extend the bi-level threshold levels to the multilevel. When the image is more complex and contains several objects with similar gray levels, it is also used with pictures with colored backgrounds. The multilevel threshold mechanism, which has more than one threshold, divides the image into several classes belonging to multiple objects. Therefore, it results in multiple items with one background. In this way, more information and things can be revealed from the segmented image [2]. Among the most critical methods used with threshold segmentation are the Otsu and Kapur methods [30]. The Otsu method increases the contrast between image classes. In contrast, the Kapur method maximizes entropy as a measure of homogeneity between categories. Both approaches have proven to be one of the most widely used forms of image processing. They are also considered accurate and effective alternatives to pixilation in the bi-level threshold technique. It can be used in a multilevel threshold, but its accuracy decreases as the thresholds’ number increases, leading to increased complexity. Many other approaches adopt entropy, such as Tallies entropy, Fuzz,y entropy, the Shannon entropy, and Renyi’s entropy. The same problem of increasing computational complexity appears at a multilevel threshold [38]. Therefore, to solve such issues, Meta-Heuristic algorithms provide highly accurate results in most cases. The Meta-Heuristic algorithms are essential tools for solving optimization problems’ intricacies with high accuracy [4]. According to the official data provided by those countries, a new forecasting method is proposed in [19] to forecast the number of people infected with Covid-19 in some countries. The proposal offers an improvement to the ANFIS model to predict the number of injured people, depending on another optimizer, the Marine Predator algorithm. The algorithm is used to improve ANFIS parameters, as well as enhance prediction performance. The results of the prediction performance evaluation of the proposed method MPA-ANFIS were compared with several other ways. The result was that the proposed approach significantly outperforms almost all techniques and measures of performance. Among the performance measures that were compared are, mean absolute error (MAE), Root Mean Squared Relative Error (RMSRE), Mean Absolute Percentage Error (MAPE), and others [9, 14]. In [25], a new variant of MPA is proposed. The proposed method’s performance is tested on several problems, including the real-world engineering design and CEC-2017 tests. The algorithm was compared to other optimization algorithms: the first is GA and PSO, which is one of the algorithms that have been well studied, the second is GSA, CS, and SSA, as the algorithms developed in the recent period, third is CMA-ES, SHADE, and LSHADE -cnEpSin, are the algorithms that are as optimizers for performance. They are also IEEE CEC competition winners. The results were that the Marine Predator algorithm ranked second as the best performing method, and it showed competitive results compared to LSHADE-cnEpSin. The Marine Predator algorithm is one of the winning algorithms in the CEC 2017 competition. The statistical analysis presented in that paper shown that the Marine Predator algorithm can work as a high-performance optimizer. It also proved that the Marine Predator algorithm is significantly superior to the SSA, GSA, CMA-ES, PSO, CS, and GA algorithms. The study also showed the similarity of performance statistically for each Marine Predator, SHADE, and LSHADE-cnEpSin. In [34], a novel hybrid algorithm is presented. The Proposed method ensembles Salp Swarm and Multi-objective Salp Swarm in solving the optimization problems for both single and multiple objectives. The Salp’s primary behavior is a crowd of strains while on the move to search for food [6]. The researcher tested both algorithms on several mathematical optimization tasks to observe, monitor, and confirm their behavior in finding the best solution. The results showed that the Salp swarm algorithm could optimize the initial random solutions and are close to being the optimum. The results also showed that the multi-objective Salp Swarm algorithm could converge Pareto optimal solutions. The study also showed that both proposed algorithms could solve complex and computationally costly engineering design problems (such as designing marine propellers). The research also indicates that the proposed algorithms have many advantages that distinguish them in solving many real-world situations. In [3], an effective multilevel threshold (MTH) method is proposed for image segmentation, including medical image segmentation including COVID-19 CT images. Suggested is the Marine Predatory Animal (MPA) algorithm. MPA is a new SI method. According to the researchers’ study, the proposal provides the first application for use in image segmentation. The (MFO) algorithm was used in the MPA optimization process. The new proposal has been called MPAMFO. The request was evaluated with various images, as it included cross-sectional images of Coronavirus (COVID-19). The results showed stable and good performance in all tests. Also, several comparisons were applied to prove the MPAMFO proposal’s superiority over many algorithms, including PSO, GWO, and CS, in terms of SSIM, fitness value, and PSNR. The proposed algorithm has proven to be highly effective. Therefore, it is possible to improve it and apply it in various improvement processes, including data clustering, machine job scheduling, time series prediction, cloud computing, etc. A new proposal combining the SSA algorithm with the PSO algorithm is given in [28]. This proposal is to enhance SSA’s ability for exploration and exploitation by using PSO characteristics to improve the quality of the SSA for searching for results. Thus, the rate of convergence increases. The proposed algorithm was evaluated with two experiments; first, it was tested on 15 standard groups. The second was applied to determine the optimal subset of the features from among ten UCI groups to increase classification accuracy. The results from the two experiments were compared to several algorithms, including SSA. The work SSA with the PSO algorithm gives better results in performance measures, including chosen feature ratio, processing unit time, accuracy, and evaluating the fitness function. This means that hybridization of the SSA gives better results than it does separately. In [47], a novel objective function and a new application of the MPA approach are presented to properly extract the nine parameters of the PV module’s TDPV model. This study aims to obtain an accurate PV model for any commercial PV panel, which plays an essential role in the grid-connected PV power systems’ simulation studies. In this study, the optimization problem’s main objective is to minimize a function representing the current error. The MPA technology was successfully utilized to reduce the objective function, obtaining the PV module’s TDPV model’s nine parameters. Various comparisons were exhibited to check the efficacy of the offered TDPV model using the MPA technology. The proposed algorithm was successfully employed to optimally design the parameters of two marketable KC200GT and MSX-60 PV modules. The optimal parameters, realized using the MPA-TDPV model, are coherent with those achieved using other algorithms. The MPA approach has recorded lower optimal fitness values of 1.245e-14 and 7.458e-13 for KC200GT and MSX-60 PV modules. Furthermore, the simulation outcomes of the MPA-TDPV model concur with the measured data for these well-known PV panels under several environmental situations. The MPA-TDPV model’s ACE indicates a lower value than other PV models for the marketable PV panels. This points out the proposed approach’s superiority, efficacy, and robustness for achieving a precise TDPV model-based PV panel. With the help of the MPA approach, accurate modeling of any marketable PV panel can be realized. Moreover, the MPA technology can be further extended to solve various optimization problems in power system applications, energy storage devices, and smart grids. In [52], an innovative objective function with a robust and reliable optimization algorithm named the marine predators’ algorithm (MPA) is proposed to provide the optimal pattern structure for three dimensions of PV arrays nine × 9, 16 × 16, and 25 × 25. The MPA is tested with several shade patterns and compared with manta ray foraging optimization (MRFO), Harris hawk optimizer (HHO), and particle swarm optimizer (PSO), as well as the total-cross, tied (TCT) connection. Several quality and statistical measures are computed, such as mismatch power loss, fill factor, percentage power loss, and Wilcoxon signed-rank test to assess the performance of the proposed approach. The research showed that the I-V and P-V characteristics were used to investigate the proposed MPA’s applicability compared with the other counterparts. Moreover, the mean execution time has been evaluated. The results reveal that MPA enhanced the PV array power by the percentage of 28.6%, 2.7%, and 5.7% in cases of 9 × 9, 16 × 16, and 25 × 25 PV arrays, respectively, and a uni-peak PV characterizes is achieved as well with lowest execution time and highest consistency in the results across the number of independent runs. Therefore, the authors recommend MPA as an efficient and applicable algorithm for PV reconfiguration systems at any dimension of PV array structures. In [29], a node localization algorithm has been proposed based on Salp Swarm Algorithm (SSA), which handled the node localization problem as an optimization problem. The proposed algorithm has been implemented and validated in various WSN deployments using other target nodes and anchor nodes. Moreover, the proposed algorithm has been evaluated compared to four well-known optimization algorithms, namely PSO, BOA, FA, and GWO, in terms of localization accuracy, computing time, and several localized nodes. +e obtained simulation results have proved the proposed algorithm’s superiority compared to the other localization algorithms regarding the various performance metrics. The proposed approach can be hybridized with different algorithms to reduce the localization error in future work. In [27], an improved version of the salp swarm algorithm is introduced for predicting chemical compound activities. A set of assessment indicators are used to evaluate and compared with different algorithms, including particle swarm optimization (PSO), Grasshopper Optimization Algorithm (GOA), Grey Wolf Optimizer (GWO), Sine Cosine Algorithm (SCA), Whale Optimization Algorithm (WOA) using three initialization method, and a superior accuracy was obtained with our proposed approach. Also, compared with other algorithms that used the same data, this research’s system has a higher performance using fewer features. The previous algorithms (GOA, GWO, PSO, SSA, SCA, and WOA) are compared. Three different methods were used to initialize the various optimization algorithms to ensure the other optimizers’ capability to converge from various initial positions, namely mixed initialization, short initialization, and extensive initialization. In [10], a new hybrid Arithmetic Optimization Algorithm (AOA) and Deferential Evolution (DE) algorithm (DAOA) is proposed for multi-thresholding image segmentation. The proposed algorithm employs the AOA algorithm to optimize the threshold and then uses this thresholding value to partition the images through DE. So, the DAOA integrates AOA global optimization and DE fast convergence. The experiment results were compared against four algorithms. The DAOA achieved better results than other methods; also, the DAOA provided a faster convergence with relatively lower CPU time. In the future, the DAOA can be applied to other complex image segmentation problems. We concluded that the given methods in the literature are employed to solve the image segmentation problems by finding the optimal number of threshold values. However, finding these values is a complicated problem and needs an efficient method to determine them [48, 17]. Several optimization techniques proved their ability to solve this proposed and demonstrated that an efficient method is required. Thus, we proposed an effective method to address this problem and finding the optimal threshold values.

The research methodology

Before presenting the proposed hybrid algorithm (MPASS), we need to define the problem and understand the mathematical model for the main algorithms: Marine Predators Algorithm and Salp Swarm Algorithm. In this section, we present the formulation of the problem, MPA and SSA, and their main items.

Formulation of the problem

In this section, the problem formulation of multilevel thresholding is illustrated, which gives a mathematical definition through considering a gray level image I. The image I is tested to be segmented consisting K + 1 classes. Each segmentation process requires division pixels of the image I into subregions or classes as in Eq. (1). This can be done by determining K thresholds {t, t, . ., t} [22]. In given Equations, G represents K-th class of image I, I (i, j) is the value of gray level to the pixel (i, j), t where (k = 1,…, K) that define k-th threshold value, and L represents the gray levels of I, all levels within the range (0, 1…L - 1). Multilevel thresholding aimed to locate the optimal threshold values that divide I into several groups; Optimization methods can determine these values. One of the standard methods and well-known optimization function is Otsu’s method [39]. It is used in bi-level segmentation problems as well as in multilevel. In multilevel thresholding, Otsu’s technique locates the optimum threshold values of I by maximizing as in Eq. (2). It can be defined as the following: where F (t, …., t) is the intra class difference (Otsu’s function) that defined in Eq. (3). where η pointed to mean in tensity of image I, with t = 0 and t = L. h(i) is frequency and P is probability of the ith gray level. N is the all pixels in the evaluated I.

Marine Predators Algorithm (MPA)

This part will explain the Marine Predators Optimization Algorithm (MPA) development process as an efficient and straightforward meta-heuristic optimization method [19]. The basis of the algorithm’s work is population. The first solution is distributed randomly on the search area in a uniform manner, as in Eq. (6): where X and X are the minimum and maximum bound for variables, the rand is a random vector within range (0, 1). Based on the theory of survival of the fittest, an array can be constructed to include the best solution for the best predator. The best predator is the one that has the most talent for foraging. This matrix is ​​called the elite. The array is represented mathematically as in Eq. (7). As for the prey, it is arranged as in the elite matrix. As the predator sites update depending on this matrix. This means preparing the primary prey on which the (fittest) predator depends in the elite ranking. The prey matrix in Eq. (8). In Eq. (8), the Xi,j represents the jth dimension of (ith ) prey. It is noted that the optimization process is entirely linked directly and mainly to these two matrices. The process of optimizing the algorithm and moving it from one phase to another depends heavily on the predator’s speed relative to the prey. Therefore, the process of improving the Marine Predators algorithm can be divided into three primary stages, depending on the different speed ratios for both the prey and the predator and the life of each of them. The steps are as follows: 1- The movement of the prey relative to the predator is faster with a high rate. 2- The movement of both predator and prey at equal or close speed. 3- The movement of the predator to the prey is faster, with a low rate.

Phase No. 1

The exploration stage is where the prey moves at high speed to discover new search areas. At this stage, the predator should remain and monitor the prey’s movements. This stage’s performance is in the first third of the total iterations of development (i.e., 1/3 * Max_iter) as in Eq. (9). Where CF is an adaptive variable for controlling the step volume of a predator. R represents random numbers and is represented by a vector. These numbers are regular in [0,1] and represent Brownian motion. P = 0.5 represents a vector and constant number for random numbers. The variable Iter represents the current iteration, while Max_iter represents the maximum iteration.

Phase No. 2

At this point, both the predator and the prey are moving at the same speed. This part occurs in the middle stage of improvement in Eq. (10). Depending on the rule, the unit pace ratio (v ≈ 1), if prey moves in Lévy, the best-organized predator is Brownian motion. This can be considered a transitional stage between exploration and exploitation. Both exploitation and exploration are essential in this section. Where R refers to the random numbers, where these numbers are following the Lévy movement in distribution, the first half represents exploitation (represented by predators), Eq. (11) is applied to it. While the prey that represents the second half of the population assumes: Max_iter is the overall number of generations. The R and Elite simulate the predator’s movement in a Brownian motion, while the prey changes its position depending on the predator movement in Brownian fashion.

Phase No. 3

This phase is the last of the optimization process. They represented when the predator’s movement is faster than a prey. The predator exploits the prey that is detected and attack it very quickly to get it. So, the exploitability is often high. The best motion for the predator in a low pace ratio (v = 0.1) is Lévy. This phase is executed on the last third of the iteration numbers (Iter > 2/3 Max_iter), the predator follows Lévy. The predator will update its position in Eq. (12). where, Step size is added to the Elite site for the predator’s movement to update the prey site. The doubling of the R and Elite also simulates the predator’s movement within Lévy’s strategy.

Eddy formation and FADs’ Effect

Another point that causes a behavioral change in marine predators is environmental issues such as the eddy formation or Fish Aggregating Devices (FADs) effects. As mentioned in [28], Sharks spend over 80% of their time in the vicinity of FADs. The others are taking the long jumps in different dimensions to find other prey. The effects of FADs can be mathematically expressed in Eq. (14). Where FADs = 0.2 represent the probability of affected FADs on the process of the optimization. U is a vector of binary with matrices that have contained zero and one. This is done by generating an arbitrary vector in [0,1] and update the array to zero if it’s less than 0.2, and one if it’s more. r is the uniform arbitrary number [0,1]. Both (X, X) are the vectors consist of (lower, upper) bounds of the dimensions. r and r represent indexes of random prey.

Marine memory

Figure 2 illustrates the second phase of optimization, in which the predator adopts the Brownian strategy better in searching for its prey within the field, as indicated in blue.
Fig. 2

The three MPA optimization phases

The three MPA optimization phases When optimization is in its final phase, algorithms need a high ability for exploitation. The third phase represents the last phase of optimization when the predator changes its behavior from Brown’s strategy to Levi so that the search process will be more efficient in a particular area. At the same time, the Convergence Factor (CF) has an excellent role for predators. This limits the search in several parts of the specific area for exploitation. It also avoids the effort in the search that extends from long steps as a result of using Levi’s strategy for non-promising areas in the field. The flowchart of the MPA algorithm is represented as shown in Algorithm 1.

Salp Swarm Algorithm (SSA)

The Salp algorithm is one of the meta-heuristic algorithms that has been successfully used in solving many optimization problems in various fields [34]. Mathematically, as we know, that the swarm is divided into a leader and followers. The leader guides his followers in their movements. The X represents a swarm of n of the Salps as Eq. (15), represented by a two-dimensional matrix. The fitness of each Salp is calculated to determine the best among them (meaning, defines the leader for the swarm). The leader positions will be updated by using Eq. (16). represents the position for the leader (first) Salp in the dimension ith, and y is the food site in the ith dimension. lb and ub is the lower and upper bound at the ith dimension, respectively, and the coefficient r is calculated by Eq. (17). r and r are random numbers between [0,1]. Where L is the upper iterations and l is the running iteration. Note that the coefficient r1 is very significant in SSA because the balances of exploration and exploitation depend on it during the entire search process. As for the followers, Eq. (18) shows the updated positions. Where j >= 2, pointed to the site of the nth Salp in the ith dimension, represents an initial speed, t is the time, and . The time in optimization points to the iteration. So, the difference between iterations is equal to 1. Considering the proposition that , the following equation (in Eq. (19)) is employed for this issue. Where j >= 2. In some cases, the Salp leaving outside of the search space, how we can bring them back to the search space in Eq. (20). Exploration and exploitation, diversification and intensification, global search and local searches, few pairs of words are common in optimization algorithms. At least the optimization algorithms include one of those pairs. Here we will talk about exploration and exploitation. Exploration aims to discover new areas in the search area. This makes the search process not stop within one level, leading to discovering the optimal solution level. The exploitation aims to reach a better solution within the suitable and discovered solutions. A coefficient responsible for the balance between exploration and exploitation, it is called the coefficient c. It is calculated from the equation Eq. (2). The Pseudo-code of the SSA is given in Algorithm 2.

The proposed hybrid algorithm (MPASSA)

The research introduces a hybrid algorithm used to segment images. The proposed hybrid algorithm determines the optimal multilevel threshold values that maximize Otsu’s objective function. The proposed algorithm is called MPASSA and is based on the MPA and SSA algorithms and uses Otsu’s method as an objective function. The proposed hybrid algorithm depends on boosting the performance of MPA via using the SSA. The MPA is used to reduce the search region by determining the best solution; then, SSA optimizes each agent less than the limited base. Therefore, the ABCSCA algorithm starts by computing the histogram of an input image and then generates a random population of pop_size solutions (threshold values). Then, the MPA updates these populations using its levels representing by three faces of motion, then Eddy Formation and FADs’ Effect. The optimal solution is then determined from the population based on Otsu’s method (the best solutions from the MPA algorithm). The SSA begins determining the minimum threshold value by using the MPA’s output (worst solution) and optimizing the solutions of the population via the strategy discussed before. The optimal global solution (the SSA algorithm’s output) is determined, and all the previous steps are repeated until the stopping conditions are met. The final stage of the MPASSA is illustrated in Fig. 3. It can be observed that the proposed method introduces an arithmetic complex which is O (t (nd Cof ∗ n)), where n represents a number of factors, t is the iteration, d is the problem dimension, and Cof is the cost of function.
Fig. 3

The proposed method (MPASSA)

The proposed method (MPASSA)

Experiments and results

In this part, the performance of the MPASSA is evaluated by two experiments (gray and colored). It is compared with five algorithms: original Marine Predators Algorithm MPA, original Salp Swarm Algorithm (SSA), Whale Optimization Algorithm (WOA), Particle Swarm Optimization (PSO), and Arithmetic Optimization Algorithm (AOA). Besides, two types of images are used to test the proposed method (2 grays and 3 color images). The parameters settings of the employed methods are takes from the original methods. The supplied results is expressed as the best fitness function, PSNR, and SSIM. Furthermore, for all of the acquired findings, the Friedman ranking test is used to demonstrate how significantly the suggested approach outperforms the comparable methods for all of the examined issues. The methods are developed and implemented in MATLAB (2015a) on a machine with the following specifications: CPU 2.3 GHz (an Intel Core i7 platform), 16 GB RAM, 2400 MHz, and DDR4.

Experimental settings

The comparison of all algorithms used in the research has the same cessation conditions (maximum iterations set to 100), with a total run of 30 per algorithm and the population’s size (25). For performance evaluation of all experiments on the test images are done by the number of thresholds: 2, 3, 4, and 5 as in [18]. The selection for such thresholds was to illustrate the performance of the proposed algorithm (MPASSA) compared with the traditional segmentation algorithms based on the swarm. All algorithms are programmed in “Matlab2017” and implemented on a “Windows 10 - 64bit” environment on a computer with Intel Corei7 8th Gen (1.99 GHz) processor” 1T” memory and SSD (256).

Performance Measures

In order to evaluate the fitness of the segmented image, four measures are used. The measures that applied to the proposed algorithms, as follows: The execution time. The fitness value is calculated to evaluate and assess each solution based on its current position, as mention in chapter four. The Peak Signal-to-Noise Ratio (PSNR) measure [51]: used to measure the variance between the reference image and segmented image, and it depends on the value of intensity in the image, and this refers to the fitness of the reconstructed image. The PSNR is defined as: RMSE refer to the root-mean-squared error, detect as: I and Seg refer to the original and segmented images have a size M × Q, respectively. The maximum value of PSNR refers to the max performance of the segmentation algorithms. The Structural Similarity Index (SSIM): is used to evaluate the similarity between (I) and (Seg) image, defined as: µI and µSeg refer to mean intensity of (I) and (Seg) respectively; while σI and σSeg refer to standard deviation of (I) and (Seg) respectively; σI, Seg represent a variance of (I) and (Seg). c1 and c2 are constants, that c = 6.5025 and c = 58.52252 [36]. The maximum value of SSIM refers to better performance. Friedman ranking test: The Friedman test is the non-parametric alternative to the one-way ANOVA with repeated measures. It is used to test for differences between groups when the dependent variable being measured is ordinal. It can also be used for continuous data that has violated the assumptions necessary to run the one-way ANOVA with repeated measures [7].

Parameters setting

Table 1 show the parameters settings for each algorithm that are used in the following experiments. In addition, the general parameters are set as follows.
Table 1

The parameters of all algorithms and their values

AlgorithmParameters setting
SSA [34]c2 and c3 are random value [1, 0]
MPA [24]FADS=0.2, P=0.5
PSO [16]wMax=0.9, wMin=0.2, c1=2, c2 =2
WOA [35]a [2,0], b=1, t [-1,1]
AOA [42]Alpha=5, Mu=0.499
MPASSAFADS=0.2, P=0.5,
The parameters of all algorithms and their values

Benchmark images

This paper tested all algorithms on the five images: two gray images and three-color images. These images are from the dataset of Berkeley University [33], namely, lena, baboom for gray images as shown in Fig. 4(a, b), and lena, baboom, and peppers for color images as shown in Fig. 5(a, b, c). With size (512 × 512) for all.
Fig. 4

a-Lena_gray, b- Baboom_gray

Fig. 5

a-Lena_color, b-Baboom_ color, c-Peppers_ color

a-Lena_gray, b- Baboom_gray a-Lena_color, b-Baboom_ color, c-Peppers_ color

The results and discussions

This section discusses the proposed hybrid MPASSA compared to other popular algorithms in the segmentation domain. The comparisons are conducted using several measures (i.e., fitness value, PSNR, SSIM, and time). Two grayscale of images and three-color images with four numbers of thresholds (2, 3, 4, and 5) are applied and compared the results with five comparative algorithms (i.e., MPA [25], SSA [34], WOA [1], PSO [15], and AOA [11]) The results of the comparison are given in terms of PSNR, SSIM, CPU time, Fitness values, in addition to the Friedman ranking test for the comparative methods using the PSNR and SSIM Mean values for each image. These are standard performance evaluation measures in image segmentation, especially for evaluating multilevel thresholds methods. The discussion depends on each criterion are given as follows. The fitness function values of all algorithms are mentioned and analyzed over the thresholds’ variance. Tables 2, 3, 4 and 5 show the average fitness function values for the gray, red, green, blue images, where the threshold value is 2 for all algorithms. The proposed algorithm got better results in comparison with all the comparative algorithms. Whereas in levels 3, 4, and 5, the percentage of the difference is considerable between the MPASSA and other algorithms, as shown in Figs. 6 and 7 for grayscale images. Figure 8 shows the fitness values of the comparative methods for the different colored images. These results show the superiority of the MPASSA at the large threshold values.
Table 2

The best fitness values obtained from the algorithms on the gray images

ImageKWOASSAAOAMPAPSOMPASSA
baboom22540.242540.3212539.0632561.3492539.5532564.773
32705.6512705.0932665.1473429.8212720.4443441.869
42761.4072771.8242720.9583811.4542772.2764320.183
52814.1232796.2252775.2884706.0622802.7364732.528
lena21961.7741961.8011961.0481970.2471975.0491978.61
32121.9522128.2212070.9562686.0712134.6012698.594
42191.7092186.5282146.9232693.8252320.8823217.882
52194.9792210.9972171.3213555.5012545.5613763.314
Table 3

The best fitness values obtained from the algorithms on the color images (Red color)

ImageKWOASSAAOAMPAPSOMPASSA
lena21759.1161758.9281745.1421777.2811775.3731779.09
31885.3571882.6241830.8162400.6691884.8192401.463
41916.9141936.2481851.6092706.1811938.7262870.553
52344.272344.7212325.8784652.7232418.374752.116
baboom22903.0442902.2552858.5492916.9412913.5712917.897
33086.4043060.5942981.3644390.8883094.464419.153
43154.2833153.3333090.0154840.7283156.3384973.319
53200.0183201.9873121.9896248.243209.7256273.732
peppers21758.8451755.6021705.0311778.651769.2141778.743
31883.0021847.3821811.5182362.561881.9862405.533
41923.8291918.61911.3592538.11907.1192898.64
51953.4511955.7831895.9522859.0011950.4743228.724
Table 4

The best fitness values obtained from the algorithms on the color images (Green color)

ImageKWOASSAAOAMPAPSOMPASSA
22430.332434.2552382.1972467.482428.9522469.495
32638.2552645.4892495.6573249.0762602.1863254.056
42726.1732727.672572.0673565.5442746.8193636.873
52746.3542731.6982703.6943896.6372736.8314318.764
baboom22326.8812328.2222251.3142348.4472349.3192351.324
32417.9672417.9672315.0813051.3512432.3963244.085
42472.0452483.9022254.4913146.3292480.2483584.116
52527.1952483.6552433.253722.2652485.4644033.038
peppers25203.9275203.9275194.7955233.7835227.7775235.423
35381.3055374.995334.4786916.6855353.027354.29
45451.0835447.2175418.6147628.845427.8939026.392
55519.5785509.2975506.2948698.6475506.089259.896
Table 5

The best fitness values obtained from the algorithms on the color images (Blue color)

ImageKWOASSAAOAMPAPSOMPASSA
lena21009.7211009.721727.37781033.6541023.6871034.68
31069.9971036.101915.26151231.0341038.3081384.995
41087.9791008.7521044.3751581.9421057.0431594.859
51103.2551106.4931079.4371659.3591150.2081816.25
baboom24005.2084005.2084003.6594029.9644011.0614030.464
34203.4254203.4254136.4494882.5664218.4515927.24
44292.9594244.2824167.0255844.4184311.6696536.206
54328.9374297.1794291.2786677.4844368.8037257.704
peppers21656.1591656.2011503.6311667.1471669.9451672.346
31765.6811776.7961652.4392085.5791697.5842148.473
41848.9241793.2981762.7962085.9361847.2282620.117
51878.8771879.041785.7782709.7471851.9023019.093
Fig. 6

Fitness values of baboom image

Fig. 7

Fitness values of lena image

Fig. 8

Fitness values of color images. R is red, G is green, B is blue. And 1 is lena, 2 is baboom, 3 is peppers images

The best fitness values obtained from the algorithms on the gray images The best fitness values obtained from the algorithms on the color images (Red color) The best fitness values obtained from the algorithms on the color images (Green color) The best fitness values obtained from the algorithms on the color images (Blue color) Fitness values of baboom image Fitness values of lena image Fitness values of color images. R is red, G is green, B is blue. And 1 is lena, 2 is baboom, 3 is peppers images In terms of PSNR measure, the testing results of the threshold two as in Tables 6 and 7, the MPASSA got the best results in all images (gray and color) followed by MPA at some times which got the best results, followed by WOA, PSO, SSA, and AOA. The results of threshold 2 indicate that the MPASSA obtained the best values in all images. The MPASSA outperformed all other algorithms in thresholds 3, 4, and 5. It achieved the best results in all images, followed by the WOA, MPA, PSO, and SSA. From the results, we can derive that MPASSA is the best algorithm according to the PSNR measure, followed by MPA and WOA, and these algorithms outperformed the others when the threshold is greater than 4.
Table 6

Comparison of PSNR for gray images

ImageKMeasureMPASSAWOASSAAOAPSOMPA
lena2MAX15.5789113.7030813.9069415.3052615.2734613.19764
MEAN14.9963613.354213.6213915.1432514.5283813.05388
MIN14.4138213.0053213.3358414.9812513.783312.91011
STD0.8238480.4933970.4038240.2291071.0537050.20331
baboom2MAX16.4452716.2080116.064916.0560815.4301316.00811
MEAN15.0232514.9887415.6774815.3161913.9494315.28932
MIN13.9872213.9720415.2027513.8987712.5663514.81462
STD1.1883271.1316640.4376561.2279151.4343830.633079
lena3MAX16.5159316.5467116.368116.0654617.5418216.42999
MEAN15.1949216.3721515.9778415.0449415.7265416.09853
MIN13.8739116.1975915.5875914.0244313.9112715.76706
STD1.8681930.2468710.5519041.4432222.5671830.468761
baboom3MAX18.3367116.7624418.311717.5903617.0644617.74262
MEAN16.5448115.9031218.1288916.1650916.8579817.27462
MIN14.7529115.0438117.9460714.7398216.6514916.80661
STD2.5341291.2152550.258542.0156350.2920140.661858
lena4MAX18.6710518.3767118.6928817.290218.2610716.9732
MEAN17.9792417.5194817.8087117.2319517.3319416.61104
MIN17.2874316.6622416.9245417.173716.402816.24888
STD0.9783721.212321.2504050.0823731.3139990.512172
baboom4MAX19.9258619.3772218.4878518.6747818.3888719.10617
MEAN19.6696818.1990918.3878718.0014617.5277917.78107
MIN19.413517.0209718.2878917.3281416.6667216.45597
STD0.3622921.6661190.1413960.9522171.2177431.873974
lena5MAX20.5695718.5306818.3868319.7003918.0013919.41631
MEAN19.2900818.2099918.1365517.8410116.5818818.08313
MIN17.9194917.9714117.7889115.0872714.1144616.78843
STD1.3273880.2885350.3106222.4331312.1449181.314362
baboom5MAX21.1357720.6744619.4818620.6989819.5944919.46577
MEAN20.9433220.1495518.6154419.2136318.9009818.65874
MIN20.7508619.6246417.7490117.7282918.2074717.85171
STD0.2721710.7423361.2253132.1005950.9807711.141308
Table 7

Comparison of PSNR for color images

ImageKMeasureMPASSAWOASSAAOAPSOMPA
lena2MAX14.447913.3526814.2761113.3720814.2846613.83051
MEAN12.9278812.9030913.7129511.971213.5421513.31247
MIN12.1228612.507213.0117110.7997112.5316512.51123
STD1.3171460.4252880.6434071.3014330.9067160.703758
baboom2MAX15.6041914.717114.4034215.3555913.5372614.08897
MEAN15.0604113.3951914.0306514.7343813.4187912.84906
MIN14.5166312.0732913.6578814.1131713.3003211.60915
STD0.7690221.8694590.527180.8785230.1675411.753501
peppers2MAX15.3544614.5794215.9439613.8262213.5912614.54233
MEAN14.6216914.0554315.5824713.3083613.4259913.76463
MIN13.8889113.5314515.2209912.790513.2607212.98693
STD1.0363050.7410310.5112190.7323610.2337311.099833
lena3MAX17.8057617.2137416.5776613.9053915.9411116.08695
MEAN14.9388815.8289314.9045813.6569114.8892115.5409
MIN11.995813.7023914.0287713.4759713.8319914.45068
STD2.905731.8694951.4494660.2225341.0545740.944159
baboom3MAX15.2815315.2852214.9732813.4891515.1934113.74793
MEAN14.4932914.3977613.4825813.058314.6411213.20946
MIN1.1147381.2550652.1081710.6093160.7810580.761501
STD0.7108360.7516511.3361480.8762760.58780.445365
peppers3MAX17.5645915.2060216.3021216.9793315.9167216.9768
MEAN16.3778814.7265316.1808116.0736414.9368516.45331
MIN15.1911714.2470416.059515.1679513.9569815.92981
STD1.6782630.6781040.1715581.2808381.3857430.740327
lena4MAX19.1289317.0032716.2253518.4339117.5425915.38833
MEAN17.6735616.9578915.9428518.1558816.2729514.45334
MIN16.218216.9125115.6603517.8778615.0033113.51835
STD2.0581990.0641740.3995160.3931881.7955391.322275
baboom4MAX18.4545916.7383517.4546714.963117.5832517.02452
MEAN18.0277516.3288917.4396514.3197817.4948916.10883
MIN17.6009115.9194417.4246313.6764717.4065215.19314
STD0.6036430.5790580.0212440.909780.1249621.294976
peppers4MAX18.7410718.4226818.3885218.3525617.7586818.59458
MEAN18.4621517.5498718.2627918.301517.6951718.36283
MIN18.1832416.6770718.1370618.2504317.6316618.13108
STD0.3944481.2343320.177810.0722160.0898150.327748
lena5MAX22.2395819.3722220.2970616.7769718.5122218.99759
MEAN19.7425417.8426318.3569114.9419117.1722317.78203
MIN17.245516.3130316.4167713.1068615.8322416.56648
STD3.5313422.1631742.7437842.5951581.8950311.719052
baboom5MAX19.2227418.0535118.3622418.0218818.977517.56744
MEAN18.383117.8101118.2613417.3380618.7571117.437
MIN17.5434517.5667218.1604416.6542418.5367317.30656
STD1.1874350.3442070.1426960.9670730.3116730.18447
peppers5MAX20.3341118.0933319.0878119.635319.3073119.14042
MEAN19.1837417.1774718.400818.5882818.2782517.93067
MIN17.7207516.1761117.088717.6583817.4557415.77134
STD1.3344340.9614681.136730.9936530.9429071.874554
Comparison of PSNR for gray images Comparison of PSNR for color images In Tables 8 and 9, the comparative algorithms’ results are presented in terms of SSIM for gray and color images, respectively. According to the results obtained by applying two thresholds, the proposed MPASSA got the best results in all images (i.e., gray and color), followed by SSA, which got the best results in 3 images out of 5, While the values of each AOA, MPA, WOA and PSO algorithms are comparative according to the tested images. At the threshold level 3, the proposed MPASSA method obtained the best results in all images, followed by MPA, WOA, SSA, and AOA. Also, at the threshold levels 4 and 5, the proposed method obtained the best results in all images. Simultaneously, each WOA, SSA, AOA, PSO, and MPA are similar according to the SSIM values. From these results, we can conclude that MPASSA is the best algorithm among all comparative algorithms.
Table 8

Comparison of SSIM for gray images

ImageKMeasureMPASSAWOASSAAOAPSOMPA
Lena2MAX0.5556080.4705110.4984640.5287280.5498380.445319
MEAN0.5435590.4625270.4731890.5168480.5165840.438011
MIN0.5315090.4545430.4479140.5049690.4833290.430703
STD0.017040.0112910.0357440.01680.0470290.010335
baboom2MAX0.6081030.6052810.5964910.6053820.574810.574172
MEAN0.577330.55580.5869330.5702850.5075590.565484
MIN0.5561170.5218420.5741790.504360.4533180.560195
STD0.027280.0438320.0114940.0571320.0617820.007583
Lena3MAX0.6273570.5956710.5823470.5302950.6064530.561837
MEAN0.5447440.5866030.5694640.5074170.5329940.543333
MIN0.4621320.5775350.5565820.4845380.4595350.524829
STD0.1168320.0128240.0182180.0323550.1038860.026169
baboom3MAX0.7051810.6033650.6765720.6590790.6628940.677553
MEAN0.6191840.5905090.6681180.6034420.6418030.652842
MIN0.5331870.5776530.6596640.5478050.6207120.628131
STD0.1216180.0181810.0119560.0786830.0298270.034947
lena4MAX0.6652970.6477720.6173090.5966590.6340860.639709
MEAN0.6574530.6093060.5786530.5957720.6244330.616709
MIN0.6496090.570840.5399980.5948860.614780.593709
STD0.0110930.05440.0546680.0012540.0136510.032527
baboom4MAX0.7486460.6946630.7128260.697290.6659020.700478
MEAN0.7303680.6642490.693750.6705810.6350460.66093
MIN0.7120910.6338360.6746750.6438720.604190.621382
STD0.0258480.0430110.0269770.0377720.0436370.055929
lena5MAX0.7602910.6531690.6640390.6094880.7218240.686312
MEAN0.644270.6392690.6458970.5623120.6654220.632233
MIN0.5193090.626150.6336840.4735360.6109070.573331
STD0.120740.0135270.0160230.0769330.0554820.056645
baboom5MAX0.7982660.7605160.7243490.7481320.7473030.734778
MEAN0.7901290.7485930.7017130.7031450.7229370.714183
MIN0.7819920.7366690.6790760.6581570.6985720.693588
STD0.0115070.0168630.0320130.0636220.0344580.029126
Table 9

Comparison of SSIM for color images

ImageKMeasureMPASSAWOASSAAOAPSOMPA
lena2MAX0.7952230.6995920.743970.6780050.7067260.71598
MEAN0.6463720.6459890.7161460.6177660.6839640.643045
MIN0.5648970.5963160.6875050.5170780.6526830.583277
STD0.1291020.051750.0282410.0877580.028010.067324
baboom2MAX0.7015570.6322430.5974740.6794920.5700980.58416
MEAN0.6689940.5355390.5904320.6450660.5463190.49542
MIN0.6364310.4388360.5833910.610640.522540.40668
STD0.0460510.1367590.0099580.0486860.0336290.125498
peppers2MAX0.7462740.663420.7087640.6778960.6481660.663263
MEAN0.7360310.6319240.694450.6218320.6398070.653526
MIN0.7257880.6004290.6801350.5657670.6314480.643788
STD0.0144850.0445410.0202440.0792870.0118210.013771
lena3MAX0.8648020.8279580.8623080.6642230.8111830.829273
MEAN0.7459010.7842840.7720210.6456140.7319560.762389
MIN0.5884340.7029320.6760120.6119580.6044510.682031
STD0.1421630.0705160.0932790.0292010.1115020.07454
baboom3MAX0.6728140.6547320.6200690.5440680.6528850.549168
MEAN0.6227750.6026760.5350660.5277120.6111220.524361
MIN0.0707650.0736180.1202130.023130.0590610.035084
STD0.0309080.0405040.0855450.0508670.0312710.014398
peppers3MAX0.7840280.6704450.7648620.7701220.7486150.767455
MEAN0.7801590.6586660.746040.7424390.7075490.740247
MIN0.776290.6468870.7272180.7147570.6664820.713039
STD0.0054720.0166580.0266180.0391490.0580770.038478
lena4MAX0.9073880.8450010.7747830.881830.8262380.817124
MEAN0.8628170.8446780.7709350.8794230.7567730.743345
MIN0.8182460.8443550.7670860.8770150.6873080.669566
STD0.0630330.0004570.0054420.0034040.0982380.104339
baboom4MAX0.8318870.726410.7917660.6324370.7770110.753629
MEAN0.8044320.7062930.787960.5859910.7646870.713597
MIN0.7769770.6861770.7841550.5395450.7523640.673566
STD0.0388270.0284490.0053810.0656850.0174280.056613
peppers4MAX0.8459920.8580130.8355770.8141550.8511890.83603
MEAN0.8396920.8253130.8201580.8028110.8251050.825229
MIN0.8333930.7926130.804740.7914660.7990210.814428
STD0.0089090.0462450.0218050.0160430.0368890.015274
lena5MAX0.9443020.8803960.9199920.8490590.8113720.881303
MEAN0.8799710.840980.8657750.730730.7651790.806263
MIN0.815640.8015640.8115590.61240.7189850.731224
STD0.0909780.0557420.0766740.1673430.0653270.106122
baboom5MAX0.8356870.7822220.818660.7870310.8162340.763864
MEAN0.8211090.7783810.7865010.7632330.7971110.759163
MIN0.8065310.774540.7543420.7394340.7779870.754462
STD0.0206160.0054320.045480.0336560.0270450.006648
peppers5MAX0.8791970.8369830.8664510.8641950.8615580.891493
MEAN0.8521310.7930810.8616680.851340.8498630.838455
MIN0.8192860.7506460.8551610.8416640.8422710.774238
STD0.0303710.0431870.0058390.0115970.0102770.059422
Comparison of SSIM for gray images Comparison of SSIM for color images The CPU time is considered for all algorithms and listed in Tables 10 and 11 to show all algorithms’ performance in terms of exhaustion time. To compare the time complexity of the proposed MPASSA method against other algorithms, Table 10 presents the CPU time for the gray level, and Table 11 presents the CPU time for the color images. These tables illustrated that the proposed method consuming average time between the other algorithms. It was ranked fourth, better than MPA and PSO algorithms, and worse than SSA, AOA, and WOA. While SSA was the lowers consuming of time execution followed by AOA and then WOA at all levels with all images (gray and color).
Table 10

Average CPU time (seconds) for gray images

KWOASSAAOAMPAPSOMPASSA
Lena20.2519670.2458960.2393735.9406931.1461581.91396
30.2324580.2283590.2302187.6302691.791522.651281
40.2413090.2313320.2386875.2031412.0806053.733159
50.250150.2453320.24742111.484922.5942144.058729
baboom20.3111610.2450860.2488642.908730.7236722.736707
30.2918920.2634870.2497914.5044451.123954.09117
40.3095120.3038140.26311510.711711.1213824.379006
50.312040.2592870.2662025.2747921.1884095.35945
Table 11

Average CPU time (seconds) for color images

KWOASSAAOAMPAPSOMPASSA
Lena20.0400970.030620.03637476.8826111.062296.020129
30.0442290.0356560.043114106.065715.300597.626052
40.1220270.0641040.077583175.706927.5335716.09753
50.1132220.0825880.091326140.035626.5818113.93868
baboom22.3076230.0873760.07985422.605793.1057979.946913
30.0612950.0471980.055619101.617217.138977.643711
40.0618440.0450430.054286129.890523.2771110.81031
50.0825590.0774390.08149728.964526.00307120.01818
peppers20.0552430.0423740.05099779.5872910.504366.968161
30.0432260.0389530.046039105.716917.606549.140672
40.059050.0413180.049201131.495923.1128710.81287
50.0585290.0460550.05814921.5704232.896813.90128
Average CPU time (seconds) for gray images Average CPU time (seconds) for color images The Friedman ranking test results using PSNR and SSIM for all the tested methods using different tested images (gray and color) are given in Tables 12, 13, 14, 15, 16, 17, 18, 19, 20 and 21. The Tables show the rank of each method, summation, mean ranking, and the final ranking.
Table 12

The results of the Friedman ranking test for the comparative methods using the PSNR values for image lena

PSNRKMPASSAWOASSAAOAPSOMPA
Lena2254136
3513642
4132546
5123564
SUM91112171718
Mean rank2.252.7534.254.254.5
Final Rank123445
Table 13

The results of the Friedman ranking test for the comparative methods using the PSNR values for image baboom

PSNRKMPASSAWOASSAAOAPSOMPA
Baboom2451263
3461532
4132465
5126345
SUM101610141915
Mean rank2.542.53.54.753.75
Final Rank141253
Table 14

The results of the Friedman ranking test for the comparative methods using the PSNR values for image lena

PSNRKMPASSAWOASSAAOAPSOMPA
Lena2451623
3314652
4235146
5132654
SUM101212191615
Mean rank2.5334.7543.75
Final Rank122543
Table 15

The results of the Friedman ranking test for the comparative methods using the PSNR values for image baboom

PSNRKMPASSAWOASSAAOAPSOMPA
baboom2153246
3234615
4143625
5243615
SUM6161320821
Mean rank1.543.25525.25
Final Rank143526
Table 16

The results of the Friedman ranking test for the comparative methods using the PSNR values for image peppers

PSNRKMPASSAWOASSAAOAPSOMPA
peppers2231654
3263451
4164352
5163245
SUM62111151912
Mean rank1.55.252.753.754.753
Final Rank162453
Table 17

The results of the Friedman ranking test for the comparative methods using the SSIM values for image lena

SSIMKMPASSAWOASSAAOAPSOMPA
Lena2154236
3312654
4146523
5342615
SUM81414191118
Mean rank23.53.54.752.754.5
Final Rank133524
Table 18

The results of the Friedman ranking test for the comparative methods using the SSIM values for image baboom

SSIMKMPASSAWOASSAAOAPSOMPA
Baboom2251364
3461532
4142365
5126534
SUM81710161815
Mean rank24.252.544.53.75
Final Rank152463
Table 19

The results of the Friedman ranking test for the comparative methods using the SSIM values for image lena

SSIMKMPASSAWOASSAAOAPSOMPA
Lena2341625
3412653
4234156
5134652
SUM101111191716
Mean rank2.52.752.754.754.254
Final Rank122543
Table 20

The results of the Friedman ranking test for the comparative methods using the SSIM values for image baboom

SSIMKMPASSAWOASSAAOAPSOMPA
baboom2153246
3134526
4152634
5143526
SUM41712181122
Mean rank14.2534.52.755.5
Final Rank143526
Table 21

The results of the Friedman ranking test for the comparative methods using the SSIM values for image peppers

SSIMKMPASSAWOASSAAOAPSOMPA
peppers2152643
3162354
4125643
5261345
SUM51910181715
Mean rank1.254.752.54.54.253.75
Final Rank162543
For the gray images, in Table 12 of PSNR value, the MPASSA got the first ranking followed by WOA, it got the second-ranking, and SSA has the third ranking. Simultaneously, the AOA and PSO ranked fourth, and MPA got the last ranking. These results proved the ability of the proposed MPASSA in solving the image segmentation problem. In Table 13 of the PSNR value, the MPASSA and SSA got the first ranking followed by AOA; it got the second-ranking, MPA has the third ranking. In contrast, WOA got the fourth ranking, and PSO has the fifth the last ranking in the table. This result illustrated that the proposed MPASSA has a promising outcome compared to other methods. Tables 14, 15 and 16 shows the ranking results based on using PSNR values for color images. In Table 14, the MPASSA got the first ranking, followed by each of WOA and SSA, which have got the second-ranking, MPA has the third-ranking. In contrast, PSO has the fourth-ranking, and AOA got the last ranking in the table. In Table 15, the MPASSA got the first ranking followed by PSO; it got the second-ranking, SSA has the third-ranking, while WOA got the fourth-ranking, followed by AOA has the fifth ranking, and MPA at the last ranking in the table. In Table 16, the MPASSA got the first ranking, followed by SSA. It got the second-ranking, MPA has the third-ranking, while AOA got the fourth-ranking, followed by PSO have the fifth ranking and WOA at the last ranking in the table. The given results revealed that the modified version of MPA using SSA got better results than other comparative methods and avoided the basic version of MPA’s weaknesses. The results of the Friedman ranking test for the comparative methods using the PSNR values for image lena The results of the Friedman ranking test for the comparative methods using the PSNR values for image baboom The results of the Friedman ranking test for the comparative methods using the PSNR values for image lena The results of the Friedman ranking test for the comparative methods using the PSNR values for image baboom The results of the Friedman ranking test for the comparative methods using the PSNR values for image peppers For the gray images in Table 17 of SSIM value, the MPASSA got the first ranking followed by PSO; it got the second-ranking, each of WOA and SSA has the third-ranking. In contrast, MPA has the fourth-ranking, and AOA got the last ranking. In Table 18 of SSIM value, the MPASSA got the first ranking followed by SSA; it got the second-ranking, MPA has the third-ranking. In contrast, AOA got the fourth-ranking, and WOA has the fifth ranking and PAO at the last ranking. This result illustrated that the proposed MPASSA has a better performance compared to other methods. In Table 19, the MPASSA got the first ranking for the color images, followed by SSA, which got the second-ranking with WOA. At the same time, MPA has the third-ranking, and PSO got the fourth-ranking, and at the end ranking, AOA has the last ranking. In Table 20, the MPASSA got the first ranking followed by PSO; it got the second-ranking, SSA has the third-ranking, while WOA got the fourth-ranking, followed by AOA has the fifth ranking and MPA at the last ranking. In Table 21, the MPASSA got the first ranking, followed by SSA; it got the second-ranking, MPA has the third-ranking, while PSO got the fourth-ranking, followed by AOA has the fifth ranking, and WOA at the last ranking. The given results showed that the proposed version of MPA using SSA got promising results compared to other comparative methods and avoided the basic version of MPA. The results of the Friedman ranking test for the comparative methods using the SSIM values for image lena The results of the Friedman ranking test for the comparative methods using the SSIM values for image baboom The results of the Friedman ranking test for the comparative methods using the SSIM values for image lena The results of the Friedman ranking test for the comparative methods using the SSIM values for image baboom The results of the Friedman ranking test for the comparative methods using the SSIM values for image peppers Figures 9, 10, 11, 12, and 13 show the segmented test images (gray and color) obtained by the comparative methods using various threshold values (k= 2, 3, 4, and 5). The proposed MPASSA got the best-segmented images compared to other comparative methods. Figure 14 shows the gray and color images histogram distribution estimated by the proposed hybrid algorithm MPASSA at k equal to 2, 3, 4, and 5.
Fig. 9

Segmented lena gray images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5

Fig. 10

Segmented baboom gray images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5

Fig. 11

Segmented lena color images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5

Fig. 12

Segmented baboom color images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5

Fig. 13

Segmented peppers color images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5

Fig. 14

 Gy and Color images histogram at K=2, 3, 4, 5 obtained by MPASSA

Segmented lena gray images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5 Segmented baboom gray images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5 Segmented lena color images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5 Segmented baboom color images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5 Segmented peppers color images using Otsu’s (a2–f2) represent threshold2, (a3–f3) represent threshold3, (a4–f4) represent threshold4, (a5–f5) represent threshold5 Gy and Color images histogram at K=2, 3, 4, 5 obtained by MPASSA The proposed MPASSA got the optimum results in most cases. This because each of the images is considered as a varied optimization problem. Moreover, because of the randomness of the swarm methods, the results can change in some cases. Also, depending on No-Free Lunch Theorem NFL that illustrates, it is hard to find one algorithm suitable for many optimization problems. As well as, each image has a varied gray or colored level histogram. Also, image segmentation becomes a complex operation due to the histogram’s multimodality. The segmented image is constructed by determining each class a grey or the colored level value specified from the class members’ mean. So, for each image, the proposed MPASSA performed better in terms of the PSNR, SSIM, and fitness values at each level. The MPASSA may fail to segment the image in some cases and at different levels. For these reasons, we used statistical comparisons to determine the best algorithm for several images.

Conclusion and future work

Multilevel thresholding is one of the methods used in image segmentation. It is considered a preprocessing phase in many applications. In this research, the problem of defining the optimal/ best threshold for image segmentation in the case of multilevel thresholding. This problem has been considered as an ‘optimization problem’. Otsu’s function has been applied as a fitness function. So, a novel hybrid algorithm in image segmentation of multilevel threshold was proposed. It draws from the properties of both Marine Predators and Salp Swarm algorithms. The proposed algorithm has been used to solve this problem. Each one aims to define the optimal threshold value, which increases Otsu’s function. The proposed novel algorithm results have been compared with MPA, SSA, WOA, AOA, and PSA algorithms. The performance of algorithms has been evaluated based on the following measures: fitness values, Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index (SSIM), CPU-time, and Friedman ranking test. We used five benchmark images for gray and color images in all experiments. The study concluded that the proposed hybrid MPASSA method’s performance is better than that of the MPA and SSA algorithms and other algorithms. The leading cause for this supremacy is that hybrid technology combines the characteristics of different methods. Therefore, the proposed hybrid algorithm averts getting stuck on a local optimum. All of this indicates that hybrid techniques have a high ability to find the optimal solution for the image segmentation problem. The proposed method can solve various problems and applications as of image processing, such as visualization, computer vision, computer-aided diagnostics, image classification, etc. In all of these applications, the finesses of images are a critical problem in image segmentation. Low resolutions, high noises, or lower contrast, can cause this problem. So, the preprocessing of the images is an essential point to improve the quality of that status and multi-objective cases to gain optimal segmentation results. Other recent optimizers, such as Arithmetic Optimization Algorithm (AOA), can solve the given problem with new modifications in the future.
  4 in total

1.  Weakly Supervised Adversarial Domain Adaptation for Semantic Segmentation in Urban Scenes.

Authors:  Qi Wang; Junyu Gao; Xuelong Li
Journal:  IEEE Trans Image Process       Date:  2019-04-17       Impact factor: 10.856

2.  Marine Predators Algorithm for Forecasting Confirmed Cases of COVID-19 in Italy, USA, Iran and Korea.

Authors:  Mohammed A A Al-Qaness; Ahmed A Ewees; Hong Fan; Laith Abualigah; Mohamed Abd Elaziz
Journal:  Int J Environ Res Public Health       Date:  2020-05-18       Impact factor: 3.390

3.  A comprehensive survey of sine cosine algorithm: variants and applications.

Authors:  Asma Benmessaoud Gabis; Yassine Meraihi; Seyedali Mirjalili; Amar Ramdane-Cherif
Journal:  Artif Intell Rev       Date:  2021-06-02       Impact factor: 8.139

4.  An Improved Marine Predators Algorithm With Fuzzy Entropy for Multi-Level Thresholding: Real World Example of COVID-19 CT Image Segmentation.

Authors:  Mohamed Abd Elaziz; Ahmed A Ewees; Dalia Yousri; Husein S Naji Alwerfali; Qamar A Awad; Songfeng Lu; Mohammed A A Al-Qaness
Journal:  IEEE Access       Date:  2020-07-08       Impact factor: 3.367

  4 in total
  1 in total

1.  Application of an improved Discrete Salp Swarm Algorithm to the wireless rechargeable sensor network problem.

Authors:  Zhang Yi; Zhou Yangkun; Yu Hongda; Wang Hong
Journal:  Front Bioeng Biotechnol       Date:  2022-09-20
  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.