Early Detection of Diabetes Mellitus in Women via Machine Learning
DOI:
https://doi.org/10.18196/jet.v8i2.24287Keywords:
early detection, diabetes mellitus, public health, machine learning, predictionAbstract
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
How to Cite
Issue
Section
License
Copyright (c) 2025 Journal of Electrical Technology UMY

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright
The Authors submitting a manuscript do so on the understanding that if accepted for publication, copyright of the article shall be assigned to Journal of Electrical Technology UMY. Copyright encompasses rights to reproduce and deliver the article in all form and media, including reprints, photographs, microfilms, and any other similar reproductions, as well as translations.
Authors should sign Copyright Transfer Agreement when they have approved the final proofs sent by the journal prior the publication. JET UMY strives to ensure that no errors occur in the articles that have been published, both data errors and statements in the article.
JET UMY keep the rights to articles that have been published. Authors are permitted to disseminate published article by sharing the link of JET UMY website. Authors are allowed to use their works for any purposes deemed necessary without written permission from JET UMY with an acknowledgement of initial publication in this journal.
License
All articles published in JET UMY are licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA) license. You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms. Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.