Pretraining for Sample-Efficient Neural Interfaces
Organizations: Duke University, Durham, NC
Abstract
Brain-computer interfaces (BCIs) decode neural activity to restore lost function. Typically, training a high-performance neural decoder requires a large labeled dataset to be collected from every new subject. One way to reduce the labeled data cost is self-supervised pretraining, which learns general neural representations from unlabeled recordings that accumulate across subjects. However, for intracranial electroencephalography (iEEG) recordings, self-supervised learning has been challenging due to differences in contact placement and neuroanatomy between subjects. We propose MAPA, an otherwise vanilla masked autoencoder with two spatial encodings, an anatomical region embedding and a relative positional encoding, which together enable it to learn neural representations that transfer to unseen subjects and across various tasks. MAPA sets a new state of the art across all three regimes of the Neuroprobe benchmark without fine-tuning: within-session, cross-session, and cross-subject. In the cross-subject regime, a linear probe on MAPA's features needs only labeled trials to reach the accuracy that takes 3,500 without pretraining. Our results show that self-supervised pretraining can scale across heterogeneous iEEG recordings and reduce the labeled data needed for accurate decoding in new subjects.
Figures & tables
| Band | Window | Rate | Frequencies | Bins |
|---|---|---|---|---|
| Slow | 500 ms | 4 Hz | 2–14 Hz | 7 |
| Mid | 125 ms | 16 Hz | 16–56 Hz | 6 |
| Fast | 62.5 ms | 32 Hz | 64–160 Hz | 7 |
| Method | Within session | Cross session | Cross subject |
|---|---|---|---|
| BrainBERT | 0.626 | 0.633 | 0.547 |
| CNN Lap+STFT | 0.669 | 0.670 | 0.578 |
| PopT | 0.670 | 0.663 | 0.575 |
| DIVER-1 frozen | 0.678 | ||
| Frontend baseline | 0.674 | 0.666 | 0.587 |
| MAPA | 0.695 | 0.691 | 0.608 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Session | Split | Shafts | Contacts | Regions | Hours |
| 1:0 | Pretrain | 13 | 128 | 16 | 1.91 |
| 1:1 | Test | 13 | 119 | 16 | — |
| 1:2 | Test | 13 | 119 | 16 | — |
| 2:0 | Test | 14 | 119 | 14 | — |
| 2:1 | Pretrain | 16 | 133 | 14 | 2.42 |
| 2:2 | Pretrain | 16 | 132 | 14 | 2.66 |
| Parameter | Value |
|---|---|
| Clip length (s) | 2.0 |
| Masked fraction | 0.75 |
| Steps | 55,000 |
| Warmup steps | 5,000 |
| Cooldown steps | 5,000 |
| Learning rate | 6e-3 |
| Regime | Model | Subjects improved | Gain | ||
|---|---|---|---|---|---|
| Within-session | Both encodings | 6/6 | 0.0156 | 0.0417 | |
| Within-session | Relative position | 5/6 | 0.0312 | 0.0417 | |
| Within-session | Region embedding | 5/6 | 0.0312 | 0.0417 | |
| Within-session | Neither encoding | 0/6 | 1.0000 | 1.0000 | |
| Cross-session | Both encodings | 6/6 | 0.0156 | 0.0208 | |
| Cross-session | Relative position | 6/6 | 0.0156 | 0.0208 |
| Within-session | Cross-session | Cross-subject | ||||
|---|---|---|---|---|---|---|
| Task | Frontend | MAPA | Frontend | MAPA | Frontend | MAPA |
| onset | 0.911 | 0.933 | 0.913 | 0.941 | 0.745 | 0.815 |
| speech | 0.891 | 0.917 | 0.909 | 0.932 | 0.719 | 0.779 |
| volume | 0.777 | 0.799 | 0.748 | 0.774 | 0.638 | 0.645 |
| delta volume | 0.778 | 0.800 | 0.768 | 0.787 | 0.674 | 0.705 |
| pitch | 0.597 | 0.628 | 0.590 | 0.633 | 0.540 | 0.537 |
| Session | Frontend | MAPA | Difference |
|---|---|---|---|
| 7:0 | 0.5234 | 0.5385 | |
| 7:1 | 0.5326 | 0.5458 | |
| 10:0 | 0.5754 | 0.5825 | |
| 10:1 | 0.5994 | 0.6137 | |
| Mean | 0.5577 | 0.5701 |
| Subject | Within-session | Cross-session | Cross-subject |
|---|---|---|---|
| 1 | 4.9 | 12.3 | 28.7 |
| 2 | 3.1 | 7.3 | |
| 3 | 2.5 | 4.1 | 89.8 |
| 4 | 2.0 | 4.1 | never reaches |
| 7 | 2.9 | 3.8 | 20.7 |
| 10 | 2.3 | 3.1 | 15.9 |
| Rule | Fires when | Rate (%) |
| Guard 1 | 2.02 | |
| Spike | of the voltage slope exceeds 100 in over 1% of the contact’s 5-second clips | 1.37 |
| Noisy | Spread, as a over the contacts of the session, exceeds 8 | 0.05 |
| Dead | Spread is below 0.35 of the median spread of the session | 0.60 |
| Guard 2 | 1.08 | |
| Common mode | exceeds in contacts at once | 0.30 |
Brain-Computer Interfaces
Brain-computer interfaces translate neural activity into commands or feedback for communication, movement, rehabilitation, and sensory restoration.
See all 128 papers