All models

EEG-Deformer

A CNN-Transformer for EEG decoding with coarse-to-fine temporal blocks and dense information purification.

Neuroscience signals · 156 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (15 KB)

Open in a new tab

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

Parameters
542.9K
Operations
156
Framework
PyTorch
Recurrent
No
Published
IEEE Journal of Biomedical and Health Informatics (arXiv 2024)
Cited by
118 (as of 28 October 2026)
Authors
Yi Ding, Yong Li, Hao Sun and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16289
Graph hash
076857809e0cd8a947360efb7b69893aa00c1aea39e16d27f86f22fdb405f0d4
Skeleton hash
b38ea8b39930282c8e54aaa711f2ccfee2f77892befe882e19feaa23992351a8
Architecture hash
1e7106a839ab6b59eb2551e431364b5c3fcf286f1daa95ffe149b8a151c37cd9
Diagram SHA-256
5c65deed43b794b7329a520e8345eabf46f9836a11ad9a91d0293f7d8d1035c8
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

EEG-Deformer is a dense convolutional Transformer that decodes mental states from electroencephalography (EEG) for brain-computer interfaces. Its paper argues that most methods combining Transformers with convolutional neural networks fail to capture the coarse-to-fine temporal dynamics of EEG signals.

The network has three main parts: a shallow feature encoder, a Hierarchical Coarse-to-Fine Transformer (HCT) and a Dense Information Purification (DIP) module. Each HCT block runs a Transformer-based branch, which learns correlations among the tokens, in parallel with a CNN-based branch that learns fine-grained EEG features, and a sum fusion gives the output of the layer. The fine-grained representations also go through an Information Purification Unit, which applies a logarithmic power operation and fuses them into the final representation. The paper explains that log power can represent the amount of activity in filtered signals and reduce dimensions, so the unit also reduces the number of learnable parameters.

The paper evaluates three cognitive tasks: cognitive attention, driving fatigue and mental workload detection. On the attention dataset it reports 82.72% accuracy, an improvement of 2.92% over EEG-Conformer, the next best performer in its comparison. On the fatigue dataset it reports an accuracy of 79.32%. The authors note that in some datasets the standard deviation of the model's performance is higher than that of certain baseline methods.

Key idea. EEG-Deformer adds a fine-grained temporal learning branch to each Transformer block and a dense information purification module, so that a CNN-Transformer captures coarse-to-fine temporal patterns in EEG.

  • EEG-Deformer
  • EEG decoding
  • brain-computer interface
  • electroencephalography
  • convolutional Transformer
  • Hierarchical Coarse-to-Fine Transformer
  • Dense Information Purification
  • driving fatigue detection
  • cognitive attention
  • mental workload detection

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ding2024eegdeformerdenseconvolutionaltransformer,
      title={EEG-Deformer: A Dense Convolutional Transformer for Brain-computer Interfaces}, 
      author={Yi Ding and Yong Li and Hao Sun and Rui Liu and Chengxuan Tong and Chenyu Liu and Xinliang Zhou and Cuntai Guan},
      year={2024},
      eprint={2405.00719},
      archivePrefix={arXiv},
      primaryClass={eess.SP},
      url={https://arxiv.org/abs/2405.00719}, 
}