Learning dynamics on a graph: how STGCN forecasts many coupled time series at once

Many real signals are measured at points that are linked to each other: sensors on roads, stations in a city, electrodes on a scalp. The right object is then a graph whose every node carries a time series. In our IJCAI 2018 paper, we introduced the Spatio-Temporal Graph Convolutional Network (STGCN) for forecasting these coupled time series. To our knowledge, it was the first model for this problem built entirely from convolutions over the graph and over time. We tested it on road sensors. Its sandwich block became a standard building block of graph neural networks for time series[7], and the paper is among the most cited in that field.

The figures below build the idea one piece at a time. Colour means the same thing in all of them:

space: the graph, its sensors and edges, the graph convolution time: the time axis, past frames, the temporal gated convolution STGCN itself and what it predicts the field that grew from it earlier methods, baselines, and what is unknown

Labels followed by a small dot • and terms with a dotted underline carry a note. Hover over them, or tap. Bars and nodes without a dot carry notes as well.

1. A network of time series

What is forecast, and why draw it as a graph?

Each sensor reports a speed every five minutes, and nearby sensors move together. We treat the readings at one moment as a signal on a graph. Stacking these signals in time lets us forecast the next few frames (Fig. 1).

The map. Traffic flows along the roads, and each sensor (a node) turns the cars passing it into one number, the average speed in km/h. The twelve readings at time t form the vector vt.

Figure 1. The forecasting problem of the paper (Eq. 1 and Eq. 10). The map, its sensors and their readings are illustrative, not a real data set; the edges follow Eq. 10 with distances in invented units. Edge width shows the weight wij.

2. Where earlier models fall short

What do per-series models, grid CNNs and RNNs miss?

Before this paper, forecasters either ignored the network, forced it onto a grid, or read time with recurrent chains. STGCN keeps the graph as it is and reads time with convolutions instead, building on spectral graph convolution[1][2] and convolutional sequence models[3] (Fig. 2).

One series at a time. Classical forecasters such as ARIMA and the historical average extend each sensor's own past and never look at its neighbours.

Figure 2. The gaps named in Section 1 of the paper, drawn as schematics. The sensor layout is the illustrative map of Fig. 1.

3. Convolution over the graph

How does a sensor read its neighbours?

A graph has no left and right, so we define our filter through the graph Laplacian and approximate it with polynomials, after Defferrard et al.[1] and Kipf and Welling[2]. In practice a node mixes its own value with those of nodes a few edges away (Fig. 3).

A kernel on a graph. The output at the ringed node is a weighted sum of Chebyshev polynomials Tk of the rescaled Laplacian, each with its own learned weight θk (Eq. 3).

Figure 3. Spatial graph convolution (Section 3.2 of the paper) on the illustrative map of Fig. 1. The ringed node, its hop rings and the flowing dots are schematic; the hop counts follow that map's edges.

4. Convolution over time, with a gate

How is the time axis read without recurrence?

Along the time axis, we use a plain one-dimensional convolution with a gate, the gated linear unit of Gehring et al.[3]. Every output depends only on a short window of the past, so all positions are computed at once (Fig. 4).

A causal window. A window of width Kt = 3 slides along one sensor's 12 readings and writes one output for each position it fits, with no padding. Two positions are lost.

Figure 4. Temporal gated convolution (Section 3.3 of the paper). Cell values, gate openings and the shading of cells are invented for illustration; the lengths 12 and 10 follow from M = 12 and Kt = 3.

5. The sandwich block and the full network

How do the two convolutions fit together?

The ST-Conv block puts one graph convolution between two temporal ones, and the model stacks two such blocks before an output layer. Each temporal layer shortens the stack of frames by two, so twelve frames come out as one forecast (Fig. 5).

Input: 12 frames. One card per 5-minute frame, each holding the readings of all n sensors, one channel each (speed).

Figure 5. The STGCN architecture (Section 3.4 and Fig. 2 of the paper), drawn as our own schematic. Frame counts follow from M = 12 and Kt = 3; card heights stand for channel counts and are not to scale. The map on the front card is the illustrative one of Fig. 1.

6. Accuracy on 228 and 1,026 sensors

Does it beat the methods it replaces, at every horizon?

