Abstract
Fuzzy c-means (FCM) clustering as one of the clustering method is widely used in image segmentation field, but some methods based on FCM are unable to obtain satisfactory performance for image segmentation under intense noise condition. This paper presents a novel local spatial information based fuzzy c-means clustering and Markov random field method for image segmentation. In the method, a new dissimilarity function is proposed by using the prior relationship degree and local neighbor distances, which enhances its resistance to noise. And a novel prior probability approximation is considered with spatial Euclidean distance and the difference of the mean color level between the center pixel and its neighborhoods. Experiments over synthetic images, real-world images and brain MR images indicate that the proposed method obtains better segmentation performance, compared to the FCM extended methods.
This work was supported by National Nature Science Foundation of China (No. 61773166), Natural Science Foundation of Shanghai no. 17ZR1408200 and the Science and Technology Commission of Shanghai Municipality under research grant no. 14DZ2260800.
Access provided by CONRICYT-eBooks. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Image segmentation is one of key tasks in image processing and computer vision. The target of image segmentation is to separate source image into several non-overlapping regions which have the same features such as intensity, color, tone, texture, etc. Many clustering-based methods have been proposed for image segmentation [2, 6, 11, 18, 23]. Compared with the other clustering methods, Fuzzy C-means (FCM) is one of the simplest and the most popular algorithms in field of image segmentation [2, 5, 10]. However, the performance of traditional FCM decreases very fast by the impact of noise, outliers and other image artifacts because in the algorithm, all of pixels in the images are regarded as individual points without any relationship [9].
To improve the performance of FCM algorithm, many modified FCM algorithms have been proposed [13, 20, 22]. Spatial relationship of neighborhood pixels, as a significant feature, is widely used in image segmentation [4, 19, 24], because the pixels in the immediate neighborhood usually have similar characteristics and have a high probability of belonging to the same cluster. Based on spatial information, Ahmed et al. [1] presented an FCM with spatial constraints (FCM_S) that the label of a pixel is influenced by labels in its neighborhood. Krinidis et al. [15] proposed a robust fuzzy local information c-means clustering algorithm (FLICM) by introducing a fuzzy factor, which works as a role to control noise tolerance and outlier resistance. Li and Qin [16] added \(L_p\) norm into FLICM named fuzzy local information \(L_p\) clustering (FLILp) and proposed a method of cluster center estimation, but it is hard to estimate accurately.
Markov random field model (MRF) [7, 17, 21] is a widely used tool to describe the mutual influences between data points, which is able to be extended to the image segmentation for representing the relationship between pixels. In [3], Chatzis applied hidden Markov random field into fuzzy clustering (HMRF-FCM) by taking Kullback-Leibler divergence information into fuzzy objective function. However, the procedure of the prior probability approximation and the potential parameter update in Markov model consume much time. In order to reduce the cost of time, Zhang [25] utilized mean template in distance function and prior probability. In [18], Liu et al. defined the dissimilarity function and prior probability function based on region-level information as well as pixel-level information to develop the robustness of the method.
In this paper, based on the HMRF-FCM algorithm, we propose a novel fuzzy clustering algorithm with local information and Markov random field for image segmentation with intense noise, which studies local information to remove the complex noise and preserve the details and edges. First, we take local spacial information and membership information into a new dissimilarity function to enhance the relationship of neighborhood. Second, in step of prior probability approximation in Markov model, the neighbor Euclidean distances and mean color level of neighborhood constitute a new weight in prior probability function. By using the new dissimilarity function and the prior function, the novel segmentation method considers more impacts of local information to produce a better result. In experiments, we compare our method with five other fuzzy c-means algorithms for image segmentation with intense noise environment to validate the proposed methods effectiveness and robustness.
2 Method
2.1 HMRF-FCM Algorithm
The HMRF-FCM Algorithm [3] was first introduced by Chatzis and Varvarigou. The algorithm is to segment image \(X=\{x_1,x_2,...,x_N\}\) into \(C(C\geqslant 2)\) classes. The HMRF-FCM illustrates the segmentation problem using hidden Markov random field model, and employs the posteriors and prior membership function to indicate the excellent modeling ability of Markov random field and the flexibility of fuzzy clustering [18]. The object function of HMRF-FCM is defined as follows:
where \(r_{i,k}\), the membership degree in FCM algorithm, is the posteriors probability in HMRF model. \(\pi _{i,k}\) is the prior probabilities of the HMRF model, and the parameter \(\lambda \) is the fuzziness degree of the fuzzy membership values. \(d_{i,k}\) presents the dissimilarity between a pixel i and cluster centroids k. In HMRF-FCM, all observed data are emitted from multivariate Gaussian form, so we can obtain \(d_{i,k}\) from the negative log-posterior of a Gaussian distribution as:
where \(\mu _k\) and \(\Sigma _k\) are the mean and covariance matrix of the Gaussian distribution of the \(k^{th}\) class respectively. And B is the spectral number of image to be segmented.
In HMRF-FCM algorithm, \(\pi _{i,k}\) is the prior probabilities of the HMRF model, which is seen as the actual membership degree according to Kullback-Leibler divergence. The paper [3] gives a function of MRF \(\pi _{i,k}\) approximation as:
where \(\beta \) is the parameter of clique potentials and \(E_{i,k}\) is the energy function, which counts the number of neighbor pixels whose label is k.
2.2 Proposed Method
In this paper, motivated by HMRF-FCM and FLICM, we proposed a new local spatial information incorporating Markov random field model based fuzzy C-means clustering, which is defined as:
where \(D_{i,k}\) is a novel dissimilarity function different from the \(d_{i,k}\) in Eq. (1). We add a local neighborhood data \(d_{N_{i},k}\) into the dissimilarity measure to enhance the relationship between neighborhood pixels, which improves the robustness to noise.
where \(d_{i,k}\) is the center-pixel distance as Eq. (2), m is the fuzzifier used in FCM, \(N_i\) is the set of the neighbors of data \(x_i\), and \(d_{N_i,k}\) is the neighbor-pixels distance to class k, given as:
where \({{{Z}_{{{N}_{i}}}}}\) is a normalized factor as \({{Z}_{{{N}_{i}}}}=\sum \nolimits _{j\in {{N}_{i}}}{{{(1+{{L}_{ij}})}^{-1}}}\). \(L_{ij}\) is the spatial Euclidean distance between pixels i and j. By using \(L_{ij}\), the influence of neighbor pixels on the center pixel, \({{(1+{{L}_{ij}})}^{-1}}\), can be determined automatically and decreases with Euclidean distance growing.
In the proposed method, the prior probability \(\pi _{i,k}\) is defined as a more simple and efficient form which removes time-consuming parameter \(\beta \) and energy term \(E_{i,k}\) in the Eq. (3).
where \(\theta \) is the strength factor to control the performance, and \(\omega _j\) is the weighted parameter which determines the impact of the neighbor pixels on the central pixel, defined as
where \(\overline{{{x}_{i}}}\) is the local mean value of pixel i neighborhood, T presents the color level of the image. When the value of \(\overline{{{x}_{j}}}\) is close to \(\overline{{{x}_{i}}}\), it means that pixel i and j are homogeneous, otherwise, heterogeneous. By using \(\left| \overline{{{x}_{i}}}-\overline{{{x}_{j}}} \right| \) and \(L_{ij}\), the close and homogeneous pixels around would gain more weight and greater contribution to the prior probability approximation, while pixels far away and heterogeneous do less impact on the prior.
Applying Lagrange multiplier method to Eq. (4) with the constrain of \({{r}_{i,k}}\) (sum to one), \({r_{i,k}}\) is given as:
The derivation of the mean \(\mu _k\) and the covariance matrix \(\Sigma _k\) is obtained from Lagrange function, given as
where \({{\Sigma }_{\overline{{{x}_{i}}}}}\) is local covariance matrix around pixel i.
The procedure of the proposed method can be summarized as Algorithm 1.
3 Experiment
To validate the effectiveness of the proposed algorithm, we compare it with five fuzzy clustering algorithms, i.e., FCM_S [1], HMRF-FCM [3], FLICM [15], FLILp [16] and Zhang’s method [25] which are extensively used in image segmentation. For all of the algorithms, we generally choose the parameters \(m=2\), \(\lambda =2\), \(\xi =0.001\), \(\theta =2\), \({{N}_{R}}=9\) (a \(3\times 3\) window centered around each pixel) in experiments. All parameters explained above are decided by reports of [16, 25] to perform better results.
We take the segmentation accuracy (SA) [12] to evaluate the six algorithms. It is defined as the sum of the correctly classified pixels divided by the sum of the total number of pixels.
where \({{A}_{i}}\) represents the set of pixels belonging to the ith class by segmentation algorithm, while \({{G}_{i}}\) represents the set of pixels belonging to the ith class in ground truth.
3.1 Comparison Experiments on Synthetic Images
We apply the algorithms on a classification with four classes. Figure 1(a) is an image with four gray levels with different shapes. Figure 1(b) is an image of Fig. 1(a) contaminated with Gaussian noise (\(\delta =0.1\)). Figures 1(c–h) are the results of the six algorithms on Fig. 1(b). From these figures, we can see that FCM_S is sensitive to noise. The result of HMRF-FCM shows a rough segmentation image, even if the boundary is not clear enough. Due to improved spatial information employed, FLICM and FLILp are capable of removing a proportion of the noise, but still contain noise inside the area and fail to obtain good results. Since Zhang’s method and the proposed method combine the advantages of HMRF and FCM, their segmentation results are satisfactory. However, the edge of Zhang’s result is not as clear as that of the proposed.
In order to further verify the robustness of the algorithm, all fuzzy clustering algorithms are implemented on Fig. 1(a) corrupted by 4 types of noise, i.e., Gaussian noise, ‘salt & pepper’ noise and two types of mixed noise. For the two types of mixed noise, one is that the variance of Gaussian noise is a constant while the noise intensity of ‘salt & pepper’ increases, while the other is the opposite.
Table 1 gives the segmentation accuracies of the six algorithms on Fig. 1(a) corrupted by 4 types of noise with different levels. It can be seen that the mean segmentation accuracy of our method (above \(97\%\)) is higher than that of the others. Besides, the accuracy of our method shows an expectable result in each item. Compared with Zhang’s algorithm, our method is able to obtain stable and robust performances on mixed noise, while the Zhang’s drops down very fast.
3.2 Comparison Experiments on Natural Image
We also apply the six algorithms to a natural image. Figure 2(a) [8] is an image composed of flowers, leaves and background. Figure 2(b) is an image of Fig. 2(a) contaminated with \(10\%\) ‘salt & pepper’ noise and Gaussian noise (\(\delta =0.2\)). We set the number of clusters as 3 in the case. Figures 2(c–h) show the segmentation results obtained by the six algorithms, respectively. It is clearly indicated that FCM_S, FLICM and FLILp algorithms are all affected by the noise to different extent, which illustrates that these algorithms is not robust enough to image corrupted by mixed noise. From Figs. 2(d)(g)(h), HMRF shows its advantages of spatial modelling capabilities in natural image, which is more smooth than the original FCM with spatial information. Compared Fig. 2(h) with Fig. 2(g), we can see that our method performs a remarkable result of petals and stamens than Zhang’s method.
Figure 3 plots the curves of segmentation accuracy for different methods on Fig. 2(a). Experiments are implemented on the image corrupted by four types of noise. With the increase of noise level, the performances of all methods slide down but the proposed method deceases more slowly than the others. Besides, compared with Zhang’s method, our method is visibly robust in all cases. It can be seen that our method suppresses the influence of the noise.
3.3 Comparison Experiments on Brain MR Images
In this subsection, our method are evaluated on a synthetic brain MR image database-BrainWeb [14], which is a 3D simulated brain database that contains a set of realistic MRI data. The segmentation object is to divide the brain MR image into four part: gray matter (GM), white matter (WM), CSF and background. We select sixty brain slice images produced by the MRI simulator with different level noise. We choose two brain MR images randomly for presentation and carry out the numerical analysis on the whole set.
Figure 4 shows the results on two 3% noised MR image examples. As the part in red rectangle in Figs. 4(c)(d) and (g)(h) shown, our result preserves the details and local information, while Zhang’s method is hard to distinguish between noise and details so that the details are smoothed. It reflects that the mean template function in distance measurement and prior probability approximation might lose too much details and lead an unsatisfied result. Furthermore, we calculate the segmentation accuracy of the six algorithms on BrainWeb dataset with different level noise. In Table 2, our method obtains satisfied results compared with the other algorithms under 0%, 3% and 9% noise.
4 Conclusion
We proposed an adaptive fuzzy clustering algorithm with local information and Markov random field for image segmentation under intense noise. In this method, the new dissimilarity function created by the local information with distances of neighbors greatly enhances noise robustness and the novel prior probability function improves the performance on denoising and reduces computing time. The experiments validate the excellent clustering performance of our algorithm, and show that the proposed distance function with MRF model provides a better applicable way to address image segmentation under intense noise.
References
Ahmed, M.N., Yamany, S.M., Mohamed, N., Farag, A.A., Moriarty, T.: A modified fuzzy c-means algorithm for bias field estimation and segmentation of MRI data. IEEE Trans. Med. Imaging 21(3), 193–199 (2002)
Bezdek, J.C.: Pattern Recognition with Fuzzy Objective Function Algorithms. Springer, New York (2013)
Chatzis, S.P., Varvarigou, T.A.: A fuzzy clustering approach toward hidden markov random field models for enhanced spatially constrained image segmentation. IEEE Trans. Fuzzy Syst. 16(5), 1351–1361 (2008)
Chen, Y., Zhang, J., Wang, S., Zheng, Y.: Brain magnetic resonance image segmentation based on an adapted non-local fuzzy c-means method. IET Comput. Vis. 6(6), 610–625 (2012)
Choy, S.K., Lam, S.Y., Yu, K.W., Lee, W.Y., Leung, K.T.: Fuzzy model-based clustering and its application in image segmentation. Patt. Recogn. 68, 141–157 (2017)
Fazendeiro, P., de Oliveira, J.V.: Observer-biased fuzzy clustering. IEEE Trans. Fuzzy Syst. 23(1), 85–97 (2015)
Gharieb, R., Gendy, G., Abdelfattah, A., Selim, H.: Adaptive local data and membership based KL divergence incorporating c-means algorithm for fuzzy image segmentation. Appl. Soft Comput. 59, 143–152 (2017)
Gong, M., Liang, Y., Shi, J., Ma, W., Ma, J.: Fuzzy c-means clustering with local information and kernel metric for image segmentation. IEEE Trans. Image Process. 22(2), 573–584 (2013)
Gong, M., Zhou, Z., Ma, J.: Change detection in synthetic aperture radar images based on image fusion and fuzzy clustering. IEEE Trans. Image Process. 21(4), 2141–2151 (2012)
Guo, F.F., Wang, X.X., Shen, J.: Adaptive fuzzy c-means algorithm based on local noise detecting for image segmentation. IET Image Process. 10(4), 272–279 (2016)
Havens, T.C., Bezdek, J.C., Leckie, C., Hall, L.O., Palaniswami, M.: Fuzzy c-means algorithms for very large data. IEEE Trans. Fuzzy Syst. 20(6), 1130–1146 (2012)
Hosotani, F., Inuzuka, Y., Hasegawa, M., Hirobayashi, S., Misawa, T.: Image denoising with edge-preserving and segmentation based on mask NHA. IEEE Trans. Image Process. 24(12), 6025–6033 (2015)
Huang, H.C., Chuang, Y.Y., Chen, C.S.: Multiple kernel fuzzy clustering. IEEE Trans. Fuzzy Syst. 20(1), 120–134 (2012)
Ji, Z, Sun, Q.: A fuzzy clustering with bounded spatial probability for image segmentation. In: 2017 IEEE International Conference on Fuzzy Systems (FUZZ-IEEE), pp. 1–6. IEEE (2017)
Krinidis, S., Chatzis, V.: A robust fuzzy local information c-means clustering algorithm. IEEE Trans. Image Process. 19(5), 1328–1337 (2010)
Li, F., Qin, J.: Robust fuzzy local information and LP-norm distance-based image segmentation method. IET Image Process. 11(4), 217–226 (2017)
Li, X., Cui, G., Dong, Y.: Graph regularized non-negative low-rank matrix factorization for image clustering. IEEE Trans. Cybern. 47, 3840–3853 (2017)
Liu, G., Zhang, Y., Wang, A.: Incorporating adaptive local information into fuzzy clustering for image segmentation. IEEE Trans. Image Process. 24(11), 3990–4000 (2015)
Mei, J.P., Chen, L.: LinkFCM: relation integrated fuzzy c-means. Patt. Recogn. 46(1), 272–283 (2013)
Nongmeikapam, K., Kumar, W., Singh, A.D.: A fast and automatically adjustable GRBF kernel based fuzzy c-means for cluster-wise coloured feature extraction and segmentation of MR images. IET Image Process. (2017)
Ren, Y., Tang, H., Wei, H.: A markov random field model for image segmentation based on gestalt laws. In: Lu, B.-L., Zhang, L., Kwok, J. (eds.) ICONIP 2011. LNCS, vol. 7064, pp. 582–591. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-24965-5_66
Tran, D.C., Wu, Z., Tran, V.H.: Fast generalized fuzzy c-means using particle swarm optimization for image segmentation. In: Loo, C.K., Yap, K.S., Wong, K.W., Teoh, A., Huang, K. (eds.) ICONIP 2014. LNCS, vol. 8835, pp. 263–270. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-12640-1_32
Wu, C.H., Ouyang, C.S., Chen, L.W., Lu, L.W.: A new fuzzy clustering validity index with a median factor for centroid-based clustering. IEEE Trans. Fuzzy Syst. 23(3), 701–718 (2015)
Zaixin, Z., Lizhi, C., Guangquan, C.: Neighbourhood weighted fuzzy c-means clustering algorithm for image segmentation. IET Image Process. 8(3), 150–161 (2013)
Zhang, H., Wu, Q.M.J., Zheng, Y., Nguyen, T.M., Wang, D.: Effective fuzzy clustering algorithm with Bayesian model and mean template for image segmentation. IET Image Process. 8(10), 571–581 (2014)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this paper
Cite this paper
Hu, J., Wen, Y. (2018). Adaptive Fuzzy Clustering Algorithm with Local Information and Markov Random Field for Image Segmentation. In: Cheng, L., Leung, A., Ozawa, S. (eds) Neural Information Processing. ICONIP 2018. Lecture Notes in Computer Science(), vol 11304. Springer, Cham. https://doi.org/10.1007/978-3-030-04212-7_15
Download citation
DOI: https://doi.org/10.1007/978-3-030-04212-7_15
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-04211-0
Online ISBN: 978-3-030-04212-7
eBook Packages: Computer ScienceComputer Science (R0)