Development and comparative analysis of predictive length of stay models using machine learning in Malaysian tertiary hospitals
Suhana Hasan, Ezzeddin Kamil Mohamed Hashim, Afiq Izzudin A Rahim, Mohd Ismail Ibrahim, Zaidi Zakaria
Hospital Universiti Sains Malaysia
Key points
From the paper's conclusion- This study developed and evaluated localised machine learning models to predict LOS in tertiary public hospitals in Kelantan, Malaysia, calibrated to regional operational dynamics.
Abstract
Abstract Hospital length of stay (LOS) is a critical indicator of healthcare efficiency and resource allocation. While predictive modelling has escalated globally, there is a notable sparsity of literature utilising large-scale, real-world data from the Malaysian public health framework. This study developed and evaluated localised machine learning models to predict LOS in tertiary public hospitals in Kelantan, Malaysia, calibrated to regional operational dynamics. A retrospective cohort study was conducted utilising eight years of inpatient records (2017–2024). From an initial cohort of 849,593 admissions, a final analytic sample of 251,321 was retained after systematic exclusion and stratified sampling to handle heterogeneous records and to optimise the models against extremely skewed LOS distribution. Predictive performance was compared across four supervised regression models: Decision Tree, Elastic Net, Random Forest, and eXtreme Gradient Boosting (XGBR). The XGBR model emerged as the superior architecture ( R 2 = 0.305, MAE = 5.075). SHAP analysis identified clinical discipline as the primary determinant, while systemic factors such as public holidays and night-shift admissions significantly influenced stay durations. This research establishes an empirical foundation for the digital transformation of hospital resource management in Malaysia, providing a pathway to optimise bed management and ensure healthcare sustainability.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Artificial Intelligence Length-of-Stay Forecasting and Pediatric Surgical CapacityArchives of Pediatrics and Adolescent Medicine · 2026
- Comparison of seven machine learning models for predicting prolonged PACU length of stay: performance evaluation and identification of key influencing factors.BMC anesthesiology · 2026
- Machine Learning-Predicted Length of Hospital Stay in Pediatric Appendicitis: An Exploratory Comparative Study of Clinical and Ultrasound-Based Models with Explainable Artificial Intelligence and Bayesian Analysis.Medical sciences (Basel, Switzerland) · 2026
- Reporting-lag-aware machine learning framework for short-term forecasting of respiratory disease activity: a sentinel hospital study in GuangzhouBMC Infectious Diseases · 2026
- A Comparative Machine Learning Analysis of Hospital Energy Use Intensity and Its Key DriversEnergies · 2026
- Hospitalization risk stratification in Mexican respiratory surveillance data: a retrospective analysis with interpretable machine learningRevista de Ciencias de la Salud · 2026