NeighSpec: Neighbour-Aware Spectral Alignment for Cross-Subject EEG and ECG Classification
Background: Cross-subject generalisation in electroencephalogram (EEG) and electrocardiogram (ECG) aims to learn representations that preserve task-relevant physiological information while mitigating subject-specific variability. Existing spectral alignment methods adaptively adjust frequency components to reduce such variability. Frequency-band adaptation can reduce these variations, yet the correction of a spectral coefficient also depends on the neighbouring frequencies that define its local context. Methods: We propose NeighSpec, a neighbourhood-aware alignment model that derives a local spectral reference from adjacentfrequency coefficients and uses a bounded relative discrepancy to guide magnitude refinement. Sample-conditioned band descriptors control gain, neighbourhood refinement, and phase rotation. Residual temporal embedding and ordered temporal pooling support classification without requiring subject identity at inference. Results: Across six EEG and ECG benchmarks, NeighSpec achieves an average rank of 1.25 over 36 metric means and the highest dataset-level average on five benchmarks. Compared with published BioFormer results, macro-F1 improves by 9.93 percentage points on the BCI Competition IV 2a motor-imagery dataset andby 4.62 points on the 2b dataset. Conclusions: Explicit neighbourhood-relative corrections offer a compact alternative for cross-subject spectral adaptation. Their benefits are pronounced in motor-imagery classification, while analyses across datasets show that improved task performance does not imply complete subject invariance.
Authors
- Xuqiang Wang (ORCID: https://orcid.org/0009-0002-7085-5971)
- Guikang Du
- Xiaoli Gong
- Haoran Li
- Jiayi Shi
- Jordi Solé-Casals
- Jin Zhang
- Zhangtao Jia
Institutions
- Nankai University (CN)
- University of Cambridge (GB)
- State Grid Tianjin Electric Power Company (China) (CN)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-27
- DOI
- https://doi.org/10.21203/rs.3.rs-11692825/v1
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- preprint