SeizureTransformer
U-shaped convolution and transformer model that detects seizures in EEG at every time step.
Neuroscience signals · 411 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Neuroscience signals
- Parameters
- 41M
- Operations
- 411
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2025
- Cited by
- 13 (as of 16 November 2026)
- Authors
- Kerui Wu, Ziyue Zhao, Bülent Yener
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20316
- Graph hash
- 1ba3eab8e164adaf3ac43fd0491b2b230c336259088b040602b940f7014452ca
- Skeleton hash
- b1f1d3d9a19778544d381692565b91cd1687a5928bddafaa4bb6d05da626707e
- Architecture hash
- e15ab8d014e3deebd288a39624dda6d87bdb12172112381e7725917538b04640
- Diagram SHA-256
- 41a7fd46da33a1e9f05a8334695fe16076896afa43c724fefe69f209f308d2e9
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
SeizureTransformer is a U-shaped model for EEG that combines convolution and self-attention modules for sequence-to-sequence modeling. The paper notes that existing methods require complex and redundant post-processing pipelines to convert discrete labels to continuous annotations. This model instead outputs predictions directly at the time-step level.
It has three components, a deep encoder of 1D convolutions, a residual CNN stack followed by a transformer encoder, and a decoder that converts the features into a sequence of probabilities. The ResCNN stack consists of 7 blocks of two convolution layers with residual connections. The transformer encoder contains 8 stacked layers with an embedding dimension of 512, 4 attention heads and a feedforward dimension of 2048. Residual connections also run between the encoder and the decoder. For seizure detection the paper sets the window to 1 minute sampled at 256 Hz, which is 15360 time steps.
With an attention-pooling layer added, the same architecture extends to window-level classification. The paper states that the model won 1st place in the 2025 seizure detection challenge organized in the International Conference on Artificial Intelligence in Epilepsy and Other Neurological Disorders.
Key idea. The paper builds a U-shaped model of convolution and self-attention modules that outputs EEG event predictions at every time step, eliminating redundant overlapping inferences.
- SeizureTransformer
- EEG-U-Transformer
- Large EEG-U-Transformer
- seizure detection
- EEG
- electroencephalography
- time-step level detection
- sleep stage classification
- U-shaped model
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wu2025largeeegutransformertimesteplevel,
title={Large EEG-U-Transformer for Time-Step Level Detection Without Pre-Training},
author={Kerui Wu and Ziyue Zhao and Bülent Yener},
year={2025},
eprint={2504.00336},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2504.00336},
}