Predicting mortality risk for preterm infants using random forest

Jennifer Lee, Jinjin Cai, Fuhai Li, Zachary A. VesoulisScientific 2021

Abstract

Mortality is an unfortunately common outcome of extremely and very preterm birth. Existing clinical prediction models capture mortality risk at birth but fail to account for the remainder of the hospital course. Infants born < 32 weeks gestation with complete physiologic and clinical data were included in this retrospective study. Mortality risk was quantified by conventional means (clinical factors) using the CRIB-II score and the optimal logistic regression model. A random forest (RF) model was trained using a subset of the cohort, labeling data within 6 h of death as "worry." The model was then tested using the remaining infants. A total of 275 infants were included in the study with a mean gestational age of 27 weeks, mean birth weight of 929 g, 49% female, and a mortality rate of 21%. The CRIB-II and logistic regression models had acceptable performance with sensitivities of 71% and 80% AUC scores of 0.78 and 0.84, respectively. The RF model had superior performance with a sensitivity of 88% and an AUC of 0.93. A random forest model which incorporates fixed clinical factors with the influence of aberrancies in subsequent physiology has superior performance for mortality prediction compared to conventional models.

Introduction

Predicting mortality in the Neonatal Intensive Care Unit (NICU) has traditionally been a "snapshot" process. Standard clinical tools, such as the Clinical Risk Index for Babies (CRIB-II) score, rely on fixed data points collected shortly after birth, such as gestational age and birth weight. However, the clinical course of a preterm infant is highly dynamic. An infant might appear stable at birth but succumb days later to acute events like sepsis or respiratory failure.

Existing models fail to account for these evolving physiological changes. While modern NICUs generate a continuous stream of high-frequency data (heart rate, oxygen saturation, etc.), clinicians often struggle with "alarm fatigue," making it difficult to distinguish between minor fluctuations and true clinical decompensation. This research seeks to bridge this gap by creating a continuous, automated risk assessment tool that combines static birth data with real-time vital signs.

Methods

The researchers developed a Random Forest (RF) classifier to continuously predict mortality risk. Random Forest was selected for its interpretability and its ability to handle non-linear relationships between diverse features.

The "Worry" Label

To train the model, a temporal labeling strategy was introduced. Any data point recorded within six hours of an infant's death was labeled as "worry" (1), while all other data points were labeled "don't worry" (0). This provides a critical window for potential clinical intervention.

Feature Engineering and Datasets

The model utilized 34 features categorized into:

  • Static Factors: Gestational age (GA), birth weight, sex, and race.
  • Dynamic Factors: High-frequency (1 Hz) vitals including heart rate (HR), respiratory rate (RR), oxygen saturation (SpO2), and blood pressure (BP).

To reduce noise from motion artifacts, dynamic variables were processed into rolling means, standard deviations, and absolute z-scores over 5-minute and 30-minute windows. The study used a retrospective cohort of 275 infants born at <32 weeks gestation at St. Louis Children’s Hospital. The training set comprised over 31 million data points, while the testing set included approximately 8.8 million data points.

Results

The Random Forest model significantly outperformed conventional methods. While the CRIB-II and Logistic Regression models achieved AUC scores of 0.78 and 0.84 respectively, the RF model achieved an AUC of 0.93.

ROC curves comparing the performance of CRIB-II, Logistic Regression, and the Random Forest model.

The high sensitivity (86%–88%) and specificity (89%) of the RF model are particularly noteworthy for clinical applications, as they minimize the risk of missing a deteriorating patient while reducing false alarms.

Discussion

A key insight from the study is the interplay between "priors" and "modifiers." While birth weight and gestational age remain the strongest predictors of baseline risk, dynamic vital signs act as essential modifiers that significantly boost predictive accuracy as the hospital course progresses.

Feature importance ranking showing the contribution of static and dynamic factors to the model's predictions.

Among the dynamic variables, the respiratory rate (RR) was the most impactful feature. This is clinically significant, as respiratory distress and apnea are often the first signs of serious complications like sepsis or intraventricular hemorrhage. Furthermore, longitudinal analysis showed that the model often flagged "worry" in infants who were clinically very ill but ultimately survived, suggesting the model functions as a real-time "severity of illness" index.

Limitations and Future Work

This study was conducted at a single center, and site-specific clinical practices might affect generalizability. Future work could include data from ventilators or advanced monitors like cerebral oximetry (NIRS) and investigate longer warning windows (12 or 24 hours). Moving toward a "three-tier" risk model (low, medium, and high risk) could further assist clinicians in triaging care.

Summary updated

BibTeX
@inproceedings{lee2021predicting,
  author = {Jennifer Lee and Jinjin Cai and Fuhai Li and Zachary A. Vesoulis},
  title = {{Predicting mortality risk for preterm infants using random forest}},
  booktitle = {Scientific},
  year = {2021},
  doi = {10.1038/s41598-021-86748-4},
}
Figure