Early Detection of Diabetes Mellitus in Women via Machine Learning

Authors

  • Ahmad Zaki Arrayyan Master Program of Electrical Engineering, Faculty of Industrial Technology, Universitas Islam Indonesia
  • Sisdarmanto Adinandra Master Program of Electrical Engineering, Faculty of Industrial Technology, Universitas Islam Indonesia

DOI:

https://doi.org/10.18196/jet.v8i2.24287

Keywords:

early detection, diabetes mellitus, public health, machine learning, prediction

Abstract

Diabetes Mellitus (DM) is a major global health concern, responsible for 6.7 million deaths in 2021, equivalent to one death every five seconds. In Indonesia, it was the third leading cause of death in 2019, with a mortality rate of approximately 57.42 per 100,000 people. This study focuses on developing a diabetes prediction model using machine learning, aiming for an accuracy of at least 85%, and incorporates a chatbot-based system to identify potential diabetes in women. The research utilizes primary data, including glucose levels, blood pressure, body mass index, and age, as well as secondary data, such as pregnancy-related metrics, from the UCI Pima Indians Diabetes Database, which contains 768 records with eight attributes.  The study evaluates the performance of three machine learning algorithms: Decision Tree, Logistic Regression, and Random Forest, using metrics such as accuracy, precision, recall, and F1-score. Among these models, the Decision Tree demonstrates excellent performance for Class 0, with precision, recall, and F1-score all at 0.97. However, its performance for Class 1, while decent, leaves room for improvement, achieving a precision of 0.80 and a recall of 0.84, resulting in an F1-score of 0.82. Logistic Regression also performs well for Class 0, with a precision of 0.95 and a recall of 0.99, yielding an F1-score of 0.97. Yet, it struggles with Class 1, where its precision is high at 0.93, but its recall drops significantly to 0.68, producing an F1-score of 0.79. Lastly, Random Forest emerges as the best-performing model overall, achieving an accuracy of 0.96. It excels for Class 0, with a precision of 0.96 and a recall of 0.99, leading to an F1-score of 0.97. For Class 1, it maintains high precision (0.93) but exhibits moderate recall (0.74), resulting in an F1-score of 0.82.

References

H. Sun et al., “IDF Diabetes Atlas: Global, regional and country-level diabetes prevalence estimates for 2021 and projections for 2045,” Diabetes Res. Clin. Pract., vol. 183, p. 109119, 2022.

R. Vaishya, A. Misra, M. Nassar, and A. Vaish, “Global trend of research and publications in endocrinology, diabetes, and metabolism: 1996–2021,” Int. J. Diabetes Dev. Ctries., vol. 44, no. 3, pp. 419–425, 2024.

E. S. Darmawan, V. Y. Permanasari, L. V. Nisrina, D. Kusuma, S. R. Hasibuan, and N. Widyasanti, “Behind the Hospital Ward: In-Hospital Mortality of Type 2 Diabetes Mellitus Patients in Indonesia (Analysis of National Health Insurance Claim Sample Data),” Int. J. Environ. Res. Public Health, vol. 21, no. 5, p. 581, 2024.

R. Khursheed et al., “Treatment strategies against diabetes: Success so far and challenges ahead,” Eur. J. Pharmacol., vol. 862, p. 172625, 2019.

W. Bielka, A. Przezak, P. Molęda, E. Pius-Sadowska, and B. Machaliński, “Double diabetes—when type 1 diabetes meets type 2 diabetes: definition, pathogenesis and recognition,” Cardiovasc. Diabetol., vol. 23, no. 1, p. 62, 2024.

R. Patil and J. Gothankar, “Risk factors for type 2 diabetes mellitus: An urban perspective,” Indian J. Med. Sci., vol. 71, no. 1, pp. 16–21, 2019.

P. T. Rosha and S. Oksidriyani, “Integrated Healthcare Center in the elderly community in Indonesia: An analysis of Indonesian Family Life Survey Data,” in Proceedings of International Conference on Physical Education, Health, and Sports, 2023, pp. 355–372.

T. Zhu, K. Li, P. Herrero, and P. Georgiou, “Deep learning for diabetes: a systematic review,” IEEE J. Biomed. Heal. Informatics, vol. 25, no. 7, pp. 2744–2757, 2020.

Downloads

Published

2025-04-17

How to Cite

Arrayyan, A. Z., & Adinandra, S. (2025). Early Detection of Diabetes Mellitus in Women via Machine Learning. Journal of Electrical Technology UMY, 8(2), 44–50. https://doi.org/10.18196/jet.v8i2.24287

Issue

Section

Articles