Evaluating the Development of a Machine Learning Model for Predicting Length of Stay for Inpatients in a Tertiary
1Inha University Hospital, 27 Inhang-ro, Jung-gu, Incheon, The Republic of Korea.
Purpose:
This study aimed to develop a machine learning (ML)-based predictive model for hospital length of stay incorporating clinical, nursing, and healthcare system factors to optimize hospital resource allocation, improve patient-centered care, and enhance nursing workflow efficiency.
Methods:
This retrospective study analyzed a large dataset of inpatient electronic medical records from a private tertiary hospital. The dataset was used to develop predictive models for long-term versus short-term hospitalization. The modeling process involved several ML algorithms, and their performance was evaluated using standard statistical metrics. The most significant predictive variables were identified through an analysis of their feature importance.
Results:
Among the tested models, the Random Forest algorithm exhibited the highest predictive accuracy, demonstrating strong performance in predicting hospital length of stay. Key influencing factors included the number of consultations, postoperative recovery time, duration of stay in the intensive care unit, the use of third-generation antibiotics, and the need for infection isolation. Patients requiring ventilator care, intensive care unit admission, and specific powerful antibiotics were more likely to experience prolonged hospitalization. Additionally, nursing-related factors such as fall risk and pressure ulcer risk were significantly correlated with an extended hospital stay.
Conclusion:
This study demonstrates that ML models can effectively predict hospital length of stay, aiding in hospital resource management, nursing workforce allocation, and patient safety interventions. The integration of predictive analytics into healthcare systems can support early risk assessment, personalized discharge planning, and overall hospital efficiency.
Related Concept Videos
Hospitals-II
Nurses that work in...
Residuals and Least-Squares Property
If the observed data point lies above the line, the residual is positive, and the line underestimates the actual data value for y. If the observed data point lies below the line, the residual is negative, and the line overestimates the actual data value for y.
The process of fitting the best-fit...
Steps in Outbreak Investigation
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
