Concurrent prediction of in-hospital mortality and length of stay using single-task, multiclass and multitask machine learning.
Jia Wei, Jo Gay, Andrew Brent, David Clifton, Sarah Walker, David Eyre
Nuffield Department of Medicine, University of Oxford, Oxford, UK. · Oxford University Hospitals NHS Foundation Trust, Oxford, UK.
Key points
From the paper's conclusion- Machine learning models can predict in-hospital mortality and LoS as well or better than clinicians, especially for emergency admissions. These models have the potential to be implemented in hospital settings, providing consistent predictions and thus enhancing discharge planning and hospital resource management.
Abstract
OBJECTIVES: Accurate predictions of discharge timing and in-hospital mortality could improve hospital efficiency, but clinician estimates are often inconsistent and imprecise. We evaluated if machine learning models could concurrently predict in-hospital mortality and length of stay (LoS) more reliably. METHODS AND ANALYSIS: We used electronic healthcare data from 1 November 2021 to 31 October 2024 from Oxfordshire, UK, using 2 years' data for training and evaluating models using the final year's data. The performance of task-specific extreme gradient boosting (XGB), logistic regression (LR), multilayer perceptron (MLP) and TabNet models for two tasks, mortality prediction and LoS prediction, was compared with a single multiclass XGB model predicting combinations of LoS and mortality and MLP and TabNet-based multitask learning model predicting both outcomes simultaneously. Predictions from the best-performing models were compared with discharge predictions made by clinicians. RESULTS: Clinicians provided relevant discharge predictions for only 3%-5% of admissions, mostly close to discharge. Task-specific XGB models achieved an area under the receiver operating curve of 0.92 and 0.92 for predicting mortality and 0.83 and 0.72 for predicting LoS quartiles in elective and emergency admissions, respectively, outperforming task-specific LR, MLP and TabNet models. Neither the multiclass XGB nor the MLP or TabNet-based multitask models, predicting both outcomes simultaneously, consistently improved performance. The best-performing task-specific XGB models matched clinician LoS prediction accuracy in elective admissions and significantly outperformed clinicians in emergency admissions (p <0.001). CONCLUSION: Machine learning models can predict in-hospital mortality and LoS as well or better than clinicians, especially for emergency admissions. These models have the potential to be implemented in hospital settings, providing consistent predictions and thus enhancing discharge planning and hospital resource management.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Predicting in-hospital mortality after cardiac surgery using machine learning: temporal validation in the MIMIC-IV database.Frontiers in cardiovascular medicine · 2026
- Machine learning-based prediction of in-hospital and post-discharge mortality in heart failure: an international retrospective study with cross-endpoint transferability analysis.Frontiers in digital health · 2026
- Machine Learning Models for Predicting Unplanned Readmission and Mortality in the ICU: A Systematic Review and Meta-AnalysisBig Data and Cognitive Computing · 2026
- An empirical study of machine learning robustness and scalability for imbalanced tabular clinical data in emergency and critical careScientific Reports · 2026
- Development and Validation of a Multivariable Machine Learning Model for Mortality Prediction among Intensive Care Unit PatientsIndian Journal of Critical Care Medicine · 2026
- Machine Learning Prediction of 90-Day Readmission and Mortality in General Internal Medicine: A Retrospective Cohort Study.Diagnostics (Basel, Switzerland) · 2026