COMPARISON OF DEEP LEARNING MODELS LSTM AND BILSTM IN DIABETES PREDICTION

COMPARISON OF DEEP LEARNING MODELS LSTM AND BILSTM IN DIABETES PREDICTION

  • Refni Wahyuni
  • Yuda Irawan
Keywords: Diabetes Prediction, Deep Learning, LSTM, BiLSTM, Medical Decision Support

Abstract

Diabetes mellitus remains a major global health concern, requiring early detection to prevent severe complications and reduce mortality. This study developed and evaluated two deep learning architectures, Long Short-Term Memory (LSTM) and Bidirectional LSTM (BiLSTM), for diabetes prediction using the Pima Indians Diabetes Dataset. The research methodology involved systematic preprocessing, including outlier handling with median imputation, data normalization, and training–testing data splitting (80:20). Both models were trained using 614 samples for training and 154 samples for testing, with 50 epochs and a batch size of 32. The evaluation was performed using accuracy, precision, recall, F1-score, and AUC metrics. Results indicated that LSTM achieved an accuracy of 74.03%, while BiLSTM slightly outperformed it with 74.68%. Confusion matrix analysis further revealed that BiLSTM reduced false negatives and provided more consistent learning stability compared to LSTM. Accuracy and loss curves confirmed BiLSTM’s superior convergence and generalization capability. These findings demonstrate that BiLSTM is more effective and reliable for diabetes prediction tasks. The study concludes that BiLSTM offers better potential for integration into decision-support systems, and future research could enhance performance through larger datasets, advanced optimization, and real-world clinical validation.

Downloads

Download data is not yet available.

References

P. Saeedi et al., “Global and regional diabetes prevalence estimates for 2019 and projections for 2030 and 2045: Results from the International Diabetes Federation Diabetes Atlas, 9th edition,” Diabetes Res. Clin. Pract., vol. 157, p. 107843, 2019, doi: 10.1016/j.diabres.2019.107843.

I. Kavakiotis, O. Tsave, A. Salifoglou, N. Maglaveras, I. Vlahavas, and I. Chouvarda, “Machine Learning and Data Mining Methods in Diabetes Research,” Comput. Struct. Biotechnol. J., vol. 15, pp. 104–116, 2017, doi: 10.1016/j.csbj.2016.12.005.

D. I. Puteri, “Implementasi Long Short Term Memory (LSTM) dan Bidirectional Long Short Term Memory (BiLSTM) Dalam Prediksi Harga Saham Syariah,” Euler J. Ilm. Mat. Sains dan Teknol., vol. 11, no. 1, pp. 35–43, 2023, doi: 10.34312/euler.v11i1.19791.

K. J. S. Novian Patria Uman Putra, Aji Akbar Firdaus, Winarno, Alim Prasaja, “The Home Security Monitoring System with Passive Infrared Receiver , Temperature Sensor and Flame Detector Based on Android System,” INTEGER J. Inf. Technol., vol. 6, no. 1, pp. 81–89, 2021.

Q. X. Bian, A. As’arry, X. G. Cong, K. A. B. M. Rezali, and R. M. K. B. R. Ahmad, “A hybrid Transformer-LSTM model apply to glucose prediction,” PLoS One, vol. 19, no. 9, pp. 1–13, 2024, doi: 10.1371/journal.pone.0310084.

C. F. Carvalho and Z. Liang, “Glucose Prediction with Long Short-Term Memory (LSTM) Models in Three Distinct Populations †,” Eng. Proc., vol. 82, no. 1, pp. 1–8, 2024, doi: 10.3390/ecsa-11-20513.

Y. Ayat, W. Benzekri, A. E. L. Moussati, I. Mir, M. Benzaouia, and A. E. L. Aouni, “Novel Diabetes Classification Approach Based on Cnn-Lstm: Enhanced Performance and Accuracy,” Diagnostyka, vol. 25, no. 1, 2024, doi: 10.29354/diag/183633.

N. Chen et al., “Epidemiological and clinical characteristics of 99 cases of 2019 novel coronavirus pneumonia in Wuhan, China: a descriptive study,” Lancet, vol. 395, no. 10223, pp. 507–513, 2020, doi: 10.1016/S0140-6736(20)30211-7.

U. M. Butt, S. Letchmunan, M. Ali, F. H. Hassan, A. Baqir, and H. H. R. Sherazi, “Machine Learning Based Diabetes Classification and Prediction for Healthcare Applications,” J. Healthc. Eng., vol. 2021, 2021, doi: 10.1155/2021/9930985.

A. Mousa, W. Mustafa, and R. B. Marqas, “A Comparative Study of Diabetes Detection Using The Pima Indian Diabetes Database,” J. Univ. Duhok, vol. 26, no. 2, pp. 277–288, Sep. 2023, doi: 10.26682/suod.2023.26.2.24.

A. Syaripudin, A. Supardi, N. Ali Dahbul, R. H. S Rondonuwu, and P. Kesehatan Kementerian Kesehatan Manado, “Diabetes Melitus and Lifestyle Patterns in Society: A Comprehensive Literature Review,” 2023. [Online]. Available: http://ijsoc.goacademica.com

