Nature CommunicationsNeurosciencePeer-reviewed journal article
The effects of data leakage on connectome-based machine learning models
Matthew RosenblattiD, Link TejavibulyaiD, Rongtao JiangiD, Stephanie NobleiD, Dustin ScheinostiD
Abstract
Predictive modeling has now become a central technique in neuroimaging to identify complex brain-behavior relationships and test their generalizability to unseen data. However, data leakage, which unintentionally breaches the separation between data used to train and test the model, undermines the validity of predictive models. Previous literature suggests that leakage is generally pervasive in machine learning, but few studies have empirically evaluated the effects of leakage in neuroimaging data. Although leakage is always an incorrect practice, understanding the effects of leakage on neuroimaging predictive models provides insight into the extent to which leakage may affect the literature. Here, we investigated the effects of leakage on machine learning models in two common neuroimaging modalities, functional and structural connectomes. Using over 400 different pipelines spanning four large datasets and three phenotypes, we evaluated five forms of leakage fitting into three broad categories: feature selection, covariate correction, and lack of independence between subjects. As expected, leakage via feature selection and repeated subjects drastically inflated prediction performance. Notably, other forms of leakage had only minor effects (e.g., leaky site correction) or even decreased prediction performance (e.g., leaky covariate regression). In some cases, leakage affected not only prediction performance, but also model coefficients, and thus neurobiological interpretations. Finally, we found that predictive models using small datasets were more sensitive to leakage. Overall, our results illustrate the variable effects of leakage on prediction pipelines and underscore the importance of avoiding data leakage to improve the validity and reproducibility of predictive modeling.
- Citations
- 236
- FWCI
- 57.20
- Field percentile
- top 1%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Stimulus-Driven Leakage in Naturalistic Neuroimaging
Seung‐Goo Kim·bioRxiv·Apr 1, 2025
- Overlooked features lead to divergent neurobiological interpretations of brain-based machine learning biomarkers
Brendan D. Adkinson, Matthew Rosenblatt, … Dustin Scheinost·bioRxiv·Mar 12, 2025
- Brain-phenotype predictions can survive across diverse real-world data
Brendan D. Adkinson, Matthew Rosenblatt, … Dustin Scheinost·bioRxiv·Jan 23, 2024
- Rescuing missing data in connectome-based predictive modeling
Qinghao Liang, Rongtao Jiang, … Dustin Scheinost·Imaging NeurosciencePeer-reviewed·Jan 4, 2024
- Network level enrichment provides a framework for biological interpretation of machine learning results
J. Jenny Li, Ari Segel, … Muriah D. Wheelock·Network NeurosciencePeer-reviewed·Jan 1, 2024
- Preventing Data Leakage in Neural Decoding
Robert Wong, Michael McCullough, … Geoffrey J. Goodhill·bioRxiv·Jun 29, 2026