International Journal of Engineering

International Journal of Engineering

Segmentation of Brain Tumors from Magnetic Resonance Imaging with k-means Clustering Morphological Local and Global Intensity Fitting

Document Type : Original Article

Authors
Department of Electrical and Computer Engineering, University of Birjand, Birjand, Iran
Abstract
The precise detection of brain tumors in magnetic resonance imaging (MRI) is crucial for diagnosis and therapy planning. Conversely, conventional approaches often face challenges such as intensity changes, complex tumor shapes, and susceptibility to noise. This study introduces a novel hybrid framework that integrates histogram matching, k-means clustering, and a Morphological Local and Global Intensity Fitting (MLGIF) model to tackle these issues. The first stage in histogram matching is normalizing the intensity distributions of MRI data. K-means clustering is used to provide an initial segmentation of the tumor regions. The MLGIF-based active contour model enhances the precision of tumor border segmentation while maintaining computational economy by integrating both local and global intensity inputs. The BraTS 2013 dataset was used to conduct comprehensive evaluations to determine the efficacy of the suggested framework. The Dice coefficient was 94.18%, while the Jaccard index was 89.11%. The results demonstrated that our method effectively segmented brain tumors and had promise for real-world therapeutic applications.

Graphical Abstract

Segmentation of Brain Tumors from Magnetic Resonance Imaging with k-means Clustering Morphological Local and Global Intensity Fitting
Keywords

