All models

EEG-TCNet

EEGNet front end plus a temporal convolutional network for embedded motor-imagery EEG classification.

Neuroscience signals · 57 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 (28 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
4K
Operations
57
Framework
PyTorch
Recurrent
No
Published
IEEE SMC 2020
Cited by
356 (as of 9 October 2026)
Authors
Thorir Mar Ingolfsson, Michael Hersche, Xiaying Wang and others
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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14375
Graph hash
6c1e5b03fd453a83471308b2304b3756eef29bfdfa72476e1f3f8aefe2b7d484
Skeleton hash
1b15747c6fdb373981c4e27d6387bd1aa5de3ebd8e0561578a86bcb8ed34bcb4
Architecture hash
8642bcdf70baf684ae72e0f38278b052cbd6276e030bdc464b345b1790458568
Diagram SHA-256
b34aaf4d43f5e8998d2b48938fba35c6e89522651abb5bbededbdea29c198f72
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

How this diagram was made

braindecode.models.EEGTCNet(n_chans=22, n_outputs=4, n_times=1125, depth_multiplier=2, filter_1=8, kern_length=32, depth=2, kernel_size=4, filters=12, max_norm_const=0.25, drop_prob_eeg=0.2, drop_prob_tcn=0.3, tcn_batch_norm=True)

What it is

EEG-TCNet is a compact temporal convolutional network (TCN) for classifying motor-imagery electroencephalography (EEG) in brain-machine interfaces. It matters because deep learning models for these interfaces have grown in size, requiring a vast amount of memory and computational resources. Running classification on remote computers raises concerns about latency, availability, and privacy, and processing near the sensor on a low-power microcontroller mitigates them. The network needs only 4272 trainable parameters and 6.8 MMACs per inference, which suits resource-limited embedded devices.

The design combines the shallow, discriminative feature extraction layers of EEGNet with a TCN that exploits the temporal information those features still carry. The network starts with a 2D temporal convolution to learn frequency filters, then a depthwise convolution to learn frequency-specific spatial filters, then a separable convolution. The TCN stacks residual blocks of dilated causal convolutions, so the receptive field size increases exponentially with each block. The last time steps of each of the FT feature maps of the last residual block are read out and fed to a fully-connected layer for classification. One departure from the generic TCN is that normal dropout is used instead of spatial dropout.

The fixed configuration shared by all subjects is F1 = 8, F2 = 16, KE = 32, KT = 4, L = 2, FT = 12, pe = 0.2, pt = 0.3, with data standardization. The input is one BCI Competition IV-2a trial of 4.5 s, or 1125 samples at 250 Hz, with no additional bandpass filtering. That dataset holds recordings from nine subjects using 22 EEG electrodes, and the captured member is the fixed network classifying these 22-channel trials into four classes. With fixed hyperparameters, EEG-TCNet reaches 77.35% accuracy and a κ-score of 0.70 on the 4-class task, an increase of 4.95% over EEGNet. Subject-specific hyperparameters found by cross-validated grid search, the Variable EEG-TCNet, raise accuracy by 6.49% to 83.84%. On the Mother of All BCI Benchmarks (MOABB), it outperforms the current state of the art by a meta-effect of 0.25. The official code is Keras, with saved models per subject: model.h5 for Variable EEG-TCNet and model_fixed.h5 for fixed EEG-TCNet.

Key idea. EEG-TCNet shows that adding a temporal convolutional network behind EEGNet's feature extraction layers gives both the compactness of EEGNet and the high accuracy of TCNs. It achieves Pareto optimality in accuracy against parameter count and in accuracy against the number of MAC operations.

  • EEG-TCNet
  • EEGNet
  • TCN
  • motor imagery
  • brain-machine interface
  • BCI Competition IV-2a
  • MOABB
  • microcontroller
  • MACs
  • subject-specific hyperparameters

AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ingolfsson2020eegtcnetaccuratetemporalconvolutional,
      title={EEG-TCNet: An Accurate Temporal Convolutional Network for Embedded Motor-Imagery Brain-Machine Interfaces}, 
      author={Thorir Mar Ingolfsson and Michael Hersche and Xiaying Wang and Nobuaki Kobayashi and Lukas Cavigelli and Luca Benini},
      year={2020},
      eprint={2006.00622},
      archivePrefix={arXiv},
      primaryClass={eess.SP},
      url={https://arxiv.org/abs/2006.00622}, 
}