Abstract
The Fuzzy C Means (FCM) and Expectation Maximization (EM) algorithms are the most prevalent methods for automatic segmentation of MR brain images into three classes Gray Matter (GM), White Matter (WM) and Cerebrospinal Fluid (CSF). The major difficulties associated with these conventional methods for MR brain image segmentation are the Intensity Non-uniformity (INU) and noise. In this paper, EM and FCM with spatial information and bias correction are proposed to overcome these effects. The spatial information is incorporated by convolving the posterior probability during E-Step of the EM algorithm with mean filter. Also, a method of pixel re-labeling is included to improve the segmentation accuracy. The proposed method is validated by extensive experiments on both simulated and real brain images from standard database. Quantitative and qualitative results depict that the method is superior to the conventional methods by around 25% and over the state-of-the art method by 8%.
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.
Introduction
Magnetic Resonance Imaging (MRI) is an important non-invasive medical imaging technique for the early detection of diseases and therapy planning. Especially, MR brain images play a vital role in the analysis of a variety of diseases, including Schizophrenia, Multiple Sclerosis, brain tumors etc., Segmentation of brain images is an important and challenging task in the analysis of these diseases and proper treatment planning. Manual Segmentation is time consuming and it leads to intra and inter observer variability. Hence methods of automatic segmentation of brain images into three tissue regions – White Matter (WM), Gray Matter (GM) and Cerebrospinal Fluid (CSF) are in research focus. An image can be modeled as the union of c homogenous regions \( {\displaystyle {\cup}_{k=1}^c{A}_k} \) where each homogeneous region is specified by A k = b k p k +\( {n}_k \) where p k represents signal intensity,b k represents a multiplicative bias field and n k represents additive, zero mean random noise component. The difficulties associated with MR brain image segmentation arise from three main factors which are (a) Partial Volume Effect (b) Intensity Non-Uniformity (INU) and (c) Noise. Partial Volume Effects occur because of multiple pixels contributing to a single pixel, resulting in blurring of intensity across boundaries. These effects occur due to the limited resolving power of the imaging device and due to these, finer anatomical details are lost in the image. The INU artifact arises due to the inhomogeneity in the magnetic field and results in an unwanted low frequency bias term modulating the signal. All MR images are affected by random noise. The noise comes from the stray currents in the detector coil due to the fluctuating magnetic fields arising from random ionic currents in the body, or the thermal fluctuations in the detector coil itself. The most popular clustering methods for MR brain image segmentation are the Fuzzy C Means Clustering (FCM) and the Gaussian Mixture Model – Expectation Maximization (EM) [1–3]. But these methods, as such, fail to address the problems of Partial Volume Effects, Intensity Non-Uniformity and Noise. Hence modifications are required to the conventional FCM and EM to make them overcome these adverse effects which considerably reduce the segmentation accuracy. The conventional methods for MR brain image segmentation does not incorporate the spatial incorporation among the neighboring pixels and also does not consider the low frequency bias field existing in the image. Various techniques have been proposed in literature which modify the existing methods to address these issues specifically to the MR brain image segmentation.
An expectation Maximization algorithm with extension for partial volume effects is proposed [4]. Thanh Minh Nguyen et al. and Balafar proposed methods of incorporating spatial relationship between neighboring pixels into the standard GMM [5–7]. Markov Random field (MRF) is an efficient method for MR brain image segmentation. Mei Xie et al. [8] Proposed modified MRF which is an interleaved method combining the segmentation and bias field estimation. Each tissue represented by a large number of Gaussian components to capture the complex tissue spatial layout has been proposed [9]. Extension of traditional Gaussian mixtures expectation-maximization Segmentation to a power transformation has been proposed [10]. M. Y. Siyal et al. [11] proposed an intelligent modified FCM in which the objective function of the FCM is modified to deal with the problems of INU and noise. Several methods of FCM incorporated with spatial information have been proposed recently [12–16]. Multiresolution methods have also been proposed to integrate the spatial information in the segmentation process [17, 18]. Zengsi Chen et al. [19] proposed the method of incorporating non-local regularization mechanism for simultaneous image segmentation and bias field estimation. Other methods like Ant Colony Optimization Algorithm and Active Contour Model are also available which overcome the effect of INU and noise [20–22].
In the clustering process of FCM, the membership function is convolved with the mean filter in all iterations to incorporate the spatial information [23]. Similarly, methods of incorporating spatial information by convolving the posterior probability of the Expectation Maximization algorithm with spatial factor – mean, Gaussian and non-local means filters in all iterations and pixel re-labeling of IBSR data has been proposed [24]. It is observed that to overcome the effect of bias field and noise in the segmentation process, both spatial information and the bias correction has to be incorporated in the segmentation process. Hence, in the proposed method, the bias correction term is introduced in the objective function of FCM and in the distribution function of EM. Also, after bias correction, the spatial information is included through convolving of the posterior probability and membership function with spatial filter in one of the iterations alone. The contributions of the article are:
-
Integrating bias field correction with Spatial FCM and EM.
-
Incorporating the spatial information among the neighboring pixels by the method of convolving the posterior probability in EM and the membership function matrix in FCM with mean filter in the one of the iterations alone.
-
A method or re-labeling the pixels [23, 24] to improve the segmentation accuracy has been included.
The proposed method is fully automatic and operates on all the slices of the volume of MR brain images. The method is tested on synthetic brain image data from Brainweb and real brain images from IBSR. The rest of the paper is organized as follows. Section 2 describes the FCM and GMM-EM algorithms with their proposed modified method for bias correction and spatial information. In Section 3, experimental results are discussed with conclusion in Section 4.
FCM, EM algorithms and modified method
Gaussian mixture model - spatial EM algorithm with bias correction
In the case of single real valued variable x, the Gaussian distribution is defined by
where μ is the mean, σ2 is the variance and b is the bias field [25, 26].
The Gaussian mixture distribution can be composed as a linear superposition of K Gaussian densities of the form
Each Gaussian density \( N\left({x}_n/{\mu}_k,{\sigma}_k^2,{b}_k\right) \) is called a component of the mixture with its own mean μ k , variance \( {\sigma}_k^2 \) and bias b k . The parameter \( {\pi}_k \)are called the mixing coefficients.
From Bayes’ theorem, the posterior probabilities p (k/x) are given by
From Eq. 2, The log of the likelihood function is given by
For maximizing the log likelihood, the derivatives of Eq. 5 with respect to μ k , \( {\sigma}_k^2,{b}_k \) and π k are set to zero.
The parameters are obtained as
The spatial EM algorithm with bias correction is explained in the next steps.
Given a Gaussian Mixture Model, the goal is to maximize the likelihood function with respect to the parameters – mean, variance, bias and mixing coefficient.
-
Step 1:
Initialize the number of classes, threshold, means μ k , bias field b k , variances \( {\sigma}_k^2 \) and mixing coefficients \( {\pi}_k \)for all the classes, and evaluate the initial value of the log likelihood.
-
Step 2:
E Step: Evaluate the posterior probabilities using the current parameter values (Eq. 4).
-
Step 3:
For the first iteration alone, convolve the posterior probability with the mean filter given by
-
Step 4:
M Step: Re-estimate the parameters (Eqs. 7–10) mean μ k , bias field b k , variance \( {\sigma}_k^2 \) and mixing coefficients π k .
-
Step 5:
Evaluate the Log likelihood (Eq. 5) and check for convergence. The convergence criterion is selected as that the log likelihood increases by less than 1% from one iteration to the next [27]. If the convergence criterion is not satisfied, return to step2.
-
Step 6:
Each pixel is assigned to the class that has the highest probability density p(x) (Eq. 2) and perform segmentation of the image subtracted with the bias.
Spatial fuzzy C means algorithm with bias correction
FCM clustering was developed by Bezdek and it is very widely applied to image segmentation. Let X = {x1, x2,….. xn} denotes the set of data points to be partitioned into c clusters. The objective function of FCM to be minimized is defined as follows:
u ki represents the membership function of ith data point to kth cluster, m > 1 is the degree of fuzzyfication and vk represents the kth cluster center and b k represents the bias field [28, 29]. By minimizing Eq. (12), the update equations for membership functions, cluster center and bias filed are obtained as,
The spatial FCM algorithm with bias correction is explained in the next steps.
-
Step 1:
Initialize the number of clusters c , cluster centers v k , and m > 1.
-
Step 2:
Update the membership function matrix U = {u ki } by Eq. (14).
-
Step 3:
Update cluster centers V = {vk} by Eq. (15).
-
Step 4:
Update bias field by Eq. (16)
-
Step 5:
The process gets repeated until the cluster centers stabilized.
-
Step 6:
Convolve the membership function matrix with with the mean filter given by
-
Step 7:
Each pixel is assigned to a specific cluster for which the membership is maximal.
Re-labeling of pixels
The proposed method is tested on IBSR and Brainweb Data. The re-labeling of pixels to improve the segmentation accuracy is done for IBSR data which is explained in the following steps.
Step 1: Classify the pixels into three classes. The first two classes are labeled as GM and the third class as WM since the volume of CSF of IBSR data is very low.
Step 2: Perform histogram based EM segmentation with a number of classes as 7. The pixels obtained in class 2 are labelled as CSF.
Step 3: Re-label the GM pixels obtained in step 1, that are labelled as CSF in Step 2, as CSF.
Experiments and discussion
In this section, the proposed spatial FCM and EM with bias correction are applied to brain MR data, including T1-weighted brain MR images provided by the BrainWeb database and clinical brain MR images from the Internet Brain Segmentation Repository (IBSR) (www.bic.mni.mcgill.ca/brainweb/, www.nitrc.org/projects/ibsr). The method is fully automatic in the sense that it does not require any variation in the setting of the parameters for different cases.
Dice’s coefficient (DC) and Tanimoto Coefficient (TC) are used as the metrics to quantitatively evaluate the segmentation accuracy of the proposed method. The DC and TC are defined by
Where |.| represents the area of a region, X is the region segmented by segmentation algorithms, and Y is the corresponding region in the ground truth. The closer the DC and TC values to 1 means the better segmentation accuracy. The system configuration used is Intel Core 2 Duo CPU @2. 53GHz with 1.98GB of RAM. The algorithm is carried out using MATLAB.
Initial values and parameter selection
Spatial EM with bias correction
The number of classes is set as 4 – Background, CSF, GM and WM. The means are initialized using the K-Means algorithm. The variances are initialized with the maximum pixel value in the image. The mixing coefficients are initialized with equal proportionate for all the classes and it is calculated for all the pixels. The bias field is initialized to zero and updated in every iteration using Eq. 10. The convergence criterion is selected as that the log likelihood increases by less than 1% from one iteration to the next.
Spatial FCM with bias correction
The background pixels are removed in the FCM segmentation. The number of classes is set at 3 – CSF, GM and WM. The cluster centers are initialized using the K-Means algorithm. The bias field is initialized to zero and updated in every iteration using Eq. 16. The termination criterion is set as (V new − V old )2 < 0.001.
Results on IBSR brain images
The proposed spatial FCM and spatial EM with bias correction methods are applied to segment 3-D MR images with intensity inhomogeneity, noise and low contrast. The proposed methods are tested on 20 normal T1-weighted 3D MR images from IBSR. Each volume consists of around 60 coronal T1 slices of dimension 256 × 256 and a voxel size of 1.0 × 1.0 × 3.0 mm3. Each of the brain volumes in the IBSR site is provided with manual segmentation by expert clinicians. The results are compared with that of six segmentation algorithms provided by the IBSR, MAP, adaptive MAP, Biased MAP, FCM, tree-structure k-mean, and maximum-likelihood classifier algorithms. Figure 1 shows the qualitative comparison of the segmentation results of the spatial FCM and EM with bias correction with that of the conventional FCM and EM. Figs. 2 and 3 depicts the quantitative analysis of the proposed method with that of the segmentation results of the six algorithms available in the IBSR website for 10 datasets. Figure 4 and Table 1 depict the result comparison of the average segmentation results obtained over twenty 3D MR brain images with that of six different algorithms provided by IBSR and Spatial Constrained K-mean Algorithm [17].
The qualitative and quantitative result analysis depicts that the proposed method is superior to the conventional methods by around 25% and over the state-of-the art method by 8%.
Results in brainweb simulated MR images
The simulated 3-D MRI data are obtained from the Brain Web Database at McConnell Brain Imaging Center of the Montreal Neurological Institute (MNI), McGill University, Canada. A set of T1-weighted images of dimension 181 × 217 × 181 and a voxel size of 1 × 1 × 1 mm3 with varying noise levels of 3%, 5%, 7% and 9% and intensity inhomogeneity of 0%, 20% and 40% is used in this experiment. Segmentation ground truth is available in the BrainWeb and hence it is able to evaluate and compare the segmentation accuracy with other methods. For 3% and 5% noise levels, the spatial factor term has not been included since the noise level is very low and incorporation of spatial term in addition to the bias term will result in smoothing of the image. Figure 5 shows the qualitative comparison of the segmentation results of the spatial FCM and EM with bias correction with that of the conventional FCM and EM. Tables 2,3 and 4 depict the segmentation results obtained (DC) for 20 images from BrainWeb.
The efficacy of the proposed method is validated by the qualitative and quantitative analysis. The proposed method gives better segmentation results even in the presence of high levels of noise and INU, and also fine structures are preserved. In Table 2, from the results of CSF segmentation, it is observed that there is decrease in segmentation accuracy for 5% of noise alone. This occurs since the spatial term is not included and the noise is more visible in the dark CSF structures.
The bias output of sample IBSR and BrainWeb images are shown in Fig. 6.
Conclusion
A fully automated method for MR brain image segmentation has been proposed. The method overcomes the major difficulties of Intensity Non-uniformity and noise associated with the conventional methods – FCM and EM. Spatial information and bias correction are integrated in the FCM and EM framework to overcome these effects. The proposed method has been tested on both simulated and real brain images from Brainweb and IBSR database respectively. It has been shown that the method outperforms the conventional and state- of-the art methods. The method can very well be extended to segmentation of clinical MR brain images and in the identification of pathologies.
References
Yazdani, S., Yusof, R., Karimian, A., Pashna, M., and Hematian, A., Image segmentation methods and applications in MRI brain images. IETE Tech. Rev. 32:413–427, 2015.
Pham, D.L., Xu, C., and Prince, J.L., Current methods in medical image segmentation. Annu. Rev. Biomed. Eng. 2:315–337, 2000.
Liew, A. W.-C., Yan, H., Current methods in the automatic tissue segmentation of 3D magnetic resonance brain images. Curr. Med. Imaging Rev. 2006.
Van Leemput, K., Maes, F., Vandermeulen, D., and Suetens, P., A unifying framework for partial volume segmentation of brain MR images. IEEE Trans. Med. Imaging. 22(1):105–119, 2003.
Nguyen, T.M., and Wu, Q.M.J., Gaussian-mixture-model-based spatial neighborhood relationships for pixel labeling problem. IEEE Trans. Syst. Man Cybern. 42(1):193–202, 2012.
Balafar, M.A., Spatial based expectation maximizing (EM). Diagn. Pathol. 6:103, 2011.
Balafar, M.A., Gaussian mixture model based segmentation methods for brain MRI images. Artif. Intell. Rev. 41(3):429–439, 2012.
Xie, M., Gao, J., Zhu, C., and Zhou, Y., A modified method for MRF segmentation and bias correction of MR image with intensity inhomogeneity. Med. Biol. Eng. Comput. 53(1):23–35, 2015.
Greenspan, H., Ruf, A., and Goldberger, J., Constrained gaussian mixture model framework for auotmatic segmentation of MR brain images. IEEE Trans. Med. Imaging. 25(9):1233–1245, 2006.
Lee, J.-D., Su, H.-R., Cheng, P.E., Liou, M., Aston, J.A.D., Tsai, A.C., and Chen, C.-Y., MR image segmentation using a power transformation approach. IEEE Trans. Med. Imaging. 28(6):894–905, 2009.
Siyal, M.Y., and Yu, L., An intelligent modified fuzzy, c-means based algorithm for bias estimation and segmentation of brain MRI. Pattern Recogn. Lett. 26:2052–2062, 2005.
Mekhmoukh, A., and Mokrani, K., Improved fuzzy C-means based particle swarm optimization (PSO) initialization and outlierrejection with level set methods for MR brainimage segmentation. Comput. Methods Prog. Biomed. 122(2):266–281, 2015.
Zhang, X., Wang, G., Su, Q., Guo, Q., Zhang, C., and Chen, B., An improved fuzzy algorithm for image segmentation using peak detection, spatial information and reallocation. Soft Computing:1–9, 2015.
Zhao, F., Fan, J., and Liu, H., Optimal-selection-based suppressed fuzzy c-means clustering algorithm with self-tuning non local spatial information for image segmentation. Expert Systems with Applications. 41:4083–4093, 2014.
Ji, Z., Liu, J., Cao, G., Sun, Q., and Chen, Q., Robust spatially constrained fuzzy c-means algorithm for brain MR image segmentation. Pattern Recogn. 47:2454–2466, 2014.
Madhukumar, S., and Santhiyakumari, N., Evaluation of k-means and fuzzy C-means segmentation of MR images of brain. Egypt. J. Radiol. Nucl. Med. 46:475–479, 2015.
Zhang, J., Jiang, W., Wang, R., Wang, L., and Brain, M.R., Image segmentation with spatial constrained K-mean algorithm and dual-tree complex wavelet transform. J. Med. Syst. 38:93, 2014.
Ali, H., Elmogy, M., El-Daydamony, E., Atwan, A., and Multi-resolution, M.R.I., Brain image segmentation based on morphological pyramid and fuzzy C-mean clustering. Arab. J. Sci. Eng. 40(11):3173–3185, 2015.
Chen, Z., Wang, J., Kong, D., and Dong, F., A nonlocal energy minimization approach to brain image segmentation with simultaneous bias field estimation and denoising. Mach. Vis. Appl. 25:529–544, 2014.
Taherdangkoo, M., Bagheri, M.H., Yazdi, M., and Andriole, K.P., An effective method for segmentation of MR brain images using the ant colony optimization algorithm. J. Digit. Imaging. 26:1116–1123, 2013.
Huang, C., and Zeng, L., An active contour model for the segmentation of images with intensity inhomogeneities and bias field estimation. PLoS One. 10(4):e0120399, 2015.
Li, X., Jiang, D., Shi, Y., and Li, W., Segmentation of MR image using local and global region based geodesic model. BioMed. Eng. OnLine. 14:8, 2015.
Prakash, R. M., Kumari, R. S. S., Gaussian mixture model with the inclusion of spatial factor and pixel re-labelling: Application to MR brain image segmentation. Arab. J. Sci. Eng. 2016.
Prakash, R.M., and Kumari, R.S.S., Fuzzy C means integrated with spatial information and contrast enhancement for segmentation of MR brain images. Int. J. Imaging Syst. Technol. 26(2):116–123, 2016.
Bishop, C.M., Pattern recognition and machine learning. Springer, New York, 2006.
Dempster, A.P., Laird, N.M., and Rubin, D.B., Maximum likelihood from incomplete data via the EM algorithm. J. R. Stat. Soc. 39:1–38, 1977.
Carson, C., Belongie, S., Greenspan, H., and Malik, J., Blobworld: image segmentation using expectation-maximization and its application to image querying. IEEE Trans. Pattern Anal. Mach. Intell. 24(8):1026–1038.
Bezdek, J., Pattern recognition with fuzzy objective function algorithms. Plenum, New York, 1981.
Dunn, J., A fuzzy relative of the ISODATA process and its use in detecting compact, well-separated clusters. J. Cybern. 3:32–57, 1974.
Author information
Authors and Affiliations
Corresponding author
Additional information
This article is part of the Topical Collection on Image & Signal Processing
Rights and permissions
About this article
Cite this article
Meena Prakash, R., Shantha Selva Kumari, R. Spatial Fuzzy C Means and Expectation Maximization Algorithms with Bias Correction for Segmentation of MR Brain Images. J Med Syst 41, 15 (2017). https://doi.org/10.1007/s10916-016-0662-7
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10916-016-0662-7