Developing and validating predictive models for emergency department mortality in critically ill patients

Read the full article See related articles

Listed in

This article is not in any list yet, why not save it to one of your lists.
Log in to save this article

Abstract

Early mortality risk stratification of critically ill patients in the emergency department is difficult, particularly where data are incomplete and resources are limited. We developed and internally validated machine learning models for mortality using routinely collected data from a tertiary hospital in Nepal. We conducted a retrospective cohort study of 597 critically ill adults presenting to the emergency department of Patan Hospital between 2005 and 2024. Death in the emergency department or in hospital was modelled as a binary outcome. Predictors were selected using an ensemble of importance rankings from random forest, XGBoost and histogram-based gradient boosting models with 5-fold stratified cross-validation. Logistic regression, histogram-based gradient boosting and random forest models were compared. The final model was evaluated on a held-out test set (20%, n = 120) and compared with a modified National Early Warning Score 2 (NEWS2). Natural language processing and synthetic data augmentation were also explored. Five predictors were selected: arterial lactate, creatinine, urea, platelet count and resuscitation received. The cross-validated area under the receiver operating characteristic curve (ROC-AUC) was 0.654 for logistic regression, 0.694 for histogram-based gradient boosting and 0.707 (SD 0.054) for random forest. On the test set, at a threshold of 0.612, the random forest had recall 0.80 (95% CI 0.71–0.87), precision 0.77 (0.67–0.84) and F1-score 0.78 (0.71–0.85), but specificity was 0.38 (0.24–0.55). Test-set ROC-AUC was 0.666 for the random forest and 0.627 for the NEWS2-derived score. Natural language processing gave descriptive insight without adding predictive value, and synthetic data augmentation reduced the ROC-AUC (0.707 to 0.523). A five-variable random forest using routinely available data identified most patients who died, but discrimination was modest, specificity was low, and the evidence comes from one centre with internal validation only. Prospective and external validation are needed before any clinical use.

Author summary

Predicting which critically ill patients arriving at an emergency department are most likely to die is difficult, especially in busy hospitals with limited resources where clinical information is often incomplete. We studied 597 critically ill patients treated at the emergency department of Patan Hospital in Nepal and tested whether machine learning could use routine clinical data to identify patients at highest risk of death. Five pieces of information (blood lactate, creatinine, urea, platelet count and whether the patient received resuscitation) were enough to build a model that found about four in five of the patients who died. Its ability to separate patients who died from those who survived was modest, though slightly better than a manual early warning score, and it wrongly flagged many survivors. Analysing the text of clinical notes added little, and creating artificial patient records to enlarge the dataset made the model worse. These findings come from one hospital and were tested only on a portion of the same data. Before such a tool could be used in practice, it would need to be tested prospectively, in other hospitals, and built carefully into clinical workflows so that it supports rather than replaces clinical judgment.

Article activity feed