From development to deployment: dataset shift, causality, and shift-stable models in health AI
Open accessAbstract
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.
Integrity signals
Registry
Cites
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.
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 measuredAI 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 measuredSuccessful 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 measuredSmall 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].”
From Use of artificial intelligence in critical care: opportunities and obstacles (2024) · cites this paper as [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].”
From Validation is not enough: Longitudinal evidence of post-deployment fragility in clinical AI systems (2026) · cites this paper as [18]
A major driver of AI system malfunction is dataset shift.
“A major driver of AI system malfunction is known as “dataset shift.”4,5”
From The Clinician and Dataset Shift in Artificial Intelligence (2021) · cites this paper as [4]
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
Zech, J. R., Badgeley, M. A., Liu, M., Costa, A. B., Titano, J. J., & Oermann, E. K. (2018) · PLOS Medicine · doi:10.1371/journal.pmed.1002683 · Cited by 1,719 · see citing works
Intelligible Models for HealthCare: Predicting Pneumonia Risk and Hospital 30-day Readmission
Caruana, R., Lou, Y., Gehrke, J., Koch, P., Sturm, M., & Elhadad, N. (2015) · Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining · doi:10.1145/2783258.2788613 · Cited by 1,685 · see citing works
Yu, B. (2013) · Bernoulli · doi:10.3150/13-bejsp14 · Cited by 113 · see citing works
Flagged first, then by citations
Research works printed but not linked: 25
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- PEARL, J. (1988). Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. San Francisco, CA: Morgan Kaufmann.
- PEARL, J. (2000). Causality. Cambridge, MA: MIT Press.
- Burgard, W. and Roth, D. (editors), Proceedings of the Twenty-Fifth AAAI Conference on Artificial Intelligence. San Francisco, California, USA: AAAI Press.
- QUIÑONERO-CANDELA, J., SUGIYAMA, M., SCHWAIGHOFER,A.AND LAWRENCE, N. D. (2009). Dataset Shift in Machine Learning. Cambridge, MA: The MIT Press.
- 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.
- 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
- 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.
- 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.
- SHIMODAIRA, H. (2000). Improving predictive inference under covariate shift by weighting the log-likelihood function. Journal of Statistical Planning and Inference 90, 227-244.
- SHPITSER, I. AND TCHETGEN TCHETGEN, E. (2016). Causal inference with a graphical hierarchy of interventions. Annals of Statistics 44, 2433.
- 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.
- 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
- 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.
- 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.
- 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.
- 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
- 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
Vasey, B., Nagendran, M., Campbell, B., Clifton, D. A., Collins, G. S., Denaxas, S., Denniston, A. K., Faes, L., Geerts, B., Ibrahim, M., et al. (2022) · Nature Medicine · doi:10.1038/s41591-022-01772-9 · Cited by 1,039 · see citing works
Self-citationThe Clinician and Dataset Shift in Artificial Intelligence
Finlayson, S. G., Subbaswamy, A., Singh, K., Bowers, J., Kupke, A., Zittrain, J., Kohane, I. S., & Saria, S. (2021) · New England Journal of Medicine · doi:10.1056/nejmc2104626 · Cited by 855 · see citing works
Self-citationAlgorithmic fairness in artificial intelligence for medicine and healthcare
Chen, R. J., Wang, J. J., Williamson, D. F. K., Chen, T. Y., Lipkova, J., Lu, M. Y., Sahai, S., & Mahmood, F. (2023) · Nature Biomedical Engineering · doi:10.1038/s41551-023-01056-8 · Cited by 750 · see citing works
Minimum information about clinical artificial intelligence modeling: the MI-CLAIM checklist.
Norgeot, B., Quer, G., Beaulieu-Jones, B. K., Torkamani, A., Dias, R., Gianfrancesco, M., Arnaout, R., Kohane, I. S., Saria, S., Topol, E., et al. (2020) · Nature Medicine · doi:10.1038/s41591-020-1041-y · Cited by 632 · see citing works
Self-citationVasey, B., Nagendran, M., Campbell, B., Clifton, D. A., Collins, G. S., Denaxas, S., Denniston, A. K., Faes, L., Geerts, B., Ibrahim, M., et al. (2022) · BMJ · doi:10.1136/bmj-2022-070904 · Cited by 665 · see citing works
Self-citationEthical Machine Learning in Healthcare
Chen, I. Y., Pierson, E., Rose, S., Joshi, S., Ferryman, K., & Ghassemi, M. (2021) · Annual Review of Biomedical Data Science · doi:10.1146/annurev-biodatasci-092820-114757 · Cited by 645 · see citing works
Larson, D. B., Harvey, H., Rubin, D. L., Irani, N., Tse, J. R., & Langlotz, C. P. (2021) · Journal of the American College of Radiology · doi:10.1016/j.jacr.2020.09.060 · Cited by 198 · see citing works
Use of artificial intelligence in critical care: opportunities and obstacles
Pinsky, M. R., Bedoya, A., Bihorac, A., Celi, L., Churpek, M., Economou-Zavlanos, N. J., Elbers, P., Saria, S., Liu, V., Lyons, P. G., et al. (2024) · Critical Care · doi:10.1186/s13054-024-04860-z · Cited by 160 · see citing works
“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].”
BackgroundSelf-citationHenry, K. E., Adams, R., Parent, C., Soleimani, H., Sridharan, A., Johnson, L., Hager, D. N., Cosgrove, S. E., Markowski, A., Klein, E. Y., et al. (2022) · Nature Medicine · doi:10.1038/s41591-022-01895-z · Cited by 127 · see citing works
Self-citationEmpirical data drift detection experiments on real-world medical imaging data
Kore, A., Abbasi Bavil, E., Subasri, V., Abdalla, M., Fine, B., Dolatabadi, E., & Abdalla, M. (2024) · Nature Communications · doi:10.1038/s41467-024-46142-w · Cited by 124 · see citing works
“…is to detect clinically important changes which might have been caused by changes in the underlying population of patients, disease prevalence, equipment changes, practice/referral pattern among many other factors, and facilitate intervention (retain, warn users, retire model) promptly 6,28,35 .”
Enhancing trust in AI through industry self-governance.
Roski, J., Maier, E. J., Vigilante, K., Kane, E. A., & Matheny, M. E. (2021) · Journal of the American Medical Informatics Association · doi:10.1093/jamia/ocab065 · Cited by 83 · see citing works
Gomez-Cabello, C. A., Borna, S., Pressman, S., Haider, S. A., Haider, C. R., & Forte, A. J. (2024) · European Journal of Investigation in Health, Psychology and Education · doi:10.3390/ejihpe14030045 · Cited by 74 · see citing works
Harmon, D. M., Mangold, K., Baez Suarez, A., Scott, C. G., Murphree, D. H., Malik, A., Attia, Z. I., Lopez-Jimenez, F., Friedman, P. A., Dispenzieri, A., et al. (2023) · JACC: Advances · doi:10.1016/j.jacadv.2023.100612 · Cited by 47 · see citing works
Sustainable deployment of clinical prediction tools—a 360° approach to model maintenance
Davis, S. E., Embí, P. J., & Matheny, M. E. (2024) · Journal of the American Medical Informatics Association · doi:10.1093/jamia/ocae036 · Cited by 46 · see citing works
Advancing healthcare AI governance through a comprehensive maturity model based on systematic review
Hussein, R., Zink, A., Ramadan, B., Howard, F. M., Hightower, M., Shah, S., & Beaulieu-Jones, B. K. (2026) · npj Digital Medicine · doi:10.1038/s41746-026-02418-7 · Cited by 42 · see citing works
Fair Machine Learning in Healthcare: A Survey
Feng, Q., Du, M., Zou, N., & Hu, X. (2025) · IEEE Transactions on Artificial Intelligence · doi:10.1109/tai.2024.3361836 · Cited by 12 · see citing works
Reimagining cancer treatments in the era of generative AI
Derbal, Y. (2025) · DIGITAL HEALTH · doi:10.1177/20552076251394631 · Cited by 4 · see citing works
Validation is not enough: Longitudinal evidence of post-deployment fragility in clinical AI systems
Kopanitsa, G. (2026) · PLOS Digital Health · doi:10.1371/journal.pdig.0001534 · Cited by 3 · see citing works
- Authors
- Subbaswamy, A., & Saria, S.
- Affiliations
- Johns Hopkins University (US)
- Corresponding author
- Saria, Suchi
- Venue
- Biostatistics
- Publisher
- Oxford University Press (OUP)
- 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
- bronze
- doi.org
- Licence
- academic.oup.com/journals/pages/open_access/funder_policies/chorus/standard_publication_model (vor)
- 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