An Individualized Algorithm to Predict Mortality in COVID-19 Pneumonia: a Machine Learning Based Study

Maria Elena Laino, Elena Generali, Tobia Tommasini, Giovanni Angelotti, Alessio Aghemo, Antonio Desai, Pierandrea Morandini, Giulio Stefanini, Ana Lleò, Antonio Voza, Victor SavevskiArchives 2022

Abstract

Machine learning techniques were applied to develop an accurate in-hospital mortality risk score for COVID-19 based on ten variables. The application of the proposed score has utility in clinical settings to guide the management and prognostication of COVID-19 patients.

The Challenge of Pandemic Triage

During the height of the COVID-19 pandemic, hospitals faced a massive influx of patients with varying degrees of severity. Triage—deciding who needs intensive care versus who can be managed in a standard ward—became a matter of life and death. While many prognostic scores were rushed to publication early in the pandemic, they often suffered from small sample sizes, high risk of bias, or excessive complexity. This study sought to bridge this gap by creating an individualized, high-performing algorithm simple enough for real-world clinical application.

Methods and Model Development

The researchers employed a supervised machine learning framework, testing four models of increasing complexity: Logistic Regression (Baseline), Random Forest (Ensemble), Gradient Boosting, and Extreme Gradient Boosting (XGBoost). To handle the inherent class imbalance (more patients survived than died), they used SMOTE (Synthetic Minority Oversampling Technique) and class-weighting strategies.

The core of their approach was an iterative feature selection process. They started with a broad range of clinical data and used "mean decrease impurity" and $\beta$-coefficients to identify which variables actually moved the needle. They eventually narrowed the model down to the 10 most significant variables to create a "pragmatic score" that could be calculated manually at the bedside.

Datasets and Patient Selection

The study utilized a retrospective cohort from Humanitas Research Hospital in Milan, Italy—one of the regions hardest hit during the initial waves. The initial cohort consisted of 1,135 consecutive adult patients admitted between March and December 2020.

Flowchart of the patient cohort and study design.

As illustrated in the flowchart, patients with more than 60% missing data or those identified as outliers were excluded. The remaining data was split into a training set (70%, 760 patients) and a test set (30%, 327 patients) for robust validation.

Key Insights

  • The Power of Ten: The study proves that you don't need hundreds of data points to predict outcomes. Ten variables—including age, the p/F ratio (oxygenation), and specific biomarkers—captured the vast majority of the predictive signal.
  • Cardiac Biomarkers are Crucial: Interestingly, even mild elevations in cardiac markers like hs-troponin I and BNP were strong predictors of mortality, even in patients without a history of heart disease. This highlights COVID-19's systemic impact beyond just the lungs.
  • Interpretability vs. Performance: While the full Random Forest model was the most accurate, the simplified pragmatic score lost very little predictive power (AUC 0.85) while gaining immense clinical utility.
  • High "Rule-Out" Value: The score showed a very high Negative Predictive Value (NPV). In a crisis, this allows clinicians to confidently identify "low-risk" patients who are unlikely to deteriorate, freeing up resources for those in the "very high-risk" category.

Results and Risk Stratification

The Random Forest classifier emerged as the best performer with an AUC of 0.88 ± 0.03.

ROC curve demonstrating the high predictive accuracy of the machine learning model.

The simplified 10-variable pragmatic score achieved an AUC of 0.85 and successfully grouped patients into three tiers:

  • Low Risk (0–6 points): 3.8% mortality rate.
  • High Risk (7–10 points): 19.15% mortality rate.
  • Very High Risk (≥11 points): 50% mortality rate.

Age, p/F ratio, and hs-troponin I were identified as the three most important predictors of death.

Limitations

The authors acknowledge several limitations, including the single-center nature of the study and its retrospective design. While the sample size is large, the model reflects local clinical practices and specific viral variants from 2020. Furthermore, the model has not yet undergone external validation on independent datasets from other regions or hospital systems.

Summary updated

BibTeX
@inproceedings{laino2022individualized,
  author = {Maria Elena Laino and Elena Generali and Tobia Tommasini and Giovanni Angelotti and Alessio Aghemo and Antonio Desai and Pierandrea Morandini and Giulio Stefanini and Ana Lleò and Antonio Voza and Victor Savevski},
  title = {{An Individualized Algorithm to Predict Mortality in COVID-19 Pneumonia: a Machine Learning Based Study}},
  booktitle = {Archives},
  year = {2022},
  doi = {10.5114/aoms/144980},
}
Figure