Abstract
Image segmentation using local region-based active contour models can segment images with intensity inhomogeneity effectively, but their segmentation results are sensitive to the initialization and easy to get incorrect results when dealing with texture images. This paper presents a novel active contour model (ACM) for image segmentation. The proposed method adopts local kernel mapping to enhance the discriminative ability to delineate nonlinear decision boundaries between classes. In addition, we introduce a modified convex model and propose a fast evolving scheme accordingly to deal with the minimization of the model energy function. The proposed approach is validated by a comparative study over a large number of experiments on synthetic and real images. The experiments demonstrate that our method is more efficient and robust for segmenting different kinds of images compared with the state-of-the-art image segmentation methods.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
1 Introduction
Image segmentation is a basic requirement in computer vision and image processing. The purpose of image segmentation is to partition an image area into some meaningful regions. However, it is still a challenging task as images are usually affected by various noise and intensity inhomogeneity. In the past decades, a lot of methods have been proposed to improve the image segmentation quality. Among them, the level set method as a member of active contour family, which was first proposed by Osher and Sethian [1] has been widely used. The advantage of this method is that it treats image segmentation as an energy minimization problem and can get accurate boundary detection with sub-pixel precision. Moreover, the method is convenient to the introduction of constraints on the solution for different tasks [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32].
Compared with the parametric active contour models (ACMS), level set methods represent the active contour as the zero level set of a higher dimensional function, the advantage is to realize freedom of topological transformation. Existing level set methods can be classified into three classes: edge-based methods [8,9,10], region-based methods [7, 11,12,13,14,15], and combined approaches [6, 16,17,18,19,20,21,22]. Edge-based models depend on gradient information of the image to guide curve evolution. However, they are very sensitive to noise and weak boundary. Therefore, some researchers proposed region-based models to overcome the problems, using the global region statistical information inside and outside of curve to attract contour evolution. One of the most popular region-based models is Chan–Vese (CV) model, Chan and Vese [23] applied the level set method to solve the simplified variants of Mumford–Shah model, which also called Piecewise Constant model. It does not depend on the edge information of the image, but using statistical information of regions inside and outside evolving curves to stop curves on the desired boundary. It gets satisfactory performance on images with weak boundaries. However, it usually fails to segment images with intensity inhomogeneity since the model assumes the image domain is composed of some homogenous regions. To overcome this problem, the piecewise smooth (PS) segmentation model [24] is put forward to segment images with gray uneven characteristics. Unfortunately, it’s very complex to calculate and also sensitive to the initial position of the active contour. Then, Li et al. [25] presented a local binary fitting (LBF) method to segment images with intensity inhomogeneity, using localized image information to segment images with intensity inhomogeneity. In addition, they proposed a regularize level set function by penalizing its deviation from a signed distance function. As a result, the costly re-initialization procedure has been eliminated. Next, Wang et al. [26] described local image intensities by Gaussian distribution with local means and variances as variables, it can be used to segment some simply texture images. Combining region and edge information of the image characteristics, an active contour model integrated boundary-based and region-based information was proposed by Paragios [27] to achieve more robust and better performance in segmentation.
In recent years, some researchers introduced some classical classification methods to segment images [3, 4, 6, 12, 14, 19, 21, 22]. Their methods are robust against noise to some extent and have better segmentation performance compared with some famous level set approaches [9, 23, 25]. For example, Wang et al. [6] proposed a level set method for image segmentation by incorporating local approximating the non-homogeneity-free image in a statistical analysis way which the local energy term and the Bhattacharyya coefficient is used to measure the similarity between probability distribution functions for intensities of inside and outside of the evolving contour. In general, the superiority of this method over the local region-based methods has been shown through the comparisons with representative LBF model, LIC model and LCV model [6]. However, the limitations of these models are the complex mathematical description and high computation cost.
Therefore, more efficient methods are expected to be presented for image segmentation. In this paper, we proposed a novel ACM model which is constructed by two groups—local data energy term and constraint term. The local energy term is described in a local kernelized way that could deal with image segmentation problem flexibly by kernel mapping the original image data in each local regions. However, similar to most other local active contour models [6, 7, 12, 15, 25, 33, 34], it is still sensitive to initialization of the contours. Then, we further modified the aforementioned model and proposed the convex formulation of this model to solve the initialization problem. Meanwhile, the alternating direction method of multipliers (ADMM) iteration approach [35, 36] was utilized to quickly solve the numerical minimization for the active contour propagation toward the boundaries of the images. Figure 1 shows the overall flowchart of the proposed model. To validate the efficiency and robustness of our methods, some experiments on medical images, images with intensity inhomogeneity and noise, texture images are conducted. In addition, we also make a comparative study with some state-of-the-art models to show the superiority of our methods.
The remainder of this paper is organized as follows. Section 2 reviews several major region-based active contour models. Then the proposed models are presented in Sect. 3. In Sect. 4, some experimental results are described and analyzed using a set of synthetic and real images. Finally, this paper is summarized in Sect. 5.
2 Background
2.1 Chan–Vese Model
Mumford and Shah proposed a classic Mumford-Shah model, the model totally depends on the data term of the image to drive the evolution of contour. Then, Chan and Vese [23] presented an active contour model implemented via level set function to solve a simplified Mumford–Shah model. They proposed to minimize the following energy functional:
To minimize the energy function (1), the level set method is used. The curve C is represented by the zero level set. Then, the formulation of (1) can be reformulated as follows
where \( \lambda_{1} \), \( \lambda_{2} \), and \( \mu \) are positive constants. \( \phi \) is the level set function. \( c_{0} \) and \( c_{b} \) represent the intensity averages of the image I inside and outside \( \phi \), respectively. The average intensities \( c_{0} \) and \( c_{b} \) can be calculated by
where H is the Heaviside function. In practice, H is approximated by a smooth function \( H_{\varepsilon } \) which defined as
The derivative of \( H_{\varepsilon } \) is written by the following function
Keeping \( c_{0} \) and \( c_{b} \) fixed, and minimizing the energy functional (2) with respect \( \phi \), we derive the following gradient descent flow
From the energy functional (2), we know that when the values \( c_{0} \) and \( c_{b} \) are known, this function is non-convex, it has a good segmentation performance on the image with weak boundaries. However, the CV model assumes that the intensities in each area are constant it might fail to segment images with heavy intensity difference in the same area.
2.2 The LBF Model
Through analysis of the local image information, Li et al. [9] proposed the local binary fitting (LBF) model to segment images with intensity inhomogeneity. The energy function of LBF model can be written as follows:
where \( \lambda_{1} \), \( \lambda_{2} \), \( \mu \) and \( \nu \) are positive constants. \( K_{\sigma } \) is a Gaussian kernel function with a localization property that \( K_{\sigma } (\omega ) \) decreases and approaches zero as \( \left| \omega \right| \) increase, and \( \sigma \) is a standard deviation that controls the size of the local region, it can be expressed as.
where a is a constant such that \( \int {K_{\sigma } (\omega )} = 1 \).
\( f_{1} (x) \), \( f_{2} (x) \) are two numbers that fit the image intensities near the point of x, they can be obtained by
\( P(\phi ) \) is the distance regularizing term to penalize the deviation of the level set function from a signed distance function.
\( L(\phi ) \) is the length of the contour.
Due to the utilization of the local image information, this model has the capability to segment images with slight intensity inhomogeneity. However, the LBF model is sensitive to the location of initial contour and has difficulty in coping with the image with heavy noise and intensity inhomogeneity.
2.3 The LGDF Model
To effectively exploit information on local intensities, Wang et al. [7] proposed to utilize the Gaussian distribution with different means and variances to describe the local image intensities. In LGDF model, the local intensity means and variances are spatially varying functions. Actually, it is a local statistic model, compared with the LBF model, the capability in handling intensity inhomogeneity is more robust. The energy function of LGDF model embedded level set function can be written as follows:
For each pixel x, the local intensities within its neighborhood are assumed to follow a Gaussian distribution
where \( u_{i} (x) \) and \( \sigma_{i} (x) \) are local intensity means and stand deviations, respectively. By using both the first-order and second-order statistics of local intensities, the LGDF model can not only handle noise and intensity inhomogeneity but also different regions with similar intensity means but different intensity variances. However, from [22] we know that the spatially varying variance may be unstable due to its local property.
2.4 The Kernelized Method
Mohamed et al. [4] proposed an effective level set image segmentation method by kernel mapping the image data. A kernel function maps implicitly the original data onto a higher dimension so that the piecewise constant model becomes applicable. It can express the complex modeling of the image data in a flexible way. Let \( \Phi \) be a nonlinear mapping from the observation space M to a higher dimensional feature space N. Let C: \( [0,1] \to \Omega \) be a closed curve. The C divides the image area into two regions: the interior of given C by \( \Omega_{1} = \Omega_{C} \), the exterior \( \Omega_{2} = \Omega_{C}^{c} \). The functional which measures a kernel-induced non-Euclidean distance between the observations I(x) and the regions parameters \( f_{1} \), \( f_{2} \) as follows:
The Mercer’s theorem [37] shows that any finitely positive semi-definite kernel represents the inner product in some higher-dimensional Hilbert space. Therefore, we do not have to know the mapping \( \Phi \) exactly. We can use a kernel function \( K(x_{i} ,x_{j} ) \) expressed
The kernel functions in the data term can be represented by the non-Euclidean distance measure in original data space:
They adopt an iterative two-step algorithm to solve the \( E_{K} \) function. Firstly, fixing the curve and optimizing the regions parameters. Secondly, evolving the curve by the zero level set function with the region parameters fixed (more details can be referred to [4]). This model can obtain quantitative and comparative performance on synthetic complex images, but it would generate poor results when segmenting images with intensity inhomogeneity.
2.5 Summary
It should be noted that the CV and LBF models both use the mean intensity value to characterize either the global or local image region. Obviously, it will fail to segment the image region with heavy noise and serious inhomogeneity due to the limited characterization ability of the image region. In order to deal with this problem, some models, such as LGDF, employ the mean and variance to represent the image in the local region. However, when the data distribution dissatisfies the Gaussian distribution, it can hardly get the accurate segmentation results.
3 Proposed Method
3.1 Data Energy Term
Intensity inhomogeneity of images is caused by various factors, such as imaging devices, human factors, strength of the natural light on objects. In particular, these adverse factors usually happen in medical images, such as X-ray radiography and magnetic (MR) images. To overcome above problems, a local region-based energy term [7, 14, 15, 19, 25, 26, 28,29,30] has been proposed by many researchers. Although these methods have shown the efficiency in segmenting non-uniform intensity regions, they have difficulties in coping with heavy noise and weak boundary regions in images. From [4], we know that a kernel function can map the image data into a higher dimension which leads to a flexible and effective alternative to the complex modeling of the image data.
Inspired by the kernel mapping function and local region-based energy term, we proposed to combine the local image statistics and kernel mapping strategies, and defined the data energy term as follows:
where \( \lambda_{1} \), \( \lambda_{2} \), are fixed parameters, \( f_{1} (x) \) and \( f_{2} (x) \) are the regions parameters. Table 1 lists some familiar kernel functions \( \Phi \), and we used the radial basis function [38, 39] (RBF) kernel in our experiments.
We use the level set to implement the curve evolution in (17), it can be rewritten as:
The constraint term can be written as follows:
where \( \mu \) and \( \nu \) are positive constants which control the penalization effect, respectively.
3.2 Level Set Implementation
Now, the total energy functional is given by
It’s a novel ACM, which is called LKF model.
3.3 Gradient Descent Flow
To minimize the function \( E^{\textit{LKF}} \), standard gradient descent is used. The solving process can be divided into two steps: the first step is fixing the level set function \( \phi \) to solve \( f_{1} \) and \( f_{2} \), the second step is to update the level set function \( \phi \) with the region parameters \( f_{1} \), \( f_{2} \) fixed. Next, we will introduce the specific procedures.
-
(a)
For a fixed level set function \( \phi \), the derivatives of \( E^{\textit{LKF}} \) with respect to \( f_{i} \), \( i \in \left\{ {1,2} \right\} \) produce the following equations:
$$ \frac{{\partial E^{\textit{LKF}} }}{{\partial f_{i} }} = \lambda_{i} \iint {K_{\sigma } }\frac{{\partial (K(I,I) + K(f_{i} ,f_{i} ) - 2K(I,f_{i} ))}}{{\partial f_{i} }} $$(21)For RBF kernel, we know that \( K(I,I) = K(f_{i} ,f_{i} ) = 1 \), the minimum of \( E^{\textit{LKF}} \) with respect to \( f_{1} \), \( f_{2} \) is
$$ \begin{aligned} f_{1} & = \frac{{\int {K_{\sigma } I(x)K(I(x),f_{1} )H(\phi )dx} }}{{\int {K_{\sigma } K(I(x),f_{1} )H(\phi )dx} }}, \\ f_{2} & = \frac{{\int {K_{\sigma } I(x)K(I(x),f_{2} )(1 - H(\phi ))dx} }}{{\int {K_{\sigma } K(I(x),f_{2} )(1 - H(\phi ))dx} }}. \\ \end{aligned} $$(22)
-
(b)
With the \( f_{1} \), \( f_{2} \) fixed, the \( E^{\textit{LKF}} \) is minimized with \( \phi \) and obtained the following gradient flow equation:
$$ \begin{aligned} \frac{\partial \phi }{\partial t} & = \delta_{\varepsilon } (\phi )\left[ { - \lambda_{1} \int {K_{\sigma } \left| {\Phi (I(y) - \Phi (f_{1} (x))} \right|^{2} } dy} \right. \\ & \left. { + \lambda_{2} \int {K_{\sigma } \left| {\Phi (I(y) - \Phi (f_{2} (x))} \right|^{2} } dy} \right] \\ &\quad + \mu \left( {\nabla^{2} \phi - div\left( {\frac{\nabla \phi }{{\left| {\nabla \phi } \right|}}} \right)} \right) + \nu \delta_{\varepsilon } (\phi )div\left( {\frac{\nabla \phi }{{\left| {\nabla \phi } \right|}}} \right) \\ \end{aligned} $$(23)where \( \nabla \) is the gradient operator, \( {\text{div}}( \cdot ) \) is the divergence operator. We use finite difference scheme to implement the level set evolution in this paper. The spatial partial derivatives can be approximated by using the central difference and the temporal partial derivatives were approximated by the forward difference. Furthermore, the computational cost of the level set method can be greatly reduced by only consider an inner and outer band, both sides of the curve, that is, a narrow-band [40] around the zero level set, instead of dealing with the entire domain. The procedures of the proposed algorithm are summarized in Algorithm 1.
Algorithm 1 Image segmentation with the proposed LKF model
Input: Place the initial contour \( C_{0} \) and initialize the level set function \( \phi \). |
Repeat |
Fixed level set function \( \phi \), and compute \( f_{1} \), \( f_{2} \) by solving Eq. (22). Update \( f_{1} \) and \( f_{2} \). |
Fixed \( f_{1} \), \( f_{2} \), and compute the level set function \( \phi \) according to the gradient flow (23). Update \( \phi \). |
Until the level set evolution terminates at time t or reaches the largest number of iterations N. |
Out: Extract the zero level set function from the level set function. |
Similar to other local active contour models [33, 34], which are known to be sensitive to initialization, the segmentation results of our model also depend on the initialization of the contours. Actually, most of the global active contour models have the same problem, though they are less sensitive than the local models. To obtain a steady solution of the LKF model, convex formulation of it could be a reasonable direction. Next, we will talk about it.
3.4 Convex Formulation of the LKF Model
Since \( \delta_{\varepsilon } (\phi ) \ge 0 \) in (23), we can remove this function from the gradient descent flow equation of the LKF model, and the following one has the same stationary solution:
where \( e_{1} \) and \( e_{2} \) are defined as follows:
Thus, the previous gradient descent flow equation is associated with the following energy:
The above energy function is homogeneous of degree 1 in \( \phi \), and \( h = \lambda_{1} e_{1} (x) - \lambda_{2} e_{2} (x) \). As a result, it does not have a minimizer in general (do not have unique level set representations), From [35, 36], we know that a global minimizer for the function of (26) can be found with the constrained \( \phi \in [0,1] \). Inspired by this, the GLKF model can be given as follows [we change the notation \( \phi \) into u to avoid any confusion with the level set method in (23) and (24)]:
3.5 Numerical Minimization of the GLKF Based on ADMM
One of the most simple common schemes is the Euler–Lagrange equation techniques and explicit gradient-descent methods to cope with the computation problem of active contour evolution. Unfortunately, the regularization of the TV norm limits the speed of the numerical minimization. In a recent study, a fast and accurate numerical scheme, i.e., ADMM iteration approach, is introduced to solve the energy minimization problem of (27). The ADMM method is a technique for solving general L1-regularized problems of the form
where \( \Phi \) and A are linear operators. The ADMM method does not require regularization, continuation, or enforcement of inequality constraints and has been demonstrated to be an extremely efficient solver for L1 regularized problems.
In order to use the ADMM method to solve Eq. (27), firstly, we introduce the auxiliary variable d, \( d = \nabla u \). The Eq. (27) becomes
Then, we add a quadratic penalty function to weakly enforce the resulting equality constraint.
To strictly enforce the constraint \( d = \nabla u \), we apply ADMM iteration to the equation. The optimization problem becomes
where \( \lambda \ge 0,k \ge 0 \), the optimal solution of u must satisfy the following equation:
A fast approximate solution can be obtained by using a Gauss–Seidel method since this equation is strictly diagonally dominant (see [35] for more details), and \( u^{k + 1} \) can be updated.
Then, the optimal solution \( d^{k + 1} \) is updated using the following shrink operator:
When the ADMM solver scheme is placed into algorithm 1, we get the following algorithm scheme for segmentation.
Algorithm 2 ADMM method for the proposed GLKF model
Initialization: Set the initial condition of the iteration approach as \( u^{0} = d^{0} = b^{0} = 0, \) and \( k = 0, \)\( i_{G} = 0. \) The maxima of k and \( i_{G} \) are represented \( N_{0} \) and \( N_{1} \), respectively. |
Repeat until \( \left\| {u^{k + 1} - u^{k} } \right\| \le \varepsilon_{1} \) or \( k \ge N_{0} \) |
Let\( u_{\text{old}} = u_{\text{new}} = u^{k} . \) |
Repeat until \( \left\| {u_{\text{old}} - u_{\text{new}} } \right\| \le \varepsilon_{2} \) or \( i_{G} \ge N_{1} \) |
Update\( u_{\text{new}} \) with the Gauss–Seidel method |
Set\( i_{G} = i_{G} + 1. \) |
End |
Update\( u^{k + 1} \) with \( u^{k + 1} = u_{\text{new}} . \) |
Update\( d^{k + 1} \) according to (34). |
Update\( b^{k + 1} \) according to (32). |
Set\( k = k + 1. \) |
End |
4 Experimental Results and Discussions
The performance of our proposed models was evaluated on synthetic and real images. Our models were implemented in Matlab R2014a on a computer with Intel Core i7-4770 3.4 GHz, 8 GB RAM, and Windows 7 operating system. Unless otherwise specified, we use the following parameters setting in LKF model: \( \lambda_{1} = \lambda_{2} = 1.0 \), \( \sigma = 3.0 \), \( \Delta t = 0.1 \), \( \in = 1 \), \( \mu = 1.0 \), \( \nu = 0.001 \times 255 \times 255 \), and \( \lambda = 1000 \), \( \eta = 0.2 \), \( \varepsilon_{1} = 10^{ - 5} \), \( \varepsilon_{2} = 10^{ - 2} \) in GLKF model.
4.1 Segmentation of Medical Images
Firstly, we evaluated LKF model on a set of medical images from different modalities. In the first column of Fig. 2, from top to bottom, a magnetic resonance (MR) image of a left ventricle, a heart computed tomography (CT) image, an ultrasound image, a brain MR image with a tumor and an X-ray image of three fingers. Those images are all corrupted with at least one degenerative factors, including the additive noise, low contrast, low signal-to-noise ratio (SNR), weak boundaries and intensity inhomogeneity. Initial contours were overlaid on each test image with yellow circles, the evolution of those contours was illustrated in the second, third and fourth columns, and the final segmentation results were displayed in the fifth column. It is clearly seen that the LKF model drives the contours to accurately converge to the boundaries of all targeted objectives.
4.2 Segmentation of Inhomogeneity Images
Then, we tested LKF model on synthetic and real images with inhomogeneity, the segmentation results were displayed in Fig. 3. In the first row of Fig. 3, from left to right, a synthetic image with severe intensity inhomogeneity, a synthetic image with noise and intensity inhomogeneity, and three real images with intensity inhomogeneity and blurred interferents [41], the initial contours were yellow circles overlaid on each test image. The final segmentation results are presented in the second row. It shows that the LKF model can segment objectives successfully in both synthetic images and real images with severe intensity inhomogeneity or heavy noise by driving the contours accurately to the boundaries.
4.3 Comparative Evaluation
In the experiments, we gave the comparison of the LKF model with six famous methods to demonstrate the performance improvement of our model, including the CV model [23], KM model [4], LBF model [25], LIF model [33], LGDF model [7], LSACM model [34]. In Fig. 4, the same initial contours were used by all the models, and overlay on each text images with yellow circles in the first row. From the second to the eighth rows were the results of the seven methods tested on six images. In the first column, from left to right, the first image is a real blood vessel with some blurred interferents around it. The second image is a neonatal rat smooth muscle cell image with heavy interferents and weak boundaries. The last four images were selected from the Berkeley segmentation dataset 500 (BSDS500), the difficulty to segment these images was that the intensity probability distribution functions of these images present multimodality. In each model, we set \( \lambda_{1} = \lambda_{2} = 1.0 \), \( \Delta t = 0.1 \), \( \nu = 0.001 \times 255 \times 255 \) in CV model, set \( \Delta t = 0.0001 \) in KM model, set \( \lambda_{1} = \lambda_{2} = 1.0 \), \( \sigma = 3.0 \), \( \Delta t = 0.1 \), \( \mu = 1.0 \), \( \nu = 0.001 \times 255 \times 255 \) in LBF model, set \( \Delta t = 0.1 \) in LIF model, set \( \lambda_{1} = 1.0 \), \( \lambda_{2} = 1.05 \), \( \sigma = 3.0 \), \( \Delta t = 0.1 \), \( \mu = 1.0 \), \( \nu = 0.002 \times 255 \times 255 \) in LGDF model, and set \( \Delta t = 0.1 \) in the LSACM model. The final segmentation results of the CV, KM, LBF, LIF, LGDF, LSACM and LKF were displayed from the second to the eighth rows of the Fig. 4, it shows that our model obtains the most satisfactory segmentation results among these models. Because of only using intensity means in the global region or local region, the CV, LBF and LIF model can hardly distinguish complex texture structures, these models can’t detect the real boundaries of the objects. For the KM model, it almost fails to detect boundaries of the objects when dealing with these intensity inhomogeneity images, it’s hard to accurately represent the category information of the global region of the images. Both the LGDF and LSACM model own better distinguishability to tackle the information of the image compared with the CV, LBF and LIF models, while they still fail to segment the boundaries with abundant textures. By contrast, the LKF model can successfully extract more true boundaries in all these images.
In order to quantitative analysis of the segmentation results, we used the Berkeley segmentation dataset 500 (BSDS500) and Microsoft GrabCut database [42] to evaluate the segmentation experiments. We first focus on the Berkeley data set and randomly selected 50 images from the BSDS500 which consists of a set of natural images and their ground truth segmentation maps generated by multiple individuals [43]. The segmentation results can be assessed quantitatively and objectively by using the Probabilistic Rand Index (PRI). When K ground truths \( S_{g} = \left\{ {S_{1} ,S_{2} , \ldots ,S_{K} } \right\} \) are available, the PRI of a segmentation result \( S_{s} \) which is calculated as follows [44]:
where \( c_{ij} = 1 \) if pixels i and j belong to the same cluster and otherwise \( c_{ij} = 0 \), and \( p_{ij} \) is the ground truth probability of pixels i and j belonging to the same cluster. The coefficient \( p_{ij} \) can be computed as the mean pixel pair relationship among all the ground truth images, which implies a binary value true indicating whether the pixel pair belonging to the same cluster or not [45]. The PRI takes a value between 0 and 1, with a higher value representing a more accurate segmentation result. In our experiments, we compared the LKF model with the CV, KM, LBF, LIF, LGDF, LSACM. The segmentation results of all the models obtained on a set of real-world images were compared quantitatively by the PRI shown in Fig. 5. It can be clearly seen that the proposed model achieves the highest PRI values in most images and substantially outperforms other models on average.
Moreover, the obtained segmentation results were also quantitatively assessed by using the well-known F-measure [46] which is mainly used in the boundary-based segmentation evaluation. Specifically, a precision-recall framework is introduced for computing the F-measure as follows:
Precision P is the fraction of detections that are true positives rather than false positives, while recall R is the fraction of true positives that are detected rather than missed [47] and \( \gamma \) is a relative cost between P and R, and was set to 0.5 in our experiments. The value of the F-measure ranges from 0 to 1, with a higher value representing a more accurate segmentation result. The F-measures of the segmentation results obtained by applying seven algorithms to segment 50 Berkeley color images were depicted in Fig. 6. It also demonstrates that the LKF outperforms the other models in most of the test images.
Then, we tested these models on the Microsoft GrabCut database to evaluate segmentation quality. The error rate is used as an accurate measurement of the segmentation results, which is defined as the ratio of the number of wrongly labeled pixels to the total number of unlabeled pixels [42]. Figure 7 illustrates the error rates of various methods for all the images in the Microsoft GrabCut database. Comparing the proposed method with other methods, we can see that our method obtains the lowest error rate in most cases. Figure 8 shows some segmentation examples of various methods in the Microsoft GrabCut database. Our method effectively improves the segmentation quality and outperforms the other methods.
4.4 Initialization Sensitivity of the LKF Model
The LKF model has a greater sensitivity to initialization than global region-based methods because the LKF model calculates local intensity inside and outside the active contour like other local active contours. Figure 9 shows segmentation results in a larger array of initial contours on a test image. The results (a)–(d) in Fig. 9 demonstrated that a quality segmentation when you can start the contour in almost the right place, including the number of pixels belonging to the object region is larger than that of the background region. Three initializations, shown in (e)-(g), resulted in an incorrect segmentation boundary of the foreground since the initial contours were far away from the object region. The remaining five initializations, shown in (h)-(l), resulted in an inaccurate segmentation since the initial contours contain very little information about the object. In conclusion, the initial contour needs to be placed on a region that is relatively close to the foreground, containing enough information about the foreground to generate satisfying results.
4.5 Parameter Setting
The proposed LKF model has five parameters to be set manually, including the standard deviation of Gaussian kernel \( \sigma \), the time step \( \Delta t \), the constant \( \in \) to approximate the Heaviside function, and two weighting constants \( \mu \) and \( \nu \) for the signed distance function \( P(\phi ) \) and the length of level set function \( L(\phi ) \), respectively.
In general, using larger time step can speed up the level set evolution, but may cause a border demarcation error if the time step is too large. Therefore, it is a tradeoff between a larger time step and boundary accuracy. Unfortunately, as far as we know, the choice of time step for the level set evolution is still mainly based on the experimental results. So, as an improved LBF model, we used the same time step \( \Delta t = 0.1 \) for all the experiments in our model. As in CV and LBF model, the constant \( \in = 1 \) has been widely used for good approximate of Heaviside function. We also fixed \( \in = 1 \) in our experiments.
To evaluate the impact of parameter settings for \( \sigma \), \( \mu \) and \( \nu \), the performances with different parameters are evaluated on the Microsoft Grabcut database. The scale size of \( \sigma \) effects the range of exploiting image information. Figure 10a shows the quantitative evaluation of the average error rates (%) for \( \sigma \in [1,20] \), we fixed \( \mu = 1 \), \( \nu = 0.001 \times 255 \times 255 \) in our experiments. It can be seen that the average error rate of the proposed method decreases with the increase of \( \sigma \) when \( \sigma \le 4 \) and gradually increases when \( \sigma > 4 \).
To eliminate the need of the re-initialization and maintain the signed distance in traditional level set methods, an internal energy term \( \int_{\Omega } {\frac{1}{2}\left| {\nabla \phi - 1} \right|^{2} dx} \) has been introduced to penalize the deviation of the level set function from a signed distance function. To quantitatively evaluate the impact of \( \mu \), we fixed \( \sigma = 3 \), \( \nu = 0.001 \times 255 \times 255 \). Figure 10b indicates the average error rate of different \( \mu \) for \( \mu \in [0,2] \). It illustrates that the average error rate of the proposed model slightly decreases with the increase of \( \mu \) when \( \mu \le 1 \) and gradually increases when \( \mu > 1 \), in particular, the average error rate dramatically increases when \( \mu \ge 1.6 \). Therefore, \( \mu = 1 \) is widely used in variational level set methods.
The parameter \( \nu \) in the internal \( \int_{\Omega } {\delta \left( \phi \right)} \left| {\nabla \phi } \right|dx \) term controls the smoothness of the zero level set curve. To quantitatively evaluate the impact of \( \nu \), we fixed \( \sigma = 3 \), \( \mu = 1 \). Figure 10c shows the average error rate of different \( \nu \) for \( \nu \in [0,100] \). It shows that the values of average error rate have been slightly affected by the parameter \( \nu \), the minimum average error rate is about 5.5%, and the maximum value is about 6.25%. The larger the \( \nu \) is, the smoother the segmentation boundaries are. In contrast, if we choose \( \nu \) too small, the segmentation boundaries may not be smooth enough and the corresponding segmentation results may not be robust against noise. In terms of our experiments, a quality segmentation result may obtain if we choose a value of \( \nu \) from a range [40, 70].
4.6 The Evolution Contours of the GLKF Model
Since the nonconvex property of the LKF model, it inevitably needs the initialization contour relatively close to the segmentation object. To address this problem, we proposed a modified LKF model called GLKF model was proposed. In order to get a better understanding, the same test image (the image in Fig. 9) is used. Figure 11 shows the segmentation results of the GLKF model, the first row displays the evolution of the contours and the second row shows the corresponding results of u in the formulation (27). From Fig. 11, we can see that the GLKF model can overcome contour initialization problem beautifully.
4.7 Computational Complexity Analysis
Theoretically, the proposed LKF model has computational complexity \( O(M_{0} M_{1} ) \), where \( M_{0} \) and \( M_{1} \) are the size of the image and kernel, respectively. In algorithm 2, the main numerical computation is the iteration of k and \( i_{G} \), so the GLKF model has the time complexity \( O(N_{0} N_{1} ) \), where \( N_{0} \) and \( N_{1} \) are the maxima of k and \( i_{G} \), respectively. In fact, \( N_{0} \) and \( N_{1} \) are usually much smaller than the size of the image \( M_{0} \). As a result, the GLKF model is much faster than the LKF model. Table 2 shows the run-time performance on test images presented in Fig. 2. It is worth mentioning that we can further reduce the complexity of our method by using the generalized power method of sparse principal component analysis (GP-SPCA) [48]. be mainly focused on it in the future work, which would be one of our focuses in the future.
5 Conclusions
In this paper, we proposed a novel active contour model which is called LKF model. The experiments on several real and synthetic images have demonstrated the efficiency of our method on medical images, images with intensity inhomogeneity, nature images. In addition, the superiority of it over the traditional region and local region-based methods has been shown through the comparisons with the representative CV model, KM model, LBF model, LIF model, LGDF model and LSACM model.
However, the LKF model is sensitive to the initialization of contours. To overcome this problem, we further modified the LKF model and proposed the GLKF model. It is a convex formulation, so it can avoid the initialization problem, meanwhile, a fast algorithm ADMM is used to solve this model. In the future, we will focus on a new active contour model for image segmentation and introducing GP-SPCA or other parallel optimization methods to further accelerate the computation.
References
Osher S, Sethian JA (1988) Fronts propagating with curvature-dependent speed: algorithms based on Hamilton-Jacobi formulations. J Comput Phys 79(1):12–49
Ayed IB, Mitiche A, Belhadj Z (2005) Multiregion level-set partitioning of synthetic aperture radar images. IEEE Trans Pattern Anal Mach Intell 27(5):793–800
Ben Ayed I, Mitiche A, Belhadj Z (2006) Polarimetric image segmentation via maximum-likelihood approximation and efficient multiphase level-sets. IEEE Trans Pattern Anal Mach Intell 28(9):1493–1500
Ben Salah M, Mitiche A, Ben Ayed I (2010) Effective level set image segmentation with a kernel induced data term. IEEE Trans Image Process 19(1):220–232
Ayed IB, Mitiche A (2008) A region merging prior for variational level set image segmentation. IEEE Trans Image Process 17(12):2301–2311
Wang XF, Min H, Zou L et al (2015) A novel level set method for image segmentation by incorporating local statistical analysis and global similarity measurement. Pattern Recogn 48(1):189–204
Wang L, He L, Mishra A et al (2009) Active contours driven by local Gaussian distribution fitting energy. Sig Process 89(12):2435–2447
Malladi R, Sethian J, Vemuri BC (1995) Shape modeling with front propagation: a level set approach. IEEE Trans Pattern Anal Mach Intell 17(2):158–175
Li C, Xu C, Gui C et al (2005) Level set evolution without re-initialization: a new variational formulation. In: IEEE computer society conference on computer vision and pattern recognition, 2005. CVPR 2005. IEEE, 2005, vol 1, pp 430–436
Vasilevskiy A, Siddiqi K (2002) Flux maximizing geometric flows. IEEE Trans Pattern Anal Mach Intell 24(12):1565–1578
Yang X, Gao X, Li J et al (2014) A shape-initialized and intensity-adaptive level set method for auroral oval segmentation. Inf Sci 277:794–807
Wang Y, Xiang S, Pan C et al (2013) Level set evolution with locally linear classification for image segmentation. Pattern Recogn 46(6):1734–1746
Zhao YQ, Wang XH, Wang XF et al (2014) Retinal vessels segmentation based on level set and region growing. Pattern Recogn 47(7):2437–2446
Thapaliya K, Pyun JY, Park CS et al (2013) Level set method with automatic selective local statistics for brain tumor segmentation in MR images. Comput Med Imaging Graph 37(7):522–537
Wang XF, Min H, Zhang YG (2015) Multi-scale local region based level set method for image segmentation in the presence of intensity inhomogeneity. Neurocomputing 151:1086–1098
Wang L, Shi F, Li G et al (2014) Segmentation of neonatal brain MR images using patch-driven level sets. NeuroImage 84:141–158
Cote M, Saeedi P (2013) Automatic rooftop extraction in nadir aerial imagery of suburban regions using corners and variational level set evolution. IEEE Trans Geosci Remote Sens 51(1):313–328
Andersson T, Lathen G, Lenz R et al (2013) Modified gradient search for level set based image segmentation. IEEE Trans Image Process 22(2):621–630
Wang L, Pan C (2014) Robust level set image segmentation via a local correntropy-based K-means clustering. Pattern Recogn 47(5):1917–1925
Le T, Luu K, Savvides M (2013) SparCLeS: dynamic sparse classifiers with level sets for robust beard/moustache detection and segmentation. IEEE Trans Image Process 22(8):3097–3107
Hao M, Shi W, Zhang H et al (2014) Unsupervised change detection with expectation-maximization-based level set. IEEE Geosci Remote Sens Lett 11(1):210–214
Yang X, Gao X, Tao D et al (2015) An efficient MRF embedded level set method for image segmentation. IEEE Trans Image Process 24(1):9–21
Chan TF, Vese L (2001) Active contours without edges. IEEE Trans Image Process 10(2):266–277
Piovano J, Rousson M, Papadopoulo T (2007) Efficient segmentation of piecewise smooth images. In: Scale space and variational methods in computer vision. Springer, Berlin, Heidelberg, 2007, pp 709–720
Li C, Kao C Y, Gore JC et al (2007) Implicit active contours driven by local binary fitting energy. In: IEEE conference on computer vision and pattern recognition, 2007. CVPR’07. IEEE, pp 1–7
Wang L, He L, Mishra A et al (2009) Active contours driven by local Gaussian distribution fitting energy. Signal Process 89(12):2435–2447
Paragios N, Deriche R (2002) Geodesic active regions and level set methods for supervised texture segmentation]. Int J Comput Vis 46(3):223–247
Wang XF, Huang DS, Xu H (2010) An efficient local Chan–Vese model for image segmentation. Pattern Recogn 43(3):603–618
Sun K, Chen Z, Jiang S (2012) Local morphology fitting active contour for automatic vascular segmentation. IEEE Trans Biomed Eng 59(2):464–473
Zhang K, Song H, Zhang L (2010) Active contours driven by local image fitting energy. Pattern Recogn 43(4):1199–1206
Zhang J, Yu J, Tao D (2018) Local deep-feature alignment for unsupervised dimension reduction. IEEE Trans Image Process. https://doi.org/10.1109/TIP.2018.2804218
Yu J, Liu D, Tao D, Seah HS (2011) Complex object correspondence construction in 2D animation. IEEE Trans Image Process 20(11):3257–3269
Zhang K, Song H, Zhang L (2010) Active contours driven by local image fitting energy. Pattern Recogn 43(4):1199–1206
Zhang K, Zhang L, Lam KM et al (2015) A level set approach to image segmentation with intensity inhomogeneity. IEEE Trans Cybern 46(2):546–557
Goldstein T, Bresson X, Osher S (2010) Geometric applications of the split Bregman method: segmentation and surface reconstruction. J Sci Comput 45(1–3):272–293
Houhou N, Thiran J, Bresson X (2009) Fast texture segmentation based on semilocal region descriptor and active contour. Numer Math Theory Methods Appl 2(4):445–468
Müller KR, Mika S, Rätsch G et al (2001) An introduction to kernel-based learning algorithms. IEEE Trans Neural Netw 12(2):181–201
Dhillon IS, Guan Y, Kulis B (2007) Weighted graph cuts without eigenvectors a multilevel approach. IEEE Trans Pattern Anal Mach Intell 29(11):1944–1957
Wu KL, Yang MS (2002) Alternative c-means clustering algorithms. Pattern Recogn 35(10):2267–2278
Li C, Xu C, Gui C et al (2010) Distance regularized level set evolution and its application to image segmentation. IEEE Trans Image Process 19(12):3243–3254
Booth S, Clausi D (2001) Image segmentation using MRI vertebral cross-sections. In: Canadian conference on electrical and computer engineering, 2001. IEEE, 2001, vol 2, pp 1303–1307
Wang T, Ji Z, Sun Q, Chen Q, Han S (2015) Image segmentation based on weighting boundary information via graphcut. J Vis Commun Image Represent 33(c):10–19
Swain MJ, Ballard DH (1991) Color indexing. Int J Comput Vis 7:11–32
Unnikrishnan R, Pantofaru C, Hebert M (2005) A measure for objective evaluation of image segmentation algorithms. In: Proceedings of IEEE conference on computer vision and pattern recognition (CVPR), vol 3, pp 34–41
Olveresa J, Navaa R, Moya-Alborb E, Escalante-Ramírez B, Brievab J, Cristóbal G, Vallejo E (2014) Texture descriptor approaches to level set segmentation in medical images. In: Proceedings of SPIE 9138, optics, photonics, and digital technologies for multimedia applications, vol III, 91380 J (15 May 2014). http://dx.doi.org/10.1117/12.2054527
Martin D, Fowlkes C, Malik J (2004) Learning to detect natural image boundaries using local brightness, color, and texture cues. IEEE Trans Pattern Anal Mach Intell 26:530–549
Peng B, Zhang L (2012) Evaluation of image segmentation quality by adaptive ground truth composition. In: 12th European conference on computer vision (ECCV). Lecture notes in computer science, vol 7574, pp 287–300
Liu W, Zhang H, Tao D, Wang Y, Lu K (2013) Large-scale paralleled sparse principal component analysis. Multimedia Tools Appl 75(3):1–13
Acknowledgements
This work has been partially supported by National Science Foundation of China (6100318, 61371168), National High Technology Research and Development Program of China (No. 2013AA014604), National key research and development program of China (2016YFC0801304, 2017YFC0803705), Jiangsu Province Regular Institutions of Higher Learning Academic Degree Graduate Student Innovation Plan (KYZZ16_0192).
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Li, Y., Cao, G., Yu, Q. et al. Fast and Robust Active Contours Model for Image Segmentation. Neural Process Lett 49, 431–452 (2019). https://doi.org/10.1007/s11063-018-9827-3
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11063-018-9827-3