TCANet
Motor imagery EEG classifier: multi-scale convolution, dilated causal temporal convolution, then self-attention.
Neuroscience signals · 172 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
- 19.6K
- Operations
- 172
- Framework
- PyTorch
- Recurrent
- No
- Published
- Cognitive Neurodynamics 19, 91 (2025)
- Cited by
- 31 (as of 30 October 2026)
- Authors
- Wei Zhao, Haodong Lu, Baocan Zhang and others
- Source
- GitHub: snailpt/TCANet
- License
- Apache-2.0
- 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
- m20744
- Graph hash
- b1bcaefb00334458db59e952d9a2fa54d45cb1df99342fb8936e70ae079a84ee
- Skeleton hash
- d85e9004d7d48b7e581f9ba66e27275426172efeb9bf63653086ff4b88a0f446
- Architecture hash
- 8d1c33c0d57447ac7f6f11ef80c2f78c7ea810125102de24be85388b23653bd8
- Diagram SHA-256
- 4fe47fb560034a457b3c7785c6a544289c7aa5bc241288d6d5d3d19d552add69
- 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
TCANet (Temporal Convolutional Attention Network) is an end-to-end classifier for motor imagery EEG, the brain signals produced by imagined limb movements that brain-computer interfaces decode. The paper argues that earlier hybrids of multi-scale CNNs and self-attention often concatenate multi-scale features without proper fusion or compression before the attention.
A multi-scale convolutional module (MSCM) runs three parallel convolution branches, each at a different temporal scale. A temporal convolutional module (TCM) of dilated causal convolutions then fuses and compresses those features; placing it between the convolutions and the attention is the paper's main change. An attention module of stacked multi-head self-attention blocks refines the result, and a single fully connected layer does the classification.
On the BCI IV-2a and IV-2b datasets the paper reports subject-dependent accuracies of 83.06% and 88.52%. IV-2a has four imagined movements (left hand, right hand, feet and tongue) recorded with 22 EEG electrodes. The paper reports 13.44K parameters on IV-2a, and notes that FLOPs and inference time are higher than those of lightweight baselines such as EEGNet because of the stacked attention blocks.
Key idea. TCANet inserts a temporal convolutional module between multi-scale convolution and multi-head self-attention to fuse and compress features before attention.
- TCANet
- Temporal Convolutional Attention Network
- motor imagery
- EEG decoding
- MI-EEG
- brain-computer interface
- BCI IV-2a
- temporal convolutional network
- EEG classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Zhao_2025, title={TCANet: a temporal convolutional attention network for motor imagery EEG decoding}, volume={19}, ISSN={1871-4099}, url={http://dx.doi.org/10.1007/s11571-025-10275-5}, DOI={10.1007/s11571-025-10275-5}, number={1}, journal={Cognitive Neurodynamics}, publisher={Springer Science and Business Media LLC}, author={Zhao, Wei and Lu, Haodong and Zhang, Baocan and Zheng, Xinwang and Wang, Wenfeng and Zhou, Haifeng}, year={2025}, month=June }