bioRxivNeurosciencePreprint
Preventing Data Leakage in Neural Decoding
Robert Wong, Michael McCulloughiD, Tianfeng Lu, Shuyu ZhuiD, Geoffrey J. GoodhilliD
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.
- assay: electronic health records
- research focus: benchmarking
- approach: statistical model
- approach: benchmark study
- Citations
- 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
- A latent variable approach to decoding neural population activity
Matthew R Whiteway, Bruno B. Averbeck, Daniel A. Butts·bioRxiv·Jan 6, 2020
- Decodanda: a Python toolbox for best-practice decoding and geometric analysis of neural representations
Lorenzo Posani·bioRxiv·Mar 18, 2026
- Dimensionality reduction for neural population decoding
Charles R. Heller, Stephen V. David·bioRxiv·Apr 18, 2021
- Exploiting correlations across trials and behavioral sessions to improve neural decoding
Yizi Zhang, Hanrui Lyu, … Liam Paninski·NeuronPeer-reviewed·Nov 26, 2025
- Optimizing for generalization in the decoding of internally generated activity in the hippocampus
Matthijs A. A. van der Meer, Alyssa A. Carey, Youki Tanaka·HippocampusPeer-reviewed·Feb 8, 2017
- Inferential Pitfalls In Decoding Neural Representations
Vencislav Popov, Markus Ostarek, Caitlin Tenison·NeuroImagePeer-reviewed·Mar 22, 2018