Leveraging Machine Learning and Long-Short Term Memory Algorithm for Early Prediction of Diabetes
DOI:
https://doi.org/10.31154/cogito.v10i1.630.491-506Keywords:
Diabetes, Medical Record Data, Analysis and Prediction, Machine Learning, LSTMAbstract
Diabetes, a chronic condition, affects numerous populations. Poor insulin production from the pancreas combined with high blood sugar levels can result in the onset of diabetes. Diabetes can be caused by numerous factors. Observe and prevent these factors to reduce the high prevalence of diabetes. This study concentrates on medical record data for determining diabetes risk factors via statistical correlation analysis. These factors will be utilized as machine learning and LSTM input parameters for diabetes prediction. The factors analyzed include blood glucose levels, HbA1c levels, age, BMI, hypertension, heart disease, smoking habits, and gender. Based on the research results, we found that glucose levels (>137 mg/dL) and HbA1c levels (>6.5%) are the main benchmarks in diagnosing diabetes. It is also supported by the correlation value, which is relatively high (0.42 and 0.40, respectively) compared to other factors. Increasing age and BMI also increase the risk of developing diabetes. Comorbidities (such as hypertension or heart disease) and smoking habits can worsen the condition of people with diabetes. Meanwhile (based on gender), women are more at risk of developing diabetes than men because their body mass index increases during the monthly cycle. Apart from that, there is a tendency for blood sugar levels in women to increase in the last two weeks before menstruation. Based on the prediction results, the highest levels of accuracy, sensitivity, and F1 score were obtained (96.97%, 99.97%, and 98.37%) using the LSTM method. This performance shows that LSTM is relatively good for the diabetes prediction process based on existing factors/parameters.References
R. Sohail et al., “A Machine Learning-Based Intelligent Vehicular System (IVS) for Driver’s Diabetes Monitoring in Vehicular Ad-Hoc Networks (VANETs)”, Appl. Sci., vol. 13, no. 5, p. 3326, Mar. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/app13053326
T. Nam, A. Kim, and Y. Oh, “Effectiveness of Chickpeas on Blood Sugar: A Systematic Review and Meta-Analysis of Randomized Controlled Trials”, Nutrients, vol. 15, no. 21, p. 4556, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/nu15214556
Y. Sankhuu, O. Altaisaikhan, M.-O. Battsogt, O. Byambasukh, and A. Khasag, “Diabetes-Related Mortality in a Developing Country: An Exploration of Tertiary Hospital Data”, J. Clin. Medicine, vol. 12, no. 20, p. 6687, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/jcm12206687
J. R. T. Lakey et al., “Exosomes; a Potential Source of Biomarkers, Therapy, and Cure for Type-1 Diabetes”, Int. J. Mol. Sci., vol. 24, no. 21, p. 15713, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/ijms242115713
N. Levran et al., “The Mediterranean Diet for Adolescents with Type 1 Diabetes: A Prospective Interventional Study”, Nutrients, vol. 15, no. 21, p. 4577, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/nu15214577
K. V. Sullivan et al., “Serum Mg Isotopic Composition Reveals That Mg Dyshomeostasis Remains in Type 1 Diabetes despite the Resolution of Hypomagnesemia”, Int. J. Mol. Sci., vol. 24, no. 21, p. 15683, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/ijms242115683
R. MacGirlley, W. N. Phoswa, and K. Mokgalaboni, “Modulatory Properties of Vitamin D in Type 2 Diabetic Patients: A Focus on Inflammation and Dyslipidemia”, Nutrients, vol. 15, no. 21, p. 4575, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/nu15214575
M. Wysocka-Mincewicz, E. Szczerbik, M. Mazur, M. Grabik, M. Kalinowska, and M. Syczewska, “Foot Plantar Pressure Abnormalities in Near Adulthood Patients with Type 1 Diabetes”, Biomedicines, vol. 11, no. 11, p. 2901, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/biomedicines11112901
S. Canecki-Varzic et al., “Flash Glucose Monitoring in Croatia: The Optimal Number of Scans per Day to Achieve Good Glycemic Control in Type 1 Diabetes”, Medicina, vol. 59, no. 11, p. 1893, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/medicina59111893
W. Xu et al., “Effects of Gestational Diabetes Mellitus and Selenium Deficiency on the Offspring Growth and Blood Glucose Mechanisms of C57BL/6J Mice”, Nutrients, vol. 15, no. 21, p. 4519, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/nu15214519
S.-M. Huang et al., “Sesamin: A Promising Therapeutic Agent for Ameliorating Symptoms of Diabetes”, Molecules, vol. 28, no. 21, p. 7255, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/molecules28217255
T. Alghamdi, “Prediction of Diabetes Complications Using Computational Intelligence Techniques”, Appl. Sci., vol. 13, no. 5, p. 3030, Feb. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/app13053030
A. Dutta et al., “Early Prediction of Diabetes Using an Ensemble of Machine Learning Models”, Int. J. Environmental Res. Public Health, vol. 19, no. 19, p. 12378, Sep. 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/ijerph191912378
Y. Su, C. Huang, W. Yin, X. Lyu, L. Ma, and Z. Tao, “Diabetes Mellitus risk prediction using age adaptation models”, Biomed. Signal Process. Control, vol. 80, p. 104381, Feb. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.1016/j.bspc.2022.104381
T. Mahboob Alam et al., “A model for early prediction of diabetes”, Inform. Medicine Unlocked, vol. 16, p. 100204, 2019. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.1016/j.imu.2019.100204
A. Rashid, “Diabetes Dataset.” Mendeley, Jul. 18, 2020. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.17632/wj9rwkp9c2.1
C. Argano, L. Mirarchi, S. Amodeo, V. Orlando, A. Torres, and S. Corrao, “The Role of Vitamin D and Its Molecular Bases in Insulin Resistance, Diabetes, Metabolic Syndrome, and Cardiovascular-Disease: State of the Art”, Int. J. Mol. Sci., vol. 24, no. 20, p. 15485, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/ijms242015485
Y. Pamungkas, A. D. Wibawa, and M. D. Cahya, “Electronic Medical Record Data Analysis and Prediction of Stroke Disease Using Explainable Artificial Intelligence (XAI)”, Kinetik: Game Technol., Inf. System, Comput. Netw., Comput., Electron., Control, Nov. 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.22219/kinetik.v7i4.1535
B. Neamtu, M. O. Negrea, and I. Neagu, “Predicting Glycemic Control in a Small Cohort of Children with Type 1 Diabetes Using Machine Learning Algorithms”, Mathematics, vol. 11, no. 20, p. 4388, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/math11204388
A. D. Wibawa, B. S. Y. Mohammad, M. A. K. Fata, F. A. Nuraini, A. Prasetyo, and Y. Pamungkas, “Comparison of EEG-Based Biometrics System Using Naive Bayes, Neural Network, and Support Vector Machine”, in 2022 Int. Conf. Elect. Inf. Technol. (IEIT), Malang, Indonesia, Sep. 15–16, 2022. IEEE, 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.1109/ieit56384.2022.9967861
O. Iparraguirre-Villanueva, K. Espinola-Linares, R. O. Flores Castañeda, and M. Cabanillas-Carbonell, “Application of Machine Learning Models for Early Detection and Accurate Classification of Type 2 Diabetes”, Diagnostics, vol. 13, no. 14, p. 2383, Jul. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/diagnostics13142383
M. Schönborn et al., “Circulating Angiogenic Factors and Ischemic Diabetic Foot Syndrome Advancement—A Pilot Study”, Biomedicines, vol. 11, no. 6, p. 1559, May 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/biomedicines11061559
M. A. Albajy, M. Mernea, A. Mihaila, C.-E. Pop, and D. F. Mihăilescu, “Harnessing Code Interpreters for Enhanced Predictive Modeling: A Case Study on High-Density Lipoprotein Level Estimation in Romanian Diabetic Patients”, J. Personalized Medicine, vol. 13, no. 10, p. 1466, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/jpm13101466
A. Vyas et al., “Machine Learning-Based Diagnosis and Ranking of Risk Factors for Diabetic Retinopathy in Population-Based Studies from South India”, Diagnostics, vol. 13, no. 12, p. 2084, Jun. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/diagnostics13122084
H. Y. Lu, P. Lu, J. E. Hirst, L. Mackillop, and D. A. Clifton, “A Stacked Long Short-Term Memory Approach for Predictive Blood Glucose Monitoring in Women with Gestational Diabetes Mellitus”, Sensors, vol. 23, no. 18, p. 7990, Sep. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/s23187990
J. Q. Toledo-Marín, T. Ali, T. van Rooij, M. Görges, and W. W. Wasserman, “Prediction of Blood Risk Score in Diabetes Using Deep Neural Networks”, J. Clin. Medicine, vol. 12, no. 4, p. 1695, Feb. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/jcm12041695
H. Butt, I. Khosa, and M. A. Iftikhar, “Feature Transformation for Efficient Blood Glucose Prediction in Type 1 Diabetes Mellitus Patients”, Diagnostics, vol. 13, no. 3, p. 340, Jan. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/diagnostics13030340
M. Jaloli, W. Lipscomb, and M. Cescon, “Incorporating the Effect of Behavioral States in Multi-Step Ahead Deep Learning Based Multivariate Predictors for Blood Glucose Forecasting in Type 1 Diabetes”, BioMedInformatics, vol. 2, no. 4, pp. 715–726, Dec. 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/biomedinformatics2040048
P. N. Srinivasu, J. Shafi, T. B. Krishna, C. N. Sujatha, S. P. Praveen, and M. F. Ijaz, “Using Recurrent Neural Networks for Predicting Type-2 Diabetes from Genomic and Tabular Data”, Diagnostics, vol. 12, no. 12, p. 3067, Dec. 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/diagnostics12123067
S. A. Alex, N. Jhanjhi, M. Humayun, A. O. Ibrahim, and A. W. Abulfaraj, “Deep LSTM Model for Diabetes Prediction with Class Balancing by SMOTE”, Electronics, vol. 11, no. 17, p. 2737, Aug. 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/electronics11172737
M. R. Askari et al., “Meal and Physical Activity Detection from Free-Living Data for Discovering Disturbance Patterns of Glucose Levels in People with Diabetes”, BioMedInformatics, vol. 2, no. 2, pp. 297–317, Jun. 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/biomedinformatics2020019
P. Madan et al., “An Optimization-Based Diabetes Prediction Model Using CNN and Bi-Directional LSTM in Real-Time Environment”, Appl. Sci., vol. 12, no. 8, p. 3989, Apr. 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/app12083989
D.-Y. Kim et al., “Developing an Individual Glucose Prediction Model Using Recurrent Neural Network”, Sensors, vol. 20, no. 22, p. 6460, Nov. 2020. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/s20226460
M. Munoz-Organero, “Deep Physiological Model for Blood Glucose Prediction in T1DM Patients”, Sensors, vol. 20, no. 14, p. 3896, Jul. 2020. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/s20143896
Larabi-Marie-Sainte, Aburahmah, Almohaini, and Saba, “Current Techniques for Diabetes Prediction: Review and Case Study”, Appl. Sci., vol. 9, no. 21, p. 4604, Oct. 2019. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/app9214604
A. Massaro, V. Maritati, D. Giannone, D. Convertini, and A. Galiano, “LSTM DSS Automatism and Dataset Optimization for Diabetes Prediction”, Appl. Sci., vol. 9, no. 17, p. 3532, Aug. 2019. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/app9173532
M. Suárez, R. Martínez, A. M. Torres, A. Ramón, P. Blasco, and J. Mateo, “Personalized Risk Assessment of Hepatic Fibrosis after Cholecystectomy in Metabolic-Associated Steatotic Liver Disease: A Machine Learning Approach”, J. Clin. Medicine, vol. 12, no. 20, p. 6489, Oct. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/jcm12206489
M.-Y. Liu, C.-F. Liu, T.-C. Lin, and Y.-S. Ma, “Implementing a Novel Machine Learning System for Nutrition Education in Diabetes Mellitus Nutritional Clinic: Predicting 1-Year Blood Glucose Control”, Bioengineering, vol. 10, no. 10, p. 1139, Sep. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/bioengineering10101139
R. Kumari, P. K. Anand, and J. Shin, “Improving the Accuracy of Continuous Blood Glucose Measurement Using Personalized Calibration and Machine Learning”, Diagnostics, vol. 13, no. 15, p. 2514, Jul. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/diagnostics13152514
X. Sun et al., “Effects of Endurance Exercise and Vitamin D Supplementation on Insulin Resistance and Plasma Lipidome in Middle-Aged Adults with Type 2 Diabetes”, Nutrients, vol. 15, no. 13, p. 3027, Jul. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/nu15133027
L. P. Nguyen et al., “The Utilization of Machine Learning Algorithms for Assisting Physicians in the Diagnosis of Diabetes”, Diagnostics, vol. 13, no. 12, p. 2087, Jun. 2023. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/diagnostics13122087
J. Beauchamp, R. Bunescu, C. Marling, Z. Li, and C. Liu, “LSTMs and Deep Residual Networks for Carbohydrate and Bolus Recommendations in Type 1 Diabetes Management”, Sensors, vol. 21, no. 9, p. 3303, May 2021. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.3390/s21093303
Y. Pamungkas, A. D. Wibawa, and Y. Rais, “Classification of Emotions (Positive-Negative) Based on EEG Statistical Features using RNN, LSTM, and Bi-LSTM Algorithms”, in 2022 2nd Int. Seminar Mach. Learn., Optim., Data Sci. (ISMODE), Jakarta, Indonesia, Dec. 22–23, 2022. IEEE, 2022. Accessed: Feb. 24, 2024. [Online]. Available: https://doi.org/10.1109/ismode56940.2022.10180969
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2024 CogITo Smart Journal

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).