On the California highway data (PeMSD7), both STGCN variants have the lowest error at all three horizons, and the gap grows with the horizon (Fig. 6).

15 min ahead. On PeMSD7(M), 228 sensors, three steps ahead. The two STGCN bars are the lowest; GCGRU and the linear LSVR come closest.

Figure 6. Drawn from Table 2 of the paper: mean absolute error (MAE) per method; hover a bar for its MAPE and RMSE. On the Beijing data set BJER4 (Table 1) the order is the same. The paper reports STGCN best on all three metrics with statistical significance. GCGRU follows Li et al.[4].

7. Training cost

What does the convolutional design buy in time and size?

Because no step waits for the one before, training runs in parallel. We measured the full training time against GCGRU on both PeMSD7 graphs (Fig. 7).

A race on PeMSD7(M). The bars fill at the same rate, so their lengths are the training times. Both STGCN variants finish in about 272 s; GCGRU needs 3,824.54 s, which the paper calls a 14 times acceleration.

Figure 7. Drawn from Table 3 and Section 4.4 of the paper. Each data set has its own time axis. No bars are drawn for the parameters of GCGRU and FC-LSTM because the paper gives only ratios.

8. Eight years of citations

How widely has the idea been taken up?

Citations of the paper have grown every year since it appeared, and the official code is still maintained. The counts differ between databases, so the figure shows them side by side (Fig. 8).

2018–2020. Citing works per year, as counted by OpenAlex. Uptake started slowly after the IJCAI paper and then took off.

Figure 8. Not from the paper: data from the OpenAlex, Semantic Scholar, Crossref and GitHub APIs, retrieved on 26 November 2026. The 2026 bar is a partial year.

9. The family it started

What grew from the sandwich block, and where did it travel?

Later models kept the pairing of graph convolution and temporal convolution and changed one part at a time: a learned graph[5], attention, continuous time. The decisive step for the general case was MTGNN[6], which learns the graph from the series themselves, so no map is needed (Fig. 9).

The first wave. 2018 to 2019. DCRNN[4] appeared alongside STGCN as a recurrent alternative. Graph WaveNet[5] kept the convolutional design and learned extra edges; ASTGCN added attention.

Figure 9. A selection of follow-up work, placed by year of publication; DCRNN is a contemporary, not a descendant. Citation counts in the notes are from OpenAlex, 26 November 2026. The selection is ours and is not exhaustive.

In the paper, we reported that STGCN outperformed the state of the art on two real-world data sets while achieving “faster training, easier convergences, and fewer parameters”, and that the framework “can be applied into more general spatio-temporal structured sequence forecasting scenarios, such as evolving of social networks, and preference prediction in recommendation systems”. The field did exactly that, and the block now reads air-quality stations, EEG electrodes and dengue counts that never stood beside a road[9].

References

  1. Defferrard et al. Convolutional neural networks on graphs with fast localized spectral filtering. NIPS 2016.
  2. Kipf and Welling. Semi-supervised classification with graph convolutional networks. 2016.
  3. Gehring et al. Convolutional sequence to sequence learning. 2017.
  4. Li et al. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. ICLR 2018.
  5. Wu et al. Graph WaveNet for deep spatial-temporal graph modeling. IJCAI 2019.
  6. Wu et al. Connecting the dots: Multivariate time series forecasting with graph neural networks. KDD 2020.
  7. Jin et al. A survey on graph neural networks for time series: Forecasting, classification, imputation, and anomaly detection. TPAMI 2024.
  8. Corradini et al. A systematic literature review of spatio-temporal graph neural network models for time series forecasting and classification. Neural Networks 2025.
  9. Siabi et al. Innovative application of a traffic-prediction spatio-temporal graph convolutional network for dengue disease forecasting. Scientific Reports 2026.
  10. Lone et al. Efficient traffic prediction at scale: A systematic study of STGCN architectural depth. 2026.

Bing Yu, Haoteng Yin and I presented “Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting” at IJCAI 2018. Figures 1–5 use an illustrative road map and invented readings to explain the method. Figures 6 and 7 plot results from Tables 2 and 3 of our paper. Figure 8 uses citation databases and GitHub, and Figure 9 draws on the follow-up studies named in the timeline.