Abstract
Coronavirus Disease 2019 (COVID-19) is an emerging respiratory disease caused by the severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) with rapid human-to-human transmission and a high case fatality rate particularly in older patients. Due to the exponential growth of infections, many healthcare systems across the world are under pressure to care for increasing amounts of at-risk patients. Given the high number of infected patients, identifying patients with the highest mortality risk early is critical to enable effective intervention and optimal prioritisation of care. Here, we present the COVID-19 Early Warning System (CovEWS), a clinical risk scoring system for assessing COVID-19 related mortality risk. CovEWS provides continuous real-time risk scores for individual patients with clinically meaningful predictive performance up to 192 hours (8 days) in advance, and is automatically derived from patients' electronic health records (EHRs) using machine learning. We trained and evaluated CovEWS using de-identified data from a cohort of 66430 COVID-19 positive patients seen at over 69 healthcare institutions in the United States (US), Australia, Malaysia and India amounting to an aggregated total of over 2863 years of patient observation time. On an external test cohort of 5005 patients, CovEWS predicts COVID-19 related mortality from $78.8\%$ ($95\%$ confidence interval [CI]: $76.0$, $84.7\%$) to $69.4\%$ ($95\%$ CI: $57.6, 75.2\%$) specificity at a sensitivity greater than $95\%$ between respectively 1 and 192 hours prior to observed mortality events - significantly outperforming existing generic and COVID-19 specific clinical risk scores. CovEWS could enable clinicians to intervene at an earlier stage, and may therefore help in preventing or mitigating COVID-19 related mortality.
Introduction
The COVID-19 pandemic placed unprecedented strain on global healthcare systems. One of the primary challenges for clinicians is "triage under fire"—identifying which patients are likely to deteriorate rapidly before they reach a critical state. Traditional clinical risk scores, like the Sequential Organ Failure Assessment (SOFA), were not designed for COVID-19 and often rely on a fixed set of risk factors that don't account for the disease's unique inflammatory profile or rapid progression. Furthermore, many existing COVID-specific models are "static," providing a one-time prediction based on admission data rather than updating as a patient’s condition evolves.
The COVID-19 Early Warning System (CovEWS) addresses these gaps by providing a real-time, generalizable, and long-range prediction tool. It reacts to changing vitals and lab results instantaneously, works across diverse hospital settings and ethnicities, and provides warnings up to eight days in advance.
Methods
The core of CovEWS is a time-varying neural Cox model. Standard Cox proportional hazard models assume that the effect of risk factors is linear and constant over time. CovEWS replaces the linear component with a deep neural network (a 2-layer multilayer perceptron), allowing the model to capture complex, non-linear interactions between variables.
The model processes EHR data as a sequence. Every time a new lab result or vital sign is recorded, the model re-calculates the "hazard," or instantaneous risk of death. To avoid the "black box" problem, the authors used Integrated Gradients to quantify how much each input contributes to the current risk score. Instead of a raw probability, the model outputs a risk percentile (0-100) relative to a reference cohort, facilitating population-wide context for clinicians.
Datasets
The study utilized a massive, multi-national dataset encompassing over 66,000 patients:
- Optum (US): De-identified EHRs from over 45 provider groups in the US, used for training (14,215 patients), validation, and internal testing.
- TriNetX (International): A global health research network serving as the external test cohort (5,005 patients) with data from the US, Australia, Malaysia, and India.
- Optum Future Cohort: A separate set of 14,041 patients diagnosed after the initial training period to test robustness against changing treatment protocols.
Key Insights and Interpretability
CovEWS maintains clinically meaningful performance up to 192 hours (8 days) before a mortality event. This provides a significant window for clinical intervention compared to traditional scores that often only flag patients once organ failure has already begun. The model demonstrates that accounting for dynamic changes in patient status is significantly more accurate than using only admission data.
As shown in the patient trajectories above, CovEWS can identify high-risk patients much sooner than static scores by reacting to early fluctuations in parameters like oxygen saturation ($SpO_2$) and white blood cell counts. The integrated importance scores (shaded areas) provide transparency into which clinical factors are driving the risk assessment at any given time.
Key Results
On the external TriNetX test cohort, CovEWS achieved a specificity of $78.8\%$ (at $>95\%$ sensitivity) one hour before an event, and maintained $69.4\%$ specificity even 8 days (192 hours) in advance. It significantly outperformed generic scores like SOFA and other COVID-19 specific models across all time horizons.
The model successfully stratified patients into five distinct risk strata, with the highest-risk group showing a dramatically steeper mortality curve. Furthermore, the model proved robust across various ethnic groups and for non-hospitalized patients, suggesting utility in remote monitoring.
Limitations and Future Work
While the retrospective results are strong, CovEWS tends to overestimate mortality risk if interpreted as a raw probability because it cannot account for future medical interventions. Additionally, hospital mortality is influenced by social determinants and provider decisions, which are difficult to decouple from biological risk. Future work will focus on prospective clinical trials to determine if the availability of these scores improves real-world patient outcomes.
Summary updated