Performance Drift in a Mortality Prediction Algorithm during the SARS-CoV-2 Pandemic ==================================================================================== * Ravi B. Parikh * Yichen Zhang * Corey Chivers * Katherine R. Courtright * Jingsan Zhu * Caleb M. Hearn * Amol S. Navathe * Jinbo Chen ## ABSTRACT **Research Objective** Health systems use clinical predictive algorithms to allocate resources to high-risk patients. Such algorithms are trained using historical data and are later implemented in clinical settings. During this implementation period, predictive algorithms are prone to performance changes (“drift”) due to exogenous shocks in utilization or shifts in patient characteristics. Our objective was to examine the impact of sudden utilization shifts during the SARS-CoV-2 pandemic on the performance of an electronic health record (EHR)-based prognostic algorithm. **Study Design** We studied changes in the performance of Conversation Connect, a validated machine learning algorithm that predicts 180-day mortality among outpatients with cancer receiving care at medical oncology practices within a large academic cancer center. Conversation Connect generates mortality risk predictions before each encounter using data from 159 EHR variables collected in the six months before the encounter. Since January 2019, Conversation Connect has been used as part of a behavioral intervention to prompt clinicians to consider early advance care planning conversations among patients with ≥10% mortality risk. First, we descriptively compared encounter-level characteristics in the following periods: January 2019–February 2020 (“pre-pandemic”), March-May 2020 (“early-pandemic”), and June–December 2020 (“later-pandemic”). Second, we quantified changes in high-risk patient encounters using interrupted time series analyses that controlled for pre-pandemic trends and demographic, clinical, and practice covariates. Our primary metric of performance drift was false negative rate (FNR). Third, we assessed contributors to performance drift by comparing distributions of key EHR inputs across periods and predicting later pandemic utilization using pre-pandemic inputs. **Population Studied** 237,336 in-person and telemedicine medical oncology encounters. **Principal Findings** Age, race, average patient encounters per month, insurance type, comorbidity counts, laboratory values, and overall mortality were similar among encounters in the pre-, early-, and later-pandemic periods. Relative to the pre-pandemic period, the later-pandemic period was characterized by a 6.5-percentage-point decrease (28.2% vs. 34.7%) in high-risk encounters (p<0.001). FNR increased from 41.0% (95% CI 38.0-44.1%) in the pre-pandemic period to 57.5% (95% CI 51.9-63.0%) in the later pandemic period. Compared to the pre-pandemic period, the early and later pandemic periods had higher proportions of telemedicine encounters (0.01% pre-pandemic vs. 20.0% early-pandemic vs. 26.4% later-pandemic) and encounters with no preceding laboratory draws (17.7% pre-pandemic vs. 19.8% early-pandemic vs. 24.1% later-pandemic). In the later pandemic period, observed laboratory utilization was lower than predicted (76.0% vs 81.2%, p<0.001). In the later-pandemic period, mean 180-day mortality risk scores were lower for telemedicine encounters vs. in-person encounters (10.3% vs 11.2%, p<0.001) and encounters with no vs. any preceding laboratory draws (1.5% vs. 14.0%, p<0.001). **Conclusions** During the SARS-CoV-2 pandemic period, the performance of a machine learning prognostic algorithm used to prompt advance care planning declined substantially. Increases in telemedicine and declines in laboratory utilization contributed to lower performance. **Implications for Policy or Practice** This is the first study to show algorithm performance drift due to SARS-CoV-2 pandemic-related shifts in telemedicine and laboratory utilization. These mechanisms of performance drift could apply to other EHR clinical predictive algorithms. Pandemic-related decreases in care utilization may negatively impact the performance of clinical predictive algorithms and warrant assessment and possible retraining of such algorithms. ## INTRODUCTION Clinical predictive models that rely on electronic health record (EHR) inputs, such as encounters, administrative codes, and laboratory values,1 are increasingly used in health care settings to direct resources to high-risk patients. Such models are prone to performance changes (“drift”) over time due to shifts in case-mix or input features.2,3 Sudden changes in health care utilization during the SARS-CoV-2 pandemic may have impacted the performance of clinical predictive models.4 ## METHODS We evaluated the performance over time of a machine learning, EHR-based mortality prediction algorithm currently used in clinical practice. The algorithm was validated to predict 180-day mortality among outpatients with cancer at medical oncology practices within a large academic cancer center in southeastern Pennsylvania.5 Since January 2019, this algorithm has been used as part of an intervention to prompt serious illness conversations among individuals with >10% risk score of 180-day mortality.6 Model features are listed at [https://github.com/pennsignals/eol-onc](https://github.com/pennsignals/eol-onc) and were derived using demographic, comorbidity, and laboratory values within 180 days prior to the encounter. Risk scores are generated on the Thursday prior to each medical oncology encounter and reflect absolute predicted percentage-point mortality risk. We analyzed mortality risk scores associated with 237,336 in-person and telemedicine medical oncology encounters between January 2019 and December 2020. Descriptive analyses compared encounter-level characteristics in the following periods: January 2019–February 2020 (“pre-pandemic”), March–May 2020 (“early pandemic”, representing the early impact of stay-at-home orders), and June–December 2020 (“later pandemic”, representing longer-term impact). ## PRINCIPAL FINDINGS Interrupted time series analyses that controlled for pre-pandemic trends evaluated the impact of the pandemic on absolute 180-day mortality risk scores and the monthly percentage of encounters classified as high-risk, using March-May 2020 as a washout period. Relative to the pre-pandemic period, the later pandemic period was characterized by a 6.8-percentage-point decrease (28.2% vs. 35.0%) in high-risk encounters (p<0.001 for level change, **Figure 1A**). There was a corresponding 2.2 absolute percentage-point decrease in predicted mortality risk in the pre-pandemic vs. later-pandemic period. (13.2% vs. 11.0%, p<0.001 for level change, **Figure 1B**). ![](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2022/03/01/2022.02.28.22270996/F1/graphic-1.medium.gif) [](http://medrxiv.org/content/early/2022/03/01/2022.02.28.22270996/F1/graphic-1) ![](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2022/03/01/2022.02.28.22270996/F1/graphic-2.medium.gif) [](http://medrxiv.org/content/early/2022/03/01/2022.02.28.22270996/F1/graphic-2) ![](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2022/03/01/2022.02.28.22270996/F1/graphic-3.medium.gif) [](http://medrxiv.org/content/early/2022/03/01/2022.02.28.22270996/F1/graphic-3) ![](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2022/03/01/2022.02.28.22270996/F1/graphic-4.medium.gif) [](http://medrxiv.org/content/early/2022/03/01/2022.02.28.22270996/F1/graphic-4) ![](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2022/03/01/2022.02.28.22270996/F1/graphic-5.medium.gif) [](http://medrxiv.org/content/early/2022/03/01/2022.02.28.22270996/F1/graphic-5) ![](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2022/03/01/2022.02.28.22270996/F1/graphic-6.medium.gif) [](http://medrxiv.org/content/early/2022/03/01/2022.02.28.22270996/F1/graphic-6) Figure 1. Performance drift in the prediction model during the SARS-CoV-2 pandemic. Interrupted time series analyses of SARS-CoV-2 pandemic impacts on **(A)** percentage of high-risk encounters, and **(B)** absolute predicted 180-day mortality risk. Circles represent monthly observed averages across all medical oncology encounters. Solid lines reflect time trends in the pre-pandemic (January 2019–February 2020), early pandemic (March–May 2020), and later pandemic (June–December 2020) periods, with 95% confidence intervals surrounding each time trend in shaded grey. **(C)** True positive rate of model prediction pre- vs. later pandemic. Both scenarios showed a decrease in the TPR. **(D)** Comparison of observed and predicted laboratory utilization in the later pandemic period. The predicted laboratory utilization was 0.81, while the observed laboratory utilization was 0.76. **(E)** Prediction score by visit type in pre- vs. later pandemic. The mean prediction score in the pre-pandemic period among the in-person visits was 0.13 (IQR: 0.02-0.17), while among telehealth visits, the mean prediction score was 0.03 (IQR: 0.01-0.03). In the later pandemic period, the mean prediction score among in-person visits was 0.11 (IQR: 0.01-0.12), among telehealth visits was 0.12 (0.02-0.14). **(F)** Prediction score by laboratory utilization in pre- vs. later pandemic. The mean prediction score in the pre-pandemic period among the encounters with laboratory utilization was 0.16 (IQR: 0.03-0.21), while among the encounters without any laboratory utilization, the mean prediction score was 0.015 (IQR: 0.013-0.014). In the later pandemic period, the mean prediction score among the encounters with labs was 0.14 (IQR: 0.02-0.18), among the encounters without labs was 0.015 (0.012-0.014). Because we hypothesized that pandemic-related utilization declines would result in underprediction of mortality risk, true positive rate (TPR) was the primary performance metric. TPR was calculated based on the total number of predicted high-risk encounters and observed all-cause 180-day mortality from the encounter date, based on the 10% threshold used in practice.6 Mortality risk scores from each patient’s first encounter in the pre-pandemic and later pandemic periods were used to calculate TPR, using the bootstrap method with 1,000 resamples to generate confidence intervals.7, 8 As a sensitivity analysis, we calculated TPR using a random encounter in each period. TPR decreased from 58.8% (95% CI 55.8%, 61.9%) in the pre-pandemic period to 42.3% (95% CI: 36.8%, 47.8%) in the later pandemic period; the sensitivity analysis was consistent (TPR 71.5% [69.1%, 73.9%] vs. 59.8 [54.8%, 64.9%]) (**Figure 1C**). To identify potential mechanisms of performance drift, we first compared demographic characteristics, which identified differential numbers of lab utilization and telemedicine as primary difference in pre- vs. later pandemic. Age, race, average patient encounters per month, insurance type, comorbidity, laboratory values, and overall mortality were similar across the three time periods (**Table 1**). Compared to the pre-pandemic period, the early and later pandemic periods had higher proportions of telemedicine encounters (20.0% and 26.4% vs 0.01%) and encounters with no preceding laboratory draws (19.8% and 24.1% vs. 17.7%). To further investigate whether laboratory utilization in the later pandemic period was lower than expected, we trained a LASSO regression model based on pre-pandemic data to predict laboratory utilization in the later pandemic period. In the later pandemic period, 81.2% of encounters were predicted to be associated with laboratories, whereas only 75.9% (51,431/67,786) of encounters had associated laboratory utilization that was observed (**Figure 1D**). Finally, to investigate the potential contribution of higher telemedicine encounters and encounters with no preceding laboratory draws to performance drift, we examined mortality risk scores associated with and without telemedicine encounters or laboratory visits. In the later pandemic period, telemedicine encounters (mean predicted risk score 10.3%) and encounters with no preceding laboratory draws (1.5%) were associated with lower predicted risk score than in-person encounters (11.2%, p<0.001) or encounters with preceding laboratory draws (14.0%, p<0.001), respectively (**Figure 1E-F**). View this table: [Table 1:](http://medrxiv.org/content/early/2022/03/01/2022.02.28.22270996/T1) Table 1: Baseline characteristics of medical oncology encounters ## CONCLUSIONS During the SARS-CoV-2 pandemic period, the performance of a machine learning prognostic algorithm used to prompt serious illness conversations in clinical practice declined substantially. The algorithm underidentified patients at high predicted risk of mortality in the initial months of the pandemic period. Towards the end of 2020, prediction scores began to normalize, presumably due to resumption of routine health utilization. Declines in encounters associated with laboratory draws and increases in telemedicine utilization – both potentially spurred by pandemic-related stay-at-home orders and patient fears of exposure in health settings – may have disproportionately contributed to lower performance. Results were directionally consistent in a sensitivity analysis. Performance drift of predictive algorithms has been conceptually described in certain settings where characteristics of training and validation populations differ.2,3 This is one of the first studies to show algorithm performance drift due to SARS-CoV-2 pandemic-related utilization shifts; this drift extended well into 2020. Two potential mechanisms of performance drift are dataset shift or natural algorithm performance drift. We show that scores dropped sharply after the initial SARS-CoV-2 period, which would be atypical for algorithm performance drift. Furthermore, demographic, clinical severity, and cancer-specific characteristics remained largely similar across time periods. Rather, a shift in the underlying utilization patterns of the cohort during the pandemic, resulting in a database shift, likely contributed to algorithm inaccuracy. A similar study published in 2021 found that predictive model alerts increased by 43% during the SARS-CoV-2 pandemic, even though this model was not trained in the SARS-CoV-2 era.9 Cancellation of elective surgeries and higher than average patient acuity in the underlying patients contributed to this. Our study adds to this and similar literature by suggesting that changes in the frequency of alerts caused by pandemic-related utilization shifts may be associated with decreased accuracy overall. Predictive or risk-adjustment algorithms that use input values from EHR or claims data should be interpreted with caution, as pandemic-related decreases in utilization may impact performance. Health systems, payers, and clinicians should consider retraining EHR- or claims-based predictive algorithms in the post-pandemic era. Limitations of this study include its single-institution setting and inability to account for unmeasured contributors to changes in underlying risk. In particular, it is possible that the distribution of other unmeasured markers of patient acuity, including performance status, cancer burden, or other factors, may have contributed to fewer alerts during the pandemic period. While we relied on Social Security and institutional data to measure the outcome of death, and while overall rates of death were similar across periods, it is possible that we did not capture all deaths during the later pandemic period. However, because fewer high-risk alerts were generated in the later pandemic period, it is likely that an increase in the outcome of death would have resulted in a further decrease in the sensitivity of the algorithm. ## POLICY IMPLICATIONS While some studies have short evidence of changes in scores from predictive models9, ours is the first to examine changes in algorithm performance, measured by the decrease in the TPR during the pandemic. Our study strongly argues for considering retraining of models with training data during the lengthy SARS-COV-2 pandemic period, given likely utilization shifts during the pandemic. This is also likely to affect other performance models, including risk stratification and risk-adjustment algorithms used by large payers. Alternatively, other methods such as reinforcement learning can enhance clinical applicability by accounting for changes in the underlying dataset.10 ## DETAILED METHODS ### Data sources The study cohort was extracted from Clarity, a database that contains structured data elements of individual EHR data for patients treated at the University of Pennsylvania Health System (UPHS). The EHRs contained patient demographic characteristics, comorbidities, laboratory results, and utilization data. Mortality data was derived from internal administrative data, the EHR, and the Social Security Administration Death Master File, matched to UPHS patients by social security number and date of birth. ### Ethics The University of Pennsylvania Institutional Review Board approved this study with a waiver of informed consent, classifying this study as quality improvement. ### Participants Patients were eligible if they were 18 years or older and had an encounter at one of 18 medical or gynecologic oncology clinics within the UPHS between January 2nd, 2019, and Dec 31st, 2020. All encounters were associated with a mortality risk prediction generated prior to the appointment. Eligible practices included a large tertiary practice, in which clinicians subspecialize in one cancer type (e.g., lymphoma), and 17 general oncology practices, in which clinicians usually treat multiple cancer types. Benign hematology, genetics, and survivorship visits were excluded. 360,727 encounters were eligible after these exclusions.. Encounters with the same contact serial number (CSN) were combined as one distinct encounter including all identified comorbidity conditions. After the combination, 237,336 encounters were included in the analytical sample. ### Predictive Algorithm The mortality risks of patients were derived from a gradient boosting machine learning algorithm (GBM) designed to predict 180-day mortality among outpatients with cancer. 559 structured EHR features collected at UPHS were used to train this algorithm. The 180-day prospective predictions were generated once a week on Thursdays. Even during the pandemic period, most appointments were scheduled prior to the previous Thursday, and thus scheduling additions or subtractions after the prediction was made were rare. Detailed descriptions of the ML algorithm were described in previous publications.5,8 The overall AUC of this algorithm was 0.89 (95% CI, 0.88-0.90), and disease-specific AUC ranged from 0.74 to 0.96 in a prospective validation.5 ### Outcomes The primary outcome of the algorithm was 180-day mortality from the time of the encounter. Mortality data was derived from internal administrative data, the EHR, and the Social Security Administration Death Master File. ### Features Variables used in the algorithm have been previously published and are provided in **Supplementary Table 1**. ## Statistical analysis ### Interrupted Time Series Analysis An interrupted time series (ITS) model was used to evaluate the changes in the absolute 180-day mortality risk scores and the mortality percentage of encounters classified as high-risk before and after the pandemic, using March-May 2020 as a washout period. The purpose of introducing the washout period in the analysis was to allow the pandemic-related stay-at-home orders to take effect in patient behaviors as well as clinical practices. The model structure is as followed, ![Formula][1] where *T* represents the time elapsed since the start of the study period with the unit representing the frequency with which observations were taken (i.e., month in current study), *X**t* is a dummy variable indicating the pre-pandemic period (coded in 0) or the later pandemic period (coded in 1), *Y**t* is the outcome at time *t*. Monthly average prediction score or monthly percentage of high-risk encounters was used in current study. represents the baseline prediction score at *T* =0, *β*1 is interpreted as the change in the outcome associated with a time unit increase (representing the underlying pre-pandemic trend), *β*2 is the level change following the pre-pandemic period, and *β*3 indicates the slope change in the later pandemic period (using the interaction between time and pandemic period: *TX**t*. The level change in the predicted mortality from pre-pandemic to later pandemic was a decrease of 0.02 (p<.0001), the slope of prediction score was −0.001 (p<.0001) in the pre-pandemic period and 0.003 (p<.0001) in the later pandemic period. The level change in the percentage of high-risk encounters from pre-pandemic to later pandemic was a decrease of 6.7 percent, the slope of percentage of high-risk encounters was −0.26 (p<.0001) in the pre-pandemic period and 0.83 (p<.0001) in the later pandemic period. ### True Positive Rate Comparison Patients who appeared only in either the pre-pandemic or later pandemic periods were selected. 1,000 bootstrap samples were generated based on this population. Two scenarios were considered in the analysis to calculate the TPR, 1) using the first encounter per patient in each period, or 2) using a random encounter per patient in each period. Encounters flagged with “High-risk” was counted to be compared with the total observed number of patients who died in 6 months from the appointment date. The TPR was calculated in pre-pandemic and later pandemic separately to illustrate whether there was a drift in the model performance. ### Mechanisms of Performance Drift To compare observed vs. predicted laboratory utilization, a LASSO model was used to predict the laboratory utilization in the later pandemic period. Pre-pandemic period data was used to train the model, predictors included in the model were baseline demographic characteristics (i.e., age, race, marital status, insurance coverage) and comorbidity conditions. Then the modeled output was applied to the later pandemic period to predict the laboratory utilization, including all visit types. The analysis was performed in RStudio. ## Data Availability All data produced in the present work are contained in the manuscript ## Notes ## Competing Interests Dr. Parikh reports receiving grants from Humana, the National Institutes of Health, Prostate Cancer Foundation, National Palliative Care Research Center, Conquer Cancer Foundation, and Veterans Administration; personal fees and equity from GNS Healthcare, Inc. and Onc.AI; personal fees from Cancer Study Group, Thyme Care, Humana, and Nanology; honorarium from Flatiron, Inc. and Medscape; and serving on the board (unpaid) of the Coalition to Transform Advanced Care, all outside the submitted work. ## Funding Information This work was supported by a grant (to RBP) from the National Cancer Institute (K08-CA-26341). ## Data Access Drs. Parikh and Zhang had access to the data and vouch for the accuracy of the results. ## Acknowledgements Thank you to Jay Fein for assistance with manuscript preparation. * Received February 28, 2022. * Revision received February 28, 2022. * Accepted March 1, 2022. * © 2022, Posted by Cold Spring Harbor Laboratory This pre-print is available under a Creative Commons License (Attribution-NonCommercial-NoDerivs 4.0 International), CC BY-NC-ND 4.0, as described at [http://creativecommons.org/licenses/by-nc-nd/4.0/](http://creativecommons.org/licenses/by-nc-nd/4.0/) ## References 1. 1.Paxton, C., Niculescu-Mizil, A., Saria, S., Developing predictive models using electronic medical records: challenges and pitfalls. AMIA Annu Symp Proc. 2013, 1109–1115 (2013) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=24551396&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2022%2F03%2F01%2F2022.02.28.22270996.atom) 2. 2.Davis, S. E., Lasko T. A., Chen, G., Siew, E. D., Matheny, M. E., Calibration drift in regression and machine learning models for acute kidney injury. J Am Med Inform Assoc. 24(6),1052–1061 (2017). doi:10.1093/jamia/ocx030 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1093/jamia/ocx030&link_type=DOI) 3. 3.Wong, A., Otles, E., Donnelly, J. et al. External validation of a widely implemented proprietary sepsis prediction model in hospitalized patients. JAMA Intern Med. 2021;181(8), 1065–1070. doi:10.1001/jamainternmed.2021.2626 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/jamainternmed.2021.2626&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=34152373&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2022%2F03%2F01%2F2022.02.28.22270996.atom) 4. 4.Moynihan, R., Sanders, S., Michaleff, Z. A. et al. Impact of COVID-19 pandemic on utilisation of healthcare services: a systematic review. BMJ Open. 11(3), (202doi:10.1136/bmjopen-2020-045343 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiYm1qb3BlbiI7czo1OiJyZXNpZCI7czoxMjoiMTEvMy9lMDQ1MzQzIjtzOjQ6ImF0b20iO3M6NTA6Ii9tZWRyeGl2L2Vhcmx5LzIwMjIvMDMvMDEvMjAyMi4wMi4yOC4yMjI3MDk5Ni5hdG9tIjt9czo4OiJmcmFnbWVudCI7czowOiIiO30=) 5. 5.Manz, C. R., Chen, J., Liu, M. et al. Validation of a machine learning algorithm to predict 180-day mortality for outpatients with cancer. JAMA Oncol. Published online September 24, 2020. doi:10.1001/jamaoncol.2020.4331 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/jamaoncol.2020.4331&link_type=DOI) 6. 6.Manz, C. R., Parikh, R. B., Small, D. S., et al. Effect of integrating machine learning mortality estimates with behavioral nudges to clinicians on serious illness conversations among patients with cancer: a stepped-wedge cluster randomized clinical trial. JAMA Oncol. Published online October 15, 2020:e204759. doi:10.1001/jamaoncol.2020.4759 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/jamaoncol.2020.4759&link_type=DOI) 7. 7.Efron, B., Tibshirani, R. J. An Introduction to the Bootstrap. Springer US; 1993. doi:10.1007/978-1-4899-4541-9 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1007/978-1-4899-4541-9&link_type=DOI) 8. 8.Davison A. C., Hinkley, D. V. Bootstrap Methods and Their Application. Cambridge University Press; 1997. 9. 9.Wong, A., Cao, J., Lyons, P. G. et al. Quantification of sepsis model alerts in 24 us hospitals before and during the covid-19 pandemic. JAMA Netw Open. 4(11), e2135286 (2021). Published 2021 Nov 1. doi:10.1001/jamanetworkopen.2021.35286 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/jamanetworkopen.2021.35286&link_type=DOI) 10. 10.Luo, Y., Wunderink, R.G., Lloyd-Jones, D. Proactive vs reactive machine learning in health care: lessons from the covid-19 pandemic. JAMA. 327(7), 623 (2022). doi:10.1001/jama.2021.24935 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/jama.2021.24935&link_type=DOI) [1]: /embed/graphic-9.gif