TL;DR
Training foundation models on brainwaves (EEG) is notoriously messy because every lab uses a different cap of electrodes and records vastly different mental tasks. BrainPro solves this by translating diverse electrode setups onto a universal anatomical map, and then splitting its neural network into specialized branches—like "emotion" and "motor"—guided by the original experiment's context. The result is a brain-decoding model that understands scalp geography, handles missing sensors gracefully, and outperforms general-purpose models across diverse Brain-Computer Interface (BCI) tasks.
What Problem Does This Paper Address?
Electroencephalography (EEG) captures electrical whispers from the scalp. Following the playbook of NLP and vision, researchers have started pretraining large EEG Foundation Models (EFMs) by masking out chunks of brainwave data and training transformers to reconstruct them.
However, two major headaches hold current EFMs back:
- Ignored Context: Pretraining corpora combine datasets from wildly different experiments—some subjects are imagining moving their hands, while others are watching emotional videos. Standard EFMs throw all this into one big pot, ignoring mental-process cues (protocol metadata telling us what kind of broad mental activity was happening) and tangling general brain dynamics with task-specific signals.
- Montage Chaos: An EEG "montage" is the physical layout and count of electrodes on a cap. One dataset might have 64 tightly packed channels; another has 19 sparse ones. Standard models learn spatial relationships implicitly (e.g., via channel index embeddings), meaning they often memorize dataset-specific cap layouts rather than reusable scalp anatomy.
Without anatomical alignment, you can't specialize for mental processes—your "emotion" detector might just become a "64-channel cap" detector.
Methods
BrainPro tackles spatial alignment and process specialization simultaneously.
While using temporal CNNs, patch-masking (50% ratio), and Transformers for spatiotemporal modeling is fairly standard, BrainPro introduces three novel mechanisms:
- Topographic Retrieval: Instead of relying on arbitrary channel indices, BrainPro defines a universal scalp template of 60 electrodes grouped into 24 functional brain regions. Using 3D head coordinates, incoming dataset channels are mapped to their nearest template neighbors. The model then retrieves corresponding learnable spatial filters at both the channel and regional levels, putting heterogeneous caps onto a shared anatomical footing before hitting the Transformer.
- Process-Conditioned Multi-Branching: Rather than one monolithic encoder, BrainPro uses four: a Shared encoder ($\mathcal{E}_S$) for universal brainwave grammar, an Affective encoder ($\mathcal{E}_A$), a Motor encoder ($\mathcal{E}_M$), and an Other/Residual encoder ($\mathcal{E}_O$) for miscellaneous data. During pretraining, the dataset's protocol cue activates $\mathcal{E}_S$ plus one matching specialist branch. A margin-based cosine similarity loss actively pushes the representations of the shared, active, and inactive branches apart so they don't learn redundant features.
- Region-Weighted Reconstruction: When reconstructing masked EEG signals, BrainPro injects coarse neuroscience priors into the loss function. For affective data, it weights reconstruction accuracy more heavily over frontal, temporal, and central electrodes; for motor data, it emphasizes central and parietal sensorimotor areas.
Datasets
- Pretraining: A massive, heterogeneous collection of public EEG datasets totaling ~2,400 hours (~2,180 hours after cleaning 10-second clips resampled to 200 Hz). Datasets are grouped by protocol into Affective, Motor-related, and Auxiliary Residual buckets. No new datasets are introduced, though this curated grouping enables process conditioning.
- Downstream Evaluation: Nine public BCI benchmarks spanning six task families. The main text highlights six datasets: FACED (9-class emotion), SEED-V (5-class emotion), BCI-IV-2a (4-class motor imagery), SHU (2-class motor imagery), Mental Arithmetic (2-class stress), and Attention (2-class attention detection), alongside imagined speech and mental disorder diagnosis evaluated in the appendices.
Key Insights and Ideas
- Emergent Neuroanatomy: When visualizing the spatial filters learned after pretraining, the branches spontaneously mirror textbook neuroscience—the Affect encoder lights up frontal and temporal regions, the Motor encoder locks onto central sensorimotor strips, and the Shared encoder spreads out globally.
- Grace Under Hardware Failure: Because spatial filters are retrieved by physical location rather than fixed array shapes, BrainPro is remarkably resilient to missing sensors. Dropping up to 50% of EEG channels at test time causes a much gentler performance slide in BrainPro than in competing foundation models like LaBraM and CBraMod.
- Cross-Process Synergy: Mental processes overlap in the brain (e.g., emotion can engage motor cortex). On downstream emotion and motor tasks, combining both specialist branches with the shared encoder (
S + A + M) actually beats using just the single task-matched branch (S + AorS + M). Meanwhile, adding the catch-all residual branch (O) doesn't consistently help, confirming its role as a pretraining "sponge" for noisy, miscellaneous variance.
Key Results
Across evaluated benchmarks, BrainPro outperforms scratch-trained models (EEGNet, Conformer) and recent EEG foundation models (BIOT, EEGPT, LaBraM, CBraMod, CodeBrain):
- FACED (9-class emotion): Achieves 59.37% Balanced Accuracy (ACC-B) and 0.5418 Cohen's Kappa (beating the next best baseline, CodeBrain, at 58.01% / 0.5242).
- BCI-IV-2a (4-class motor): Reaches 56.74% ACC-B and 0.4232 Kappa (surpassing LaBraM's 52.55% and EEGNet's 55.21%).
- Mental Arithmetic (Stress): Jumps to 80.83% ACC-B and 0.8512 AUROC, a substantial leap over CBraMod (73.54% ACC-B / 0.7654 AUROC).
- Ablating topographic retrieval for random retrieval drops BCI-IV-2a accuracy from 56.74% to 51.25%, and scrambling process cues drops FACED accuracy from 59.37% to 52.69%.
Limitations and Future Work
While a dedicated limitations section is not included in the main text (which ends at page 10 before the appendices), a few structural constraints are explicitly noted in the methodology:
- Unmatched Electrodes: Topographic retrieval relies on nearest-neighbor mapping to a fixed 60-channel template; electrodes in a dataset that cannot be matched to this template are simply discarded.
- Coarse Process Taxonomy: Pretraining only carves out explicit specialist branches for Affective and Motor processes (chosen because they have stable scalp priors and abundant public data), lumping all other cognitive, clinical, and sensory paradigms into a single uniform-weight residual branch.
Summary updated