SATrans-Net
EEG motor imagery classifier combining separable convolutions with a Transformer that uses Top-K sparse attention.
Neuroscience signals · 479 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
- 155.6K
- Operations
- 479
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2025, Scientific Reports
- Cited by
- 3 (as of 28 October 2026)
- Authors
- Tianhua Miao, Liansen Sha, Kun Huang and others
- 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
- m19964
- Graph hash
- d64167a7fa4736e2a06ad3cdb9f7f058a125c63f2db41b7f97c6e09196ac0a1b
- Skeleton hash
- 6ca6e40525be86a58e469655d5b8b6888838271dfabdfb7e240906243c5dafad
- Architecture hash
- b556813e177e4897c28bd271ded06e59fa6248f4dce33088b200c1ed95d4e5ca
- Diagram SHA-256
- 91b808f20b4e4db73d9b978be37dd0c81394edcbc65cc54d80f4b4702a4cf14d
- 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
SATrans-Net decodes motor imagery from EEG, the brain-computer interface task of identifying a person's motor intentions from their brain signals. The authors argue that current deep learning methods often overlook the long-sequence nature of these signals, which limits feature extraction and decoding accuracy.
The model has three main components: feature extraction with 2D separable convolution, a Transformer block with Top-k sparse attention, and a classification layer. In the sparse attention, only the K most relevant keys are retained for each query, and the attention scores at the remaining positions are set to negative infinity before the softmax. The value of K is set by several ratios at once rather than a single one. The paper presents this as a theoretical reduction from quadratic to linear complexity in the sequence length.
For the BCI IV-2a dataset, each EEG segment is a (22, 1000) matrix of channels by time points. In cross-session evaluations, the paper reports average accuracies of 84.72%, 89.76% and 96.79% on the BCI IV-2a, BCI IV-2b and High-Gamma datasets. In its ablation, removing both the Top-K Transformer encoder module and data augmentation caused the largest drop in accuracy, 3.97% on BCI IV-2a.
Key idea. SATrans-Net combines 2D depthwise separable convolution with a Transformer that uses Top-K sparse attention, modeling long-range dependencies in EEG motor imagery signals at lower computational cost.
- satrans-net
- sparse attention transformer
- top-k sparse attention
- eeg motor imagery
- motor imagery decoding
- eeg classification
- brain-computer interface
- bci
- eeg transformer
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Miao_2025, title={SATrans-Net: Sparse Attention Transformer for EEG-based motor imagery decoding}, volume={16}, ISSN={2045-2322}, url={http://dx.doi.org/10.1038/s41598-025-30806-8}, DOI={10.1038/s41598-025-30806-8}, number={1}, journal={Scientific Reports}, publisher={Springer Science and Business Media LLC}, author={Miao, Tianhua and Sha, Liansen and Huang, Kun and Li, Yongbin and Liu, Bin}, year={2025}, month=Dec }