Related Experiment Video
Updated: Jul 25, 2025

P300-Based Brain-Computer Interface Speller Performance Estimation with Classifier-Based Latency Estimation
Published on: September 8, 2023
Class imbalance should not throw you off balance: Choosing the right classifiers and performance metrics for brain
Philipp Thölke1, Yorguin-Jose Mantilla-Ramos2, Hamza Abdelhedi3
1Cognitive and Computational Neuroscience Laboratory (CoCo Lab), University of Montreal, 2900, boul. Edouard-Montpetit, Montreal, H3T 1J4, Quebec, Canada; Institute of Cognitive Science, Osnabrück University, Neuer Graben 29/Schloss, Osnabrück, 49074, Lower Saxony, Germany.
Machine learning (ML) in neuroscience faces challenges with imbalanced datasets. This study reveals standard accuracy metrics can be misleading, recommending balanced accuracy for reliable performance evaluation in ML applications.
Area of Science:
- Neuroscience
- Machine Learning
- Data Science
Background:
- Machine learning (ML) is vital in cognitive, computational, and clinical neuroscience.
- Imbalanced datasets are a common challenge in ML, potentially leading to severe consequences if unaddressed.
Purpose of the Study:
- To provide a didactic assessment of the class imbalance problem in neuroscience ML.
- To illustrate the impact of data imbalance on ML model performance using simulated and real brain data (EEG, MEG, fMRI).
Main Methods:
- Systematic manipulation of data imbalance ratios in simulated and brain imaging datasets.
- Evaluation of classification metrics, including Accuracy (Acc), Area Under the Curve (AUC) of the Receiver Operating Characteristic (ROC), and Balanced Accuracy (BAcc).
- Assessment of Random Forest (RF) robustness, stratified cross-validation, and hyperparameter optimization.
Main Results:
- The standard Accuracy (Acc) metric yields misleadingly high performances on imbalanced datasets by disregarding minority class performance.
- Balanced Accuracy (BAcc) and AUC provide more reliable performance evaluations for imbalanced data.
- Random Forest (RF) demonstrates robustness, and stratified cross-validation/hyperparameter optimization aid in addressing data imbalance.
Conclusions:
- For neuroscience ML applications aiming to minimize classification error, Balanced Accuracy (BAcc) is recommended for reliable performance evaluation.
- BAcc is equivalent to standard Acc on balanced data and extends to multi-class settings.
- Recommendations and open-source code are provided for the neuroscience community to address imbalanced data.
More Related Videos
11:25Simultaneous Scalp Electroencephalography EEG, Electromyography EMG, and Whole-body Segmental Inertial Recording for Multi-modal Neural Decoding
Published on: July 26, 2013
12:27Large-scale Reconstructions and Independent, Unbiased Clustering Based on Morphological Metrics to Classify Neurons in Selective Populations
Published on: February 15, 2017