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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

HSLFormer: A structured framework for cross-subject motor imagery EEG classification

Caizhi Liao, Nike Liu, Tao Zheng, Zeyu Zhao et al.
2 links
Measurement Science and Technology
EEG and Brain-Computer Interfaces
article

HSLFormer: A structured framework for cross-subject motor imagery EEG classification

Caizhi Liao, Nike Liu, Tao Zheng, Zeyu Zhao, Tao Luo, Yongtao Zhou, Yinlong Du
article en

Abstract

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.

Measurement Science and Technology
Peking University Shenzhen Hospital (CN), Shenzhen University of Advanced Technology (CN), Northeast Petroleum University (CN)
Basic and Applied Basic Research Foundation of Guangdong Province
EEG and Brain-Computer Interfaces
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon