Hybrid GAM–XGB Model for Predicting Hospital Length of Stay
Abstract
Due to the rise in both chronic illnesses and longevity, healthcare systems are now compelled to manage their resources more strategically. In this context, Length of Stay (LOS) stands out as a key performance indicator for measuring the efficiency of healthcare services. This study analyzed the effects of homogram findings and demographic data on LOS for 6560 patients admitted to the cardiology clinic with a diagnosis of decompensated heart failure. To overcome the limitations of existing statistical and machine learning models, a new hybrid model combining Generalized Additive Models (GAM) and Xtreme Gradient Boosting (XGB) was introduced. The transfer of partial effects from GAM into the XGB model, utilizing them as new features, was instrumental in achieving a significant improvement in the model's overall prediction and generalization performance. The results show that the proposed model offers higher performance and clinical interpretability in LOS prediction compared to other models. The proposed method is poised to significantly advance healthcare planning by mitigating critical shortcomings in existing LOS prediction tools and establishing a robust framework for advanced clinical decision support systems.
Keywords
References
- Wang, Z., Rostami-Tabar, B., Haider, J., Haider, J., and Naim, M., “Patient length of stay in trauma networks: Insights from advanced modelling”, Expert Systems with Applications, 289:127801, (2025). DOI: https://doi.org/10.1016/j.eswa.2025.127801
- https://www.who.int/news-room/facts-in-pictures/detail/patient-safety. Access date: 24.01.2026.
- Borghans, I., Heijink, R., Kool, T., Lagoe, R.J.,, and Westert, G.P., “Benchmarking and reducing length of stay in Dutch hospitals”, BMC Health Services Research, 8:220, (2008). DOI: https://doi.org/10.1186/1472-6963-8-220
- Fine, M.J., Pratt, H.M., Obrosky, D.S., Lave, J.R., McIntosh L.J., Singer D.S., Coley C.M., and Kapoor W.N., “Relation between length of hospital stay and costs of care for patients with community-acquired pneumonia”, The American Journal of Medicine, 109(5):378–385, (2000). DOI: https://doi.org/10.1016/s0002-9343(00)00500-3
- Su, M., Pan, D., Zhao, Y., Chen, C., Wang, X., Lu, W., Meng, H., Su, X., and Liang, P., “The direct and indirect effects of length of hospital stay on the costs of inpatients with stroke”, Frontiers in Public Health, 10:881273, (2022). DOI: https://doi.org/10.3389/fpubh.2022.881273
- Graves, N., “Economics of preventing hospital infection”, Emerging Infectious Diseases, 10(4):561–566, (2004). DOI: https://doi.org/10.3201/eid1004.020754
- Clarke, A., “Length of stay: How short should hospital care be?”, European Journal of Public Health, 11(2):166–170, (2001). DOI: https://doi.org/10.1093/eurpub/11.2.166
- Hirani, R., Podder, D., Stala, O., Mohebpour, R., Tiwari, R.K., and Etienne, M., “Strategies to reduce hospital length of stay: Evidence and challenges”, Medicina, 61(5):922, (2025). DOI: https://doi.org/10.3390/medicina61050922
Details
Primary Language
English
Subjects
Biostatistics, Computational Statistics, Statistical Data Science, Applied Statistics, Urban Planning and Health
Journal Section
Research Article
Early Pub Date
July 24, 2026
Publication Date
-
Submission Date
February 2, 2026
Acceptance Date
May 20, 2026
Published in Issue
Year 2026 Number: Advanced Online Publication