Preventing data leakage in neural decoding
Robert Wong, Michael McCullough, Tianfeng Lu, Shuyu Zhu, Geoffrey J. Goodhill
Washington University in St. Louis · Australian National University
Key points
From the paper's conclusion- Here we show that leakage can be introduced in neural decoding studies by common supervised and unsupervised preprocessing steps, including dimensionality reduction.
Abstract
Neural decoding is a widely-used machine learning technique for investigating how behavior, perception and cognition are represented in neural activity. However without careful application data leakage can occur, where information from the test set contaminates the training set, leading to biased estimates of decoding performance and potentially invalidating biological conclusions. Here we show that leakage can be introduced in neural decoding studies by common supervised and unsupervised preprocessing steps, including dimensionality reduction. We reveal that in some cases leakage can paradoxically decrease decoding performance relative to unbiased estimates, and we provide theoretical analyses explaining how this occurs. We also show that, for autocorrelated neural time series, randomized k-fold cross-validation can dramatically overstate decoding performance. Based on these findings, we provide detailed recommendations for avoiding data leakage in neural decoding.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Stimulus-driven leakage in naturalistic neuroimaging.Imaging neuroscience (Cambridge, Mass.) · 2026
- Local goodness-of-fit measures for neural decoding.bioRxiv : the preprint server for biology · 2026
- SafeLens: A Statistically Controlled Nonlinear Machine Learning Framework for Characterizing Hidden Dynamics in Event-Locked Neural Activity.bioRxiv : the preprint server for biology · 2026
- What Balanced Accuracy Cannot Identify in Neural-Signal Decoding under Test-Time AdaptationarXiv · 2026
- Scaling Neural Motor Decoding via Decoupled Behavioral PretrainingarXiv · 2026
- Decoding Spikes From Multiunit DataIEEE Reviews in Biomedical Engineering · 2026