A Spatial-Spectral and Temporal Dual Prototype Network for Motor Imagery Brain-Computer Interface

Can Han, Chen Liu, Crystal Cai, Jun Wang, Dahong Qian, Qian, DahongarXiv 2024 · DOI

Abstract

Motor imagery electroencephalogram (MI-EEG) decoding plays a crucial role in developing motor imagery brain-computer interfaces (MI-BCIs). However, decoding intentions from MI remains challenging due to the inherent complexity of EEG signals relative to the small-sample size. To address this issue, we propose a spatial-spectral and temporal dual prototype network (SST-DPN). First, we design a lightweight attention mechanism to uniformly model the spatial-spectral relationships across multiple EEG electrodes, enabling the extraction of powerful spatial-spectral features. Then, we develop a multi-scale variance pooling module tailored for EEG signals to capture long-term temporal features. This module is parameter-free and computationally efficient, offering clear advantages over the widely used transformer models. Furthermore, we introduce dual prototype learning to optimize the feature space distribution and training process, thereby improving the model's generalization ability on small-sample MI datasets. Our experimental results show that the SST-DPN outperforms state-of-the-art models with superior classification accuracy (84.11% for dataset BCI4-2A, 86.65% for dataset BCI4-2B). Additionally, we use the BCI3-4A dataset with fewer training data to further validate the generalization ability of the proposed SST-DPN, achieving 82.03% classification accuracy. Benefiting from the lightweight parameters and superior decoding accuracy, our SST-DPN shows great potential for practical MI-BCI applications.

Introduction

Brain-Computer Interfaces (BCIs) that rely on Motor Imagery (MI)—the mental rehearsal of movement—hold immense promise for neurorehabilitation and assistive robotics. However, decoding these intentions from electroencephalogram (EEG) signals is notoriously difficult. The primary hurdles include complex signal coupling across space and spectrum, significant temporal variability between individuals, and the "small-sample dilemma," where high-quality MI-EEG data is expensive to collect, often leading to overfitting in deep learning models.

Methodology

The proposed SST-DPN architecture addresses these challenges through three innovative modules: Adaptive Spatial-Spectral Fusion (ASSF), Multi-scale Variance Pooling (MVP), and Dual Prototype Learning (DPL).

The overall framework of the proposed SST-DPN, featuring ASSF, MVP, and DPL modules.

Adaptive Spatial-Spectral Fusion (ASSF)

This module utilizes a lightweight attention mechanism (SSA) to model relationships across multiple electrodes and frequency bands simultaneously. Unlike standard convolutions that treat these as separate dimensions, SSA highlights the most task-relevant "spatial-spectral" channels, enabling more effective feature extraction.

Multi-scale Variance Pooling (MVP)

To capture long-term dependencies without the computational overhead of Transformers, we developed a parameter-free pooling layer based on signal variance. Since the variance of an EEG signal represents its spectral power—a key indicator of motor intent—this module captures temporal features efficiently.

Dual Prototype Learning (DPL)

To combat the small-sample issue, DPL moves beyond standard cross-entropy loss. It uses two "prototypes" per class to optimize the feature space: one for Inter-class Separation (ISP) to push different classes apart, and another for Intra-class Compactness (ICP) to pull similar features together. This creates a more robust and generalized model.

Experimental Evaluation

The model was evaluated on three public benchmarks: BCI Competition IV-2A (4 classes), BCI Competition IV-2B (2 classes), and BCI Competition III-4A (2 classes, tested with as few as 28 trials).

SST-DPN achieved state-of-the-art accuracy: 84.11% on BCI4-2A and 86.65% on BCI4-2B, outperforming models like ATCNet. On the small-sample BCI3-4A dataset, it maintained 82.03% accuracy. Furthermore, the model is remarkably efficient, requiring only 9.65M FLOPs, significantly lower than Transformer-based competitors.

Discussion and Key Insights

A key innovation is the use of variance as a feature proxy. In EEG analysis, calculating variance over sliding windows is a mathematically sound way to extract spectral power features from time-series data. This is implemented via a parameter-free block that avoids the complexity of attention-heavy temporal models.

The parameter-free variance pooling block used to extract spectral power features.

Additionally, decoupling separation and compactness in the DPL framework allows for "implicit" and "explicit" forces during training. This forces the model to learn a feature space where classes are widely spaced with tight clusters, significantly reducing overfitting on small datasets.

Conclusion

The SST-DPN demonstrates that domain-specific knowledge, such as the importance of spectral power in EEG, can lead to lightweight models that outperform more complex architectures. Future work will explore incorporating neurophysiological priors, such as hemispheric symmetry, and validating the model in live, closed-loop BCI environments.

The code for SST-DPN is publicly available on GitHub.

Summary updated

BibTeX
@misc{han2024spatial,
  author = {Can Han and Chen Liu and Crystal Cai and Jun Wang and Dahong Qian and Qian, Dahong},
  title = {{A Spatial-Spectral and Temporal Dual Prototype Network for Motor Imagery Brain-Computer Interface}},
  year = {2024},
  eprint = {2407.03177},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.03177},
}
Figure