Abstract:High-precision decoding of motor imagery-based brain-computer interfaces is crucial for medical rehabilitation and neural interaction. However, the low signal-to-noise ratio and non-stationarity of electroencephalography in stroke patients cause MI-evoked neural activities to exhibit time-varying multiscale characteristics and sparse task-related effective signals, and high-quality clinical training samples are scarce, hindering stable feature representation by existing models. To address these challenges, a Multi-Branch 2D Convolutional Multi-head Self-Attention network (MB-CMA) was proposed. A multi-branch depthwise separable residual network was designed to synchronously extract multiscale spatio-temporal features, utilizing different kernel sizes to create distinct temporal receptive fields. In each branch, 1D sequences were reshaped into approximately square 2D grids, and multi-head self-attention with convolution operations was embedded to construct balanced and comprehensive feature interactions, focusing the network on MI-related spatio-temporal features. A data augmentation method based on temporal correlation was designed, selecting and smoothly splicing segments via similarity probability distribution to expand samples while maintaining temporal continuity. Experiments on the public BCI-2a dataset and self-built HHD dataset were conducted. Average accuracies of 90.14% (binary) and 79.01% (four-class) are achieved, outperforming mainstream baselines and verifying excellent generalization performance in clinical scenarios.