NeuroDETR: Multiscale Discrete Spatiotemporal Tokenization for Asynchronous EEG Event Detection
Organizations: Laboratory of Brain Atlas and Brain-Inspired Intelligence, State Key Laboratory of Brain Cognition and Brain-inspired Intelligence Technology, Institute of Automation, Chinese Academy of Sciences · School of Future Technology, University of Chinese Academy of Sciences · Zhongguancun Academy · School of Artificial Intelligence, University of Chinese Academy of Sciences ·
Abstract
Asynchronous EEG event detection supports practical brain-computer interfaces by identifying event classes and temporal boundaries directly from continuous recordings without predefined event boundaries at inference time. The primary challenge lies in extracting event-related patterns embedded in ongoing background activity. To address this, we propose NeuroDETR, a discrete spatiotemporal multiscale framework that combines structured tokenization with event-aware feature refinement. Multiscale temporal codebooks capture brief responses and sustained dynamics, while Spatial-Pyramid VQ hierarchically encodes spatial structure across EEG channels. These complementary representations form a compact event memory for jointly classifying events and estimating their onsets and offsets. Before tokenization, we apply FOCAL, an event-aware sparse attention module that uses predicted event presence to guide temporal feature refinement and spatial aggregation, emphasizing likely event periods while preserving context across the recording. Experiments on eight EEG datasets that span diverse paradigms demonstrate state-of-the-art performance. These findings provide a basis for the development of BCI systems that recognize meaningful neural activity during continuous interaction and monitoring.
Figures & tables
| Method | P300 | Motor Imagery | Motor Execution | Speech | Seizure | ||||
|---|---|---|---|---|---|---|---|---|---|
| BI2014b | BI2013a | BNCI2014 | BNCI2015 | BNCI2020 | HDOP | Broderick | TUSZ | ||
| F1 Sample | Random | ||||||||
| DyFADet | |||||||||
| ActionFormer | |||||||||
| EventNet | |||||||||
| DOSED | |||||||||
| Variant | P300 | Motor Imagery | Motor Execution | Speech | Seizure | |||
|---|---|---|---|---|---|---|---|---|
| BI2014b | BI2013a | BNCI2014 | BNCI2015 | BNCI2020 | HDOP | Broderick | TUSZ | |
| M1 | ||||||||
| M2 | ||||||||
| M3 | ||||||||
| M4 | ||||||||
| M5 | ||||||||
| Configuration | P300 | Motor Imagery | Motor Execution | Speech | Seizure | ||||
|---|---|---|---|---|---|---|---|---|---|
| Quantization | FOCAL | BI2014b | BI2013a | BNCI2014 | BNCI2015 | BNCI2020 | HDOP | Broderick | TUSZ |
| ✗ | ✗ | ||||||||
| ✓ | ✗ | ||||||||
| ✗ | ✓ | ||||||||
| ✓ | ✓ | ||||||||
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Decoder queries / Event F1 | ||||
|---|---|---|---|---|---|
| BI2014b | 50 | 100 | 150 | 200 | 300 |
| 44.00 | 45.13 | 45.23 | 44.20 | 43.20 | |
| BI2013a | 50 | 100 | 150 | 200 | 300 |
| 55.65 | 52.71 | 56.50 | 52.46 | 54.28 | |
| BNCI2014 | 1 | 3 | 5 | 10 | 20 |
| 42.55 | 43.10 | 45.55 | 45.44 | 42.77 | |
| Coarse region ( ) | Fine clusters ( ) | Count |
|---|---|---|
| Frontal | Left, midline, and right frontal | 3 |
| Temporal | Left and right temporal | 2 |
| Central | Left, midline, and right central | 3 |
| Parietal | Left, midline, and right parietal | 3 |
| Occipital | Undivided occipital group | 1 |
| Total | 12 |
| Dataset | Domain | Subjects | Channels | Event (h) | Non-event (h) | Mean event duration (s) | Event coverage (%) | Split | Window (s) | Batch size per GPU |
|---|---|---|---|---|---|---|---|---|---|---|
| Korczowski2014b | P300 | 38 | 32 | 1.0 | 1.3 | 1.0 | 44 | CV | 8 | 32 |
| Vaineau2018Brain | P300 | 24 | 16 | 4.4 | 1.1 | 1.0 | 80 | CV | 32 | 8 |
| Tangermann2012 | Motor imagery | 9 | 22 | 5.8 | 5.8 | 4.0 | 50 | CV | 8 | 32 |
| Faller2012 | Motor imagery | 12 | 13 | 7.8 | 8.9 | 5.0 | 47 | CV | 32 | 4 |
| BNCI2020 | Motor execution | 45 | 12/32/58 | 10 | 27 | 5.0 | 27 | CV | 32 | 4 |
| HDOP | Motor execution | 14 | 62 | 0.24 | 3.7 | 0.20 | 6.1 | CV | 9 | 8 |
| Module | Input shape | Output shape | Configuration |
|---|---|---|---|
| Spatial channel mixing | Fourier embedding dimension: 2048; spatial dropout radius: 0.2 | ||
| Pointwise projection | Conv1d, kernel size: 1 | ||
| Input dropout | Dropout probability: 0.1 | ||
| Temporal stage 1 | Kernel size: 9; dilation: 1 | ||
| Temporal stages 2–9 | Kernel size: 9; dilation: | ||
| Temporal stage 10 | Kernel size: 9; dilation: 3814; no normalization or activation |
Electroencephalography
Electroencephalography (EEG) studies brain-generated electrical activity to understand cognition and support diagnosis, monitoring, and brain-computer interfaces.
See all 183 papers