liveBook · Manning

Temporal graph neural network

As explained in Graph Neural Networks in Action

A temporal graph attention model that represents time-dependent interactions by incorporating timestamps into graph edges.

A temporal graph neural network models graphs whose node features, relationships, or both change across time. It is useful when predicting a future state depends on a sequence of earlier graph snapshots, such as human motion, customer purchases, or weather patterns. section 6.2 section 6.6

Represent each entity as a node and its relationships as edges, then preserve the time dimension instead of flattening all observations into one static graph. A temporal graph attention network (TGAT) treats edges as dynamic and attaches a timestamp to each edge. section 6.3.1 section 6.6

A practical spatiotemporal pipeline commonly follows these steps:

  • Construct one graph layer per timestep by repeating and shifting the edge index, then reshape the result for graph processing. section 6.6

Pose prediction

In motion capture, 41 sensors represent joints from the toes to the neck. Body connections form intra-timestep edges, while corresponding nodes across adjacent timesteps capture temporal dependencies. The model predicts masked future joint features from recent motion. section 6.2

A naive static GAT can compress node features and temporal data into one graph, weakening temporal structure and producing inaccurate poses. Temporal encodings, timestamped edges, or recurrent processing provide alternatives; RNNs and GRUs can supply memory across snapshots. section 6.3.1 section 6.6

How Graph Neural Networks in Action covers it

How deep it goes
Builds temporal adjacency, masking, attention training, and recurrent extensions, but does not derive TGAT internals mathematically.
Examples
Uses human pose tracking with joint sensors, and motivates applications in purchases and geospatial weather prediction.
What it assumes
Assumes basic graph neural network and attention familiarity while developing temporal graph construction through pose data.
What you can do after
Build it from scratch using graph snapshots, temporal edges, masked targets, PyTorch attention layers, and supervised training loops.
How it connects
Connects graph attention networks, temporal encoding, recurrent neural networks, gated recurrent units, and neural relational inference.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Neural Networks in Action. The section links point to the parts of the book it draws on.