PROTEUS streaming EEG decoder (NeurIPS 2026 EEG/EMG Foundation Challenge, Track 2)
Final submission (submission 5) to Track 2 (BCI decoding) of the NeurIPS 2026 EEG/EMG Foundation Challenge. It classifies 4-second EEG windows into one of three cued mental commands, one window at a time, using only the current window and the earlier windows of the same stream.
Sealed test set: 0.753 balanced accuracy, 3 classes (chance 0.333). Final rankings are provisional until the Challenge's reproducibility audit.
Code, training pipeline and full results: https://github.com/fairfriend92/eeg-decoding Interactive results: https://fairfriend92.github.io/eeg-decoding/
What this repository contains
This is the exact package submitted to Codabench (also published as the GitHub
release neurips26-track2-submission). It is an ensemble, not a single network:
| File | Content |
|---|---|
weights_0.pt, weights_1.pt |
2 seeds ร 10 patch transformers (20 networks, ~1.57M parameters each). Each file holds state_dicts and model_cfg. |
tangent.npz |
Five-band time-delay tangent-space member (logistic regression on Riemannian tangent vectors, plus slow-potential features) |
regcov.npz |
Region-covariance tangent-space member |
submission.py |
Model definitions, causal alignment, blending and inference, as run by the Challenge scorer |
No EEG data is included. The .npz files hold fitted model parameters and
aggregate statistics (reference covariances, class means), not trials.
Task and data
- Dataset: PROTEUS BCI Bordeaux, NEMAR nm000290 (DOI 10.82901/nemar.nm000290, CC-BY-4.0). 10 participants, 14 sessions, 2,655 windows, 41 EEG channels (10-10).
- Input: one window of shape
(41 channels, 480 samples): 4 s at 120 Hz, starting 1 s after the cue, with the Challenge's preprocessing. - Classes: kinesthetic motor imagery, mental subtraction, word generation.
- Scoring: the scorer streams each session window by window; the model predicts each window before seeing the next. Balanced accuracy is computed per (participant, session, interface) cell and averaged over cells. The sealed test set holds later sessions of the public participants and participants absent from the public release.
- Training data: all ten public participants. The networks were trained in a participant-grouped 10-fold scheme, each fold early-stopped on its own held-out participants; the linear members were fitted on every public window.
Architecture
- Patch transformers (20 networks, probabilities averaged). Input is causally aligned: z-scored with the stream's running statistics and whitened with the running mean covariance of the windows seen so far (Euclidean alignment). A convolutional tokenizer cuts the window into 100 ms patches at a 40 ms stride, with parallel temporal convolutions of 100, 200 and 400 ms; two encoder layers of 128 dimensions; a late-fused branch of phase-synchrony features (4-8, 8-13 and 13-30 Hz), dropped with probability 0.25 during training. Training added a copy of every window with Gaussian noise at 50% of its standard deviation.
- Linear members: logistic regressions on tangent-space vectors of causally recentered covariances. The time-delay member (5 bands, 1-45 Hz, plus window mean and slope per channel) takes 0.75 of the linear half, the region member 0.25.
- Blend: 0.4 networks, 0.6 linear members.
- Online class-prior debiasing: blended probabilities are divided by the stream's running mean prediction (prior of 5 uniform windows).
- Prototype self-training: each linear member's class scores shift by the gap between the stream's soft-labelled class means and the training class means.
Each step adds to the previous submission's sealed score:
| Submission | Change | Sealed score |
|---|---|---|
| 1 | 20 patch transformers, blended with a tangent-space member at weight 0.25 | 0.687 |
| 2 | Five-band time-delay tangent-space member at weight 0.5, online class-prior debiasing | 0.701 |
| 3 | Linear half split into time-delay (with slow potentials) and region-covariance members | 0.752 |
| 4 | Network weight 0.4 | 0.753 |
| 5 (this model) | Prototype self-training of both linear members inside each stream | 0.753 |
How to use
submission.py implements the Challenge's Solver interface and imports
benchmark_utils.base_solver.CompetSolver from the Challenge start kit. To run it
outside the Codabench scorer, use the start kit's local replay, or the
verification scripts in the GitHub repository
(scripts/submission/final/verify_submission.py, ingest_replay.py).
from huggingface_hub import snapshot_download
path = snapshot_download("<fairfriend>/proteus-stream-decoder")
# then point the Challenge start kit's local replay at `path`
Core logic, in short: Solver.load_model(meta) builds the ensemble from the files
above; call reset_state() at the start of each stream (one session of one
participant), then predict(X) on the stream's windows in recording order.
Related result (not in this repository)
On Dreyer2023 (two-class left/right hand motor imagery, 87 subjects), the same pipeline reaches 0.886 balanced accuracy on 21 participants never seen in training, with a uniform ensemble of EEGNet, a patch transformer (0.31M parameters) and two EEG Conformers, all with per-participant Euclidean alignment. The patch transformer alone reaches 0.850 ยฑ 0.069. Those weights are not published here; see the GitHub repository for the protocol and reproduction commands.
Intended use
- Research and benchmarking of streaming, cross-session and cross-participant EEG decoding.
- A reference implementation of causal alignment, class-prior debiasing and network/Riemannian blending for BCI pipelines.
Not intended for clinical, diagnostic or assistive-device use. It has not been validated for controlling devices for patients or for any medical decision.
Limitations
- Trained on 10 participants from one lab and one montage. Expect lower accuracy on other headsets, channel layouts, sampling rates or preprocessing; the input must match the Challenge's 41-channel, 120 Hz, 4 s windows.
- Stateful: alignment, debiasing and self-training depend on the earlier windows of the same stream. Debiasing assumes the three commands appear in roughly equal shares within a stream, as in the Challenge protocol.
- Local cross-validation covers 28 (new participant) and 8 (later session) cells, so differences below about one standard error are not resolved. Submissions 3 to 5 differ by at most 0.001 on the sealed set.
- 0.753 balanced accuracy means roughly one window in four is still misclassified.
Citation
Dataset:
Dreyer, P., Bourdil, M., Bechon, L., Kojima, S., Velut, S., Rimbert, S., et al. (2026). PROTEUS BCI Bordeaux โ EEG/EMG Foundation Challenge 2026, Track 02 (v1.0.0) [Data set]. NEMAR. https://doi.org/10.82901/nemar.nm000290
Challenge: "EEG/EMG Foundation Challenge 2026," Brain and Body Workshop at NeurIPS 2026, Track 2 (BCI decoding). https://neural-interfaces26.github.io/
Evaluation results
- Balanced accuracy (sealed test set, mean over participant/session/context cells) on PROTEUS BCI Bordeaux, NeurIPS 2026 EEG/EMG Foundation Challenge Track 2 (sealed test set)self-reported0.753