Explainable Ensemble Learning Framework with SMOTE, SHAP and LIME for Predicting 30-Day Readmission in Diabetic Patients

Authors

  • Joshua Pinem Telkom University
  • Widi Astuti Telkom University
  • Adiwijaya Telkom University

DOI:

https://doi.org/10.29207/resti.v9i5.6977

Keywords:

diabetes, ensemble learning, explainable AI, machine learning, readmission prediction, SMOTE

Abstract

Hospital readmission among diabetic patients poses a significant burden on healthcare systems due to its frequency and associated costs. This study presents a machine learning framework for predicting 30-day readmission in diabetic patients using the Diabetes 130-US Hospitals dataset. The framework integrates data preprocessing, SMOTE for class balancing, ensemble learning, and explainable AI (SHAP and LIME) to enhance both accuracy and interpretability. Multiple models were evaluated, and the best performance was achieved by a weighted ensemble with a recall of 89.43% and an F1-score of 0.6612, indicating strong sensitivity. Explainability analysis using SHAP and LIME highlighted key predictors, notably Medication Change Status and Inpatient Admissions, which are clinically relevant. By combining predictive performance with transparent explanations, the proposed framework offers a practical and trustworthy tool for clinical decision support in managing diabetic readmissions.

Downloads

Download data is not yet available.

References

S. Chatterjee, K. Khunti, and M. J. Davies, “Type 2 diabetes,” The Lancet, vol. 389, no. 10085, pp. 2239–2251, June 2017, doi: 10.1016/s0140-6736(17)30058-2.

World Health Organization, “The top 10 causes of death,” 2021. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/the-top-10-causes-of-death.

A. Gandra, “Predicting hospital readmissions in diabetes patients: A comparative study of machine learning models,” Int J Health Sci (Qassim), vol. 8, no. 3, pp. 289–297, Sep. 2024, doi: 10.53730/ijhs.v8n3.15189.

O. G. Emi-Johnson and K. J. Nkrumah, “Predicting 30-Day Hospital Readmission in Patients With Diabetes Using Machine Learning on Electronic Health Record Data,” Cureus, Apr. 2025, doi: 10.7759/cureus.82437.

K. M. Dungan, “The Effect of Diabetes on Hospital Readmissions,” J Diabetes Sci Technol, vol. 6, no. 5, pp. 1045–1052, Sept. 2012, doi: 10.1177/193229681200600508.

M. S. Stefan et al., “Hospital performance measures and 30-day readmission rates,” J Gen Intern Med, vol. 28, no. 3, pp. 377–385, Mar. 2013, doi: 10.1007/s11606-012-2229-8.

Y. Shang et al., “The 30-days hospital readmission risk in diabetic patients: predictive modeling with machine learning classifiers,” BMC Med Inform Decis Mak, vol. 21, Jul. 2021, doi: 10.1186/s12911-021-01423-y.

S. Ostling et al., “The relationship between diabetes mellitus and 30-day readmission rates,” Clin Diabetes Endocrinol, vol. 3, no. 1, Dec. 2017, doi: 10.1186/s40842-016-0040-x.

W. Yang et al., “Economic costs of diabetes in the U.S. in 2012,” Diabetes Care, vol. 36, no. 4, pp. 1033–1046, Apr. 2013, doi: 10.2337/dc12-2625.

D. J. Rubin, “Hospital Readmission of Patients with Diabetes,” Curr Diab Rep, vol. 15, no. 4, Feb. 2015, doi: 10.1007/s11892-015-0584-7.

R. Miotto, L. Li, B. A. Kidd, and J. T. Dudley, “Deep Patient: An Unsupervised Representation to Predict the Future of Patients from the Electronic Health Records,” Sci Rep, vol. 6, May 2016, doi: 10.1038/srep26094.

K. Davagdorj, J. W. Bae, V. H. Pham, N. Theera-Umpon, and K. H. Ryu, “Explainable Artificial Intelligence Based Framework for Non-Communicable Diseases Prediction,” IEEE Access, vol. 9, pp. 123672–123688, 2021, doi: 10.1109/ACCESS.2021.3110336.

I. A. Elgendy, M. Hosny, M. A. Albashrawi, and S. Alsenan, “Dual-stage explainable ensemble learning model for diabetes diagnosis,” Expert Syst Appl, vol. 274, May 2025, doi: 10.1016/j.eswa.2025.126899.

