Next Article in Journal
Data-Driven Insights through Industrial Retrofitting: An Anonymized Dataset with Machine Learning Use Cases
Next Article in Special Issue
Classification of Adventitious Sounds Combining Cochleogram and Vision Transformers
Previous Article in Journal
Multimode Optical Interconnects on Silicon Interposer Enable Confidential Hardware-to-Hardware Communication
Previous Article in Special Issue
Combining Heart Rate Variability and Oximetry to Improve Apneic Event Screening in Non-Desaturating Patients
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

k-Fold Cross-Validation Can Significantly Over-Estimate True Classification Accuracy in Common EEG-Based Passive BCI Experimental Designs: An Empirical Investigation

1
Faculty of Engineering and Applied Science, Memorial University of Newfoundland, St. John’s, NL A1B 3X5, Canada
2
Faculty of Medicine, Memorial University of Newfoundland, St. John’s, NL A1B 3V6, Canada
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(13), 6077; https://doi.org/10.3390/s23136077
Submission received: 25 May 2023 / Revised: 19 June 2023 / Accepted: 28 June 2023 / Published: 1 July 2023
(This article belongs to the Special Issue Advanced Machine Intelligence for Biomedical Signal Processing)

Abstract

In passive BCI studies, a common approach is to collect data from mental states of interest during relatively long trials and divide these trials into shorter “epochs” to serve as individual samples in classification. While it is known that using k-fold cross-validation (CV) in this scenario can result in unreliable estimates of mental state separability (due to autocorrelation in the samples derived from the same trial), k-fold CV is still commonly used and reported in passive BCI studies. What is not known is the extent to which k-fold CV misrepresents true mental state separability. This makes it difficult to interpret the results of studies that use it. Furthermore, if the seriousness of the problem were clearly known, perhaps more researchers would be aware that they should avoid it. In this work, a novel experiment explored how the degree of correlation among samples within a class affects EEG-based mental state classification accuracy estimated by k-fold CV. Results were compared to a ground-truth (GT) accuracy and to “block-wise” CV, an alternative to k-fold which is purported to alleviate the autocorrelation issues. Factors such as the degree of true class separability and the feature set and classifier used were also explored. The results show that, under some conditions, k-fold CV inflated the GT classification accuracy by up to 25%, but block-wise CV underestimated the GT accuracy by as much as 11%. It is our recommendation that the number of samples derived from the same trial should be reduced whenever possible in single-subject analysis, and that both the k-fold and block-wise CV results are reported.
Keywords: EEG; time-series; cross validation; passive brain–computer interface EEG; time-series; cross validation; passive brain–computer interface

Share and Cite

MDPI and ACS Style

White, J.; Power, S.D. k-Fold Cross-Validation Can Significantly Over-Estimate True Classification Accuracy in Common EEG-Based Passive BCI Experimental Designs: An Empirical Investigation. Sensors 2023, 23, 6077. https://doi.org/10.3390/s23136077

AMA Style

White J, Power SD. k-Fold Cross-Validation Can Significantly Over-Estimate True Classification Accuracy in Common EEG-Based Passive BCI Experimental Designs: An Empirical Investigation. Sensors. 2023; 23(13):6077. https://doi.org/10.3390/s23136077

Chicago/Turabian Style

White, Jacob, and Sarah D. Power. 2023. "k-Fold Cross-Validation Can Significantly Over-Estimate True Classification Accuracy in Common EEG-Based Passive BCI Experimental Designs: An Empirical Investigation" Sensors 23, no. 13: 6077. https://doi.org/10.3390/s23136077

APA Style

White, J., & Power, S. D. (2023). k-Fold Cross-Validation Can Significantly Over-Estimate True Classification Accuracy in Common EEG-Based Passive BCI Experimental Designs: An Empirical Investigation. Sensors, 23(13), 6077. https://doi.org/10.3390/s23136077

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop