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 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).
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).
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, 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), Xt is a dummy variable indicating the pre-pandemic period (coded in 0) or the later pandemic period (coded in 1), Yt 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: TXt.
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.