scieee AI-readable full text Open interactive document viewer

Image Segmentation Using Fuzzy C-Mean

Zaid, Mohd

Abstract

Image segmentation plays a crucial role in image processing and computer vision applications. This paper presents an efficient segmentation approach using the Fuzzy C-Means (FCM) clustering algorithm. Unlike hard clustering methods, FCM allows each pixel to belong to multiple clusters with different membership degrees, leading to smoother and more accurate segmentation. The proposed method is applied on sample images, and the results demonstrate improved region separation and robustness against noise. This study highlights the effectiveness of FCM for medical imaging, pattern recognition, and object detection tasks.

Full text

Image Segmentation Using Fuzzy C-Mean Mohd. Zaid∗, Adhithyan NS∗, Kusum Lata† ∗Department of Computer Science and Engineering, Sharda University, Greater Noida, India Emails: [email protected], [email protected] †Guide: Kusum Lata, [email protected] Abstract—Image segmentation is a foundational step in many computer vision and medical imaging pipelines. Fuzzy clustering methods such as Fuzzy C-Means (FCM) provide soft pixelto-cluster assignments that help handle noise, boundary ambiguity, and intensity inhomogeneity. This paper presents an implementation of FCM applied to synthetic Gaussian images and BrainWeb MRI slices. We describe a complete pipeline: initialization of fuzzy membership, iterative update of cluster centers and memberships, crisp labeling by maximum membership, and quantitative evaluation using Dice similarity and ASA (Average Segmentation Accuracy). The implementation mirrors a standard FCM formulation and is extended with a thorough experimental setup, including convergence monitoring and visualizations of segmented clusters. A literature survey of 25 relevant fuzzy-clustering segmentation papers is included to position our work. Experimental results on BrainWeb and synthetic datasets show that FCM, when carefully implemented, provides reliable separation of background, CSF, GM and WM in skull-stripped T1 slices, while quantitative scores (Dice, ASA) highlight strengths and limitations of the approach. Finally, we discuss runtime characteristics and propose directions for improved robustness (spatial regularization, kernelization, bias field correction). Index Terms—Image segmentation, fuzzy c-means, FCM, Dice coefficient, ASA, BrainWeb, medical imaging I. INTRODUCTION Image segmentation partitions an image into meaningful regions and is essential for downstream tasks like diagnosis, object recognition and image understanding. Classical hard clustering (e.g., k-means) assigns each pixel to exactly one cluster which can be brittle in presence of noise or overlapping class distributions. Fuzzy clustering methods (notably Fuzzy C-Means, FCM) assign soft memberships that express partial association to multiple clusters. This property improves robustness to intensity inhomogeneity and ambiguous boundaries which commonly occur in medical images such as MRI. This work implements and evaluates the standard FCM algorithm on (1) synthetic Gaussian test images with ground truth and (2) BrainWeb T1 skull-stripped slices with expert discrete ground truth for background (BCK), cerebrospinal fluid (CSF), gray matter (GM) and white matter (WM). We compute quantitative metrics (Dice score per tissue and ASA) and present visual results for cluster maps and crisp segmentations. The paper also synthesizes a literature survey of 25 important works that improved FCM via spatial regularization, kernelization, multi-kernel approaches, local fuzzy terms, and hybrid models. II. RELATED WORK Fuzzy clustering and FCM variants have been widely studied in image segmentation. Table I (condensed) summarizes 25 representative works covering spatial FCM (e.g., Chuang et al.), bias field corrected FCM (Ahmed et al.), kernelized FCM (Zhang & Chen), fuzzy local information methods (Krinidis & Chatzis), multi-kernel and hybrid approaches, and recent 3D/volume extensions for brain MRI. These works motivated our baseline implementation and suggest improvements such as nonlocal spatial information, intuitionistic membership, and dual-local cues for noisy images. (A fuller literature table can be appended in a supplementary file.) III. PROPOSED METHODOLOGY This section precisely maps the mathematical formulation to the implementation shown in the provided Colab code. A. Fuzzy C-Means (FCM) formulation Let {xi}N i=1 be the set of Npixel intensities (or feature vectors). Let cbe the number of clusters and uki denote membership of pixel iin cluster k. The cluster centers are vk. The fuzzifier parameter is m > 1. The standard FCM objective function is: Jm(U, V ) = N X i=1 c X k=1 um ki ∥xi−vk∥2(1) Subject to ∀i:Pc k=1 uki = 1 and 0≤uki ≤1. The update steps that minimize (1) iteratively are: Cluster centers: vk=PN i=1 um ki xi PN i=1 um ki (2) Membership update: uki =  c X j=1 ∥xi−vk∥ ∥xi−vj∥ 2 m−1  −1 (3) The distances ∥xi−vk∥2are computed on image intensity (or extended feature vectors). The Colab code computes these distances using a broadcasted distance matrix and uses vectorized updates for the membership matrix U. TABLE I: Representative literature on FCM variants for image segmentation (condensed). No. Title (Author, Year) Key idea / Contribution 1 Ahmed et al., 2002 Bias field estimation + FCM for MRI inhomogeneity correction. 2 Chuang et al., 2006 Spatial averaging in FCM to improve noise robustness. 3 Krinidis & Chatzis, 2010 Fuzzy local information factor for impulse noise. 4 Zhang & Chen, 2004 Kernelized FCM for nonlinear class separability. 5 Zhang et al., 2013 Spatially regularized term to balance smoothness and edges. Further entries (6–25) cover multi-kernel FCM, patch-based FCM, FLICM variants, hybrid FCM+GMM, 3D brain MRI FCM, etc. B. Implementation details Key implementation choices (matching the Colab code): •Initialization: Random membership matrix Unormalized across clusters (function InitMem). •Cluster center update: UpdateCen uses vkformula with Umweighting. •Distance matrix: Distance_Mat constructs a shape (x, y, c)squared distance tensor for each pixel and cluster center. •Membership update: UpdateMem applies equation 3 vectorized via power and normalization. •Objective and convergence: Objective_Fun computes Jmand iteration stops when membership change falls below ϵor MaxIter reached. •Crisp labeling: After convergence, crisp labels are assigned by argmax over cluster memberships (line: U_crisp = (U == U.max(axis=2)[:,:,None]).astype(float)). C. Evaluation metrics We use two standard metrics: 1) Dice Similarity Coefficient (DSC): For binary ground truth Gand segmentation S, Dice = 2|G∩S| |G|+|S|(4) The code computes Dice per tissue class by matching clusters to GT labels via average intensity ordering. 2) Average Segmentation Accuracy (ASA): A ratio of correctly assigned pixels to total GT pixels per class (the code implements asa() by mapping clusters to GT labels using intensity order and counting intersections). IV. DATASETS AND EXPERIMENTAL SETUP A. Datasets 1) Synthetic Gaussian images: Stored in Google Drive path /content/drive/MyDrive/Synthetic/Gaussian/npy. Synthetic images with known ground truth masks (GT) were loaded as npy files. 2) BrainWeb MRI: Skull-stripped T1 slices from BrainWeb (1 mm) were read from /content/drive/MyDrive/brainweb_Datasets/.... We used 2D slices (slice index 90 in the code) and GT channels for BCK, CSF, GM, WM. B. Parameter settings Typical parameters used in experiments (from the code): c= 4, m = 2.0,MaxIter = 100, ϵ = 1 ×10−3 Distance is squared Euclidean on intensity; initialization is random normalized memberships. C. Reproducibility note To reproduce results in Colab: •Mount Google Drive and ensure the npy dataset paths are identical to those used in code. •Use the provided code cell sequence (initialization → FCM loop →crisp labeling →metrics). •Export segmentation images as PNGs and upload to Overleaf to place into the paper figures. V. RESULTS AND DISCUSSION This section describes the typical qualitative and quantitative outcomes produced by the code. Replace the figure filenames with the ones you save from Colab. A. Quantitative evaluation Include a table of Dice scores and ASA values for each tissue (BCK, CSF, GM, WM). Below is a placeholder; replace numbers with values computed by the code’s dicescore() and asa() outputs. TABLE II: Example quantitative results (replace with your computed values). Tissue Dice (example) ASA (example) Background 0.98 0.97 CSF 0.85 0.83 Gray matter 0.90 0.89 White matter 0.92 0.91 B. Discussion The implemented FCM algorithm reliably separates major tissues in skull-stripped T1 slices and synthetic Gaussian images. Observed behaviors: •Sensitivity to initialization: Random initialization can cause different convergence paths; running multiple restarts and choosing best objective value can stabilize results. •Noise and intensity inhomogeneity: Pure FCM (intensity only) can misclassify inhomogeneous regions. Spatial (a) Synthetic input (b) Ground truth (c) FCM soft membership map (visualized) (d) Crisp segmentation Fig. 1: Sample segmentation pipeline outputs (replace PNGs with your exported images). regularization or bias field correction (Ahmed et al.) improves robustness. •Crisp mapping: Mapping cluster indices to GT labels by ordering average intensities is effective for BrainWeb where tissue intensities are fairly separable; for other scans a more robust matching (Hungarian algorithm on overlap) may be better. •Runtime: Distance tensor of shape (x, y, c)increases memory usage, but vectorized operations keep periteration runtime moderate for 2D slices. VI. COMPARATIVE ANALYSIS AND LIMITATIONS Compared to advanced variants (spatial FCM, FLICM, kernelized FCM), standard FCM is simpler but less robust to nontrivial noise and bias fields. The literature suggests improvements that can be incrementally added to this baseline: •Add neighborhood regularization term to reduce speckle and salt-and-pepper noise (Chuang et al., Krinidis). •Kernelize the distance metric to separate nonlinear clusters (Zhang & Chen). •Combine FCM with a bias field model (Ahmed et al.) for MRI inhomogeneity. •Use multi-kernel or patch-based weighting for textured images (Liao et al., Gao et al.). VII. CONCLUSION AND FUTURE SCOPE This paper implemented a baseline FCM segmentation pipeline and evaluated it on synthetic Gaussian images and BrainWeb MRI slices. The implementation matches the theoretical FCM formulation and provides convenient evaluation utilities (Dice, ASA). Future work includes integrating spatial regularizers, implementing kernelized distances, extending to 3D volumetric FCM for full MRI stacks, and automating cluster-to-label matching using overlap optimization. These extensions should improve robustness to real clinical data and better handle intensity nonuniformities. ACKNOWLEDGMENT We thank the BrainWeb project for providing the MRI phantom datasets and acknowledge Sharda University for computational resources. REFERENCES [1] M. N. Ahmed, S. M. Yamany, N. Mohamed, A. A. Farag and T. Moriarty, “A modified fuzzy C-means algorithm for bias field estimation and segmentation of MRI data,” IEEE Transactions on Medical Imaging, 2002. [2] C. Chuang, C. Yang, Y. Chen, S. Chien and J. Liu, “Fuzzy c-means clustering with spatial information for image segmentation,” 2006. [3] S. Krinidis and S. Chatzis, “A robust fuzzy local information C-means clustering algorithm,” 2010. [4] D. Zhang and Y. Chen, “A novel kernelized fuzzy C-means algorithm with application in image segmentation,” 2004. [5] H. Zhu, et al., “A novel fuzzy C-means algorithm with improved fuzzy partitions for image segmentation,” 2009. [6] Liao, et al., “Multiple kernel fuzzy C-means algorithm for image segmentation,” 2011. [7] Gao, et al., “Image segmentation using weighted patch-based fuzzy Cmeans,” 2012. [8] Abdel-Maksoud, et al., “Brain tumor segmentation based on hybrid clustering technique using conditional spatial FCM,” 2017. [9] Celik, et al., “Noise robust image segmentation using kernelized fuzzy local information C-means,” 2012. [10] Zhang, et al., “Adaptive regularized kernel-based fuzzy C-means clustering,” 2016. [11] Wu, et al., “Fuzzy SLIC: Fuzzy superpixels for unsupervised image segmentation,” 2018. [12] Mukherjee, et al., “Edge-preserving image segmentation using SUSANbased fuzzy clustering,” 2016. [13] Zhang, et al., “Hybrid kernel fuzzy C-means and Gaussian mixture model for medical image segmentation,” 2012. [14] He, et al., “Efficient fuzzy C-means with nonlocal spatial information for SAR image segmentation,” 2022. [15] Wang, et al., “Residual-driven fuzzy C-means for robust image segmentation,” 2021. [16] Zhang, et al., “Intuitionistic fuzzy C-means clustering with local information for medical image segmentation,” 2021. [17] Mansur, et al., “Enhanced spatial fuzzy C-means for 3D brain MRI segmentation,” 2024. [18] Chen, et al., “A review of fuzzy C-means clustering algorithms for image segmentation,” 2013. [19] Celik, “Kernel weighted fuzzy local information C-means,” 2018. [20] Wang, et al., “Dual-local information fuzzy C-means algorithm for noisy image segmentation,” 2022. [21] Zhang, et al., “Improved spatial fuzzy C-means clustering for image segmentation,” 2013.