Manuscript Offprint
arXiv:2610.23665TriRouter: Sparse-to-Dense Electrode-Space Routing for Robust EEG Motor Imagery Decoding
ABSTRACT
Motor imagery brain-computer interfaces require reliable decoding from multichannel EEG, but practical acquisition often yields sparse or corrupted electrode montages. We propose TriRouter, an electrode-space routing framework with discriminative-preservation, mask-robustness, and latent-compensation paths. A validation-calibrated router uses observable channel availability to allocate path contributions, preserving complete-channel discrimination while increasing representation recovery under severe missingness. In BNCI2014-001, TriRouter outperforms standard public backbones and a dynamic-spatial-filtering corrupted-EEG baseline. It improves accuracy over the strongest corrupted-EEG baseline by 3.68, 4.02, and 6.46 percentage points at nominal 25%, 50%, and 75% missing settings, and remains effective under structured regional missingness and additional low-channel dataset evaluation.
Index Terms— EEG, motor imagery, missing channels, robust decoding, path fusion
1. INTRODUCTION
Brain-computer interfaces (BCIs) translate neural activity into control commands and have broad value in neurorehabilitation, assistive control, and human-computer interaction [1]. Among noninvasive BCI modalities, EEG is widely used because it is portable, low cost, and temporally precise. Motor imagery (MI) is a mature EEG-BCI paradigm that decodes user intention from sensorimotor rhythm modulation, as described by Pfurtscheller and Lopes da Silva [2].
Recent deep MI-EEG decoders have improved complete-channel classification, but practical deployment still faces unstable channel availability. Electrode detachment, abnormal impedance, artifact rejection, and low-density replacement can all make the test-time channel set different from training. For models that rely on learned spatial filters or spatio-temporal dependencies, missing channels remove information and shift inter-channel statistics. This can cause a sharp degradation when complete-channel models are evaluated on incomplete inputs [3].
The central difficulty is that missing-channel decoding changes its nature as the missing rate increases. Mildly incomplete inputs still contain useful spatially discriminative cues, while severely incomplete inputs depend more on relation recovery and robust aggregation. Treating all missing rates with a single augmentation strategy may, therefore, sacrifice low-missingness discrimination or provide insufficient high-missingness robustness.
Motivated by this observation, we formulate robust missing-channel MI-EEG decoding as electrode-space completion with missing-severity-conditioned path allocation. We propose TriRouter. The framework constructs three decoding paths around discriminative preservation, mask robustness, and latent compensation, and uses the observable missing rate of each test sample to route predictions under a functional prior calibrated to validation. This design preserves fine-grained spatial discrimination under complete and mildly incomplete inputs while strengthening cross-channel representation recovery under severe missingness. It therefore mitigates the tension between low-missingness accuracy preservation and high-missingness robustness. The main contributions are as follows.
-
We propose TriRouter, a sparse-to-dense electrode-space routing framework that treats channel availability as an acquisition state for robust EEG decoding.
-
We design three complementary paths for discriminative preservation, mask robustness, and latent compensation and calibrate their fusion from validation performance and a missing-severity functional prior.
-
Experiments show consistent gains over public backbones and a corrupted-EEG baseline under random, regional, and low-channel missingness.
Corresponding author.

