All models

THAT

A two-stream transformer with multi-scale convolutions that classifies human activities from WiFi CSI.

Time series · 401 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 (16 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
49.3M
Operations
401
Framework
PyTorch
Recurrent
No
Published
AAAI 2021
Cited by
231 (as of 28 October 2026)
Authors
Bing Li, Wei Cui, Wei Wang 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
m20792
Graph hash
30ce83316cc993810a7f7b59fd293a4ec469249fa024d578aa99af182589d9a3
Skeleton hash
0c9814e1a4dfbfce177e570783b6b064be14ce28ba61c676e466e97bcb79005b
Architecture hash
de29970bab7c600c0cc8f5ca9b8a35881dae4954333449bf33bfd62b7a96fa45
Diagram SHA-256
c8aceefb489c1de23d7543625e749e2986e5cc69a28678edcdebe3f1f9c44426
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

THAT (Two-stream Convolution Augmented Human Activity Transformer) recognizes human activities from WiFi channel state information (CSI). Earlier WiFi-based methods treated the signal as a temporal sequence of CSI and applied sequential models such as RNNs and LSTMs. The paper argues that a single time point is too small a unit to represent a meaningful CSI pattern, and that features taken across channels are also important.

The CSI matrix is used twice: time-first as a temporal stream and, after a transpose, channel-first as a channel stream. Each stream passes through its own stack of multi-scale convolution augmented transformer (MCAT) layers. An MCAT layer is multi-head self-attention followed by a multi-scale CNN with an adaptive scale, each wrapped in a residual connection and layer normalization. In place of a positional encoding defined on single points, the paper proposes a Gaussian range encoding in which a position can belong to several ranges at once. Two convolutional blocks reduce the stream features to fixed-length vectors, which are concatenated and passed to the prediction layer.

The paper evaluates on four CSI datasets, one publicly available and three collected with the authors' prototype system. It reports accuracy above 98.7% and a speed 1.83 to 3.37 times that of the sequential models it was compared with.

Key idea. THAT uses a two-stream structure for time-over-channel and channel-over-time features, with multi-scale convolution augmented transformers that capture range-based patterns in WiFi signals.

  • THAT
  • Two-stream Convolution Augmented Human Activity Transformer
  • WiFi human activity recognition
  • channel state information
  • WiFi CSI
  • human activity recognition
  • wireless sensing
  • Gaussian range encoding
  • MCAT
  • two-stream transformer

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

Cite the paper

@article{Li_2021, title={Two-Stream Convolution Augmented Transformer for Human Activity Recognition}, volume={35}, ISSN={2159-5399}, url={http://dx.doi.org/10.1609/aaai.v35i1.16103}, DOI={10.1609/aaai.v35i1.16103}, number={1}, journal={Proceedings of the AAAI Conference on Artificial Intelligence}, publisher={Association for the Advancement of Artificial Intelligence (AAAI)}, author={Li, Bing and Cui, Wei and Wang, Wei and Zhang, Le and Chen, Zhenghua and Wu, Min}, year={2021}, month=May, pages={286–293} }