Machine Learning Models for Predicting ICU Length of Stay: A Comparative Analysis

Authors

  • A. O. Akinrotimi Department of Information Systems and Technology, Kings University, Ode-Omu, Osun State, Nigeria.
  • I. O. Omotosho Department of Management Information Systems, Bowie State University, Maryland, USA.
  • O.O. Owolabi Department of Electrical and Electronics Engineering, Adeleke University, Ede, Osun State, Nigeria.
  • P. O. Omude Department of Computer and Information Sciences, Tai Solarin Federal University of Education, Ijagun, Ogun State, Nigeria.
  • O. A. Abass Department of Computer Science, Olabisi Onabanjo University, Ago-Iwoye, Ogun State, Nigeria.
  • O. D. Osofuye Department of Computer Science, Covenant University, Ota, Ogun State, Nigeria.
  • O. B. Alaba Department of Computer and Information Sciences, Tai Solarin Federal University of Education, Ijagun, Ogun State, Nigeria.

Keywords:

Artificial Intelligence, Critical Care, Intensive Care Unit, Machine Learning, Prediction

Abstract

Proper estimation of intensive care unit (ICU) length of stay (LOS) is important for effective resource utilization, patient flow management, and clinical decision assistance. In this study, a comparative analysis of machine learning models: Linear Regression, Random Forest, XGBoost, and Multilayer Perceptron (MLP) were conducted to assess the prediction efficiency of these models on the publicly available MIMIC-IV dataset. The information, demographic, clinical, and lab features, were pre-processed and divided into training, validation, and test sets (70%, 15%, and 15%). Performance of the model was measured in terms of various regression metrics including mean absolute error (MAE), root mean squared error (RMSE), coefficient of determination (R²), mean absolute percentage error (MAPE), and median absolute error (MedAE). Results showed that the best in prediction were ensemble-based models, namely XGBoost (MAE = 2.14 days, RMSE = 2.95, R² = 0.61) over Random Forest and MLP, and the worst was Linear Regression with no ability to detect nonlinear relationships. This research emphasizes the clinical value of achieving an average error of less than two days, which allows hospitals to predict ICU demand and enhance staffing and resource allocation. Additionally, the importance of interpretability was mentioned, particularly regarding the necessity for transparent models that foster clinician trust and encourage their adoption. Overall, the findings point to the promise of future machine learning systems in designing better ICU resource management and also suggest that greater emphasis needs to be given to transparency and generalizability in the application to clinical environments.

Downloads

Published

2025-11-30

How to Cite

Akinrotimi, A. O., Omotosho, I. O., Owolabi, O., Omude, P. O., Abass, O. A., Osofuye, O. D., & Alaba, O. B. (2025). Machine Learning Models for Predicting ICU Length of Stay: A Comparative Analysis. Journal of Science and Information Technology, 19(2), 129–142. Retrieved from https://journals.tasued.edu.ng/index.php/josit/article/view/310

Issue

Section

Articles