Application of Different Distance Metrics on K-Means Clustering Algorithm for Retinal Vessel Images

Authors

  • Nor’ Awatif Amri Muhammad Nazim School of Mathematical Sciences, College of Computing, Informatics and Mathematics, Universiti Teknologi MARA. 40450 Shah Alam, Selangor, Malaysia
  • Normi Abdul Hadi School of Mathematical Sciences, College of Computing, Informatics and Mathematics, Universiti Teknologi MARA. 40450 Shah Alam, Selangor, Malaysia
  • Mohd Rijal Ilias School of Mathematical Sciences, College of Computing, Informatics and Mathematics, Universiti Teknologi MARA. 40450 Shah Alam, Selangor, Malaysia
  • Dian Kurniasari Department of Mathematics, Faculty of Science and Mathematics, Lampung University, Indonesia
  • Suhaila Abd Halim Smart Manufacturing Research Institute (SMRI), Universiti Teknologi MARA, 40450 Shah Alam, Selangor, Malaysia

DOI:

https://doi.org/10.37934/sijml.4.1.1426a

Keywords:

K-Means clustering, distance metrics, MATLAB, retinal blood vessels, image segmentation

Abstract

Accurate segmentation of retinal blood vessels is important for the early detection and treatment of a variety of ocular disorders, including diabetic retinopathy and glaucoma. There are various methods used in image segmentation and one of them is K-means clustering. The problems of K-means clustering are its initial cluster centres, the spherical clusters’ assumption, and the hard assignment of the pixels to the clusters, which has led to the improvements of the algorithm. These problems are closely related to the choice of distance metrics. In this study, the following objectives have been set that are to implement different distance metrics that are Euclidean, Manhattan, Chebychev and Mahalanobis distances in the K-means clustering algorithm to enhance retinal blood vessel segmentation and to measure the performance of the algorithms using accuracy, precision, recall, Dice Similarity coefficients (DSCs) and Jaccard similarity coefficients (JSCs). The retinal images are processed by choosing the green channel as it shows better visuals. Contrast Limited Adaptive Histogram Equalisation (CLAHE) is applied in the next step, followed by hole filling in order to improve the quality of the image. Next, we segment the blood vessels using K-means clustering. We apply each distance measurement separately to evaluate its impact on segmentation performance. We evaluate the segmentation algorithms’ performance using ground truth and quantitative metrics. We implement the process using MATLAB. The results indicate that the choice of the distance metric significantly affects the segmentation accuracy. The Mahalanobis distance provides the best-balanced results between accuracy, precision, recall, Dice Similarity coefficient (DSC) and Jaccard similarity coefficient (JSC). Based on the findings, it is recommended to use Mahalanobis distance for optimal segmentation performance for retinal blood vessel images as it is suitable in identifying complex structures of vessels in the retinal.

Author Biographies

Nor’ Awatif Amri Muhammad Nazim, School of Mathematical Sciences, College of Computing, Informatics and Mathematics, Universiti Teknologi MARA. 40450 Shah Alam, Selangor, Malaysia

2021886412@student.uitm.edu.my

Normi Abdul Hadi, School of Mathematical Sciences, College of Computing, Informatics and Mathematics, Universiti Teknologi MARA. 40450 Shah Alam, Selangor, Malaysia

normi683@uitm.edu.my

Mohd Rijal Ilias, School of Mathematical Sciences, College of Computing, Informatics and Mathematics, Universiti Teknologi MARA. 40450 Shah Alam, Selangor, Malaysia

mrijal@uitm.edu.my

Dian Kurniasari, Department of Mathematics, Faculty of Science and Mathematics, Lampung University, Indonesia

dian.kurniasari@fmipa.unila.ac.id

Suhaila Abd Halim, Smart Manufacturing Research Institute (SMRI), Universiti Teknologi MARA, 40450 Shah Alam, Selangor, Malaysia

suhaila889@uitm.edu.my

Downloads

Published

2025-05-02

How to Cite

Muhammad Nazim, N. A. A., Abdul Hadi, N., Ilias, M. R., Kurniasari, D., & Abd Halim, S. (2025). Application of Different Distance Metrics on K-Means Clustering Algorithm for Retinal Vessel Images. Semarak International Journal of Machine Learning, 4(1), 14–26. https://doi.org/10.37934/sijml.4.1.1426a

Issue

Section

Articles