snailpt/MSCFormer
关于
Multi-Scale Convolutional Transformer Network for Motor Imagery Brain-Computer Interface
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文MSCFormer
Multi-Scale Convolutional Transformer Network for Motor Imagery Brain-Computer Interface [Paper]
🎉 Congratulations on integrating MSCFormer into Braindecode! Excited to see it support the EEG and BCI research community.
Abstract
Brain-computer interface (BCI) systems allow users to communicate with external devices by translating neural signals into real-time commands. Convolutional neural networks (CNNs) have been effectively utilized for decoding motor imagery electroencephalography (MI-EEG) signals in BCIs. However, traditional CNN-based methods face challenges such as individual variability in EEG signals and the limited receptive fields of CNNs. This study presents the Multi-Scale Convolutional Transformer (MSCFormer) model that integrates multiple CNN branches for multi-scale feature extraction and a Transformer module to capture global dependencies, followed by a fully connected layer for classification. The multi-branch multi-scale CNN structure effectively addresses individual variability in EEG signals, enhancing the model's generalization capabilities, while the Transformer encoder strengthens global feature integration and improves decoding performance. Extensive experiments on the BCI IV-2a and IV-2b datasets show that MSCFormer achieves average accuracies of 82.95% (BCI IV-2a) and 88.00% (BCI IV-2b), with kappa values of 0.7726 and 0.7599 in five-fold cross-validation, surpassing several state-of-the-art methods. These results highlight MSCFormer’s robustness and accuracy, underscoring its potential in EEG-based BCI applications. The code has been released in https://github.com/snailpt/MSCFormer.
Overall Framework:

Requirements & Datasets & Preprocessing:
Such as the CTNet project: https://github.com/snailpt/CTNet
Experimental Setup:
- Five-fold cross-validation was performed on the original training samples.
- The training sample size of S&R data enhancement is three times that of the original training sample size.
Citation
Hope this code can be useful. I would appreciate you citing us in your paper. 😊
Zhao, W., Zhang, B., Zhou, H. et al. Multi-scale convolutional transformer network for motor imagery brain-computer interface. Sci Rep 15, 12935 (2025). https://doi.org/10.1038/s41598-025-96611-5
Communication
QQ discussion group (Motor imagery and Seizure Detection): 837800443
Email: [email protected]
Thank you for your interest!
探索相关项目
加载中…