M. S. Hossain et al., “Colorectal Cancer: A Review of Carcinogenesis, Global Epidemiology, Current Challenges, Risk Factors, Preventive and Treatment Strategies,” Apr. 01, 2022, MDPI. doi: 10.3390/cancers14071732.

U. M. Butt, S. Letchmunan, M. Ali, F. H. Hassan, A. Baqir, and H. H. R. Sherazi, “Machine Learning Based Diabetes Classification and Prediction for Healthcare Applications,” J. Healthc. Eng., vol. 2021, 2021, doi: 10.1155/2021/9930985.

Z. Jabbar and P. Washington, “The Effect of Data Missingness on Machine Learning Predictions of Uncontrolled Diabetes Using All of Us Data,” BioMedInformatics, vol. 4, no. 1, pp. 780–795, 2024, doi: 10.3390/biomedinformatics4010043.

C. I. R. Braem, U. S. Yavuz, H. J. Hermens, and P. H. Veltink, “Missing Data Statistics Provide Causal Insights into Data Loss in Diabetes Health Monitoring by Wearable Sensors,” Sensors, vol. 24, no. 5, 2024, doi: 10.3390/s24051526.

J. Zhu et al., “Processing imbalanced medical data at the data level with assisted-reproduction data as an example,” BioData Min., vol. 17, no. 1, 2024, doi: 10.1186/s13040-024-00384-y.

M. Salmi, D. Atif, D. Oliva, A. Abraham, and S. Ventura, Handling imbalanced medical datasets: review of a decade of research, vol. 57, no. 10. Springer Netherlands, 2024. doi: 10.1007/s10462-024-10884-2.

A. T. Tran, T. Zeevi, and S. Payabvash, “Strategies to Improve the Robustness and Generalizability of Deep Learning Segmentation and Classification in Neuroimaging,” BioMedInformatics, vol. 5, no. 2, pp. 1–31, 2025, doi: 10.3390/biomedinformatics5020020.

L. Hu, X. Cheng, C. Wen, and Y. Ren, “Medical prediction from missing data with max-minus negative regularized dropout,” Front. Neurosci., vol. 17, 2023, doi: 10.3389/fnins.2023.1221970.

F. Mohsen, H. R. H. Al-Absi, N. A. Yousri, N. El Hajj, and Z. Shah, “A scoping review of artificial intelligence-based methods for diabetes risk prediction,” npj Digit. Med., vol. 6, no. 1, pp. 1–15, 2023, doi: 10.1038/s41746-023-00933-5.

S. Jaiswal and G. Priyanka, “Diabetes Prediction Using Bi-directional Long Short-Term Memory. SN Computer Science,” 2023.

P. B. K. Chowdary and R. U. Kumar, “An Effective Approach for Detecting Diabetes using Deep Learning Techniques based on Convolutional LSTM Networks,” Int. J. Adv. Comput. Sci. Appl., vol. 12, no. 4, pp. 519–525, 2021, doi: 10.14569/IJACSA.2021.0120466.

M. Jaloli and M. Cescon, “Long-Term Prediction of Blood Glucose Levels in Type 1 Diabetes Using a CNN-LSTM-Based Deep Neural Network,” J. Diabetes Sci. Technol., vol. 17, no. 6, pp. 1590–1601, 2023, doi: 10.1177/19322968221092785.

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, 2022, doi: 10.3390/app12083989.

E. Afsaneh, A. Sharifdini, H. Ghazzaghi, and M. Z. Ghobadi, “Recent applications of machine learning and deep learning models in the prediction, diagnosis, and management of diabetes: a comprehensive review,” Diabetol. Metab. Syndr., vol. 14, no. 1, 2022, doi: 10.1186/s13098-022-00969-9.

A. Bhimireddy, P. Sinha, B. Oluwalade, J. W. Gichoya, and S. Purkayastha, “Blood glucose level prediction as time-series modeling using sequence-to-sequence neural networks,” CEUR Workshop Proc., vol. 2675, pp. 125–130, 2020.

K. Al Sadi and W. Balachandran, “Leveraging a 7-Layer Long Short-Term Memory Model for Early Detection and Prevention of Diabetes in Oman: An Innovative Approach,” Bioengineering, vol. 11, no. 4, 2024, doi: 10.3390/bioengineering11040379.

N. tun Nyo, G. Arunagirinathan, S. K Munshi, and J. M Pappachan, “WJD-8-235,” World J. Diabetes, vol. 8, no. 6, pp. 230–310, 2017.

Published
2025-12-04
How to Cite
Wahyuni, R., & Irawan, Y. (2025). COMPARISON OF DEEP LEARNING MODELS LSTM AND BILSTM IN DIABETES PREDICTION: COMPARISON OF DEEP LEARNING MODELS LSTM AND BILSTM IN DIABETES PREDICTION. JURNAL TEKNOLOGI DAN OPEN SOURCE, 8(2), 740 - 750. https://doi.org/10.36378/jtos.v8i2.4904
Abstract viewed = 8 times
PDF downloaded = 7 times