Self-Supervised Learning with Recursive Quadrature Filters for Neural Time Series
Organizations: Telepath · New York University
Abstract
We develop self-supervised methods for training Recursive Quadrature Filter (RQF) encoders on unlabeled time series. RQFs are biologically motivated, complex-valued temporal filters that form a special class of diagonal state-space models (SSMs). Each RQF acts as a band-pass filter whose selectivity is determined by two learnable parameters: its tuning frequency and bandwidth. We separately introduce a self-supervised learning objective based on prediction error; the encoder is trained so that its current state predicts its own future activity. In the windowed mode, the summary of the current window predicts the summary of a later window; in the dense mode, the state at the current timestep predicts future log-power. Each RQF encoder is pretrained on a dataset and then a readout (e.g., a task-specific classifier) is trained on the output of the RQF encoder, with the encoder either frozen or fully fine-tuned. For multichannel EEG and intracranial recordings, a shared encoder processes each channel separately, and a spatial readout combines the channel representations using electrode locations. Across four neural benchmarks using scalp or intracranial EEG, the pretrained RQF system performs close to the state of the art while using a small fraction of the parameters of the competing models. For example, a 110k-parameter RQF system achieves 0.9247 +/- 0.0022 test AUROC on 100-s TUAB segments, above SAMBA (0.9054) at the same context with 9 times as many parameters, and 0.9040 +/- 0.0019 on 10-s segments, comparable to EEG foundation models with 3.2M-369M parameters.
Figures & tables
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Params | Context | AUROC | B-ACC | |
| EEGNet | 3k | 10 s/200 Hz | 5 | 0.8412 .0031 | 0.7642 .0036 |
| EEGConformer | 550k | 10 s/200 Hz | 5 | 0.8445 .0038 | 0.7758 .0049 |
| SPaRCNet | 790k | 10 s/200 Hz | 5 | 0.8676 .0012 | 0.7896 .0018 |
| ContraWR | 1.6M | 10 s/200 Hz | 5 | 0.8456 .0074 | 0.7746 .0041 |
| CNN-Transformer | 3.2M | 10 s/200 Hz | 5 | 0.8461 .0013 | 0.7777 .0022 |
| FFCL | 2.4M | 10 s/200 Hz | 5 | 0.8569 .0051 | 0.7848 .0038 |
| Windowed SSL, frozen | Windowed SSL, full-FT | |||||
|---|---|---|---|---|---|---|
| Band | Filters | Drop | Excess | Filters | Drop | Excess |
| Below 1 Hz | 90 | 9.6 | [ , ] | 87–89 | 4.2 | [ , ] |
| Delta (1–4 Hz) | 148 | 32.2 | 9.6 [5.2, 14.1] | 130–132 | 11.3 | [ , ] |
| Theta (4–8 Hz) | 16 | 6.7 | 2.8 [1.5, 4.2] | 28–33 | 7.1 | 2.2 [0.2, 4.2] |
| Alpha (8–13 Hz) | 1 | 2.7 | 2.5 [1.2, 3.8] | 5–7 | 13.4 | 12.9 [10.2, 15.8] |
| Beta (13–30 Hz) | 1 | 3.1 | 3.0 [1.7, 4.4] | 1 | 7.7 | 7.4 [5.7, 9.4] |
| Model | Params | Context | AUROC | B-ACC | |
|---|---|---|---|---|---|
| SAMBA-100s | 1.0M | 100 s/128 Hz | n.r. | 0.9054 .0044 | 0.8264 .0017 |
| Ours — paired init., full-FT | 110k | 100 s/128 Hz | 3 | 0.9174 .0012 | 0.8357 .0009 |
| Ours — windowed SSL, full-FT | 110k | 100 s/128 Hz | 3 | 0.9247 .0022 | 0.8426 .0025 |
| Configuration | 1% | 5% | 10% | 25% | 100% |
|---|---|---|---|---|---|
| Full-FT, windowed SSL | 0.7001 .0722 | 0.8041 .0030 | 0.8395 .0054 | 0.8782 .0014 | 0.9040 .0019 |
| Full-FT, paired init. | 0.6509 .0230 | 0.7822 .0035 | 0.8271 .0048 | 0.8736 .0020 | 0.9046 .0017 |
| Full-FT difference (pp) | +4.91 | +2.19 | +1.24 | +0.45 | 0.06 |
| Frozen, windowed SSL | 0.6845 .0718 | 0.7906 .0069 | 0.8245 .0038 | 0.8603 .0013 | 0.8939 .0010 |
| Frozen, paired init. | 0.6501 .0060 | 0.7624 .0096 | 0.8014 .0017 | 0.8353 .0025 | 0.8643 .0009 |
| Frozen difference (pp) | +3.44 | +2.82 | +2.32 | +2.50 | +2.96 |
| Model | Params | Epoch context | B-ACC |
| EEGNet | 3k | 20 30 s | 0.7154 .0121 |
| EEGConformer | 550k | 20 30 s | 0.7400 .0133 |
| SPaRCNet | 790k | 20 30 s | 0.7487 .0075 |
| ContraWR | 1.6M | 20 30 s | 0.7402 .0126 |
| CNN-Transformer | 3.2M | 20 30 s | 0.7363 .0087 |
| FFCL | 2.4M | 20 30 s | 0.7277 .0182 |
| Model | Params | Input | Accuracy | |
| Neural CDE [ 16 ] | 89k | MFCC | 5 | 0.898 .025 |
| CKConv [ 17 ] | 100k | MFCC | n.r. | 0.9527 |
| FlexConv [ 18 ] | 239k | MFCC | n.r. | 0.9773 |
| Ours — paired init., frozen | 69.3k | raw | 3 | 0.6731 .0043 |
| Ours — paired init., full-FT | 69.3k | raw | 3 | 0.9666 .0034 |
| Ours — dense SSL, frozen | 69.3k | raw | 3 | 0.9408 .0009 |
| Model | Params | Seeds | AUROC |
|---|---|---|---|
| Brant | 500M | 5 | 0.772 .009 |
| PopT+BrainBERT | 20M | 5 | 0.776 .009 |
| BaRISTA (channels) | 1.0M | 5 | 0.778 .009 |
| BaRISTA (parcels) | 1.0M | 5 | 0.853 .007 |
| Ours — paired init., frozen | 293k | 5 | 0.8247 .0064 |
| Ours — paired init., full-FT | 293k | 5 | 0.8459 .0077 |
| Configuration | Test AUROC |
|---|---|
| Logistic regression, raw voltage | 0.7633 .1091 |
| Logistic regression, STFT magnitude | 0.8621 .0807 |
| Windowed MSE SSL, frozen | 0.8728 .0043 |
| Windowed MSE SSL, full-FT | 0.8727 .0030 |
| Model | Params | Pretraining data | B-ACC | |
| EEGNet | 3k | none | n.r. | 0.4482 .0094 |
| EEGConformer | 550k | none | n.r. | 0.4696 .0106 |
| SPaRCNet | 790k | none | n.r. | 0.4635 .0117 |
| ContraWR | 1.6M | none | n.r. | 0.4678 .0125 |
| CNN-Transformer | 3.2M | none | n.r. | 0.4600 .0108 |
| FFCL | 2.4M | none | n.r. | 0.4470 .0143 |
| Model | Encoder | Summary/pooler | Readout | Total |
|---|---|---|---|---|
| Speech classifier (d4/64) | 33.7k | — | 35.6k | 69.3k |
| EEG windowed (d4/64) | 33.7k | 16.6k | 59.8k | 110k |
| ISRUC epoch-local windowed (d4/64) | 33.7k | 16.6k | 147k | 198k |
| ISRUC contextual windowed (d4/64) | 33.7k | 16.6k | 173k | 224k |
| BCI-IV-2a (d4/64) | 33.7k | 16.6k | 62.6k | 113k |
| iEEG windowed (d4/128) | 133k | 65.9k | 94.1k | 293k |
| TUAB | BrainTreebank | |
| Signal | scalp EEG | intracranial EEG |
| Encoder depth / width | 4 / 64 | 4 / 128 |
| Sampling rate | 128 Hz | 2,048 Hz |
| Sequence context | 100 s | 3 s |
| Window / step | 1 s / 1 s ( windows) | 62.5 ms / 62.5 ms ( windows) |
| Window summary | complex mean final state linear + LayerNorm | |
| Family | Input ; rate | Encoder | Windows | Summary | Horizon |
|---|---|---|---|---|---|
| Speech dense | ; 16 kHz | d4/64 | — ( ) | 128/64 | 1,600 smp 100 ms |
| Speech windowed (mean) | ; 16 kHz | d4/64 | 128 | 4 win. 100 ms | |
| EEG windowed+pooler | ; 128 Hz | d4/64 | 64 | 2 win. 2,000 ms | |
| EEG dense | ; 128 Hz | d4/64 | — ( ) | 128/64 | 256 smp 2,000 ms |
| iEEG windowed+pooler | ; 2,048 Hz | d4/128 | 128 | 1 win. 62.5 ms |
Self-Supervised Time Series Representation Learning
Self-supervised time series representation learning uses unlabeled sequences to learn features that transfer to forecasting, classification, and anomaly detection.
See all 167 papers