Event-related potentials (ERPs) can reveal brain activity elicited by external stimuli. Innovative methods to decode ERPs could enhance the accuracy of brain-computer interface (BCI) technology and promote the understanding of cognitive processes. This paper proposes a novel Multi-Scale Pyramid Squeeze Attention Similarity Optimization Classification Neural Network (MS-PSA-SOC) for ERP Detection. The model integrates a multi-scale architecture, self-attention mechanism, and deep metric learning to achieve a more comprehensive, refined, and discriminative feature representation. The MS module aggregates fine-grained local features and global features with a larger receptive field within a multi-scale architecture, effectively capturing the dynamic characteristics of complex oscillatory activities in the brain at different levels of abstraction. This preserves complementary spatiotemporal representation information. The PSA module continues the multi-scale contextual modeling from the previous module and achieves adaptive recalibration of multi-scale features. By employing effective aggregation and selection mechanisms, it highlights key features while suppressing redundant information. The SOC module jointly optimizes similarity metric loss and classification loss, maintaining the feature space distribution while focusing on sample class labels. This optimization of similarity relationships between samples improves the model's generalization ability and robustness. Results from public and self-collected datasets demonstrate that the command recognition accuracy of the MS-PSA-SOC model is at least 3.1% and 2.8% higher than other advanced algorithms, achieving superior performance. Additionally, the method demonstrates a lower standard deviation across both datasets. This study also validated the network parameters based on Shannon's sampling theorem and EEG "microstates" through relevant experiments.
Keywords: Brain–computer interfaces; Deep metric learning; Event-related potentials; Multi-scale; Self-attention mechanism.
Copyright © 2025 Elsevier Ltd. All rights reserved.