Subjects


  1. Farsi H, Ghermezi D, Barati A, Mohamadzadeh S. Improving Deep Learning-based Saliency Detection Using Channel Attention Module. International Journal of Engineering Transactions B: Applications. 2024;37(11):2367-79. https://doi.org/10.5829/IJE.2024.37.11B.21
  2. Mohamadzadeh S, Pasban S, Zeraatkar-Moghadam J, Shafiei AK. Parkinson’s disease detection by using feature selection and sparse representation. Journal of Medical and Biological Engineering. 2021;41(4):412-21. https://doi.org/10.1007/s40846-021-00626-y
  3. Sahragard E, Farsi H, Mohamadzadeh S. Advancing semantic segmentation: Enhanced UNet algorithm with attention mechanism and deformable convolution. PloS one. 2025;20(1):e0305561. https://doi.org/10.1371/journal.pone.0305561
  4. Ahishakiye E, Bastiaan Van Gijzen M, Tumwiine J, Wario R, Obungoloch J. A survey on deep learning in medical image reconstruction. Intelligent Medicine. 2021;1(03):118-27. https://doi.org/10.1016/j.imed.2021.03.003
  5. Wadhwa A, Bhardwaj A, Verma VS. A review on brain tumor segmentation of MRI images. Magnetic resonance imaging. 2019;61:247-59. https://doi.org/10.1016/j.mri.2019.05.043
  6. Mohammed YM, El Garouani S, Jellouli I. A survey of methods for brain tumor segmentation-based MRI images. Journal of Computational Design and Engineering. 2023;10(1):266-93. https://doi.org/10.1093/jcde/qwac141
  7. Bauer S, Wiest R, Nolte L-P, Reyes M. A survey of MRI-based medical image analysis for brain tumor studies. Physics in Medicine & Biology. 2013;58(13):R97. https://doi.org/10.1088/0031-9155/58/13/R97
  8. Dorrani Z, Farsi H, Mohamadzadeh S. Shadow Removal in Vehicle Detection Using ResUNet-a. Iranica Journal of Energy & Environment. 2023;14(1):87-95. https://doi.org/10.5829/ijee.2023.14.01.11
  9. Rohani M, Farsi H, Mohamadzadeh S. Facial feature recognition with multi-task learning and attention-based enhancements. Iranica Journal of Energy & Environment. 2025;16(1):136-44. https://doi.org/10.5829/ijee.2025.16.01.14
  10. Sezavar A, Farsi H, Mohamadzadeh S. A New Model for Person Reidentification Using Deep CNN and Autoencoders. Iranica Journal of Energy & Environment. 2023;14(4):314-20. https://doi.org/10.5829/ijee.2023.14.04.01
  11. Daraei A, Hamidi H. An efficient predictive model for myocardial infarction using cost-sensitive J48 model. Iranian journal of public health. 2017;46(5):682.
  12. Hamidi H, Vafaei A, Monadjemi SAH. Analysis and evaluation of a new algorithm based fault tolerance for computing systems. International Journal of Grid and High Performance Computing (IJGHPC). 2012;4(1):37-51. https://doi.org/10.4018/jghpc.2012010103
  13. Hamidi H, Vafaei A, Monadjemi A. Algorithm based fault tolerant and check pointing for high performance computing systems. Journal of applied sciences. 2009;9(22):3947-56. https://doi.org/10.3923/jas.2009.3947.3956
  14. Nilchi AN, Vafaei A, Hamidi H, editors. Evaluation of security and fault tolerance in mobile agents. 2008 5th IFIP International Conference on Wireless and Optical Communications Networks (WOCN'08); 2008: IEEE.
  15. Mohammadi A, Hamidi H. Analysis and evaluation of privacy protection behavior and information disclosure concerns in online social networks. International Journal of Engineering, Transactions B: Applications. 2018;31(8):1234-9. https://doi.org/10.5829/ije.2018.31.08b.11
  16. Asadi SAF, Hamidi H. An architecture for security and protection of big data. International Journal of Engineering, Transactions A: Basics. 2017;30(10):1479–86. https://doi.org/10.5829/ije.2017.30.10a.08
  17. Hamidi H, Vafaei A, Monadjemi A. A framework for fault tolerance techniques in the analysis and evaluation of computing systems. International journal of innovative computing, information and control. 2012;8(7):5083-94.
  18. Hamidi H. A model for impact of organizational project benefits management and its impact on end user. Journal of Organizational and End User Computing (JOEUC). 2017;29(1):51-65. https://doi.org/10.4018/JOEUC.2017010104
  19. Bakas S, Reyes M, Jakab A, Bauer S, Rempfler M, Crimi A, et al. Identifying the best machine learning algorithms for brain tumor segmentation, progression assessment, and overall survival prediction in the BRATS challenge. arXiv preprint arXiv:181102629. 2018. http://arxiv.org/abs/1811.02629
  20. Menze BH, Jakab A, Bauer S, Kalpathy-Cramer J, Farahani K, Kirby J, et al. The multimodal brain tumor image segmentation benchmark (BRATS). IEEE transactions on medical imaging. 2014;34(10):1993-2024. https://doi.org/10.1109/TMI.2014.2377694
  21. Bauer S, Nolte L-P, Reyes M, editors. Fully automatic segmentation of brain tumor images using support vector machine classification in combination with hierarchical conditional random field regularization. International conference on medical image computing and computer-assisted intervention; 2011: Springer.
  22. Kumar TS, Rashmi K, Ramadoss S, Sandhya L, Sangeetha T, editors. Brain tumor detection using SVM classifier. 2017 Third International Conference on Sensing, Signal Processing and Security (ICSSS); 2017: IEEE.
  23. Breiman L. Random forests. Machine learning. 2001;45:5-32. https://link.springer.com/article/10.1023/A:1010933404324
  24. Soomro TA, Zheng L, Afifi AJ, Ali A, Soomro S, Yin M, et al. Image segmentation for MR brain tumor detection using machine learning: a review. IEEE Reviews in Biomedical Engineering. 2022;16:70-90. https://doi.org/10.1109/RBME.2022.3185292
  25. Sauwen N, Acou M, Van Cauter S, Sima D, Veraart J, Maes F, et al. Comparison of unsupervised classification methods for brain tumor segmentation using multi-parametric MRI. NeuroImage: Clinical. 2016;12:753-64. https://doi.org/10.1016/j.nicl.2016.09.021
  26. Kass M, Witkin A, Terzopoulos D. Snakes: Active contour models. International journal of computer vision. 1988;1(4):321-31. https://doi.org/10.1007/BF00133570
  27. Fouladivanda M, Kazemi K, Helfroush MS, Shakibafard A. Morphological active contour driven by local and global intensity fitting for spinal cord segmentation from MR images. Journal of neuroscience methods. 2018;308:116-28. https://doi.org/10.1016/j.jneumeth.2018.07.015
  28. Shahvaran Z, Kazemi K, Fouladivanda M, Helfroush MS, Godefroy O, Aarabi A. Morphological active contour model for automatic brain tumor extraction from multimodal magnetic resonance images. Journal of neuroscience methods. 2021;362:109296. https://doi.org/10.1016/j.jneumeth.2021.109296
  29. Fooladi S, Farsi H, Mohamadzadeh S. Segmenting the lesion area of brain tumor using convolutional neural networks and fuzzy k-means clustering. International Journal of Engineering, Transactions B: Applications. 2023;36(8):1556-68. https://doi.org/10.5829/IJE.2023.36.08B.15
  30. Emadi M, Dehkordi ZJ, Mobarakeh MI. Improving the accuracy of brain tumor identification in magnetic resonanceaging using super-pixel and fast primal dual algorithm. International Journal of Engineering, Transactions A: Basics. 2023;36(3):505-12. https://doi.org/10.5829/ije.2023.36.03c.10
  31. Nouri M, Damavandi YB. A New Texture Segmentation Method with Energy-driven Parametric Active Contour Model Based on Jensen-Tsallis Divergence. International Journal of Engineering, Transactions A: Basics. 2022;35(7):1257-67. https://doi.org/10.5829/ije.2022.35.07a.05
  32. Shekari M, Rostamian M. Brain tumor segmentation from MRI using FCM clustering, morphological reconstruction, and active contour. Multimedia Tools and Applications. 2024;83(14):42973-98. https://doi.org/10.1007/s11042-023-17233-5
  33. Chan TF, Vese LA. Active contours without edges. IEEE Transactions on image processing. 2001;10(2):266-77.
  34. Sun K, Chen Z, Jiang S. Local morphology fitting active contour for automatic vascular segmentation. IEEE transactions on biomedical engineering. 2011;59(2):464-73. https://doi.org/10.1109/TBME.2011.2174362
  35. Marquez-Neila P, Baumela L, Alvarez L. A morphological approach to curvature-based evolution of curves and surfaces. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2013;36(1):2-17. https://doi.org/10.1109/TPAMI.2013.106
  36. Usman Akbar M, Larsson M, Blystad I, Eklund A. Brain tumor segmentation using synthetic MR images-A comparison of GANs and diffusion models. Scientific Data. 2024;11(1):259. https://doi.org/10.1038/s41597-024-03073-x
  37. Schwehr Z, Achanta S. Brain tumor segmentation based on deep learning, attention mechanisms, and energy-based uncertainty predictions. Multimedia Tools and Applications. 2025:1-20. https://doi.org/10.1007/s11042-024-20443-0
  38. Isensee F, Jäger PF, Full PM, Vollmuth P, Maier-Hein KH, editors. nnU-Net for brain tumor segmentation. Brainlesion: Glioma, Multiple Sclerosis, Stroke and Traumatic Brain Injuries: 6th International Workshop, BrainLes 2020, Held in Conjunction with MICCAI 2020, Lima, Peru, October 4, 2020, Revised Selected Papers, Part II 6; 2021: Springer.
  39. Yang Y, Wang P, Yang Z, Zeng Y, Chen F, Wang Z, et al. Segmentation method of magnetic resonance imaging brain tumor images based on improved UNet network. Translational Cancer Research. 2024;13(3):1567. https://doi.org/10.21037/tcr-23-1858
  40. Aboussaleh I, Riffi J, Mahraz AM, Tairi H. Inception-UDet: an improved U-Net architecture for brain tumor segmentation. Annals of Data Science. 2024;11(3):831-53. https://doi.org/10.1007/s40745-023-00480-6
  41. Khosravanian A, Rahmanimanesh M, Keshavarzi P, Mozaffari S. Enhancing level set brain tumor segmentation using fuzzy shape prior information and deep learning. International Journal of Imaging Systems and Technology. 2023;33(1):323-39. https://doi.org/10.1002/ima.22792
  42. Ma C, Luo G, Wang K. Concatenated and connected random forests with multiscale patch driven active contour model for automated brain tumor segmentation of MR images. IEEE transactions on medical imaging. 2018;37(8):1943-54. https://doi.org/10.1109/TMI.2018.2805821