Z. Xiao, M. Wang, Y. Zhao, and H. Wang, “A Biomarker-Driven and Interpretable Machine Learning Model for Diagnosing Diabetes Mellitus,” Food Sci Nutr, vol. 13, no. 5, May 2025, doi: 10.1002/fsn3.70234.

N. G. Ramadhan, Adiwijaya, and A. Romadhony, “Preprocessing Handling to Enhance Detection of Type 2 Diabetes Mellitus based on Random Forest,” IJACSA, vol. 12, no. 7, 2021, doi: 10.14569/ijacsa.2021.0120726.

L. Mpofu, B. Ndlovu, S. Dube, M. Muduva, F. Jacqueline, and K. Maguraushe, “Predictive Model for Hospital Readmission of Diabetic Patients,” IEOM Society International, Jul. 2024. doi: 10.46254/af05.20240252.

H. Lu and S. Uddin, “Explainable Stacking-Based Model for Predicting Hospital Readmission for Diabetic Patients,” Information (Switzerland), vol. 13, no. 9, Sep. 2022, doi: 10.3390/info13090436.

N. Alnazari et al., “Development of explainable artificial intelligence based machine learning model for predicting 30-day hospital readmission after renal transplantation,” BMC Nephrol, vol. 26, no. 1, Dec. 2025, doi: 10.1186/s12882-025-04128-w.

Y. Zhang et al., “Explainable machine learning for predicting 30-day readmission in acute heart failure patients,” iScience, vol. 27, no. 7, Jul. 2024, doi: 10.1016/j.isci.2024.110281.

X. Gao, S. Alam, P. Shi, F. Dexter, and N. Kong, “Interpretable machine learning models for hospital readmission prediction: a two-step extracted regression tree approach,” BMC Med Inform Decis Mak, vol. 23, no. 1, Dec. 2023, doi: 10.1186/s12911-023-02193-5.

R. Ruiz de San Martín et al., “Global and Local Interpretable Machine Learning Allow Early Prediction of Unscheduled Hospital Readmission,” Mach Learn Knowl Extr, vol. 6, no. 3, pp. 1653–1666, Jul. 2024, doi: 10.3390/make6030080.

I. Tasin, T. U. Nabil, S. Islam, and R. Khan, “Diabetes prediction using machine learning and explainable AI techniques,” Healthc Technol Lett, vol. 10, no. 1–2, pp. 1–10, Feb. 2023, doi: 10.1049/htl2.12039.

B. Strack et al., “Impact of HbA1c measurement on hospital readmission rates: Analysis of 70,000 clinical database patient records,” Biomed Res Int, vol. 2014, 2014, doi: 10.1155/2014/781670.

M. M. Islam, H. R. Rifat, M. S. Bin Shahid, A. Akhter, M. A. Uddin, and K. M. M. Uddin, “Explainable Machine Learning for Efficient Diabetes Prediction Using Hyperparameter Tuning, SHAP Analysis, Partial Dependency, and LIME,” Engineering Reports, Jan. 2024, doi: 10.1002/eng2.13080.

H. Kang, “The Prevention and Handling of the Missing Data,” Korean J Anesthesiol, vol. 64, no. 5, p. 402, 2013, doi: 10.4097/kjae.2013.64.5.402.

N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: Synthetic Minority Over-sampling Technique,” jair, vol. 16, pp. 321–357, June 2002, doi: 10.1613/jair.953.

S. Lundberg and S.-I. Lee, “A Unified Approach to Interpreting Model Predictions,” May 2017, [Online]. Available: http://arxiv.org/abs/1705.07874/.

M. T. Ribeiro, S. Singh, and C. Guestrin, “‘Why Should I Trust You?’ Explaining the Predictions of Any Classifier,” in Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Association for Computing Machinery, Aug. 2016, pp. 1135–1144. doi: 10.1145/2939672.2939778.

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

Downloads

Published

2025-09-29

Issue

Section

Artificial Intelligence

How to Cite

Pinem, J., Astuti, W., & Adiwijaya. (2025). Explainable Ensemble Learning Framework with SMOTE, SHAP and LIME for Predicting 30-Day Readmission in Diabetic Patients . Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 9(5), 983-990. https://doi.org/10.29207/resti.v9i5.6977

Most read articles by the same author(s)