Predicting Thirty-Day Hospital Readmission in Patients with Diabetes Using Machine Learning and Electronic Health Record Data
Loading...
Files
Date
Authors
Journal Title
Journal ISSN
Volume Title
Publisher
University of Colombo
Abstract
Hospital readmission within thirty days of discharge is a key indicator of care quality and a major source of avoidable cost, and patients with diabetes are readmitted more often than the general inpatient population owing to complex glycaemic management, comorbidities and demanding medication regimens. This study develops and compares machine learning models to predict, at discharge, thirty-day readmission risk in patients with diabetes from electronic health record data, to identify its strongest predictors, and to explore whether such an accessible, open source approach might be feasible in low and middle income or data limited settings. The publicly available Diabetes 130US Hospitals dataset, comprising 101,766 inpatient encounters from 71,518 patients across 50 variables, was used. Encounters ending in death or hospice discharge were excluded, and only each patient's first encounter was retained to avoid dependence between records. After removing variables with extensive missing data, grouping diagnosis codes into clinical categories and encoding categorical variables, 69,987 encounters and 96 features remained. Readmission was modelled as a binary outcome, and the data were split 80:20 with stratification. Logistic Regression, Random Forest and Extreme Gradient Boosting were trained with class imbalance weighting and evaluated by accuracy, precision, recall, F1 score, and area under the ROC curve (AUC). The ensemble models outperformed the logistic regression baseline, with Extreme Gradient Boosting achieving the highest discrimination (AUC 0.646); recall and AUC were prioritized over accuracy given the class imbalance. By permutation importance on this model, discharge disposition, prior inpatient visits, primary diagnosis, length of stay, number of medications and age were the most influential predictors. The model relied on routinely collected administrative variables rather than costly laboratory tests, which were substantially incomplete and not among the leading predictors. This suggests potential feasibility for lower resource settings; however, as the data originate from US hospitals, this remains a hypothesis requiring local retraining and external validation.
Description
Keywords
Diabetes, Hospital readmission, Machine learning, Electronic health records, Predictive modeling
Citation
Anthony, N. N. (2026). Predicting Thirty-Day Hospital Readmission in Patients with Diabetes Using Machine Learning and Electronic Health Record Data. Proceedings of the University of Colombo International Conference (UCIC) 2026, University of Colombo, Sri Lanka, p.6. https://doi.org/10.66281/70130/9339
