STraTS
Transformer that reads sparse, irregular clinical time-series as a set of (time, variable, value) triplets.
Time series · 98 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
- Time series
- Parameters
- 88.2K
- Operations
- 98
- Framework
- PyTorch
- Recurrent
- No
- Published
- ACM Transactions on Knowledge Discovery from Data (arXiv 2021)
- Paper
- Self-Supervised Transformer for Sparse and Irregularly Sampled Multivariate Clinical Time-Series
- Cited by
- 130 (as of 29 October 2026)
- Authors
- Sindhu Tipirneni, Chandan K. Reddy
- Source
- GitHub: sindhura97/STraTS
- License
- MIT
- 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
- m20209
- Graph hash
- 5b88d629eb6f731887f465c93aa391f070107f1fe761acb4414315c4bb6a1b2b
- Skeleton hash
- ad8db9a01ebc697fe77588d640255b18457f27571bbe421d98166623a21f285e
- Architecture hash
- 94e0d931d9868fc59784059238e010d950f8db3f2d04cf6533e17d5311fe15ff
- Diagram SHA-256
- 04d571cb22e60c6ade4b73db36d0f198ab06b0bcfcbe5022c5ab73d695fd0491
- 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
STraTS (Self-supervised Transformer for Time-Series) is a Transformer for the multivariate time-series of critical care, which are typically sparse and irregularly timed. Instead of a dense matrix, it treats a time-series as a set of observation triplets, each holding a time, a variable and a value, so no aggregation or imputation is needed.
Each triplet's embedding is the sum of a feature embedding, a value embedding and a time embedding. Times and values are continuous, so they go through the paper's Continuous Value Embedding, a one-to-many feed-forward network. A Transformer then gives each triplet a contextual embedding, and a self-attention layer fuses these into one time-series embedding. That embedding is concatenated with a demographics embedding and passed through a dense layer for the final prediction. This model is the authors' PyTorch re-implementation, which removes LayerNorm and replaces the ReLU activations in the feed-forward layers with GELU.
For self-supervision the paper tried both masking and forecasting as pretext tasks and found that forecasting improved results on the target tasks. On mortality prediction it reports PR-AUC improvements of 3.2% and 3.5% over the best baseline on the MIMIC-III and PhysioNet-2012 datasets. The re-implementation's README notes that its changes make some results deviate from the numbers published in the paper.
Key idea. STraTS treats a clinical time-series as a set of observation triplets, embeds continuous times and values without discretization, and pretrains a Transformer on forecasting.
- STraTS
- Self-supervised Transformer for Time-Series
- clinical time-series
- irregularly sampled time-series
- sparse time-series
- mortality prediction
- observation triplets
- Continuous Value Embedding
- EHR
- ICU
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{tipirneni2022selfsupervisedtransformersparseirregularly,
title={Self-Supervised Transformer for Sparse and Irregularly Sampled Multivariate Clinical Time-Series},
author={Sindhu Tipirneni and Chandan K. Reddy},
year={2022},
eprint={2107.14293},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2107.14293},
}