All models

ST-MEM

A ViT-B/75 encoder for 12-lead ECG, pre-trained by reconstructing masked spatio-temporal patches.

Neuroscience signals · 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 (8 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
85.2M
Operations
401
Framework
PyTorch
Recurrent
No
Published
ICLR 2024
Cited by
7 (as of 28 October 2026)
Authors
Yeongyeon Na, Minje Park, Yunwon Tae, Sunghoon Joo
License
CC-BY-NC-4.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
m20157
Graph hash
c287b9de2383460aa81ae7b5670d5e09a9f9976061f0f593af0ca2b3c2206ba9
Skeleton hash
c998520c2a725a53e7663acb509f672e2c9c6b9817c3f58e40deda17740fa538
Architecture hash
c6018ca394d2171310b84058a262e150171ecb15426da4b1b18daece5fd29078
Diagram SHA-256
4547ed2d4fffcd327589baaf8f785298f081ead95a6453f03d1243cadc7de383
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

ST-MEM (Spatio-Temporal Masked Electrocardiogram Modeling) is a self-supervised method for pre-training a model on 12-lead ECG recordings, which learns by reconstructing masked parts of the signal. The motivation is that labeled ECG data are limited, which makes disease screening applications hard to build. The paper argues that applying self-supervised learning naively, without considering the spatial-temporal relationships in ECG signals, may yield suboptimal results.

The method adopts the MAE reconstruction task, with a vision transformer (ViT) encoder and a decoder of additional transformer blocks. Each lead signal is split independently into spatio-temporal patches. A lead-specific embedding and a shared separation embedding are added so that the model can distinguish between patch embeddings from different leads.

After pre-training, only the encoder is used for downstream tasks and the decoder is discarded. The repository's pre-training and fine-tuning commands use a ViT-B/75 encoder. Pre-training combined three 12-lead ECG datasets: Chapman, Ningbo and CODE-15. The paper reports that ST-MEM outperforms other self-supervised baseline methods in various experimental settings for arrhythmia classification, and that it is adaptable to various lead combinations.

Key idea. ST-MEM pre-trains an ECG encoder by reconstructing masked 12-lead signals with spatio-temporal patchifying and lead-indicating modules, so the representation reflects relationships across leads and time.

  • st-mem
  • spatio-temporal masked electrocardiogram modeling
  • ecg
  • electrocardiogram
  • 12-lead ecg
  • ecg representation learning
  • ecg self-supervised learning
  • arrhythmia classification
  • masked ecg modeling

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

Cite the paper

@misc{na2024guidingmaskedrepresentationlearning,
      title={Guiding Masked Representation Learning to Capture Spatio-Temporal Relationship of Electrocardiogram}, 
      author={Yeongyeon Na and Minje Park and Yunwon Tae and Sunghoon Joo},
      year={2024},
      eprint={2402.09450},
      archivePrefix={arXiv},
      primaryClass={eess.SP},
      url={https://arxiv.org/abs/2402.09450}, 
}