Diabetes Mellitus Disease Analysis using Support Vector Machines and K-Nearest Neighbor Methods
DOI:
https://doi.org/10.64021/ijmst.1.1.22-27.2025Keywords:
classification, diabetes melitus, knn, machine learning, svmAbstract
Diabetes Mellitus (DM) is a chronic disease characterized by high blood sugar levels and can cause various serious complications if not treated properly. This study aims to analyze the effectiveness of Support Vector Machines (SVM) and K-Nearest Neighbor (KNN) methods in classifying diabetes mellitus patient data. The methodology used includes collecting diabetes datasets, preprocessing data, and applying SVM and KNN algorithms to perform classification. The performance of both methods is analyzed using evaluation metrics such as accuracy, precision, recall, and F1-score. The experimental results show that the SVM method provides more optimal performance in classifying diabetes data compared to KNN, with higher accuracy and lower error rate. This finding indicates that SVM is more suitable for early detection of diabetes mellitus in the dataset used in this study.
References
Apriyani, H. (2020). Perbandingan Metode Naïve Bayes Dan Support Vector Machine Dalam Klasifikasi Penyakit Diabetes Melitus. Journal of Information Technology Ampera, 1(3), 133-142.
Oktavia, A., Wijaya, D., Pramuntad,i A., Heksaputra, D. (2024) Prediksi Penyakit Diabetes Melitus Tipe 2 Menggunakan Algoritma K Nearest Neighbor (K-NN). MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(3), 812-818. https://doi.org/10.57152/malcom.v4i3.1268
Nasien, D., Darwin, R., Cia, A., Leo Winata, A., Go, J., Charles Wijaya, R., Charles Lo, K. (2024). Perbandingan Implementasi Machine Learning Menggunakan Metode KNN, Naive Bayes, Dan Logistik Regression Untuk Mengklasifikasi Penyakit Diabetes. Jurnal Teknik Informatika, 4(1), 11-16. https://doi.org/10.58794/jekin.v4i1.640
Hendro Martono G, Sulistianingsih N. (2024). Perbandingan Matriks jarak pada Algoritma K-NN untuk Prediksi Penyakit Diabetes Comparison of Distance Matrices in the K-NN Algorithm of Predicting Diabetes. JoMI: Journal of Millennial Informatics, 2(1), 1-6.
Patil R, Tamane S, Rawandale S, Patil K. (2022). A modified mayfly-SVM approach for early detection of type 2 diabetes mellitus. International Journal of Electrical and Computer Engineering, 12(1), 524-533. https://doi.org/10.11591/ijece.v12i1.pp524-533
Asno Azzawagama Firdaus et al., “Application of Sentiment Analysis as an Innovative Approach to Policy Making: A review,” Journal of Robotics and Control (JRC), vol. 5, no. No. 6, pp. 1784–1798, 2024.
Hovi Sohibul W, Asep Id H, Fajri Rakhmat U. (2022). Prediksi Penyakit Diabetes Menggunakan Algoritma Support Vector Machine (SVM). Informatics and Digital Expert (INDEX), 4(1), 40–45. https://doi.org/10.36423/index.v4i1.895
Oktaviana, A., Wijaya, D. P., Pramuntadi, A., & Heksaputra, D. (2024). Prediksi Penyakit Diabetes Melitus Tipe 2 Menggunakan Algoritma K-Nearest Neighbor (K-NN). MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(3), 812–818. https://doi.org/10.57152/malcom.v4i3.1268
A. A. Firdaus, A. Yudhana, and I. Riadi, “Indonesian presidential election sentiment: Dataset of response public before 2024,” Data Brief, vol. 52, p. 109993, 2024, doi: 10.1016/j.dib.2023.109993
A. A. Firdaus, A. Yudhana, and I. Riadi, “Public Opinion Analysis of Presidential Candidate Using Naïve Bayes Method,” Kinetik: Game Technology, Information System, Computer Network, Computing, Electronics, and Control, vol. 4, no. 2, pp. 563–570, May 2023, doi: 10.22219/kinetik.v8i2.1686.
A. A. Firdaus, A. Yudhana, and I. Riadi, “DECODE : Jurnal Pendidikan Teknologi Informasi,” Decode: Jurnal Pendidikan Teknologi Informasi, vol. 3, no. 2, pp. 236–245, 2023, doi: http://dx.doi.org/10.51454/decode.v3i2.172.
M. M. Dakwah, A. A. Firdaus, Furizal, and R. A. Faresta, “Sentiment Analysis on Marketplace in Indonesia using Support Vector Machine and Naïve Bayes Method,” Jurnal Ilmiah Teknik Elektro Komputer dan Informatika (JITEKI), vol. 10, no. 1, pp. 39–53, 2023, doi: 10.26555/jiteki.v10i1.28070
Yinshan Yu, Mingzhen Shao, Lingjie Jiang, Yongbin Ke, Dandan Wei, Dongyang Zhang,Mingxin Jiang, Yudong Yang. (2021). Quantitative analysis of multiple components based on support vector machine (SVM). Optik. Volume 237, July 2021, 166759. https://doi.org/10.1016/j.ijleo.2021.166759
C. C. Olisah, L. Smith, and M. Smith, “Diabetes mellitus prediction and diagnosis from a data preprocessing and machine learning perspective,” Comput Methods Programs Biomed, vol. 220, p. 106773, Jun. 2022, doi: 10.1016/j.cmpb.2022.106773.
A. A. Firdaus, A. Yudhana, and I. Riadi, “Prediction of Presidential Election Results using Sentiment Analysis with Pre and Post Candidate Registration Data,” Khazanah Informatika, Vol. 10, No. 1, 2024, doi: https://doi.org/10.23917/khif.v10i1.4836
Abhilash S, Sukhkirandeep K, Naz Memon, A. Jainul Fathima, Samrat R, Mohammed Wasim B. (2021). Alzheimer's patients detection using support vector machine (SVM) with quantitative analysis. Neuroscience Informatics. Volume 1, Issue 3, November 2021, 100012. https://doi.org/10.1016/j.neuri.2021.100012
Q. Xu, “Application of an Intelligent English Text Classification Model with Improved KNN Algorithm in the Context of Big Data in Libraries,” Systems and Soft Computing, p. 200186, Jan. 2025, doi: 10.1016/j.sasc.2025.200186.
A. A. Firdaus, A. Yudhana, and I. Riadi, “Prediction of Indonesian Presidential Election Results using Sentiment Analysis with Naïve Bayes Method,” Jurnal Media Informatika Budidarma, vol. 8, no. 1, pp. 41–50, 2024, doi: 10.30865/mib.v8i1.7007.
Saut Dohot S, Yusra Uli R G, Nita S, Salim Butar-Butar H, Riki Marthin S. (2023). Implementation of KNN algorithm in classifying diabetic ulcers in patients with diabetes mellitus. Jurnal Mantik (Manajemen, Teknologi Informatika dan Komunikasi). Vol. 7 No. 2 (2023). https://doi.org/10.35335/mantik.v7i2.3928
Khaled Alnowaiser. (2024). Improving Healthcare Prediction of Diabetic Patients Using KNN Imputed Features and Tri-Ensemble Model. https://doi.org/10.1109/ACCESS.2024.3359760.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Indonesian Journal of Modern Science and Technology

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
