Machine learning to predict mortality and critical events in a cohort of patients with COVID-19 in New York City: Model development and validation

Akhil Vaid, Sulaiman Somani, Adam J. Russak, Jessica K. de Freitas, Fayzan F. Chaudhry, Ishan Paranjpe, Kipp W. Johnson, Samuel J. Lee, Riccardo Miotto, Felix Richter, Shan Zhao, Noam D. Beckmann, Nidhi Naik, Arash Kia, Prem Timsina, Anuradha Lala, Manish Paranjpe, Eddye Golden, Matteo Danieletto, Manbir SinghDara Meyer, Paul F. O'Reilly, Laura Huckins, Patricia Kovatch, Joseph Finkelstein, Robert M. Freeman, Edgar Argulian, Andrew Kasarskis, Bethany Percha, Judith A. Aberg, Emilia Bagiella, Carol R. Horowitz, Barbara Murphy, Eric J. Nestler, Eric E. Schadt, Judy H. Cho, Carlos Cordon-Cardo, Valentin Fuster, Dennis S. Charney, David L. Reich, Erwin P. Bottinger, Matthew A. Levin, Jagat Narula, Zahi A. Fayad, Allan C. Just, Alexander W. Charney, Girish N. Nadkarni, Benjamin S. Glicksberg

Research output: Contribution to journalArticlepeer-review

127 Scopus citations


Background: COVID-19 has infected millions of people worldwide and is responsible for several hundred thousand fatalities. The COVID-19 pandemic has necessitated thoughtful resource allocation and early identification of high-risk patients. However, effective methods to meet these needs are lacking. Objective: The aims of this study were to analyze the electronic health records (EHRs) of patients who tested positive for COVID-19 and were admitted to hospitals in the Mount Sinai Health System in New York City; to develop machine learning models for making predictions about the hospital course of the patients over clinically meaningful time horizons based on patient characteristics at admission; and to assess the performance of these models at multiple hospitals and time points. Methods: We used Extreme Gradient Boosting (XGBoost) and baseline comparator models to predict in-hospital mortality and critical events at time windows of 3, 5, 7, and 10 days from admission. Our study population included harmonized EHR data from five hospitals in New York City for 4098 COVID-19–positive patients admitted from March 15 to May 22, 2020. The models were first trained on patients from a single hospital (n=1514) before or on May 1, externally validated on patients from four other hospitals (n=2201) before or on May 1, and prospectively validated on all patients after May 1 (n=383). Finally, we established model interpretability to identify and rank variables that drive model predictions. Results: Upon cross-validation, the XGBoost classifier outperformed baseline models, with an area under the receiver operating characteristic curve (AUC-ROC) for mortality of 0.89 at 3 days, 0.85 at 5 and 7 days, and 0.84 at 10 days. XGBoost also performed well for critical event prediction, with an AUC-ROC of 0.80 at 3 days, 0.79 at 5 days, 0.80 at 7 days, and 0.81 at 10 days. In external validation, XGBoost achieved an AUC-ROC of 0.88 at 3 days, 0.86 at 5 days, 0.86 at 7 days, and 0.84 at 10 days for mortality prediction. Similarly, the unimputed XGBoost model achieved an AUC-ROC of 0.78 at 3 days, 0.79 at 5 days, 0.80 at 7 days, and 0.81 at 10 days. Trends in performance on prospective validation sets were similar. At 7 days, acute kidney injury on admission, elevated LDH, tachypnea, and hyperglycemia were the strongest drivers of critical event prediction, while higher age, anion gap, and C-reactive protein were the strongest drivers of mortality prediction. Conclusions: We externally and prospectively trained and validated machine learning models for mortality and critical events for patients with COVID-19 at different time horizons. These models identified at-risk patients and uncovered underlying relationships that predicted outcomes.

Original languageEnglish
Article numbere24018
JournalJournal of Medical Internet Research
Issue number11
StatePublished - Nov 2020


  • COVID-19
  • Clinical informatics
  • Cohort
  • EHR
  • Electronic health record
  • Hospital
  • Machine learning
  • Mortality
  • Performance
  • Prediction


Dive into the research topics of 'Machine learning to predict mortality and critical events in a cohort of patients with COVID-19 in New York City: Model development and validation'. Together they form a unique fingerprint.

Cite this