TodyNet: Temporal dynamic graph neural network for multivariate time series classification

Huaiyuan Liu, Donghua Yang, Xianzhang Liu, Xinglei Chen, Zhiyu Liang, Hongzhi Wang, Yong Cui, Jun Gu

TL;DR

TodyNet is a novel deep learning framework that treats multivariate time series as dynamic graphs, learning hidden relationships between variables that change over time. By combining dynamic graph construction with a specialized hierarchical pooling layer, it sets a new state-of-the-art performance across 26 major benchmark datasets.

What Problem Does This Paper Address?

Multivariate Time Series Classification (MTSC)—predicting a label for data with multiple synchronized variables, like sensor readings from a factory or brain signals from an EEG—is notoriously difficult.

The authors identify two major gaps in current deep learning approaches:

  1. Hidden Dependencies: Most models treat variables as independent or use fixed relationships. In reality, variables often have "hidden" interactions that aren't immediately obvious.
  2. Static vs. Dynamic: Time series are inherently dynamic, yet most Graph Neural Networks (GNNs) applied to this field use a single, static graph for the entire duration. This ignores how relationships between variables might evolve over time.

Methods

TodyNet introduces an end-to-end architecture that learns both the features and the graph structure simultaneously. Its core components include:

  • Dynamic Graph Construction: Instead of requiring a predefined graph (like a roadmap), TodyNet learns an adjacency matrix through gradient descent. It slices the time series into segments and builds a graph for each.
  • Dynamic Graph Transform (DGT): To ensure information flows across time, DGT connects nodes in one time slot to their counterparts in the next. This allows the model to aggregate information not just from "neighboring variables" but also from "past versions" of those variables.
The DGT mechanism aggregates information from previous time slots to capture temporal evolution.
  • Temporal Graph Pooling (TGP): Standard pooling often "flattens" data too aggressively, losing detail. TGP uses a hierarchical approach, employing 2D convolutions to cluster nodes into "super-nodes" while preserving temporal features.
TGP clusters nodes hierarchically across layers to extract global representations.

The entire framework (shown in Figure 1) integrates temporal convolutions, dynamic graph modeling, and hierarchical pooling into a single trainable pipeline.

The overall TodyNet architecture.

Datasets

The researchers evaluated TodyNet on 26 equal-length datasets from the UEA multivariate time series classification archive. These datasets cover diverse domains including:

  • Human Activity Recognition (HAR): e.g., Cricket, Epilepsy.
  • Medical/EEG: e.g., AtrialFibrillation, FingerMovements.
  • Audio/Motion: e.g., DuckDuckGeese, ArticularyWordRecognition.

Key Insights and Ideas

  • Graphs are the "Natural" Language for MTS: The authors argue that since every variable can be viewed as a node, GNNs are uniquely suited to MTSC—provided the graph can change over time.
  • Learning the Structure: One of the "aha" moments is that you don't need a domain expert to define the graph. By initializing learnable node embeddings, the model discovers which variables are interdependent.
  • The Power of Dynamics: Ablation studies (Figure 6) revealed that using a dynamic graph (slicing the series) performed significantly better than a static graph (one graph for the whole series). This proves that the "evolution" of variable relationships is a critical feature for classification.

Key Results

TodyNet demonstrated superior performance compared to eight state-of-the-art baselines (including OS-CNN and Rocket):

  • Accuracy: TodyNet achieved the highest accuracy on 13 out of 26 datasets.
  • Average Rank: It secured the best overall average rank (3.2692) among all tested classifiers.
  • EEG Performance: The model showed particularly strong improvements on EEG and MEG data (like FaceDetection and HandMovementDirection), where capturing hidden, complex dependencies between brain regions is vital.
Scatter plots showing TodyNet consistently outperforming versions of itself where key components (Graph, Dynamics, or Pooling) were removed.

Limitations and Future Work

While TodyNet is powerful, the authors note a few areas for improvement:

  • Computational Complexity: The hierarchical temporal graph pooling adds a layer of complexity that could be optimized for better efficiency.
  • Alternative Convolutions: The current model uses standard temporal convolutions; the authors suggest that "transplanting" more advanced temporal convolution methods into the TodyNet framework might yield even higher accuracy.
  • Variable Lengths: The study focused on equal-length datasets; adapting the dynamic graph mechanism for variable-length series remains a future challenge.

Summary updated

BibTeX
@article{liu2024todynet,
  author = {Huaiyuan Liu and Donghua Yang and Xianzhang Liu and Xinglei Chen and Zhiyu Liang and Hongzhi Wang and Yong Cui and Jun Gu},
  title = {{TodyNet: Temporal dynamic graph neural network for multivariate time series classification}},
  journal = {Information Sciences},
  year = {2024},
  url = {https://openreview.net/forum?id=QcZtRKPJpG},
}
Figure