Brain foundation model-guided source-selective domain adaptation for cross-subject EEG decoding
Organizations: State Key Laboratory of Mechanical Transmission, College of Mechanical and Vehicle Engineering, Chongqing University, Chongqing 400044, China · Department of Computer Science, Vrije Universiteit Amsterdam, 1081 HV Amsterdam, The Netherlands · Machine Learning Group, UiT–The Arctic University of Norway, 9019 Tromsø, Norway
Abstract
Cross-subject motor-imagery electroencephalography (MI-EEG) decoding remains challenging because substantial inter-subject variability can cause both negative transfer from poorly matched source subjects and persistent distribution discrepancies between source and target domains. Existing multi-source domain adaptation methods often incorporate all available source domains or estimate source relevance using signal-level or task-specific representations, while distribution alignment is frequently performed only at the feature level. These limitations may introduce irrelevant source knowledge and fail to preserve class-discriminative structures across subjects. In this study, we propose a brain foundation model-guided multi-source domain adaptation framework (BFM-MSDA) for cross-subject MI-EEG decoding. The method first utilizes representations learned by a pretrained brain foundation model to estimate source--target compatibility and retrieve target-relevant sources. Subsequently, a relevance-weighted dual alignment strategy is applied to the selected sources and the unlabeled target domain. Specifically, Cauchy--Schwarz (CS) divergence is used to reduce discrepancies in marginal feature distributions, while conditional Cauchy--Schwarz (CCS) divergence further aligns class-dependent decision distributions. Source relevance is incorporated into both alignment terms so that more transferable source subjects contribute more strongly to adaptation. Experiments on two public MI-EEG benchmarks achieve average accuracies of 86.16% and 78.41%, outperforming representative cross-subject decoding and domain adaptation methods. Additional experiments with a large source pool further demonstrate that target-aware source retrieval improves scalability while mitigating negative transfer. These results highlight the importance of informed source selection under cross-subject distribution shift.
Figures & tables
| Methods | Subject | Avg. acc. | Kappa | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |||
| EEGNet | 72.92 | 64.58 | 79.17 | 78.47 | 86.11 | 74.31 | 83.33 | 79.86 | 82.64 | 77.93 ∗∗ 6.52 | 0.5586 |
| ShallowConvNet | 75.73 | 74.89 | 78.47 | 76.39 | 81.25 | 85.43 | 87.50 | 83.33 | 76.39 | 79.93 ∗∗ 4.62 | 0.5986 |
| Conformer | 81.59 | 68.53 | 88.07 | 82.04 | 74.68 | 78.54 | 86.97 | 82.59 | 83.74 | 80.75 ∗∗ 6.10 | 0.6150 |
| JAN | 79.69 | 76.32 | 84.25 | 75.69 | 86.81 | 84.72 | 89.19 | 90.28 | 81.94 | 83.21 ∗ 5.25 | 0.6642 |
| DJP-MMD | 79.78 | 72.22 | 89.58 | 81.94 | 85.42 | 83.33 | 88.89 | 89.58 | 86.28 | 84.11 ∗ 5.64 | 0.6823 |
| Methods | Subject | Avg. acc. | Kappa | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |||
| EEGNet | 66.57 | 60.96 | 82.70 | 70.14 | 73.89 | 59.05 | 55.68 | 63.56 | 88.29 | 65.06 | 68.59 ∗∗ 10.41 | 0.3718 |
| ShallowConvNet | 73.92 | 67.63 | 75.05 | 71.55 | 75.23 | 63.65 | 70.56 | 67.70 | 78.02 | 66.37 | 70.97 ∗∗ 4.60 | 0.4194 |
| Conformer | 77.62 | 71.01 | 78.80 | 74.12 | 78.99 | 66.83 | 74.09 | 71.09 | 81.92 | 69.69 | 74.42 ∗∗ 4.82 | 0.4883 |
| JAN | 78.27 | 71.38 | 80.72 | 73.75 | 79.46 | 76.84 | 73.05 | 70.30 | 87.35 | 70.28 | 76.14 ∗∗ 5.47 | 0.5228 |
| DJP-MMD | 76.31 | 74.43 | 78.26 | 71.85 | 73.62 | 77.94 | 70.22 | 71.43 | 82.45 | 71.52 | 74.80 ∗∗ 3.89 | 0.4961 |
| Group | Subject | Avg. acc. | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ||
| Random Group 1 | 66.42 | 63.57 | 80.65 | 66.50 | 79.51 | 67.83 | 59.52 | 66.36 | 89.52 | 56.23 | 69.61 ∗∗ 10.37 |
| Random Group 2 | 73.85 | 74.31 | 79.27 | 73.03 | 75.65 | 70.95 | 71.18 | 73.54 | 85.42 | 74.85 | 75.21 ∗ 4.29 |
| Random Group 3 | 72.38 | 70.15 | 71.33 | 72.27 | 72.92 | 73.65 | 78.63 | 71.81 | 88.71 | 74.75 | 74.66 ∗ 5.45 |
| Random Group 4 | 71.38 | 72.81 | 79.52 | 65.15 | 78.81 | 71.57 | 69.82 | 70.55 | 89.17 | 65.67 | 73.44 ∗∗ 7.24 |
| Random Group 5 | 72.94 | 67.35 | 73.17 | 67.24 | 75.64 | 68.32 | 70.72 | 74.36 | 88.46 | 66.75 | 72.50 ∗∗ 6.47 |
| Dataset | Mean Spearman | -value | Targets |
|---|---|---|---|
| Dataset I | 9 | ||
| Dataset II | 10 |
| Dataset | Baseline | CS/CCS | KDE-KL |
|---|---|---|---|
| Dataset I | 77.93 6.52 | 86.16 5.37 | 79.34 8.46 |
| Dataset II | 68.59 10.41 | 78.41 6.57 | 71.37 9.24 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Analysis | Blocks | ||
|---|---|---|---|---|
| I | Within source | 9 | ||
| Pooled (72 pairs) | – | |||
| II | Within source | 10 | ||
| Pooled (90 pairs) | – |
| Target | LaBraM-based selection | CBraMod-based selection | Overlap | ||
|---|---|---|---|---|---|
| Selected sources | Acc. (%) | Selected sources | Acc. (%) | (%) | |
| S1 | S3, S4, S7 | 83.19 | S3, S4, S8 | 84.27 | 50.0 |
| S2 | S1, S4, S6, S8 | 76.53 | S1, S3, S5, S8 | 74.32 | 33.3 |
| S3 | S2, S6, S8 | 91.74 | S4, S6, S8 | 89.08 | 50.0 |
| S4 | S1, S5, S8 | 83.26 | S1, S3, S5, S6 | 82.15 | 40.0 |
| S5 | S3, S4, S7 | 89.37 | S4, S7, S9 | 86.94 | 50.0 |