Skip to main content
QUICK REVIEW

[Paper Review] Mind the Performance Gap: Examining Dataset Shift During Prospective Validation

Erkin Ötleş, Jeeheh Oh|arXiv (Cornell University)|Jul 23, 2021
Machine Learning in HealthcareComputer Science26 references9 citations
TL;DR

This study investigates the performance gap between retrospective and prospective validation of a machine learning model for predicting healthcare-associated infections, finding that infrastructure shift—differences in data extraction and preprocessing pipelines—was the primary driver of performance decline, not temporal shifts in patient populations or clinical workflows. The model's AUROC dropped from 0.778 (retrospective) to 0.767 (prospective), with the gap largely attributable to data pipeline inconsistencies rather than clinical changes.

ABSTRACT

Once integrated into clinical care, patient risk stratification models may perform worse compared to their retrospective performance. To date, it is widely accepted that performance will degrade over time due to changes in care processes and patient populations. However, the extent to which this occurs is poorly understood, in part because few researchers report prospective validation performance. In this study, we compare the 2020-2021 ('20-'21) prospective performance of a patient risk stratification model for predicting healthcare-associated infections to a 2019-2020 ('19-'20) retrospective validation of the same model. We define the difference in retrospective and prospective performance as the performance gap. We estimate how i) "temporal shift", i.e., changes in clinical workflows and patient populations, and ii) "infrastructure shift", i.e., changes in access, extraction and transformation of data, both contribute to the performance gap. Applied prospectively to 26,864 hospital encounters during a twelve-month period from July 2020 to June 2021, the model achieved an area under the receiver operating characteristic curve (AUROC) of 0.767 (95% confidence interval (CI): 0.737, 0.801) and a Brier score of 0.189 (95% CI: 0.186, 0.191). Prospective performance decreased slightly compared to '19-'20 retrospective performance, in which the model achieved an AUROC of 0.778 (95% CI: 0.744, 0.815) and a Brier score of 0.163 (95% CI: 0.161, 0.165). The resulting performance gap was primarily due to infrastructure shift and not temporal shift. So long as we continue to develop and validate models using data stored in large research data warehouses, we must consider differences in how and when data are accessed, measure how these differences may affect prospective performance, and work to mitigate those differences.

Motivation & Objective

  • To investigate the causes of performance degradation in machine learning models when transitioning from retrospective to prospective validation in clinical settings.
  • To distinguish between the effects of temporal shift (changes in patient populations and clinical workflows) and infrastructure shift (differences in data access, extraction, and transformation pipelines).
  • To quantify the contribution of each shift type to the performance gap in a real-world patient risk stratification model for healthcare-associated infections.
  • To highlight the need for more representative retrospective data pipelines that mirror real-time data access in clinical deployment.
  • To advocate for prospective validation as a critical step in evaluating model performance before clinical deployment.

Proposed method

  • The authors compare retrospective model performance (2019–2020) with prospective performance (2020–2021) on 26,864 hospital encounters at a single academic medical center.
  • They define the performance gap as the difference in AUROC and Brier score between retrospective and prospective validation.
  • They decompose the performance gap into two components: temporal shift (clinical workflow and patient population changes) and infrastructure shift (differences in data pipeline access and preprocessing).
  • They use statistical inference to assess performance differences over time, including month-by-month comparisons and feature-level analysis of data availability and stability.
  • They analyze changes in feature distributions (e.g., location, admission type, medication orders) between the two periods to assess the impact of infrastructure and temporal shifts.
  • They evaluate model calibration and discrimination performance using AUROC and Brier score, with 95% confidence intervals.

Experimental results

Research questions

  • RQ1What is the magnitude of the performance gap between retrospective and prospective validation of a clinical risk prediction model?
  • RQ2To what extent is the performance gap driven by temporal shift (changes in patient populations and clinical workflows) versus infrastructure shift (differences in data access and preprocessing)?
  • RQ3How do changes in data availability and feature stability over time affect model performance in real-world deployment?
  • RQ4Does the model’s discriminative performance deteriorate over time due to clinical or operational changes during the pandemic?
  • RQ5Can prospective validation help identify and quantify sources of performance degradation not captured by retrospective evaluation?

Key findings

  • The model’s AUROC decreased from 0.778 (95% CI: 0.744–0.815) in retrospective validation (2019–2020) to 0.767 (95% CI: 0.737–0.801) in prospective validation (2020–2021), indicating a measurable performance gap.
  • The performance gap was primarily driven by infrastructure shift—differences in data extraction and preprocessing pipelines—rather than temporal shifts in patient populations or clinical workflows.
  • Temporal shifts, including changes due to the COVID-19 pandemic (e.g., new patient units, altered patient volume), did not worsen discriminative performance and even slightly improved it in some months, such as March 2020.
  • Calibration performance was negatively affected by temporal shift, indicating that while discrimination remained stable, model reliability in probability estimation declined.
  • Medication administration data were more stable over time than vital signs, which were often backdated in retrospective data, highlighting pipeline-specific inconsistencies.
  • The study underscores that retrospective data warehouses may not accurately reflect real-time data availability, leading to overly optimistic performance estimates in model development.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.