Cited by 276Machine Learning in HealthcareArtificial Intelligence in Healthcare and EducationDomain Adaptation and Few-Shot Learning

From development to deployment: dataset shift, causality, and shift-stable models in health AI

Open access
Subbaswamy, Adarsh, Saria, Suchi·2019·Biostatistics

Abstract

The deployment of machine learning (ML) and statistical models is beginning to transform the practice of healthcare, with models now able to help clinicians diagnose conditions like pneumonia and skin cancer, and to predict which hospital patients are at risk of adverse events such as septic shock. A major concern, however, is that model performance is heavily tied to details particular to the dataset the model was developed on—even slight deviations from the training conditions can result in wildly different performance. For example, when researchers trained a model to diagnose pneumonia from chest X-rays using data from one health system, but evaluated on data from an external health system, they found the model performed significantly worse than it did internally (Zech and others, 2018). The model failed to generalize (i.e., predict accurately) due to the shifts between the training conditions (health system one) and the deployment/testing conditions (health system two). These shifts are very common when moving a model from the training phase to deployment and can take a variety of forms, including changes in patient demographics, disease prevalence, measurement timing, equipment, treatment patterns, and more. Beyond contributing to poor performance, failing to account for shifts can also lead to dangerous decisions in practice: the system can fail to diagnose severely ill patients or recommend harmful treatments. This problem of shifting conditions which prevent generalization is referred to as dataset shift (Quiñonero-Candela and others, 2009), and in this article, we explain what it is, why it occurs, give an overview of the types of existing solutions, and discuss open challenges that remain. Generalization is crucial for successfully deploying models since we want model predictions to be accurate when applied to new situations that were not in the training dataset. In order to ensure that a model will generalize, a core requirement is to check that the model or learning procedure satisfies the stability property: is model performance robust when the data are perturbed in various ways? In particular, when addressing dataset shift, we want models to be stable to perturbations in (i.e., shifts in) how the data were generated—such as changes to patient demographics or clinician treatment patterns—as opposed to leave-one-out sampling perturbations (Yu, 2013; Giordano and others, 2019; Yu and Kumbier, 2019) or adversarial perturbations of model inputs (Madry and others, 2018; Hendrycks and Dietterich, 2019). Dataset shift is of particular importance because it frequently occurs when deploying models, is difficult to test stability against (as we will discuss later), and is highly relevant to the ongoing discussion about the challenges of regulating ML-driven medical devices (U.S. Food and Drug Administration, 2019) (see accompanying Stern and Price (2020) for more on this). Consider the mortality risk prediction model trained by Caruana and others (2015) on a dataset of hospitalized pneumonia patients, using information such as lab measurements, vital signs, and comorbidities. While the model had high predictive accuracy on one dataset, it was unstable to shifts in the choices driving which patients get admitted to the ICU versus the floor. As a result, when they evaluated it for triaging pneumonia patients upon ED presentation, they found that their model incorrectly predicted lower risk for patients with pneumonia and asthma versus those with only pneumonia. This shift in ICU admission policy, while subtle, had big implications: had the model been deployed for triage, it would have greatly endangered asthmatic pneumonia patients by suggesting they should be sent home. In machine learning, a policy is defined as a distribution over the possible actions that can be taken in any given scenario. Even subtle shifts in when or whether or not a lab was ordered can impact predictions—these forms of shifts are called policy shifts (Schulam and Saria, 2017). More generally, dataset shifts can come in various forms (from shifts in patient demographics to policy shifts in measurement frequency), which makes dataset shift challenging to address. Given that dataset shift is highly varied and can lead to dangerous failures if left unaccounted for, what should we do to address it? Typically, learning methods are developed on a specific dataset. A common practice for moving the model to a different setting is to adapt or re-learn using a dataset obtained from this new setting. The challenge with this approach is that it is unrealistic to assume that data from all possible deployment settings are available upfront. Within a failure prevention paradigm, developers anticipate and guard against likely sources of shifts between environments during model learning without the need for data from each setting (Saria and Subbaswamy, 2019). This involves three main components: (i) determining likely shifts we want models to be rob

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1093/biostatistics/kxz041

