Keywords

1 Introduction

In recent years, a considerable number of image segmentation methods have been proposed and executed by most of the researchers in the literature [13]. Among them, global thresholding is referred as the most efficient procedure for image segmentation, because of its simplicity, robustness, accuracy and competence [4]. In existing parametric thresholding procedures, the geometric constraints of the image are estimated using traditional approach. Most of the classical methods have the following limitations; (i) computational difficulty, (ii) time consuming, and (iii) the overall performance diverge based on the image quality.

The nonparametric segmentation methods such as Otsu, Kapur, and Kittler are very efficient and successful in the case of bi-level thresholding process [5]. When the number of threshold level increases, classical thresholding techniques need extra computational time. Hence, in recent years, heuristic methods based image thresholds has increased the interest of researchers [48].

Recent literature illustrates that, the heuristic and meta-heuristic algorithms are widely considered for the segmentation of grey and colour images [69]. In this paper, the Particle Swarm Optimization (PSO) algorithm and its recent advancement (DPSO, FODPSO) based methods proposed by Ghamisi et al. [68] is considered. The PSO based methods are initially tested on a standard colour image (321 × 481). Further, the PSO based methods are implemented to analyze the cancer cell images (512 × 512).

In human tissues, the cancer tumours developed due to abnormal process of controlled production of cells. The genetic material (DNA) of a cell start producing mutations that affects normal cell growth and division by being damaged. When this happens, sometimes these cells do not die but form a mass of tissue called a tumor. Cancer tumours are of two types namely benign and malignant a benign tumor is a mass of cells (tumor) that lacks the ability to invade neighboring tissue or metastasize. A malignant tumor is developed from benign tumor by process called as tumor progression. This tumor invades neighboring tissues rapidly and causes organs to get malfunction. The benign tumor has slower growth rate and easily curable than malignant tumor.

In this work, PSO, DPSO, and FODPSO algorithms are employed to solve bi-level and multi-level colour image segmentation problem using Otsu’s between-class variance method. The parameters such as Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Peak to Signal Ratio (PSNR), and the objective functions are considered as the performance measure values.

2 Overview of PSO Algorithms

The traditional PSO algorithm was initially developed by Kennedy and Eberhart in 1995 [10]. PSO is an evolutionary type global optimization technique developed with the inspiration of social activities in flock of birds and school of fish, and is widely applied in various engineering problems due to its high computational efficiency. Based on the concepts similar to the PSO, recent improvements such as DPSO, FOPSO, and FODPSO [68, 11, 12] have been developed. In FODPSO, a group of swarms try to win using Darwin’s theory and the fractional calculus to regulate the convergence rate. Based on this principle, FODPSO enhances the performance of traditional PSO to escape from local optima by running several simultaneous parallel PSO algorithms.

In the proposed work, the heuristic algorithms with the following parameters are considered.

3 Methodology

In this paper, Otsu based image thresholding initially proposed in 1979 is considered to segment the colour images [13]. This method offers the optimal threshold by maximizing the between class variance function. A detailed description about this procedure can be found in the articles by Ghamisi et al. [68] and this procedure is defined as follows:

For a given RGB image, let there is L intensity levels in the range {0,1,2,…, L−1}. Then, it can be defined as;

$$ p_{i}^{C} = \frac{{h_{i}^{c} }}{N}\quad\sum\limits_{i = 0}^{L - 1} {p_{i}^{C} = 1} $$
(1)

The total mean of each component of the image is calculated as:

$$ \mu_{T}^{C} = \sum\limits_{i = 0}^{L - 1} {{ i}p_{i}^{C} = 1} $$
(2)

The m-level thresholding presents m − 1 threshold levels \( t_{j}^{c} \), where j = 1,2,…,m − 1, and the operation is performed as;