Fig. 1. TriRouter for sparse-to-dense electrode-space routing under missing channels.
comparison [6]. Deep learning has since advanced end-to-end EEG representation learning. Representative models include ShallowConvNet [7], EEGNet [8], FBCNet [9], attention-based architectures [10], EEG Conformer [11], and CTNet [12]. More recent work explores multi-branch modeling, dilated temporal convolutions, CSP-enhanced networks, flexible variable-channel representations, and foundation-model-style MI learning [13, 14, 15, 16, 17]. However, most of these methods still assume consistent channel sets between training and testing.
Robust EEG modeling addresses missing or corrupted channels through signal completion [18], generative inpainting [19], dynamic spatial filtering [3], channel dropout [20], and few-channel prediction [21]. These approaches improve tolerance to channel variability, but usually rely on a single model or a unified robustness strategy across all missingness levels. As a result, they do not explicitly distinguish the need to preserve discriminative spatial information under mild missingness from the need for stronger compensation under severe channel loss. Although dynamic spatial filtering and flexible variable-channel modeling suggest that observable acquisition states can guide adaptation [3, 16], missing-severity-aware functional specialization and fusion remain underexplored.
3. METHOD
TriRouter treats an incomplete EEG montage as a sparse observation of an underlying dense electrode-space representation. It decomposes decoding into three complementary paths: discriminative preservation, mask robustness, and latent compensation. Instead of forcing a single encoder to preserve complete-channel discrimination and compensate severe channel loss simultaneously, it assigns these competing objectives to specialized paths. A validation-calibrated router then adapts their contributions according to the observed missing severity, as shown in Fig. 1.
3.1. Three-Path Decoding for Discriminative Preservation, Mask Robustness, and Latent Compensation
Let denote an EEG trial with label . A binary mask indicates channel availability, where means observed and means missing, and denotes channel-wise broadcast multiplication. TriRouter defines three path decoders, , , and , for complete-observation discrimination, mask robustness, and latent compensation.
The discriminative-preservation path learns the complete-observation decision boundary:
During inference, all paths receive the zero-filled input , and the router reduces the contribution of as missingness increases.
The mask-robust path learns stable classification under random channel subsets. A training mask is sampled from by drawing and masking round( ) uniformly selected channels:
The latent-compensation path performs electrode-space representation completion. Its channel-wise encoder produces , and a mask-conditioned MLP generates candidate latent tokens from the flattened and :
Let be the missing-channel set and the complete-trial channel-wise log-bandpower target over , , , and low bands, namely [4, 8), [8, 13), [13, 30), and [30, 45) Hz. With projection head and compensation weight , the joint objective is
We set in all experiments. All paths use the same training and validation split, and routing uses only path logits and the observable channel mask.
3.2. Validation-Calibrated Missing-Severity Routing and Path Fusion
Fixed averaging ignores that each path is reliable under different channel availability states. TriRouter therefore uses the missing rate as the routing variable:
Let , , be the path logits. TriRouter defines nominal anchors and a functional prior template
The columns correspond to , , and . The template is not used directly as test-time weights. For each path and anchor , TriRouter combines the validation accuracy with the prior:
where is the calibration temperature and controls prior strength. We use and , selected on the validation split and kept fixed across reported tests. The anchor-level path weight is
For , continuous routing weights are obtained by linear interpolation:
For missing rates beyond the anchor range, as in the stress test, the route is clipped to the nearest endpoint, i.e., for . The calibrated weights are fixed during testing. The fused logits are
The weights sum to one. Thus, missingness is treated as an observable input-quality signal: low missingness favors , intermediate missingness increases , and high missingness emphasizes .
4. EXPERIMENTS
4.1. Experimental Setup
We evaluate TriRouter on BNCI2014-001 (BCI Competition IV 2a) [4] and BNCI2014-004 (BCI Competition IV 2b), following the official subject-specific train-test protocol on all nine subjects. For BNCI2014-001, nominal 0%, 25%, 50%, and 75% missing settings remove 0, 6, 11, and 16 of 22 channels, i.e., actual ratios of 0%, 27.27%, 50%, and 72.73%; the router computes from the binary mask. BNCI2014-004 is evaluated with 0, 1, and 2 missing channels. We compare with EEGNet [8], ShallowConvNet [7], FBCNet [9], CTNet [12], and DSF-CTNet [3]. Public backbones and DSF-CTNet use the same random channel-missing augmentation range, while TriRouter uses the path-specific objectives in Sec. 3.1. Model selection and routing calibration use only the training-set validation split. Accuracy is reported as mean ± standard deviation over nine subjects and three random seeds.
4.2. Main Results on BNCI2014-001
Table 1 shows that public backbones remain sensitive to channel removal, even with identical channel-missing augmentation. TriRouter achieves the best accuracy from complete inputs to severe missingness, and its margin over DSF-CTNet grows as channels are removed. This pattern is important because DSF-CTNet already adapts spatial filtering to corrupted inputs, while TriRouter further separates preservation, robustness, and compensation into distinct functional paths. The improvement therefore reflects not only stronger regularization, but also a better allocation of decoding functions across missingness regimes. The gain at 0% missingness also indicates that robust fusion does not trade off complete-channel discrimination for high-missingness robustness.
Table 1. Nominal random missing-channel results on BNCI2014-001.
| Method | 0% | 25% | 50% | 75% |
|---|---|---|---|---|
| EEGNet | 59.99 ± 9.13 | 54.24 ± 8.28 | 44.83 ± 5.52 | 35.34 ± 5.35 |
| ShallowConvNet | 52.80 ± 10.89 | 53.11 ± 10.95 | 41.69 ± 7.38 | 31.80 ± 4.63 |
| FBCNet | 54.90 ± 12.95 | 48.20 ± 11.44 | 40.57 ± 8.96 | 33.29 ± 5.63 |
| CTNet | 66.18 ± 12.65 | 59.94 ± 12.90 | 44.17 ± 7.65 | 33.23 ± 5.03 |
| DSF-CTNet | 66.37 ± 12.50 | 61.33 ± 12.61 | 46.92 ± 9.16 | 37.92 ± 4.91 |
| TriRouter (Ours) | 69.55 ± 11.24 | 65.01 ± 11.57 | 50.94 ± 8.63 | 44.38 ± 7.32 |

