Large-Scale Study of Temporal Shift in Health Insurance Claims

Christina X. Ji, Ahmed M. Alaa, David A. Sontag

Abstract

Most machine learning models for predicting clinical outcomes are developed using historical data. Yet, even if these models are deployed in the near future, dataset shift over time may result in less than ideal performance. To capture this phenomenon, we consider a task—that is, an outcome to be predicted at a particular time point—to be non-stationary if a historical model is no longer optimal for predicting that outcome. We build an algorithm to test for temporal shift either at the population level or within a discovered sub-population. Then, we construct a meta-algorithm to perform a retrospective scan for temporal shift on a large collection of tasks. Our algorithms enable us to perform the first comprehensive evaluation of temporal shift in healthcare to our knowledge. We create 1,010 tasks by evaluating 242 healthcare outcomes for temporal shift from 2015 to 2020 on a health insurance claims dataset. 9.7% of the tasks show temporal shifts at the population level, and 93.0% have some sub-population affected by shifts. We dive into case studies to understand the clinical implications. Our analysis highlights the widespread prevalence of temporal shifts in healthcare.

Introduction

In healthcare, machine learning models are typically trained on historical data but deployed to make decisions about future patients. However, the medical landscape is dynamic: diagnostic guidelines evolve, healthcare delivery methods shift (e.g., the rise of telemedicine), and insurance policies change. These changes can lead to "temporal shift," where a model that was accurate yesterday provides biased or suboptimal predictions today.

This study addresses two critical gaps in managing model degradation: formally defining when a model is "outdated" (non-stationary) rather than just experiencing a temporary performance dip, and identifying specific patient sub-populations that may be disproportionately affected by these shifts even when population-level metrics appear stable.

Methodology

To detect temporal shift, the authors define a task as non-stationary if a model trained on current data significantly outperforms a model trained on historical data when both are evaluated on the current population. This approach focuses on optimality—whether a better model could exist—rather than just a drop in accuracy.

Algorithm 1: The Temporal Shift Test

The core framework compares a historical model ($\hat{f}_{t-1}$) and a current model ($\hat{f}_t$) using a metric such as AUC. To find "canaries in the coal mine," the framework includes an automated sub-population discovery mechanism. It trains a secondary model ($h_t$) to identify patient samples where the historical model’s loss is significantly higher than the current model’s loss, effectively isolating the groups most harmed by model rot.

The framework for detecting temporal shift at both the population level and within discovered sub-populations.

Large-Scale Scanning for Non-Stationarity

To evaluate the prevalence of these shifts across a broad clinical spectrum, the authors developed a meta-algorithm (Algorithm 2) to perform a retrospective scan. This scan iterates through hundreds of outcomes and multiple years, utilizing the Benjamini-Hochberg procedure to control for false discoveries during multiple hypothesis testing.

The meta-algorithm for scanning a large collection of tasks to detect non-stationary outcomes over time.

Experimental Setup and Results

The study utilized a large private health insurance claims dataset (2014–2021) containing over 1.6 million patients, formatted in the OMOP Common Data Model (CDM). The researchers evaluated 1,010 distinct tasks derived from 242 healthcare outcomes, including conditions, abnormal lab results, and procedure groups.

The "Iceberg" Effect

The results revealed a significant discrepancy between population-level and sub-population-level shifts. While only 9.7% of tasks showed a shift across the entire population, a staggering 93.0% had at least one sub-population significantly affected. This suggests that model degradation is nearly universal but often localized to specific patient groups.

Clinical Implications and Shift Types

The study categorized detected shifts into three clinically meaningful types:

  • Label Shift: Changes in outcome recording, such as the transition from the MDRD to the CKD-EPI formula for kidney function (eGFR).
  • Domain Shift: Changes in the patient environment, most notably the drop in ER visits and spike in telemedicine during 2020.
  • Conditional Shift: Changes in the relationship between features and outcomes, such as a 2019 Medicare policy change that altered the predictability of certain inpatient consultations.

Conclusion

Temporal shift is a pervasive challenge in clinical machine learning, often hidden beneath the surface of aggregate performance metrics. While the COVID-19 pandemic accelerated many shifts, over a third of the detected non-stationarities occurred prior to 2020, proving that model rot is a constant reality. Future work will focus on developing prospective monitoring tools and efficient model-updating strategies to maintain clinical safety and efficacy over time.

Summary updated

Abstract

Most machine learning models for predicting clinical outcomes are developed using historical data. Yet, even if these models are deployed in the near future, dataset shift over time may result in less than ideal performance. To capture this phenomenon, we consider a task--that is, an outcome to be predicted at a particular time point--to be non-stationary if a historical model is no longer optimal for predicting that outcome. We build an algorithm to test for temporal shift either at the population level or within a discovered sub-population. Then, we construct a meta-algorithm to perform a retrospective scan for temporal shift on a large collection of tasks. Our algorithms enable us to perform the first comprehensive evaluation of temporal shift in healthcare to our knowledge. We create 1,010 tasks by evaluating 242 healthcare outcomes for temporal shift from 2015 to 2020 on a health insurance claims dataset. 9.7% of the tasks show temporal shifts at the population level, and 93.0% have some sub-population affected by shifts. We dive into case studies to understand the clinical implications. Our analysis highlights the widespread prevalence of temporal shifts in healthcare.
BibTeX
@inproceedings{ji2023large,
  author = {Christina X. Ji and Ahmed M. Alaa and David A. Sontag},
  title = {{Large-Scale Study of Temporal Shift in Health Insurance Claims}},
  booktitle = {CHIL},
  year = {2023},
  url = {https://openreview.net/forum?id=ZyzlWrIQtH},
}
Figure