A Causal Framework for Mitigating Data Shifts in Healthcare

Kurt Butler, Stephanie Riley, Damian Machlanski, Edward Moroshko, Panagiotis Dimitrakopoulos, Thomas Melistas, Akchunya Chanchal, Konstantinos Vilouras, Zhihua Liu, Steven McDonagh, Hana Chockler, Prof Ben Glocker, Niccolò Tempini, Matthew Sperrin, Sotirios Tsaftaris, Ricardo Luis Silva · DOI

Abstract: Developing predictive models that perform reliably across diverse patient populations and heterogeneous environments is a core aim of medical research. However, generalization is only possible if the learned model is robust to statistical differences between data used for training and data seen at the time and place of deployment. Domain generalization methods provide strategies to address data shifts, but each method comes with its own set of assumptions and trade-offs. To apply these methods in healthcare, we must understand how domain shifts arise, what assumptions we prefer to make, and what our design constraints are. This article proposes a causal framework for the design of predictive models to improve generalization. Causality provides a powerful language to characterize and understand diverse domain shifts, regardless of data modality. This allows us to pinpoint why models fail to generalize, leading to more principled strategies to prepare for and adapt to shifts. We recommend general mitigation strategies, discussing trade-offs and highlighting existing work. Our causality-based perspective offers a critical foundation for developing robust, interpretable, and clinically relevant AI solutions in healthcare, paving the way for reliable real-world deployment.

Introduction: The Challenge of Data Shift in Healthcare

Predictive models in healthcare often exhibit a "Sepsis Paradox": a model that performs exceptionally well in a controlled trial or at its training site may fail significantly when deployed in a new hospital environment. This failure is typically caused by "data shift"—statistical differences between the training data and the deployment data. These shifts can stem from various sources, such as differences in monitoring equipment, clinical protocols, or patient demographics.

Standard machine learning approaches often treat data shift as a purely statistical problem, employing "black-box" fixes like importance weighting. However, these methods can be ambiguous regarding the underlying causal origins of the shift. Without understanding why the data changed, mitigation strategies may inadvertently degrade model performance. This paper introduces a formal causal framework to diagnose and address these shifts systematically.

The Causal Roadmap for Model Design

The authors propose a four-stage conceptual roadmap to guide the development of robust predictive models:

  1. Problem Conceptualization: Define the prediction target, identify available data, and hypothesize potential sources of variation (e.g., changes in hospital policy or sensor calibration).
  2. Causal Description: Translate the conceptual model into Augmented Causal Graphs (ACGs). ACGs extend standard causal diagrams by incorporating "shift variables" (represented as squares). These variables explicitly model how different environments or "regimes" influence specific components of the system.
Augmented Causal Graph (ACG) illustrating shift variables and latent factors.
  1. Feasibility Analysis: Determine if a stable relationship exists between features and the target. This stage identifies which variables are "stable" across environments and which are "unstable," helping researchers decide if additional data collection is necessary or if the prediction task is fundamentally ill-posed under current constraints.
  2. Deployment Strategies: Select appropriate mathematical tools based on the causal map. Strategies may include Invariant Risk Minimization (IRM), Stable Feature Selection, or Causal Re-weighting.

Key Insights: Causal vs. Anti-Causal Shifts

A critical distinction in this framework is the direction of the relationship between the features and the prediction target.

  • Causal Shift: Occurs when predicting an effect from a cause (e.g., predicting a lab result from a disease).
  • Anti-Causal Shift: Occurs when predicting a cause from an effect (e.g., diagnosing a disease from symptoms).

Shifts affect these two directions differently. For instance, "anti-causal" models are often more sensitive to changes in disease prevalence. By mapping these relationships, researchers can treat environmental changes as explicit interventions on the data-generating process.

Comparison between classical statistical descriptions of covariate shift and more granular causal descriptions.

Furthermore, the framework highlights that many healthcare shifts, such as measurement recalibration, cannot be resolved by simple re-weighting. Instead, they require "dereferencing" or denoising strategies that are only justifiable through a causal lens.

Case Studies and Qualitative Results

The framework was applied to three high-impact scenarios in healthcare literature:

  • Skin Lesion Classification: The framework pinpointed how models often rely on "shortcuts," such as surgical skin markings (purple ink), rather than the lesion's features. Causal analysis helps identify these spurious correlations.
  • Dementia Severity Prognosis: Using the ADNI dataset, the authors showed that shifts in drug prescription policies (e.g., Donepezil) could mislead models. Excluding these "unstable" variables resulted in models that were more reliable across different clinical sites, even if they appeared less accurate on training data.
  • Hospital Readmission: The framework analyzed selection bias (Berkson’s bias) in heart failure and asthma patients. It demonstrated how Inverse Probability Weighting (IPW) can "undo" selection bias, allowing models trained in specialized acute care settings to generalize to community hospitals.

Limitations and Future Outlook

While powerful, the causal framework requires significant domain expertise to construct accurate graphs. A "misspecified" graph—where variables or causal directions are incorrectly identified—can still lead to model failure. Additionally, complex socio-technical shifts, such as changes in professional norms, remain difficult to capture mathematically.

Future research should focus on automated causal discovery to assist in building these graphs from data and developing clinically relevant evaluation metrics that prioritize robustness across heterogeneous environments over simple aggregate accuracy.

Summary updated

BibTeX
@misc{butler2026causal,
  author = {Kurt Butler and Stephanie Riley and Damian Machlanski and Edward Moroshko and Panagiotis Dimitrakopoulos and Thomas Melistas and Akchunya Chanchal and Konstantinos Vilouras and Zhihua Liu and Steven McDonagh and Hana Chockler and Prof Ben Glocker and Niccolò Tempini and Matthew Sperrin and Sotirios Tsaftaris and Ricardo Luis Silva},
  title = {{A Causal Framework for Mitigating Data Shifts in Healthcare}},
  year = {2026},
  eprint = {2603.13595},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.13595},
}
Figure