Diabetes Risk Prediction Using Machine Learning Methods: A Case Study of Logistic Regression, Random Forest, and Support Vector Machine
DOI:
https://doi.org/10.33197/justinfo.v3i2.3474Keywords:
Diabetes, Machine Learning, Logistic Regression, Random Forest, Support Vector machineAbstract
Diabetes is a global health problem whose prevalence continues to increase and has the potential to cause serious complications if not detected early. Early detection of diabetes risk is very important to prevent fatal consequences and support more effective clinical decision-making. This study aims to analyze and compare the performance of three machine learning algorithms, namely Logistic Regression, Random Forest, and Support Vector Machine, in predicting diabetes risk based on patient symptom and health condition data. The methods used include data collection from open sources, data pre-processing with imputation and normalization, model training using the three algorithms, and model performance evaluation based on accuracy, precision, recall, and F1-score metrics. The dataset used consisted of 520 samples with 17 attributes, including main symptoms such as frequent urination, excessive thirst, and demographic factors. The results of the study show that the Random Forest algorithm has the best performance with an accuracy of 99%, precision of 1, recall of 0.99, and F1-score of 0.99, surpassing Logistic Regression and Support Vector Machine. These findings confirm that Random Forest is very effective in capturing the complexity of clinical data and can be relied upon as a tool for early detection of diabetes risk. This research contributes to the development of decision support systems in the field of digital health by offering an accurate and efficient machine learning-based prediction approach.
References
[1] Firdous, G. Wagai, & K. Sharma, "A survey on diabetes risk prediction using machine learning approaches", Journal of Family Medicine and Primary Care, vol. 11, no. 11, p. 6929-6934, 2022. https://doi.org/10.4103/jfmpc.jfmpc_502_22
[2] Erlin, Yulvia Nora Marlim, Junadhi, Laili Suryati, and Nova Agustina, "Early Detection of Diabetes Using Machine Learning with Logistic Regression Algorithm", Jurnal Nasional Teknik Elektro dan Teknologi Informasi, vol. 11, no. 2, pp. 88-96, May 2022. DOI: https://doi.org/10.22146/jnteti.v11i2.3586
[3] S. Wang, "Diabetes prediction using Random Forest in healthcare", Highlights in Science Engineering and Technology, vol. 92, p. 210-217, 2024. https://doi.org/10.54097/5ndh9a05
[4] J. J. Khanam and S. Y. Foo, “A Comparison of Machine Learning Algorithms for Diabetes Prediction,” ICT Express, vol. 7, no. 4, pp. 432–439, 2021, doi: https://doi.org/10.1016/j.icte.2021.02.004
[5] Dwi Utami, Fathoni Dwiatmoko, and Nuari Anisa Sivi, “Analisis Pengaruh Bayesian Optimization Terhadap Kinerja SVM Dalam Prediksi Penyakit Diabetes”, INFOTEK, vol. 8, no. 1, pp. 140–150, Jan. 2025. DOI: https://doi.org/10.29408/jit.v8i1.28468
[6] D. Dey, M. S. Haque, M. M. Islam, U. I. Aishi, S. S. Shammy, M. S. Ahmed Mayen, S. T. A. Noor, and M. J. Uddin, “The proper application of logistic regression model in complex survey data: a systematic review,” BMC Medical Research Methodology, vol. 25, art. no. 15, Jan. 2025. doi: 10.1186/s12874-024-02454-5.
[7] G. Aguilera‐Venegas, A. López-Molina, G. Rojo‐Martínez, & J. Galán–García, "Comparing and tuning machine learning algorithms to predict type 2 diabetes mellitus", Journal of Computational and Applied Mathematics, vol. 427, p. 115115, 2023. https://doi.org/10.1016/j.cam.2023.115115
[8] R. Pratama, A. M. Siregar, S. A. P. Lestari, and S. Faisal, "Implementation of Diabetes Prediction Model Using Random Forest Algorithm, K-Nearest Neighbor, and Logistic Regression," Jurnal Teknik Informatika (JUTIF), vol. 5, no. 4, pp. 1165-1174, Aug. 2024. doi: 10.52436/1.jutif.2024.5.4.2593
[9] H. S. Wafa, A. I. Hadiana, and F. R. Umbara, "Prediksi Penyakit Diabetes Menggunakan Algoritma Support Vector Machine (SVM)," Informatics and Digital Expert (INDEX), vol. 4, no. 1, pp. 40-45, Jul. 2022. doi: 10.52436/1.index.2022.4.1.40
[10] Y. Zhang and H. Zhang, “Development of a 5-Year Risk Prediction Model for Transition From Prediabetes to Diabetes Using Machine Learning,” J. Med. Internet Res., vol. 27, 2025. [Online]. Available: https://doi.org/10.2196/73190
[11] S. Ravichandran, H. K. Su, and W. K. Kuo, “Revolutionizing Prenatal Care: Harnessing Machine Learning for Gestational Diabetes Anticipation,” Eng. Proc., vol. 9, no. 1, 2025. [Online]. Available: https://doi.org/10.3390/engproc2025092008
[12] R. Mittal, M. B. Weiss, A. Rendon, and S. Shafazand, “Harnessing Machine Learning for Early Detection and Diagnosis of Type 1 Diabetes: A Systematic Review,” Int. J. Mol. Sci., vol. 26, no. 9, p. 3935, 2025. [Online]. Available: https://doi.org/10.3390/ijms26093935
[13] B. M. Preethi and S. Vigneshwaraayyappan, “Assessing Automated Learning Models for Early Diabetes Prediction: Emphasizing Random Forest Efficiency,” Int. Res. J., 2025. [Online]. Available: https://www.irjweb.com/Assessing%20Automated%20Learning%20Models%20for%20Early%20Diabetes%20Prediction%20Emphasizing%20Random%20Forest%20Efficiency.pdf
[14] Y. Rong, W. Liu, K. Li, J. Guo, and X. P. Li, “T2D-LVDD: Predictive Models for Left Ventricular Dysfunction in Type 2 Diabetes Using Machine Learning,” Diabetol. Metab. Syndr., vol. 17, no. 1, 2025. [Online]. Available: https://doi.org/10.1186/s13098-025-01714-8
[15] M. N. Mathivanan, N. Norsyela, E. Z. X. Foo, D. Y. X. Foo, and H. K. Chua, “Impact of feature standardization on heart disease prediction: A comparative analysis of logistic regression and support vector machine models,” Malaysian Journal of Computing (MJoC), vol. 10, no. 2, pp. 2159–2175, 2025, doi: 10.24191/mjoc.v10i1.6835.
[16] O. Daswati, I. Indahwati, E. Erfiani, A. Fitrianto, and M. A. Aliu, “Model Klasifikasi Regresi Logistik Biner untuk Laporan Masyarakat di Ombudsman Republik Indonesia,” Jurnal Lebesgue, vol. 5, no. 2, pp. 964–973, 2024. doi: 10.46306/lb.v5i2.702.
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jurnal Sistem Informasi dan Teknologi Informasi

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










