bioRxivNeurosciencePreprint
I TRIED A BUNCH OF THINGS: THE DANGERS OF UNEXPECTED OVERFITTING IN CLASSIFICATION
Michael A. PowelliD, Mahan N. G. HosseiniiD, John James CollinsiD, Chloe Callahan- FlintoftiD, William JonesiD, Howard BowmaniD, Brad WybleiD
Abstract
Machine learning is a powerful set of techniques that has enhanced the abilities of neuroscientists to interpret information collected through EEG, fMRI, and MEG data. With these powerful techniques comes the danger of overfitting of hyper-parameters which can render results invalid, and cause a failure to generalize beyond the data set. We refer to this problem as over-hyping and show that it is pernicious despite commonly used precautions. In particular, over-hyping occurs when an analysis is run repeatedly with slightly different analysis parameters and one set of results is selected based on the analysis. When this is done, the resulting method is unlikely to generalize to a new dataset, rendering it a partially, or perhaps even completely spurious result that will not be valid outside of the data used in the original analysis. While it is commonly assumed that cross-validation is an effective protection against such spurious results generated through overfitting or overhyping, this is not actually true. In this article, we show that both one-shot and iterative optimization of an analysis are prone to over-hyping, despite the use of cross-validation. We demonstrate that non-generalizable results can be obtained even on non-informative (i.e. random) data by modifying hyper-parameters in seemingly innocuous ways. We recommend a number of techniques for limiting over-hyping, such as lock-boxes, blind analyses, pre-registrations, and nested cross-validation. These techniques, are common in other fields that use machine learning, including computer science and physics. Adopting similar safeguards is critical for ensuring the robustness of machine-learning techniques in the neurosciences.
- Citations
- 32
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
- Three simple steps to improve the interpretability of EEG-SVM studies
Coralie Joucla, Damien Gabriel, … Émmanuel Haffen·Journal of NeurophysiologyPeer-reviewed·Sep 28, 2022
- Trial Averaging for Deep EEG Classification
Jacob M. Williams, Ashok K. Samal, Matthew R. Johnson·bioRxiv·Feb 9, 2023
- Probing machine-learning classifiers using noise, bubbles, and reverse correlation
Etienne Thoret, Thomas Andrillon, … Daniel Pressnitzer·bioRxiv·Jun 22, 2020
- Controlling for effects of confounding variables on machine learning predictions
Richard Dinga, Lianne Schmaal, … André F. Marquand·bioRxiv·Aug 17, 2020
- Neuroscout, a unified platform for generalizable and reproducible fMRI research
Alejandro I de la Vega, Roberta Rocca, … Tal Yarkoni·eLifePeer-reviewed·Aug 30, 2022
- Beyond generalization: Enhancing accurate interpretation of flexible models
Mikhail Genkin, Tatiana A. Engel·Nature Machine IntelligencePeer-reviewed·Oct 26, 2020