Time2Graph+
Time series classifier that runs graph attention over a per-series graph of shapelets.
Time series · 145 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
- 20.5M
- Operations
- 145
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2021, IEEE Transactions on Knowledge and Data Engineering
- Cited by
- 36 (as of 29 October 2026)
- Authors
- Ziqiang Cheng, Yang Yang, Shuo Jiang and others
- 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
- m20971
- Graph hash
- eb4c1a7b2a2435cedb5071b9e041b2a91e10a752a76f3ac29951d400a129f028
- Skeleton hash
- a0a92f79f4158241c6549503d25097d3d5f964c521b6ef41666c22f5a1689183
- Architecture hash
- f07ad7edbfb7370c9fbec5805f7cb6b2c9621f227791e7893f2901422e869044
- Diagram SHA-256
- 22699d2b3c0b04fb681f36a02c9f11c5da71f9c4e935b52014995b9553b8406d
- 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
Time2Graph+ classifies time series by turning each series into its own graph of shapelets and running a graph attention network (GAT) over it. Shapelets are representative subsequences, and the paper notes that models built on them can offer explanatory insights in downstream tasks.
The model extends the authors' earlier Time2Graph, which enumerates all possible shapelet transitions among adjacent time series segments and applies a random-walk-based graph embedding algorithm. Time2Graph+ instead lets attention assign learnable dynamic edge weights, which can be read as shapelet transition probabilities. Training is end to end and supervised, with time series classification recast as graph-level classification. The graph-level representation of a single time series is the average of its node representations.
The paper reports significant improvements over Time2Graph and 17 baseline methods on three real-world datasets. The authors also deployed the model at a subsidiary of State Grid of China to recognize empty-nest elderly users automatically.
Key idea. Time2Graph+ transforms each time series into its own unweighted shapelet graph and uses graph attention to learn the correlations between shapelets.
- Time2Graph+
- Time2GraphPlus
- time series classification
- shapelets
- shapelet graph
- graph attention
- time-aware shapelets
- shapelet evolution graph
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Cheng_2021, title={Time2Graph+: Bridging Time Series and Graph Representation Learning via Multiple Attentions}, ISSN={2326-3865}, url={http://dx.doi.org/10.1109/TKDE.2021.3094908}, DOI={10.1109/tkde.2021.3094908}, journal={IEEE Transactions on Knowledge and Data Engineering}, publisher={Institute of Electrical and Electronics Engineers (IEEE)}, author={Cheng, Ziqiang and Yang, Yang and Jiang, Shuo and Hu, Wenjie and Ying, Zhangchi and Chai, Ziwei and Wang, Chunping}, year={2021}, pages={1–1} }