HSLFormer: A structured framework for cross-subject motor imagery EEG classification
Electroencephalography (EEG) signals in motor imagery brain-computer interfaces (MI-BCIs) exhibit substantial inter-subject variability and temporal fluctuations, making cross-subject classification a central challenge for practical deployment. Although pretrained EEG representations provide a more stable feature basis for downstream tasks, existing adaptation strategies often fail to fully exploit hierarchical feature information and explicitly compensate for subject-related shifts when facing unseen subjects. To resolve these challenges, we introduce HSLFormer, a hierarchical, subject-adaptive, and latency-aware Transformer framework designed specifically for cross-subject motor imagery classification. HSLFormer consists of a hierarchical cross-scale attention fusion module (HCAF), a subject-adaptive dynamic fusion module (SADF), and a latency-adaptive temporal fusion module (LATF). HCAF aggregates complementary information across different layers of a pretrained backbone. SADF dynamically calibrates fused features using sample-level statistics, alleviating cross-subject distribution shifts without explicit subject-label supervision. LATF improves robustness to inter-subject latency variation by fusing multiple temporally shifted views with confidence-aware weights. Under the leave-one-subject-out (LOSO) evaluation protocol, HSLFormer achieves competitive cross-subject decoding performance across both four-class and binary motor imagery tasks on the BCI Competition IV-2a and IV-2b datasets. Ablation results show that the complete model obtains 63.09% accuracy on BCIC IV-2a, improving the baseline by 5.07 percentage points, and 75.44% accuracy on BCIC IV-2b, yielding an average numerical gain of 2.77 percentage points (not statistically significant). These findings demonstrate that our framework improves cross-subject decoding performance on the evaluated benchmarks, advancing label-free unsupervised adaptation for practical brain-computer interface deployment.
Authors
- Caizhi Liao (ORCID: https://orcid.org/0000-0003-1271-3027)
- Nike Liu (ORCID: https://orcid.org/0009-0008-7689-1432)
- Tao Zheng (ORCID: https://orcid.org/0009-0006-8643-058X)
- Zeyu Zhao (ORCID: https://orcid.org/0009-0000-9177-8616)
- Tao Luo (ORCID: https://orcid.org/0000-0002-2798-4076)
- Yongtao Zhou (ORCID: https://orcid.org/0009-0002-4282-0464)
- Yinlong Du
Institutions
- Peking University Shenzhen Hospital (CN)
- Shenzhen University of Advanced Technology (CN)
- Northeast Petroleum University (CN)
Publication Details
- Journal
- Measurement Science and Technology
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1088/1361-6501/aec97d
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Basic and Applied Basic Research Foundation of Guangdong Province