$$ F^{C} (x,y) = \left\{ {\begin{array}{*{20}l} {0,} \hfill & {} \hfill \\ {\frac{1}{2}(t_{1}^{C} + t_{2}^{C} ),} \hfill & {\begin{array}{*{20}c} {f^{C} (x,y) \le t_{1}^{C} } \\ {t_{1}^{C} < f^{C} (x,y) \le t_{2}^{C} } \\\end{array} } \hfill \\\vdots \hfill & \vdots \hfill \\ {\frac{1}{2}(t_{{m - 2}}^{C} + t_{{m - 1}}^{C} ),} \hfill & {\begin{array}{*{20}c} {t_{{m - 2}}^{C} < f^{C} (x,y) \le t_{{m - 1}}^{C} } \\ {f^{C} (x,y) > t_{{m - 1}}^{C} } \\ \end{array} } \hfill \\ {L - 1,} \hfill & {} \hfill \\ \end{array} } \right. $$
(3)

The probabilities of occurrence \( w_{j}^{C} \) of classes \( D_{i}^{c} , \ldots ,D_{m}^{c} \) are given by;

$$ w_{j}^{C} = \left\{ {\begin{array}{*{20}l} {\sum\limits_{i = 0}^{{t_{j}^{C} }} {p_{i}^{C} ,} } \hfill \\ {\sum\limits_{{i = t_{j}^{C} - 1}}^{{t_{j}^{C} }} { + 1 \, p_{i}^{C} ,} } \hfill \\ {\sum\limits_{{i = t_{j}^{C} - 1}}^{L - 1} { + 1 \, p_{i}^{C} ,} } \hfill \\ \end{array} } \right. \, \begin{array}{*{20}l} {j = 1} \hfill \\ {} \hfill \\ {1 < j < m} \hfill \\ {} \hfill \\ {j = m} \hfill \\ \end{array} $$
(4)

The mean of each class \( \mu_{j}^{C} \) can then be calculated as;

$$ \mu_{j}^{C} = \left\{ {\begin{array}{*{20}l} {\sum\limits_{i = 0}^{{t_{j}^{C} }} {\frac{{p_{i}^{C} }}{{w_{j}^{C} q}},} } \hfill \\ {\sum\limits_{{i = t_{j}^{C} - 1}}^{{t_{j}^{C} }} { + 1 \, \frac{{p_{i}^{C} }}{{w_{j}^{C} }},} } \hfill \\ {\sum\limits_{{i = t_{j}^{C} - 1}}^{L - 1} { + 1 \, \frac{{p_{i}^{C} }}{{w_{j}^{C} }},} } \hfill \\ \end{array} } \right. \, \begin{array}{*{20}l} {j = 1} \hfill \\ {} \hfill \\ {1 < j < m} \hfill \\ {} \hfill \\ {j = m} \hfill \\ \end{array} $$
(5)

The Otsu’s between class variance of each component can be defined as;

$$ \sigma_{B}^{{c^{2} }} = \, \sum\limits_{j = 1}^{m} { \, w_{\text{j}}^{\text{C}} } \left( {\mu_{j}^{C} - \mu_{T}^{C} } \right)^{2} $$
(6)

where \( w_{\text{j}}^{\text{C}} \) = probability of occurrence, and \( \mu_{j}^{C} \) = mean.

The m-level thresholding is reduced to an optimization problem to search for \( t_{j}^{C} \), that maximize the objective functions of each image component C can be defined as;

$$ \phi^{C} = \mathop { \hbox{max} }\limits_{{1 < t_{i}^{C} < , \ldots ,L - 1}} \sigma_{B}^{{c^{2} }} (t_{j}^{C} ) $$
(7)

The expression for the performance measure values considered in this paper, such as MSE, RMSE, and PSNR can be found in the recent paper by Rajinikanth et al. [4, 5].

4 Results and Discussions

Otsu based multi-level segmentation techniques have been implemented on five colour images. Initially, the considered PSO algorithms based method is tested on a Fish image (481 × 321) taken from the Berkeley Segmentation Dataset [14]. Figure 1 shows the original image, grey histogram, colour histogram, and segmented images for m = 2, 3, 4, 5. From Fig. 1b, c, it can be observed that, the mean value of the R,G,B component of the colour histogram is similar to the grey histogram. Hence, in the proposed work, we presented the optimal thresholds for the segmented colour images. Table 1 presents the performance measure values for the Fish image with PSO, DPSO, and FODPSO algorithms. From this, it is noted that, the FODPSO provides overall best value compared with the PSO and DPSO (Table 2).

Fig. 1
figure 1

Segmented test image using FODPSO algorithm. a Image. b Grey histogram. c Colour histogram. d m = 2. e m = 3. f m = 4. g m = 5

Table 1 Initial parameters of heuristic algorithms
Table 2 Performance values of fish image

The considered segmentation procedure is then used to analyze the cancer cell images (512 × 512) shown in Figs. 2 and 3. The segmented images with the FODPSO are presented in Table 3. Please confirm if the section headings identified are correct.The corresponding performance measure values such as MSE, RMSE, PSNR (dB), maximized objective function values, and the corresponding values are presented in Table 4 (Malignant) and Table 5 (Benign). From these tables, it is noted that, FODPSO algorithm offers better result compared with the PSO and DPSO algorithm.

Fig. 2
figure 2

Malignant. a Image 1. b Image 2

Fig. 3
figure 3

Benign. a Image 3. b Image 4

Table 3 Segmented cancer cell images with FODPSO for m = 2–5
Table 4 Performance measures for Malignant cancer cell images
Table 5 Performance measures for Benign cancer cell images

5 Conclusions

In this paper, an attempt is made to solve the multi-level image segmentation problem using the heuristic algorithms, such as PSO, DPSO, and FODPSO. Maximization of Otsu’s between class variance function is chosen as the objective function. In order to evaluate the performance of considered heuristic algorithms, five colour test images are examined. This study confirms that, FODPSO offers better performance measure values compared to PSO and DPSO algorithms considered in this study.