Cites

3 of 3 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Predictive systems that do not explicitly account for causal structure are brittle to policy and workflow changes, even when statistical properties appear similar.

    “Subbaswamy and Saria emphasize that predictive systems that do not explicitly account for causal structure are brittle to policy and workflow changes, even when statistical properties appear similar [18].”

    From Validation is not enough: Longitudinal evidence of post-deployment fragility in clinical AI systems (2026) · cites this paper as [18]

    The opening discussion describes a pneumonia-risk model that performed well on one dataset but was vulnerable to a subtle change in ICU admission policy. Sections 1 and 2 explain how causal graphs can identify susceptibility to policy and clinical-practice shifts. The paper does not establish the added claim that this brittleness persists when statistical properties appear similar. (LLM, conf=0.85)

    Experimental — accuracy not yet measured
  • AI tools that learn from their outputs through feedback loops must be closely monitored, as unchecked adjustments can amplify errors or biases over time.

    “AI tools that learn from their outputs through feedback loops must be closely monitored, as unchecked adjustments can amplify errors or biases over time14,19.”

    From Advancing healthcare AI governance through a comprehensive maturity model based on systematic review (2026) · cites this paper as [19]

    Section 4, “Open Challenges and Looking Forward” (page not provided), calls monitoring and maintenance critical because unanticipated dataset shifts can make deployed models stale and cause performance decay. It does not describe tools learning from their own outputs through feedback loops or unchecked adjustments amplifying errors or biases over time. (LLM, conf=0.84)

    Experimental — accuracy not yet measured
  • Successful recognition and mitigation of dataset shift require both vigilant clinicians and sound technical oversight through AI governance teams.

    “Successful recognition and mitigation of dataset shift require both vigilant clinicians and sound technical oversight through AI governance teams.4,5”

    From The Clinician and Dataset Shift in Artificial Intelligence (2021) · cites this paper as [4]

    Section 4, “Open Challenges and Looking Forward” (page not supplied), calls for monitoring to detect shifts, maintenance to address them, and collaboration with domain experts when constructing models. It does not say that vigilant clinicians and AI governance teams are both required for this work. (LLM, conf=0.86)

    Experimental — accuracy not yet measured
  • Small changes in data distribution between training and clinical evaluation populations (dataset shift) can lead to substantial variation in clinical performance and expose patients to potential unexpected harm.

    “Small changes in the distribution of the underlying data between the algorithm training and clinical evaluation populations (i.e., dataset shift) can lead to substantial variation in clinical performance and expose patients to potential unexpected harm [21, 22].”
  • Degradation may be linked to how data are produced within evolving workflows and information systems, not only to who the patients are.

    “This supports a workflow-aware interpretation of post-deployment fragility: degradation may be linked to how data are produced within evolving workflows and information systems, not only to who the patients are [8,18,33,35].”

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 25

  1. FUNK, M. J., WESTREICH, D., WIESEN, C., STÜRMER, T., BROOKHART, M. A. AND DAVIDIAN, M. (2011). Doubly robust estimation of causal effects. American Journal of Epidemiology 173, 761-767.
  2. GIORDANO, R., STEPHENSON, W., LIU, R., JORDAN, M. AND BRODERICK, T. (2019). A Swiss army infinitesimal jackknife. In: Chaudhuri, K. and Sugiyama, M. (editors), Proceedings of the The 22nd International Conference on Artificial Intelligence and Statistics. Naha, Okinawa, Japan, PP. 1139-1147.
  3. GRETTON, A., SMOLA, A., HUANG, J., SCHMITTFULL, M., BORGWARDT, K. AND SCHÖLKOPF, B. (2009). Covariate shift by kernel mean matching. In: Quiñonero-Candela, J., Sugiyama, M., Schwaighofer, A. and Lawrence, N. D. (editors), Dataset Shift in Machine Learning. Cambridge, MA: The MIT Press, pp. 131-160.
  4. HENDRYCKS, D. AND DIETTERICH, T. (2019). Benchmarking neural network robustness to common cor- ruptions and perturbations. In: Levine, S., Livescu, K. and Mohamed, S. (editors), Proceedings of the 7th International Conference on Learning Representations. New Orleans, LA, USA: OpenReview.net, https://openreview.net/forum?id=HJz6tiCqYm.
  5. HUANG, J., GRETTON, A., BORGWARDT, K., SCHÖLKOPF, B. AND SMOLA, A. J. (2007). Correcting sample selection bias by unlabeled data. In: Schölkopf, B. Platt, J. C. and Hoffman, T. (editors), Advances in Neural Information Processing Systems 19. Cambridge, MA: MIT Press, pp. 601-608.
  6. MADRY, A., MAKELOV, A., SCHMIDT, L., TSIPRAS, D. AND VLADU, A. (2018). Towards deep learning mod- els resistant to adversarial attacks. In: Murray, I., Ranzato, M. A. and Vinyals, O. (editors), Proceedings of the 6th International Conference on Learning Representations. Vancouver, BC, Canada: OpenReview.net, https://openreview.net/forum?id=rJzIBfZAb.
  7. MAGLIACANE, S., van OMMEN, T., CLAASSEN, T., BONGERS, S., VERSTEEG, P. AND MOOIJ, J. M. (2018). Domain adaptation by using causal inference to predict invariant conditional distributions. In: Bengio, S., Wallach, H., Larochelle, H., Grauman, K., Cesa-Bianchi, N. and Garnett, R. (editors), Proceedings of Advances in Neural Information Processing Systems 31 (NIPS 2018). Montreal, Canada, pp. 10846-10856.
  8. NESTOR, B., MCDERMOTT, M. B. A., BOAG, W., BERNER, G., NAUMANN, T., HUGHES, M. C., Goldenberg, A. and Ghassemi, M. (2019). Feature robustness in non-stationary health records: caveats to deployable model perfor- mance in common clinical machine learning tasks. In: Doshi-Velez, F., Fackler, J., Kale, D. C., Wallace, B. C. and Wiens, J. (editors), Proceedings of the 4th Conference on Machine Learning in Healthcare. Ann Arbor, Michigan, USA.
  9. PEARL, J. (1988). Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. San Francisco, CA: Morgan Kaufmann.
  10. PEARL, J. (2000). Causality. Cambridge, MA: MIT Press.
  11. Burgard, W. and Roth, D. (editors), Proceedings of the Twenty-Fifth AAAI Conference on Artificial Intelligence. San Francisco, California, USA: AAAI Press.
  12. QUIÑONERO-CANDELA, J., SUGIYAMA, M., SCHWAIGHOFER,A.AND LAWRENCE, N. D. (2009). Dataset Shift in Machine Learning. Cambridge, MA: The MIT Press.
  13. ROJAS-CARULLA, M., SCHÖLKOPF, B., TURNER, R. AND PETERS, J. (2018). Invariant Models for Causal Transfer Learning. Journal of Machine Learning Research: JMLR 19, 1-34.
  14. ROTHENHÄUSLER, D., MEINSHAUSEN, N., BÜHLMANN, P. AND PETERS, J. (2018). Anchor regression: heterogeneous data meets causality. Available at https://arxiv.org/pdf/1801.06229.pdf. · arXiv
  15. SARIA, S. AND SUBBASWAMY, A. (2019). Tutorial: safe and reliable machine learning. In: Morgenstern, J. and Boyd, D. (editors), Proceedings of the Conference on Fairness, Accountability, and Transparency, FAT* 2019. Atlanta, GA: ACM.
  16. SCHULAM, P.AND SARIA, S. (2017). Reliable decision support using counterfactual models. In: Guyon, I., von Luxburg, U., Bengio, S., Wallach, H. M., Fergus, R., Vishwanathan, S. V. N. and Garnett, R. (editors), Proceedings of Advances in Neural Information Processing Systems 30 (NIPS 2017). Long Beach, CA, pp. 1697-1708.
  17. SHIMODAIRA, H. (2000). Improving predictive inference under covariate shift by weighting the log-likelihood function. Journal of Statistical Planning and Inference 90, 227-244.
  18. SHPITSER, I. AND TCHETGEN TCHETGEN, E. (2016). Causal inference with a graphical hierarchy of interventions. Annals of Statistics 44, 2433.
  19. STORKEY, A. (2009) When training and test sets are different: characterizing learning transfer. In: Quiñonero-Candela, J., Sugiyama, M., Schwaighofer, A. and Lawrence, N. D. (editors), Dataset Shift in Machine Learning. Cambridge, MA, USA: The MIT Press, pp. 2-28.
  20. SUBBASWAMY, A., CHEN, B. AND SARIA, S. (2019a). A universal hierarchy of shift-stable distributions and the tradeoff between stability and performance. Available at https://arxiv.org/pdf/1905.11374.pdf. · arXiv
  21. SUBBASWAMY, A. AND SARIA, S. (2018). Counterfactual Normalization: proactively addressing dataset shift and improving reliability using causal mechanisms. In: Globerson, A. and Silva, R. (editors). Proceedings of the Thirty-Fourth Conference on Uncertainty in Artificial Intelligence. Monterey, CA, pp. 947-957.
  22. SUBBASWAMY, A., SCHULAM, P. AND SARIA, S. (2019b). Preventing failures due to dataset shift: learning predictive models that transport. In: Chaudhuri, K. and Sugiyama, M. (editors), Proceedings of The 22nd International Conference on Artificial Intelligence and Statistics. Okinawa, Naha, Japan, pp. 3118-3127.
  23. SUGIYAMA, M., BLANKERTZ, B., KRAULEDAT, M., DORNHEGE, G. AND MÜLLER, K.-R. (2006). Importance-weighted cross-validation for covariate shift. In: Franke K., Müller KR., Nickolay B. and Schäfer R. (editors), Pattern Recognition. Lecture Notes in Computer Science, vol 4174. Berlin, Heidelberg: Springer.
  24. YU, B. AND KUMBIER, K. (2019). Three principles of data science: predictability, computability, and stability (PCS). Available at https://arxiv.org/pdf/1901.08152.pdf. · arXiv
  25. ZHANG, K., SCHÖLKOPF, B., MUANDET, K. AND WANG, Z. (2013). Domain adaptation under target and conditional shift. In: Dasgupta, S. and McAllester, D. (editors), Proceedings of the 30th International Conference on Machine Learning. Atlanta, GA, USA, pp. 819-827. [Received September 25, 2019; revised September 25, 2019; accepted for publication September 25, 2019]

Cited by

Sorted by citations

Authors
Subbaswamy, A., & Saria, S.
Affiliations
Johns Hopkins University (US)
Corresponding author
Saria, Suchi
Venue
Biostatistics
Published
2019-11-19
Volume
21
Issue
2
Pages
345-352
ISSN
  • 1465-4644 (ISSN-L)
  • 1468-4357
OpenAlex
W2990519034
Cited by
276
References
3
Citations by year
2026: 77 · 2025: 48 · 2024: 41 · 2023: 37 · 2022: 31 · 2021: 26 · 2020: 14 · 2019: 2
FWCI
8.42
Type
journal article
Language
en
Open access
Locations
  • Biostatistics (publishedVersion)
  • PubMed (publishedVersion)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
Keywords
distribution shift, health AI, model generalization, model stability, causal inference, causal effect estimation, model deployment, generalizability, clinical decision support
MeSH terms
Artificial Intelligence, Humans, Models, Theoretical, Mortality, Causality, Biomedical Research, Biostatistics, Datasets as Topic

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review