Fig. 2. Subject-level gains over EEGNet at and missing rates.
Fig. 2 reports paired subject-level gains over a fixed EEG-Net reference at and missing rates. TriRouter improves most subjects at both rates, supporting the consistency of its advantage across subject variability. This subject-wise behavior is important for MI-EEG, where inter-subject variability often makes average gains fragile.
Beyond the anchor rates, Fig. 3 shows that TriRouter maintains stable advantages across most non-anchor missing rates, suggesting that interpolation does not merely fit the discrete evaluation points.
4.3. Mechanism Analysis
The ablation study examines whether the gains come from functional specialization rather than added capacity. Fig. 4 shows a clear shift in path reliability as channels are removed: the discriminative path works best when the spatial layout is intact, the latent-compensation path dominates under severe missingness, and the mask-robust path stabilizes the intermediate range.
Table 2 supports this interpretation. Uniform fusion uses the same paths but ignores the reliability shift. Validation-only calibration improves the severe-missingness case but is not uniformly better than uniform fusion at lower missing rates, whereas adding the functional prior yields a more

Fig. 3. Continuous robustness from 0% to 90% missing channels.

Fig. 4. Missing-severity-dependent single-path accuracy.
stable overall allocation. Removing the latent-compensation path mainly weakens high-missingness robustness, removing the discriminative path hurts complete and mildly incomplete inputs, and removing the mask-robust path reduces low-to-medium stability. These results make a capacity-only explanation unlikely and show that calibrated path assignment is central to the gain.
Table 3 shows that the compensation path recovers meaningful signal structure. It greatly reduces missing-channel log-bandpower error relative to zero filling. The reported Pearson correlation is computed between reconstructed missing-channel bandpower vectors and the corresponding complete-trial targets, linking high-missingness gains to latent recovery quality.
4.4. Structured Regional Missingness and Computational Complexity
To evaluate spatially concentrated failures, we construct a sensorimotor-region missing setting on BNCI2014-001. For each missing rate , 70% of the missing channels are sampled from the predefined sensorimotor set and the rest from other electrodes, with the total number of removed channels matched to the random-missing setting.
As shown in Table 4, TriRouter consistently outperforms the baselines under structured missingness. Its increasing margin at higher missing rates indicates that severity-aware fusion remains effective when channel failures are spatially concentrated.
Table 2. Mechanism ablation on BNCI2014-001.
| Variant | 0% | 25% | 50% | 75% |
|---|---|---|---|---|
| Uniform three-path fusion | ||||
| Validation-only calibration | ||||
| TriRouter with validation-calibrated prior | ||||
| w/o mask-robust path | ||||
| w/o latent-compensation path | ||||
| w/o discriminative-preservation path |
Table 3. Latent-compensation recovery quality.
| Missing rate | Reconstructed MAE | Masked-input MAE | MAE reduction | Reconstructed corr. |
|---|---|---|---|---|
| 25% | 97.37% | |||
| 50% | 97.37% | |||
| 75% | 97.20% |
Table 4. Structured regional missing-channel results.
| Method | 25% | 50% | 75% |
|---|---|---|---|
| EEGNet | |||
| ShallowConvNet | |||
| FBCNet | |||
| CTNet | |||
| TriRouter (Ours) |
TriRouter has 4.039M parameters and 0.096 ms single-trial latency. It is smaller than ShallowConvNet and faster than FBCNet, while providing stronger robustness under high missingness.
4.5. Additional-Dataset Evaluation on BNCI2014-004
Table 5. Additional-dataset evaluation on BNCI2014-004.
| Method | 0 missing | 1 missing | 2 missing |
|---|---|---|---|
| EEGNet | |||
| ShallowConvNet | |||
| FBCNet | |||
| CTNet | |||
| TriRouter (Ours) |
Table 5 reports results on BNCI2014-004, where each method is trained and tested under the dataset's own subject-specific protocol. Only three EEG channels are available. TriRouter achieves the best accuracy with 0 and 1 missing channel and remains competitive when two channels are missing. Since each removed channel represents a large fraction of the input montage, this result suggests that the routing principle remains useful beyond the 22-channel setting.
5. CONCLUSION
This paper proposed TriRouter for robust MI-EEG decoding under missing channels. TriRouter decomposes decoding into discriminative preservation, mask robustness, and latent compensation, and fuses them through a validation-calibrated missing-severity router. Experiments show consistent gains over public backbones and a corrupted-EEG baseline under random and regional missingness. Latent recovery analysis further confirms that compensation restores meaningful band-power structure, suggesting that missing severity is an informative state for adaptive EEG decoding.
6. REFERENCES
[1] Jonathan R. Wolpaw et al., “Brain-computer interfaces for communication and control,” Clinical Neurophysiology, vol. 113, no. 6, pp. 767–791, 2002.
[2] Gert Pfurtscheller and Fernando H. Lopes da Silva, "Event-related eeg/meg synchronization and desynchronization: basic principles," Clinical Neurophysiology, vol. 110, no. 11, pp. 1842–1857, 2001.
[3] Hubert Banville et al., “Robust learning from corrupted eeg with dynamic spatial filtering,” NeuroImage, vol. 251, pp. 118994, 2022.
[4] Michael Tangermann et al., “Review of the bci competition iv,” Frontiers in Neuroscience, vol. 6, pp. 55, 2012.
[5] Vinay Jayaram and Alexandre Barachant, “Moabb: trustworthy algorithm benchmarking for bcis,” Journal of Neural Engineering, vol. 15, no. 6, pp. 066011, 2018.
[6] Sylvain Chevallier et al., “The largest eeg-based bci reproducibility study for open science: the moabb benchmark,” arXiv preprint arXiv:2404.15319, 2024.
[7] Robin Tibor Schirrmeister et al., “Deep learning with convolutional neural networks for eeg decoding and visualization,” Human Brain Mapping, vol. 38, no. 11, pp. 5391–5420, 2017.
[8] Vernon J. Lawhern et al., “Eegnet: a compact convolutional neural network for eeg-based brain-computer interfaces,” Journal of Neural Engineering, vol. 15, no. 5, pp. 056013, 2018.
[9] Ravikiran Mane et al., “Fbcnet: A multi-view convolutional neural network for brain-computer interface,” arXiv preprint arXiv:2104.01233, 2021.
[10] Hamdi Altaheri et al., “Physics-informed attention temporal convolutional network for eeg-based motor imagery classification,” IEEE Transactions on Industrial Informatics, vol. 19, no. 2, pp. 2249–2258, 2022.
[11] Yonghao Song, Qingqing Zheng, Bingchuan Liu, and Xiaorong Gao, “Eeg conformer: Convolutional transformer for eeg decoding and visualization,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 31, pp. 710–719, 2023.
[12] W. Zhao et al., “Ctnet: a convolutional transformer network for eeg-based motor imagery classification,” Scientific Reports, vol. 14, pp. 20237, 2024.
[13] A. Keutayeva et al., “Compact convolutional transformer for subject-independent motor imagery classification,” Scientific Reports, 2024.
[14] W. Peng, K. Liu, J. Shi, and J. Hu, “Eeg-dcnet: A fast and accurate mi-eeg dilated cnn classification method,” arXiv preprint arXiv:2411.17705, 2024.
[15] X. Jiang, L. Meng, X. Chen, Y. Xu, and D. Wu, "Csp-net: Common spatial pattern empowered neural networks for eeg-based motor imagery classification," arXiv preprint arXiv:2411.11879, 2024.
[16] T. Klein et al., “Flexible patched brain transformer model for eeg decoding,” Scientific Reports, 2025.
[17] D. Liu et al., “Mirepnet: A pipeline and foundation model for eeg-based motor imagery classification,” Knowledge-Based Systems, 2026.
[18] Jordi Sole-Casals et al., “Brain-computer interface with corrupted eeg data: a tensor completion approach,” arXiv preprint arXiv:1806.05017, 2018.
[19] N. Bahador et al., “Reconstruction of missing channel in electroencephalogram,” Computer Methods and Programs in Biomedicine, vol. 209, pp. 106340, 2021.
[20] O. W. Gomez-Morales et al., “Uncertainty-aware deep learning for robust and interpretable mi-eeg using channel dropout and layercam integration,” Applied Sciences, 2025.
[21] O. W. Gomez-Morales et al., “Eeg signal prediction for motor imagery classification in brain-computer interfaces using few channels,” Sensors, 2025.
Compliance with Ethical Standards: This study used publicly available human EEG datasets BNCI2014-001 and BNCI2014-004. No new human participants were recruited and no new data were collected in this study.
Funding and Conflict of Interest: No funding was received for this study. The authors declare no relevant conflicts of interest.