Skip to Content
SensorsSensors
  • Article
  • Open Access

7 October 2026

23 Pages

ST-FGDIR: Spatiotemporal Traffic Forecasting with Forecast-Gain-Guided Deviation–Invariance Routing

,
,
and
1
School of Information Engineering, Guilin University, Guilin 541006, China
2
College of Intelligent Science and Engineering, Beijing University of Agriculture, Beijing 102206, China
3
Department of Computer and Electrical Engineering, Mid Sweden University, 85170 Sundsvall, Sweden
*
Authors to whom correspondence should be addressed.

Abstract

Accurate multi-step traffic forecasting requires models to respond to genuine traffic-state transitions while resisting deviations caused by missing or noisy observations. Existing deviation-aware methods characterize departures from recurrent patterns, but deviation magnitude alone does not indicate whether the resulting correction will improve a node-wise forecast. Guided by the insight that correction strength should depend on forecast gain rather than deviation magnitude, we propose Spatiotemporal Traffic Forecasting with Forecast-Gain-Guided Deviation–Invariance Routing (ST-FGDIR). ST-FGDIR constructs an anchor-conditioned stable endpoint and a deviation-corrected candidate through weight-shared current–anchor graph encoding and multi-view deviation evidence. Signed candidate-error differences provide soft forecast-gain targets for a node-wise continuous router, while selective risk extrapolation and a false-activation loss control stable-endpoint risk across perturbation environments and suppress perturbation-induced increases in residual injection. Experiments on METR-LA, PEMS-BAY, PEMS04, and PEMS08 show competitive forecasting performance relative to published baseline results. The inference gates exhibited Spearman correlations of 0.49–0.53 with realized correction gain, and the complete model yielded an average relative MAE increase of 9.38% across 12 controlled dataset–perturbation conditions. These results demonstrate that forecast-gain-guided routing coordinates stable periodic prediction with adaptive deviation correction under both clean and perturbed inputs.

1. Introduction

Accurate multi-step traffic forecasting supports signal control, congestion management, and network-wide mobility planning. Traffic observations form graph-structured time series in which conditions propagate across connected roads while daily and weekly rhythms generate recurring temporal patterns. Graph recurrence, adaptive dependency learning, memory, attention, self-supervision, and dynamic graph modeling have progressively strengthened spatiotemporal representation learning [1,2,3,4,5]. Real traffic, however, continually alternates between regular patterns and transient departures caused by genuine state transitions, missing observations, sensor noise, or weak historical support.
We study the node-wise marginal utility of a deviation-derived residual relative to an anchor-conditioned stable endpoint. The resulting stability–adaptivity problem has two limiting cases: suppressing the residual can miss informative transitions, whereas applying it indiscriminately can propagate unreliable departures into future predictions.
Recent methods characterize nonstationarity through normalization or trend, seasonal, and frequency decomposition [6,7,8], self-supervised deviation and heterogeneity learning [4,9], and explicit separation of periodic and aperiodic events [10]. Online adaptation and invariant learning further address evolving distributions and environment-dependent variation [11,12,13,14]. These approaches improve deviation representation or predictor stability, but the unresolved quantity is the sample–node-level gain produced by applying a particular residual correction.
We address this gap by deriving correction-utility supervision from paired forecast candidates and using the resulting signal for residual routing and selective cross-environment stabilization. Figure 1 summarizes the key insight. Comparable current–anchor departures may have opposite utilities; harmful corrections should receive low gates that preserve the stable endpoint, whereas beneficial corrections should receive larger residual weights.
Figure 1. Motivation for forecast-gain-guided deviation routing. Comparable current–anchor departures can have opposite correction utilities. (a) When the deviation-corrected candidate increases forecasting error ( Δ e < 0 ), a low gate preserves the stable endpoint. (b) When the correction reduces forecasting error ( Δ e > 0 ), a high gate assigns greater weight to the deviation-corrected candidate. The continuous gate g ∈ ( 0 , 1 ) interpolates between the two candidates.
We therefore propose Spatiotemporal Traffic Forecasting with Forecast-Gain-Guided Deviation–Invariance Routing (ST-FGDIR). A weight-shared GraphGRU encodes the current sequence and a training-fitted weekly anchor, producing an anchor-conditioned stable endpoint. Hidden-state, statistical, spatial, prototype-distribution, and reliability evidence drives a deviation residual proposal and its corrected candidate. During training, the signed error difference between the paired candidates forms a soft forecast-gain target. A node-wise, horizon-shared router predicts this target from inference-available evidence and continuously controls residual injection. Selective risk extrapolation regulates the mean and cross-environment variation of stable-endpoint risk, where the clean target favors the stable path, while false-activation regularization discourages perturbations from spuriously increasing residual weights. A staged schedule coordinates stable forecasting, deviation modeling, router learning, and joint robustness optimization.
Experiments on METR-LA, PEMS-BAY, PEMS04, and PEMS08 show competitive forecasting performance relative to published baselines, positive gate–gain rank associations across datasets, and smaller relative MAE increases than ST-SSDL and the ablated variants across all 12 controlled dataset–perturbation conditions.
The main contributions are summarized as follows:
  • We construct an anchor-conditioned stable endpoint and a deviation-corrected candidate, using their signed error difference to form a soft supervision target for continuous, node-wise residual routing.
  • We couple residual routing with selective stabilization by using the clean forecast-gain target to weight stable-endpoint risk across perturbation environments, together with false-activation regularization.
  • We evaluate forecasting accuracy, gate–gain alignment, and perturbation stability on four traffic benchmarks, with ablations of residual routing and robustness constraints.

2. Related Work

2.1. Spatiotemporal Representation Learning for Traffic Forecasting

Traffic observations form graph-structured sequences in which road connectivity and latent interactions jointly govern state propagation. DCRNN embeds diffusion graph convolution within a recurrent architecture to model directed spatial propagation and temporal evolution [1], whereas STGCN couples graph convolution with temporal convolution to extract localized spatiotemporal patterns [15]. Graph WaveNet combines adaptive adjacency learning with dilated causal convolution to capture latent spatial relations and long-range temporal dependencies [2]. MTGNN further integrates graph learning, mix-hop propagation, and multiscale temporal convolution [16], while AGCRN generates node-adaptive graph-convolutional and recurrent parameters from node embeddings [17]. Together, these models established the transition from propagation over a prescribed road graph to data-adaptive spatial dependency learning.
Subsequent studies enriched traffic representations with node identity, dynamic structure, long-range propagation, memory, and spatial heterogeneity. STID demonstrated the predictive value of spatial and temporal identity embeddings [18], and MegaCRN retrieved representative traffic patterns through a memory-augmented meta-graph [3]. D2STGNN decoupled traffic signals into diffusion and inherent components [19], whereas PDFormer modeled propagation delay together with dynamic long-range dependencies [20]. TESTAM combined time-enhanced attention with expert routing supervised by regression-error-based pseudo-labels to select among predictors with different spatial modeling mechanisms [21]. Memory augmentation and heterogeneity-aware graph recurrent modeling have also been used to encode spatiotemporal context and differentiated dependencies among traffic nodes [22,23].
Collectively, these methods strengthen spatiotemporal representations or adaptively select among complete predictors.

2.2. Deviation-Aware and Robust Traffic Forecasting

Traffic sequences exhibit nonstationarity through periodic drift, trend changes, and localized transitions. ST-Norm normalizes spatial and temporal components separately to reduce their statistical discrepancy [6], while ST-WA adapts spatiotemporal parameters to evolving traffic patterns [24]. Explicit decomposition has been pursued by STDN, which models interacting trend and seasonal components [7], and by RIFT-STGNN, which interleaves frequency- and trend-domain spatiotemporal modeling [8]. Periodic shift and event-aware graph convolution incorporates calendar shifts and external events into congestion prediction [25]. ST-SSDL instead learns the deviation between current states and historical patterns through self-supervised objectives and uses this information for spatiotemporal forecasting [9].
Self-supervised and masked pre-training offer a complementary route to learning representations from diverse traffic contexts. ST-SSL combines spatial and temporal self-supervision to capture local and global dependencies for traffic-flow prediction [26]. STD-MAE decouples spatial and temporal masking objectives so that transferable structure can be learned from partially masked sequences [27]. These objectives improve the encoded representation, while the downstream forecast remains governed by a common decoding mechanism.
Distribution-shift research addresses both stable representation learning and out-of-distribution risk identification. At the graph-representation level, GIL learns invariant graph features, while EERM optimizes graph environments to identify stable predictive relations [28,29]. Complementary work in multi-sensor monitoring attaches posterior uncertainty scoring to frozen predictors for identifying out-of-distribution inputs [30]. Risk extrapolation provides a related optimization principle by jointly controlling average risk and its variation across observed environments [11]. Together, these approaches connect robustness to stable predictive risk and explicit awareness of inputs beyond the training distribution.
For spatiotemporal forecasting, DIDA models dynamic graphs under spatiotemporal distribution shifts [31], and distribution-shift-aware urban prediction explicitly accounts for spatial and temporal environmental variation [32]. Related multi-sensor monitoring work uses dynamic causal graphs to suppress spurious inter-sensor dependencies and improve robustness under noise and changing operating regimes [33]. CauSTG captures invariant relations across spatiotemporal environments [12], whereas CaST uses a causal formulation to separate stable and environment-dependent factors [34]. STONE addresses simultaneous spatial and temporal out-of-distribution shifts [13], and DIST improves robust traffic forecasting through disentangled spatiotemporal representations [35].
ST-SSDL learns representations of current–historical deviations [9], whereas ST-FGDIR supervises the utility of applying a specific residual correction. Unlike TESTAM’s selection among expert predictors [21], our router continuously scales a residual relative to an anchor-conditioned stable endpoint, using a soft target derived from the paired candidate-error difference. The same target, computed on clean inputs, also weights stable-endpoint risk across perturbation environments. This gain-based weighting makes the REx objective [11] selective with respect to correction utility and connects stable-path regularization with residual routing.

3. Problem Definition

Let G = ( V , E , A ˜ ) denote a traffic sensor graph, where V and E are the node and edge sets, N = | V | is the number of sensor nodes, and A ˜ ∈ R N × N is the normalized static adjacency matrix. For a mini-batch of size B, the traffic history and its observation mask are denoted by X c ∈ R B × T × N × 1 and M c ∈ { 0 , 1 } B × T × N × 1 , respectively, where T is the historical input length. Under the benchmark null-value convention, M b t n c = 1 marks a finite, nonzero traffic measurement for sample b, time step t, and node n. The prediction target is a univariate traffic variable, and the feature dimension of each input and output tensor is one.
Each input window is paired with a time-aligned periodic anchor X a ∈ R B × T × N × 1 and anchor statistics S a = { S mad , S std , S sup } , which contain the median absolute deviation (MAD), standard deviation (STD), and historical support. The model also receives historical temporal covariates T x , known future time-of-day covariates T y , tod , and the normalized graph, while learnable node embeddings form part of the model parameters. The forecasting map is
Y ^ = f Θ X c , M c , X a , S a , T x , T y , tod , A ˜ ∈ R B × H × N × 1 ,
where H is the forecast horizon, Θ collects the trainable parameters, and Y ∈ R B × H × N × 1 is the future traffic sequence used for training and evaluation.
The periodic anchor table and its statistics are estimated once from the complete training period and then fixed for all training, validation, and test windows.
ST-FGDIR jointly models the deviation of the current state from its periodic anchor and the forecast gain of the corresponding correction. An anchor-conditioned stable path produces the stable endpoint Y ^ I , which denotes the complete H-step candidate forecast, and a deviation path produces a residual correction R ^ D . The superscripts I and D denote the selectively stabilized and deviation-corrected paths, respectively. Their sum forms the deviation-corrected candidate
Y ^ D = Y ^ I + R ^ D .
For each sample–node pair, the model learns a continuous routing gate g b n ∈ ( 0 , 1 ) shared across forecast horizons. The routed forecast is
Y ^ = Y ^ I + g ⊙ R ^ D , g ∈ ( 0 , 1 ) B × 1 × N × 1 .
Values of g b n near zero retain the stable endpoint, whereas values near one apply the complete residual correction. The node-wise gate scales the deviation residual according to its estimated forecast gain.

4. Methodology

4.1. Framework Overview

Figure 2 presents the ST-FGDIR architecture. A weight-shared graph-convolutional gated recurrent unit (GraphGRU) [1] encodes the current traffic sequence and its periodic anchor, producing node states H c and H a in a common representation space. The model then extracts current–anchor deviation information from traffic values, hidden states, prototype distributions, observation reliability, and spatial neighborhoods.
Figure 2. Overall architecture of ST-FGDIR. A weight-shared GraphGRU encodes the current sequence and its periodic anchor. Anchor-conditioned features generate a stable endpoint, while multi-view deviation evidence serves as input to the deviation residual decoder and Forecast-Gain Router. Ellipses denote repeated sequence elements, nodes, or network units; ⊙ and + denote element-wise multiplication and addition, respectively.
The anchor-conditioned stable path generates Y ^ I from paired hidden states and statistical reliability features and is regularized across perturbed environments by the selective risk extrapolation (sREx) objective. The deviation path decodes multi-view evidence into R ^ D . The Forecast-Gain Router estimates the node-wise forecast gain of this correction and uses a continuous gate to produce Equation (3).

4.2. Training-Derived Periodic Anchors and Shared Graph Encoding

Let d ( t ) ∈ { 0 , … , 6 } denote the day of the week and s ( t ) ∈ { 0 , … , P − 1 } the within-day slot of timestamp t, where P is the number of slots per day. Timestamp t is assigned to the weekly calendar cell
κ ( t ) = P d ( t ) + s ( t ) .
For calendar cell k and node n, the valid observations and their support over the complete training period are
C k n tr = { τ : 0 ≤ τ < T tr , κ ( τ ) = k , O τ n = 1 } , S k n sup = | C k n tr | ,
where T tr is the exclusive end index of the training period and O τ n = 1 marks a finite, nonzero observation. For S k n sup > 0 , the cell mean, median, MAD, and STD are
μ k n = 1 S k n sup ∑ τ ∈ C k n tr X τ n , m k n = median τ ∈ C k n tr X τ n , S k n mad = median τ ∈ C k n tr | X τ n − m k n | , S k n std = 1 S k n sup ∑ τ ∈ C k n tr ( X τ n − μ k n ) 2 1 / 2 .
For position t in sample b, the aligned anchor is X b t n a = μ κ ( t b t ) , n , where t b t is the corresponding absolute timestamp. A zero-support cell–node pair uses the node-wise training median as its anchor and the node-level training MAD and STD. A node with no valid training observation uses the global training median, with its MAD and STD set to zero. The support remains zero in both cases.
Invalid current observations are filled with training-derived node medians, with the global training median used for nodes without valid training observations. The filled current sequence and the anchor sequence are normalized using training-set statistics, while the original observation mask is retained. At each historical step, the encoder receives the normalized traffic input, its observation indicator, cyclic temporal encodings, and a learnable node embedding:
u b t n c = X b t n c ∥ M b t n c ∥ sin ( 2 π T b t tod ) ∥ cos ( 2 π T b t tod ) ∥ sin ( 2 π T b t dow ) ∥ cos ( 2 π T b t dow ) ∥ E n n ,
where E n n is the embedding of node n. The anchor pass uses the aligned X a , the same temporal covariates and node embeddings, and a unit availability indicator. The support, MAD, and STD channels carry anchor reliability into subsequent modules.
Let U c and U a denote the two encoder-input sequences. The shared GraphGRU encoding is
H c = E θ ( U c , A ˜ ) , H a = E θ ( U a , A ˜ ) , Δ H = H c − H a .
The two passes share the encoder and all its parameters. The paired states therefore occupy a common representation space, and Δ H represents their current–anchor hidden-state deviation. Subsequent modules use both Δ H and | Δ H | to encode its direction and magnitude.

4.3. Multi-View Deviation Evidence

ST-FGDIR constructs node-wise evidence from statistical, spatial-neighborhood, hidden-state, and prototype-distribution deviations. The current observation ratio and anchor statistics provide separate reliability channels. Given a MAD floor ϵ MAD > 0 , the statistical evidence is
d b t n = | X b t n c − X b t n a | max ( S b t n mad , ϵ MAD ) , δ b n raw = ∑ t M b t n c d b t n max ( ∑ t M b t n c , 1 ) , ρ b n obs = 1 T ∑ t M b t n c , s ¯ b n mad = 1 T ∑ t S b t n mad , s ¯ b n std = 1 T ∑ t S b t n std , s ¯ b n sup = 1 T ∑ t log ( 1 + S b t n sup ) .
Here, d b t n is the point-wise MAD-standardized deviation, δ b n raw is its masked temporal aggregation, ρ b n obs is the current-window observation ratio, and ( s ¯ b n mad , s ¯ b n std , s ¯ b n sup ) are the temporally aggregated anchor statistics.
Let G A ˜ ( Z ) = A ˜ Z denote graph mixing over the normalized static graph. The spatial-neighborhood deviation is
δ spa = δ raw − G A ˜ ( δ raw ) .
This quantity measures the absolute difference between a node’s own deviation and its graph-mixed neighborhood deviation.
The anchor-conditioned stable path concatenates the paired hidden states, their difference, the spatial context, and statistical reliability, then applies a nonlinear projection:
U I = [ H c ∥ H a ∥ Δ H ∥ | Δ H | ∥ G A ˜ ( H c ) ∥ ρ obs ∥ δ raw ∥ s ¯ mad ∥ s ¯ std ∥ s ¯ sup ] , F I = ψ I ( U I ) .
The prototype-distribution view uses a learnable codebook P = { p 1 , … , p K } , where p k ∈ R d p , K is the number of prototypes, and d p is the prototype dimension. A shared linear projection maps the current and anchor states into the prototype space:
Q c = W q H c + b q , Q a = W q H a + b q .
For z ∈ { c , a } , the soft assignment follows scaled dot-product compatibility [36]; the assignment to prototype m and the prototype-conditioned representation are
α b n m z = exp ( Q b n z ) ⊤ p m / d p ∑ j = 1 K exp ( Q b n z ) ⊤ p j / d p , V b n z = ∑ m = 1 K α b n m z p m .
The prototype-assignment logits use the fixed scale 1 / d p . Assignment uncertainty is represented by normalized entropy with a probability floor ϵ H :
η b n z = − 1 log K ∑ m = 1 K α b n m z log max ( α b n m z , ϵ H ) .
The model then uses the L 1 distance between prototypes to compute the expected pairwise prototype distance under the current and anchor assignments:
D m k = ∥ p m − p k ∥ 1 , δ b n proto = ∑ m = 1 K ∑ k = 1 K α b n m c D m k α b n k a .
Here, D m k is the distance between prototypes m and k, and δ b n proto is the resulting prototype-distribution deviation score.
The complete node-wise multi-view evidence is
F D = [ H c ∥ H a ∥ Δ H ∥ | Δ H | ∥ V c ∥ V a ∥ δ proto ∥ η c ∥ η a ∥ δ raw ∥ s ¯ mad ∥ s ¯ std ∥ s ¯ sup ∥ ρ obs ∥ δ spa ] .
The residual decoder and Forecast-Gain Router share F D as their input.

4.4. Stable and Deviation-Corrected Forecast Candidates

The stable endpoint decoder combines the anchor-conditioned feature with known future time-of-day covariates. The deviation path projects the multi-view evidence into a deviation latent representation and decodes a horizon-wise residual correction:
Y ^ I = Dec I ( F I , T y , tod ) , Z D = ψ D ( F D ) , R ^ D = Dec D ( Z D , T y , tod ) .
Both decoders expand each node representation along the forecast horizon and concatenate sinusoidal future-time encodings. The stable endpoint and residual correction form Y ^ D through Equation (2).

4.5. Forecast-Gain-Guided Routing

Figure 3 shows the training supervision and inference path of the Forecast-Gain Router. Its target is the node-wise forecast gain of the deviation-corrected candidate relative to the stable endpoint. Let Ω b h n ∈ { 0 , 1 } mark a valid future label, and define C b n = ∑ h Ω b h n and m b n = I [ C b n > 0 ] . The node-wise masked errors are
e b n I = ∑ h Ω b h n | Y ^ b h n I − Y b h n | max ( C b n , 1 ) , e b n D = ∑ h Ω b h n | Y ^ b h n D − Y b h n | max ( C b n , 1 ) .
Figure 3. Forecast-gain-guided routing in ST-FGDIR. (a) Stable and deviation-corrected forecast candidates. (b) Soft forecast-gain targets derived from their masked errors during training. (c) The Forecast-Gain Router computes a node-wise, horizon-shared gate from multi-view deviation evidence and controls the residual correction applied to the stable endpoint. Ellipses denote repeated sequence elements or network units; ⊙ and + denote element-wise multiplication and addition, respectively.
Their difference defines the stop-gradient soft forecast-gain target
q b n = sg σ e b n I − e b n D τ g ,
where sg ( · ) denotes stop-gradient and τ g > 0 controls target smoothness. The relations e b n D < e b n I , e b n D > e b n I , and e b n D = e b n I correspond to q b n > 0.5 , q b n < 0.5 , and q b n = 0.5 , respectively.
The Forecast-Gain Router maps multi-view evidence to node-wise logits and continuous gates:
ℓ = r ϕ ( F D ) , g = σ ( ℓ ) ,
where ℓ ∈ R B × N × 1 . The gate is expanded to g ∈ ( 0 , 1 ) B × 1 × N × 1 and broadcast across forecast horizons. The shared gate controls correction strength over the forecasting window, consistent with supervision based on horizon-averaged candidate errors, while the residual prediction remains horizon-specific. Let BCELogit ( ℓ , q ) denote binary cross-entropy evaluated from a logit. The routing loss is
L route = ∑ b , n m b n BCELogit ( ℓ b n , q b n ) max ∑ b , n m b n , 1 .
The mask m b n selects sample–node pairs with valid future labels. For each valid sample–node pair, the routing cross-entropy has logit gradient g b n − q b n , providing a corrective signal when the gate disagrees with its soft target. The candidate-generating parameters remain fixed during router training, and stop-gradient prevents this loss from directly updating the target through the candidate errors. During joint fine-tuning, q is recomputed from each clean batch and detached, while the gradient through F D updates the router and the upstream deviation-evidence representation. During inference, the router computes g from F D and produces the final forecast through Equation (3).

4.6. Selective Invariance and Four-Stage Optimization

Each prediction loss aggregates future labels through a validity mask Ω . The masked mean absolute error is
ML 1 ( Z ^ , Z ) = ∑ i Ω i | Z ^ i − Z i | max ( ∑ i Ω i , 1 ) .
The routed-forecast, stable-endpoint, and deviation-residual losses are
L forecast = ML 1 ( Y ^ , Y ) , L I = ML 1 ( Y ^ I , Y ) , L R = ML 1 R ^ D , Y − sg ( Y ^ I ) .
In L R , the future labels and the stop-gradient stable endpoint define the residual target. Statistical and prototype deviations are aligned through
L dev = SmoothL 1 log ( 1 + δ proto ) , log [ 1 + sg ( δ raw ) ] .
Here and in the prototype objective below, SmoothL1 denotes the element-wise smooth L 1 loss averaged over its tensor arguments. The deviation term uses the stop-gradient statistical deviation as the target scale for the prototype-space deviation.
Following the stop-gradient codebook-learning principle used in vector-quantized representation learning [37], the prototype codebook is optimized by codebook alignment and query commitment, together with prototype diversity. Let p ¯ m = p m / ∥ p m ∥ 2 . The prototype objective is
L code = SmoothL 1 ( V c , sg ( Q c ) ) + SmoothL 1 ( V a , sg ( Q a ) ) , L com = SmoothL 1 ( Q c , sg ( V c ) ) + SmoothL 1 ( Q a , sg ( V a ) ) , L div = 1 K ( K − 1 ) ∑ m ≠ k [ p ¯ m ⊤ p ¯ k − γ ] + , L proto = L code + λ com L com + λ div L div .
Here, [ x ] + = max ( x , 0 ) and γ is the prototype-similarity margin. The codebook term aligns prototype-conditioned representations with stop-gradient query targets, the commitment term aligns queries with stop-gradient prototype-conditioned representations, and the diversity term controls pairwise prototype cosine similarity.
Joint fine-tuning applies label-preserving transformations T k to the clean batch B ( 0 ) , giving B ( k ) = T k ( B ( 0 ) ) for k = 1 , … , K e − 1 . The transformations instantiate point missingness, block missingness, and Gaussian noise in the historical inputs while leaving Y and Ω unchanged. The clean environment is indexed by k = 0 . The environment-specific stable-endpoint error, selective weight, and risk are
e b n I , ( k ) = ∑ h Ω b h n | Y ^ b h n I , ( k ) − Y b h n | max ( C b n , 1 ) , a b n = 1 − sg ( q b n ( 0 ) ) , R k = ∑ b , n a b n m b n e b n I , ( k ) max ∑ b , n a b n m b n , 10 − 6 .
The clean-environment target q b n ( 0 ) defines the selective weight a b n , which emphasizes sample–node pairs whose routing targets favor the stable endpoint. Following the risk-extrapolation principle of jointly controlling average risk and cross-environment risk variation [11], ST-FGDIR defines its selective counterpart as
R ¯ = 1 K e ∑ k = 0 K e − 1 R k , Var pop ( R ) = 1 K e ∑ k = 0 K e − 1 ( R k − R ¯ ) 2 , L sREx = R ¯ + λ var Var pop ( R ) .
For K e = 1 , the population variance equals zero and L sREx = R 0 .
The false-activation loss measures positive gate increments in perturbed environments relative to the clean environment:
L fa = 1 K e − 1 ∑ k = 1 K e − 1 1 B N ∑ b , n [ g b n ( k ) − sg ( g b n ( 0 ) ) ] + , K e > 1 , 0 , K e = 1 .
The stop-gradient clean-environment gate provides a fixed reference, and gradients propagate through the gates and upstream evidence representations of perturbed environments.
The joint fine-tuning objective is
L joint = λ f L forecast + λ I L I + λ R L R + λ g L route + λ sREx L sREx + λ fa L fa + λ p L proto + λ d L dev .
The forecast, stable-endpoint, residual, routing, prototype, and deviation terms use the clean environment. The selective risk-extrapolation and false-activation terms jointly use the clean and perturbed environments.
The four-stage objective is
L ( s ) = λ I L I , s = 1 , λ R L R + λ p L proto + λ d L dev , s = 2 , λ g L route , s = 3 , L joint , s = 4 .
Here, s ∈ { 1 , 2 , 3 , 4 } is the training-stage index. Stage 1 performs stable-path warm-up. The trainable modules are the node embeddings, shared encoder, stable-feature projector, and stable endpoint decoder; the prototype module, deviation feature projector, deviation residual decoder, and Forecast-Gain Router remain fixed. Stage 2 performs deviation-residual and prototype warm-up. The trainable modules are the prototype module, deviation feature projector, and deviation residual decoder; the node embeddings, shared encoder, stable-feature projector, stable endpoint decoder, and Forecast-Gain Router remain fixed. Stage 3 trains r ϕ with L route while the remaining model parameters stay fixed. Stage 4 performs multi-environment joint fine-tuning with all model parameters trainable.

5. Experiments

5.1. Experimental Setup

Datasets. We evaluated ST-FGDIR on four public traffic forecasting benchmarks: METR-LA, PEMS-BAY, PEMS04, and PEMS08. METR-LA and PEMS-BAY contain traffic-speed measurements, whereas PEMS04 and PEMS08 contain traffic-flow measurements. All four datasets were sampled at 5 min intervals. Their statistics are summarized in Table 1.
Table 1. Statistics of the four traffic benchmark datasets.
METR-LA and PEMS-BAY were chronologically divided into training, validation, and test sets using a ratio of 70%/10%/20%, whereas PEMS04 and PEMS08 were divided using a ratio of 60%/20%/20%. Each sample contained 12 historical time steps and 12 prediction steps, corresponding to forecasting the next 60 min from the preceding 60 min. Traffic measurements were normalized using statistics estimated from the training set. The periodic anchor table and its associated MAD, STD, and support statistics were fitted over the complete training period and then fixed for all training, validation, and test samples. Keeping these estimates fixed provides a common periodic reference for evaluating residual routing under the offline protocol.
Evaluation metrics. Forecasting performance was evaluated using mean absolute error (MAE), root mean squared error (RMSE), and mean absolute percentage error (MAPE) over valid test measurements. Lower values indicate better forecasting performance.
Implementation settings. ST-FGDIR was optimized using Adam with a batch size of 16. The learning rate was set to 10−3 during the first three training stages and reduced to 3 × 10−4 during joint fine-tuning. The GraphGRU hidden-state dimension was set to 16 for METR-LA and PEMS08 and 12 for PEMS-BAY and PEMS04. The prototype bank contained K = 8 prototypes with dimension d p = 8 , and the forecast-gain smoothing coefficient was set to τ g = 0.25 for endpoint-error differences on the normalized scale. The four training stages were each conducted for one epoch on METR-LA, PEMS-BAY, and PEMS04. For PEMS08, the joint fine-tuning stage was extended to two epochs. All experiments were performed on an NVIDIA GeForce RTX 4090 GPU.
Table 2 lists the loss coefficients and numerical constants used for PEMS04. During joint fine-tuning, each batch contained one clean view and two perturbed views generated independently from it, cycling through point/block, block/noise, and noise/point pairs. Point missingness independently masked 15% of valid observations. Block missingness masked two consecutive steps per sample–node pair, with independently and uniformly sampled valid start positions. Gaussian noise had a standard deviation equal to 15% of each node’s historical-window standard deviation. Newly masked normalized inputs and their observation indicators were set to zero, while future targets remained unchanged.
Table 2. Loss coefficients and numerical constants for PEMS04.

5.2. Overall Forecasting Performance

Table 3 compares ST-FGDIR with ten representative traffic forecasting models. For METR-LA and PEMS-BAY, the results are reported at 15, 30, and 60 min, corresponding to the third, sixth, and twelfth steps of the same 12-step forecasting task. For PEMS04 and PEMS08, each metric is averaged over all 12 forecasting steps. In Table 3, results from DCRNN through ST-SSDL are taken from the comparison reported by Gao et al. [9], and TRL-DAG results are taken from Chen et al. [38]. These studies use the same dataset split ratios, input and prediction lengths, and horizon-wise metric reporting as this study, while preprocessing and metric implementations remain those of the source studies. ST-FGDIR results are obtained using the protocol described in Section 5.1. TRL-DAG [38] combines temporal representation learning with dynamic graph modeling and adversarial training.
Table 3. Forecasting performance on four traffic benchmark datasets. Results on METR-LA and PEMS-BAY are reported at 15, 30, and 60 min, whereas results on PEMS04 and PEMS08 are averaged over all 12 forecasting steps. Lower values indicate better performance. Bold and underlined values denote the best and second-best reported values in this comparison, respectively.
Among the results compiled in Table 3, ST-FGDIR achieves the lowest reported error in 21 of the 24 evaluation entries and the second-lowest in the remaining three. On METR-LA, ST-FGDIR ranked first among the results in Table 3 for all nine combinations of forecasting horizon and evaluation metric. Its MAE/RMSE/MAPE values were 2.58/5.01/6.42% at 15 min, 2.95/6.01/7.84% at 30 min, and 3.24/7.03/9.30% at 60 min. Relative to the published ST-SSDL results, the corresponding error reductions ranged from 0.20% to 3.86%, with the largest reduction obtained for the 60 min MAE, which decreased from 3.37 to 3.24.
On PEMS-BAY, ST-FGDIR obtained the best reported value in seven of the nine evaluation entries in Table 3. At 15 min, it achieved an MAE of 1.22, an RMSE of 2.59, and a MAPE of 2.54%; at 30 min, the corresponding values were 1.52, 3.56, and 3.41%. These six results were all lower than the corresponding published baseline values. At 60 min, ST-FGDIR achieved the lowest RMSE of 4.32, while its MAE of 1.89 was tied with MegaCRN for second place and its MAPE of 4.39 ranked second.
For the traffic-flow datasets, ST-FGDIR achieved an MAE of 17.99, an RMSE of 29.14, and a MAPE of 12.13% on PEMS04. Its MAE and RMSE were the lowest among the methods listed in Table 3, while its MAPE ranked second to the 12.04% obtained by STID. On PEMS08, ST-FGDIR achieved the lowest reported values in Table 3 for all three metrics, with an MAE of 13.82, an RMSE of 23.04, and a MAPE of 9.06%. Compared with the published ST-SSDL results, ST-FGDIR produced lower errors for all six metrics on PEMS04 and PEMS08, with relative reductions ranging from 0.26% to 1.86%.
Table 4 summarizes the computational costs on PEMS04 using a single NVIDIA RTX 4090 GPU, FP32, and a batch size of 16. Training times cover four epochs, excluding preprocessing, validation, and checkpoint saving. Inference times measure model forward passes after warm-up and GPU synchronization. Memory denotes peak allocated GPU memory during training.
Table 4. Computational costs on PEMS04. Time and memory values are approximate; K denotes 1000 parameters.
ST-FGDIR uses fewer parameters and requires less training and inference time than ST-SSDL, at the cost of higher peak memory usage. STID remains faster and uses less memory.

5.3. Ablation Study

To examine the roles of the model mechanisms and training strategies in ST-FGDIR, we constructed nine ablation variants. The model-mechanism group comprised Stable Endpoint Only ( g = 0 ), Always-On Residual ( g = 1 ), w/o Periodic Anchor, w/o Statistical–Spatial Evidence, and w/o Prototype-Distribution Evidence. The training-objective and optimization group removed forecast-gain supervision, selective risk extrapolation (sREx), the false-activation loss, or the four-stage optimization schedule. The w/o Periodic Anchor variant excludes the training-derived periodic reference. The w/o Forecast-Gain Supervision variant removes explicit supervision of the routing gate using the candidate-error-based gain target. Table 5 reports MAE and RMSE computed over the complete 12-step forecasting window. All variants used the same data splits, total number of training epochs, and evaluation protocol. The single-stage variant jointly optimized all model parameters under the same training budget.
Table 5. Ablation results on four traffic forecasting datasets. All metrics are computed over the complete 12-step forecasting window. Lower values indicate better performance, and the best results are shown in bold.
Full ST-FGDIR achieved the lowest error in all eight evaluation entries. Relative to Always-On Residual, its MAE reductions were 0.69%, 0.66%, 0.72%, and 0.67% on METR-LA, PEMS-BAY, PEMS04, and PEMS08, respectively. These aggregate improvements are modest. The gate-group analysis in Section 5.4 examines how routing affects predictions under different correction utilities.
Among the model-mechanism variants, removing the periodic anchor produced the largest degradation. The corresponding MAE/RMSE values increased to 2.980/6.134, 1.554/3.565, 18.623/30.081, and 14.322/23.791 on METR-LA, PEMS-BAY, PEMS04, and PEMS08, respectively. Removing statistical–spatial evidence increased the PEMS04 and PEMS08 results from 17.990/29.140 and 13.820/23.040 to 18.332/29.650 and 14.072/23.464, respectively. Removing prototype-distribution evidence also increased both metrics on all four datasets. Removing each evidence source increased both MAE and RMSE across the four datasets.
The training-objective and optimization variants exhibited a consistent pattern. On PEMS04, removing forecast-gain supervision increased MAE/RMSE from 17.990/29.140 to 18.280/29.577, while removing sREx increased them to 18.215/29.493. Removing the false-activation loss produced smaller but consistent increases across all four datasets. Under the matched training budget, the single-stage variant produced the largest degradation among the optimization variants, yielding 2.999/6.184, 1.563/3.596, 18.746/30.224, and 14.405/23.957 on the four datasets.

5.4. Forecast-Gain Router Analysis

To examine the relationship between the routing gate and the utility of residual correction, we divided the valid test sample–node pairs in each dataset into ten equal-frequency groups, D1–D10, according to the inference gate g from low to high. Using the future observations, we computed the node-wise masked errors e I and e D of the stable endpoint and deviation-corrected candidate, respectively, and defined the realized forecast gain as Δ e = e I − e D . Accordingly, Δ e < 0 indicates a lower error for the stable endpoint, whereas Δ e > 0 indicates that the deviation-corrected candidate improves the forecast.
As shown in Figure 4a–d, the bin-averaged forecast gain increased with the gate decile on all four datasets. It was negative in the low-gate groups, crossed zero near D6, and became positive in the high-gate groups. The Spearman rank correlations, computed from the unbinned valid sample–node pairs, were 0.50, 0.49, 0.53, and 0.51 on METR-LA, PEMS-BAY, PEMS04, and PEMS08, respectively. These values indicate a consistent, moderate positive rank association between the inference gate and realized correction utility across the four datasets.
Figure 4. Forecast-gain alignment of the router. (a–d) Bin-averaged realized forecast gain on METR-LA, PEMS-BAY, PEMS04, and PEMS08. (e–h) Node-level masked MAE of the stable endpoint, deviation-corrected candidate, and routed forecast within the same gate groups. D1 and D10 denote the lowest and highest gate deciles, respectively. The horizontal dashed lines in (a–d) indicate zero forecast gain.
Figure 4e–h further compares the three forecasts within the same gate groups. The stable endpoint had the lower MAE in the low-gate groups, the candidate errors converged near D6, and the deviation-corrected candidate had the lower MAE in the high-gate groups. The routed forecast tracked the lower-error candidate more closely in the low- and high-gate regions. The benefit over complete residual injection is evident in the low-gate groups, where the corrected candidate has higher error than the stable endpoint and routing suppresses its contribution. In the high-gate groups, the routed forecast approaches the lower-error corrected candidate. These patterns indicate that the effect of routing depends on the utility of the proposed correction.
As shown in Table 6, the gate–gain correlations on PEMS04 remain positive across all 12 forecasting horizons (Spearman ρ = 0.5239–0.5248), and the routed forecast achieves lower MAE than both the stable endpoint and the deviation-corrected candidate at every horizon. These results support the use of the shared gate under the evaluated setting.
Table 6. Horizon-wise routing analysis on PEMS04. Spearman’s ρ measures the association between the gate and the reduction in absolute error from the stable endpoint to the deviation-corrected candidate, computed over valid test sample–node pairs at each horizon.

5.5. Qualitative Routing Cases

Figure 4 shows that the realized forecast gain Δ e = e I − e D increased across gate deciles at the aggregate level. Figure 5 complements this relationship with two illustrative, gain-aligned PEMS08 cases from the lowest gate decile D1 and the highest gate decile D10. The cases were selected from sample–node pairs with Δ e < 0 and Δ e > 0 , respectively, by choosing the pair closest to the median gain in each eligible set. The upper panels compare the current historical sequence with its periodic anchor, while the lower panels show the future ground truth, stable endpoint, deviation-corrected candidate, and final routed forecast.
Figure 5. Illustrative gain-aligned routing cases on PEMS08. The upper panels compare the current historical sequence with its periodic anchor, while the lower panels show the future ground truth, stable endpoint, deviation-corrected candidate, and routed forecast. (a) Low-gate residual suppression with g = 0.045 and Δ e = − 0.688 . (b) High-gate beneficial correction with g = 0.806 and Δ e = 1.007 . Here, Δ e = e I − e D .
At the trajectory level, Equation (3) makes the gate a continuous residual-scaling coefficient. In Figure 5a, the router produced g = 0.045 , and the realized gain was Δ e = − 0.688 , indicating a higher error after applying the complete residual correction. The routed forecast therefore comprised 95.5% of the stable endpoint and 4.5% of the deviation-corrected candidate, and its trajectory remained close to the stable endpoint. The multi-view evidence was associated with low correction utility, so the router restricted residual injection.
Figure 5b shows the complementary behavior. Here, g = 0.806 and Δ e = 1.007 , indicating that the deviation-corrected candidate had the lower error. The routed forecast retained 80.6% of the complete residual correction and consequently approached the corrected candidate. The evidence pattern was associated with high correction utility, allowing the correction represented by the residual branch to contribute more strongly to the final prediction.
The two trajectories instantiate the aggregate gate–gain association in Figure 4: the low-gate case remains near the stable endpoint when the complete correction is harmful, whereas the high-gate case moves toward the deviation-corrected candidate when the correction is beneficial.

5.6. Robustness Under Controlled Input Perturbations

To evaluate predictive stability when historical observations were corrupted, we applied three high-severity perturbations to the 12-step historical inputs: 50% point missingness, a contiguous missing block of six time steps, and Gaussian noise with σ = 0.5 in the normalized input space. The future targets remained unchanged. For each dataset–perturbation condition, every checkpoint was evaluated on the same ten perturbation realizations, paired by corruption seed. Two-sided 95% confidence intervals across these realizations were calculated as x ¯ ± t 0.975 , 9 s / 10 , where s is the sample standard deviation of the ten realization-level statistics. We compared full ST-FGDIR with variants without selective risk extrapolation (sREx) or the false-activation loss, as well as with ST-SSDL. Figure 6a reports the MAE increase of each model relative to its own clean-input performance, while Figure 6b,c directly examine the quantities controlled by sREx and the false-activation loss.
Figure 6. Robustness under controlled input perturbations. For each dataset–perturbation condition, all models are evaluated using fixed, trained checkpoints and the same ten paired corruption realizations, from which the 95% confidence intervals are calculated. (a) Relative MAE increase under 50% point missingness, a six-step missing block, and Gaussian noise with σ = 0.5 , calculated as 100 ( MAE perturbed − MAE clean ) / MAE clean . Each cell shows the mean over the paired realizations. (b) Population variance of the cross-environment stable-path risk for full ST-FGDIR and the variant without sREx; the vertical axis uses a logarithmic scale. (c) Mean positive gate increment for full ST-FGDIR and the variant without the false-activation loss. Gray lines connect results sharing the same corruption seed. Larger markers denote the mean, and error bars denote the two-sided 95% Student-t confidence interval x ¯ ± t 0.975 , 9 s / 10 . Lower values indicate better performance in all panels.
Among the models in Figure 6a, full ST-FGDIR produced the smallest relative MAE increase in all 12 dataset–perturbation combinations. Averaged across these conditions, its increase was 9.38%, compared with 12.27% without sREx, 13.34% without the false-activation loss, and 17.45% for ST-SSDL. Block missingness produced the largest degradation, plausibly because it removes a contiguous segment of short-term dynamics. Point missingness retained interspersed observations, whereas Gaussian corruption retained the complete temporal positions and the observation mask.
Figure 6b isolates the effect of sREx on the stable path. Relative to the variant without sREx, the full model reduced the population variance of the cross-environment stable-path risk by 43.3–43.6% across the four datasets. The clean-environment weighting emphasizes sample–node pairs that favor the stable endpoint, and the lower risk variation coincided with smaller relative MAE increases in Figure 6a.
Figure 6c examines perturbation-induced changes in the routing decision. Across the four datasets, full ST-FGDIR reduced the mean positive gate increment by 69.3–69.4% relative to the variant without the false-activation loss. Because this loss penalizes positive increments relative to the clean-input gate, the result directly shows stronger restraint of perturbation-induced residual weighting and coincides with smaller end-to-end MAE degradation in Figure 6a.
Table 7 compares ST-FGDIR with the invariant-learning baseline DIST [35] on PEMS04 under matched perturbations. DIST achieved lower MAE under clean inputs and Gaussian noise, but ST-FGDIR achieved lower MAE and smaller relative increases under point and block missingness.
Table 7. Robustness comparison on PEMS04 with 12-step input and output windows. MAE is averaged over all forecast steps; perturbed MAEs are averaged over ten paired corruption realizations, with percentage increases relative to each model’s clean-input MAE in parentheses. Gaussian noise is applied in the normalized input space.

5.7. Training Dynamics

Joint fine-tuning optimizes all model parameters following the staged warm-up of the stable path, deviation-residual and prototype modules, and router. Figure 7 shows the training objective and validation MAE on PEMS04, including the trajectory beyond the original training budget. The training objective decreased rapidly during the initial updates and subsequently declined more gradually. Validation MAE exhibited a similar pattern and approached a plateau near the original stopping point. Extended training yielded a small additional reduction in validation MAE, accompanied by minor fluctuations. On PEMS04, most of the validation-error reduction observed over this trajectory occurred within the original training budget. Whether the same training budget is sufficient for METR-LA, PEMS-BAY, and PEMS08 remains to be evaluated.
Figure 7. Training dynamics during joint fine-tuning on PEMS04 with 12-step input and output windows. (a) Training objective. (b) Validation MAE. Dashed lines mark the end of the original training budget, and the orange diamond identifies the checkpoint used for the reported results. Curves beyond the dashed lines show extended training.

6. Discussion and Conclusions

This study formulates deviation-aware traffic forecasting as a correction-utility problem. ST-FGDIR constructs an anchor-conditioned stable endpoint and a deviation-corrected candidate, then uses their signed error difference to supervise continuous node-wise residual routing. The framework assigns distinct roles to its two signals: multi-view deviation evidence characterizes a current–anchor departure, whereas forecast gain determines how strongly the corresponding residual enters the prediction. This separation positions forecast gain as the control variable connecting deviation representation to selective stabilization.
Three findings characterize the resulting behavior. First, ST-FGDIR achieved competitive forecasting performance relative to the published baseline results compiled in Table 3. Second, the full model outperformed both fixed-gate variants on all four datasets, and the inference gate showed moderate positive rank associations of 0.49–0.53 with realized correction gain. The fixed-gate ablations and gate–gain analysis jointly support conditional residual routing over uniform correction. The crossover in candidate errors near the middle gate deciles further shows that the preferred candidate changes across routing regions. Third, ST-FGDIR showed smaller relative MAE increases than ST-SSDL and the two ablated variants across the 12 controlled dataset–perturbation conditions, with an average increase of 9.38%. Direct measurements further showed lower cross-environment stable-path risk variation with sREx and smaller perturbation-induced gate increments with false-activation regularization. These quantities provide mechanism-specific evidence beyond aggregate robustness error. Together, the findings connect forecasting accuracy, correction utility, and perturbation stability within the same routing framework.
The evaluation covers four public traffic-sensor benchmarks sampled at five-minute intervals and three controlled perturbation types. Long-term changes in recurring traffic patterns may reduce the representativeness of the fixed training-derived anchor, and online anchor updating is outside the present evaluation. Future work will examine online or periodic re-estimation using only observations available before each forecast, alongside naturally occurring sensor faults, traffic events, topology changes, cross-network transfer, and horizon-aware routing. Overall, ST-FGDIR coordinates an anchor-conditioned stable endpoint with adaptive deviation correction under clean and perturbed inputs.

Author Contributions

Conceptualization, Q.X., J.X. and Y.Z.; methodology, Q.X.; software, Q.X.; validation, Q.X., Y.J. and J.X.; formal analysis, Q.X.; investigation, Q.X. and Y.J.; resources, J.X. and Y.Z.; data curation, Q.X. and Y.J.; writing—original draft preparation, Q.X.; writing—review and editing, Y.J., J.X. and Y.Z.; visualization, Q.X.; supervision, J.X. and Y.Z.; project administration, J.X. and Y.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was jointly supported by Guilin University under its Special Research Project on Supporting the Development of Guangxi’s Marine Economy (桂林学院服务广西向海经济发展专项课题) and by the Research Project of the Guilin Culture and Tourism Industry–Education Consortium (Project No. 2026CJLHT52).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The four public traffic forecasting benchmarks used in this study are METR-LA, PEMS-BAY, PEMS04, and PEMS08. The processed data splits, configuration files, experimental logs, source code, and implementation details are available from the corresponding author upon reasonable request.

Acknowledgments

The authors gratefully acknowledge the financial support provided through the Special Research Project on Supporting the Development of Guangxi’s Marine Economy (桂林学院服务广西向海经济发展专项课题) and the Research Project of the Guilin Culture and Tourism Industry–Education Consortium (Project No. 2026CJLHT52).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Li, Y.; Yu, R.; Shahabi, C.; Liu, Y. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. In Proceedings of the 6th International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  2. Wu, Z.; Pan, S.; Long, G.; Jiang, J.; Zhang, C. Graph WaveNet for deep spatial-temporal graph modeling. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, Macao, China, 10–16 August 2019; International Joint Conferences on Artificial Intelligence Organization: San Francisco, CA, USA, 2019; pp. 1907–1913. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Jiang, R.; Wang, Z.; Yong, J.; Jeph, P.; Chen, Q.; Kobayashi, Y.; Song, X.; Fukushima, S.; Suzumura, T. Spatio-temporal meta-graph learning for traffic forecasting. Proc. AAAI Conf. Artif. Intell. 2023, 37, 8078–8086. [Google Scholar] [CrossRef] [Scilit]
  4. Li, Z.; Hu, Z.; Han, P.; Gu, Y.; Cai, S. SSL-STMFormer: Self-supervised learning spatio-temporal entanglement transformer for traffic flow prediction. Proc. AAAI Conf. Artif. Intell. 2025, 39, 12130–12138. [Google Scholar] [CrossRef] [Scilit]
  5. Zou, Y.; Yuan, H.; Yang, Q.; Yuan, Z.; Wang, S.; Ruan, S. Meta dynamic graph for traffic flow prediction. Proc. AAAI Conf. Artif. Intell. 2026, 40, 16584–16592. [Google Scholar] [CrossRef] [Scilit]
  6. Deng, J.; Chen, X.; Jiang, R.; Song, X.; Tsang, I.W. ST-Norm: Spatial and temporal normalization for multi-variate time series forecasting. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Virtual Event, Singapore, 14–18 August 2021; Association for Computing Machinery: New York, NY, USA, 2021; pp. 269–278. [Google Scholar] [CrossRef] [Scilit]
  7. Cao, L.; Wang, B.; Jiang, G.; Yu, Y.; Dong, J. Spatiotemporal-aware trend-seasonality decomposition network for traffic flow forecasting. Proc. AAAI Conf. Artif. Intell. 2025, 39, 11463–11471. [Google Scholar] [CrossRef] [Scilit]
  8. Xie, Q.; Xu, J.; Lu, Y.; Zhang, Y. RIFT-STGNN: Robust interleaved frequency–trend spatio-temporal graph neural network for traffic flow forecasting. Mathematics 2026, 14, 2670. [Google Scholar] [CrossRef] [Scilit]
  9. Gao, H.; Dong, Z.; Yong, J.; Fukushima, S.; Taura, K.; Jiang, R. How different from the past? Spatio-temporal time series forecasting with self-supervised deviation learning. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2025; Volume 38, pp. 146647–146675. [Google Scholar] [CrossRef] [Scilit]
  10. Su, X.; Liu, F.; Chang, Y.; Tanin, E.; Sarvi, M.; Qi, J. DualCast: A model to disentangle aperiodic events from traffic series. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, Guangzhou, China, 29–31 August 2025; International Joint Conferences on Artificial Intelligence Organization: San Francisco, CA, USA, 2025; pp. 3290–3298. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Krueger, D.; Caballero, E.; Jacobsen, J.H.; Zhang, A.; Binas, J.; Zhang, D.; Le Priol, R.; Courville, A. Out-of-distribution generalization via risk extrapolation (REx). In Proceedings of the 38th International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2021; Volume 139, pp. 5815–5826. [Google Scholar]
  12. Zhou, Z.; Huang, Q.; Yang, K.; Wang, K.; Wang, X.; Zhang, Y.; Liang, Y.; Wang, Y. Maintaining the status quo: Capturing invariant relations for OOD spatiotemporal learning. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2023; pp. 3603–3614. [Google Scholar] [CrossRef] [Scilit]
  13. Wang, B.; Ma, J.; Wang, P.; Wang, X.; Zhang, Y.; Zhou, Z.; Wang, Y. STONE: A spatio-temporal OOD learning framework kills both spatial and temporal shifts. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2024; pp. 2948–2959. [Google Scholar] [CrossRef] [Scilit]
  14. Wang, C.; Tan, G.; Barman Roy, S.; Ooi, B.C. Distribution-aware online learning for urban spatiotemporal forecasting on streaming data. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence; International Joint Conferences on Artificial Intelligence Organization: San Francisco, CA, USA, 2025; pp. 3344–3352. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Yu, B.; Yin, H.; Zhu, Z. Spatio-temporal graph convolutional networks: A deep learning framework for traffic forecasting. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence; International Joint Conferences on Artificial Intelligence Organization: San Francisco, CA, USA, 2018; pp. 3634–3640. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Wu, Z.; Pan, S.; Long, G.; Jiang, J.; Chang, X.; Zhang, C. Connecting the dots: Multivariate time series forecasting with graph neural networks. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining; Association for Computing Machinery: New York, NY, USA, 2020; pp. 753–763. [Google Scholar] [CrossRef] [Scilit]
  17. Bai, L.; Yao, L.; Li, C.; Wang, X.; Wang, C. Adaptive graph convolutional recurrent network for traffic forecasting. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2020; Volume 33, pp. 17804–17815. [Google Scholar]
  18. Shao, Z.; Zhang, Z.; Wang, F.; Wei, W.; Xu, Y. Spatial-temporal identity: A simple yet effective baseline for multivariate time series forecasting. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management; Association for Computing Machinery: New York, NY, USA, 2022; pp. 4454–4458. [Google Scholar] [CrossRef] [Scilit]
  19. Shao, Z.; Zhang, Z.; Wei, W.; Wang, F.; Xu, Y.; Cao, X.; Jensen, C.S. Decoupled dynamic spatial-temporal graph neural network for traffic forecasting. Proc. VLDB Endow. 2022, 15, 2733–2746. [Google Scholar] [CrossRef] [Scilit]
  20. Jiang, J.; Han, C.; Zhao, W.X.; Wang, J. PDFormer: Propagation delay-aware dynamic long-range transformer for traffic flow prediction. Proc. AAAI Conf. Artif. Intell. 2023, 37, 4365–4373. [Google Scholar] [CrossRef] [Scilit]
  21. Lee, H.; Ko, S. TESTAM: A time-enhanced spatio-temporal attention model with mixture of experts. In Proceedings of the Twelfth International Conference on Learning Representations, Vienna, Austria, 7–11 May 2024. [Google Scholar]
  22. Zhang, H.; Xie, Q.; Shou, Z.; Gao, Y. Dynamic spatial-temporal memory augmentation network for traffic prediction. Sensors 2024, 24, 6659. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Xie, Q.; Xu, J.; Xie, X. Heterogeneity-aware graph convolutional recurrent network for traffic forecasting. AIP Adv. 2025, 15, 125033. [Google Scholar] [CrossRef] [Scilit]
  24. Cirstea, R.G.; Yang, B.; Guo, C.; Kieu, T.; Pan, S. Towards spatio-temporal aware traffic time series forecasting. In Proceedings of the 2022 IEEE 38th International Conference on Data Engineering (ICDE), Kuala Lumpur, Malaysia (virtual event), 9–12 May 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 2900–2913. [Google Scholar] [CrossRef] [Scilit]
  25. Li, F.; Yan, H.; Sui, H.; Wang, D.; Zuo, F.; Liu, Y.; Li, Y.; Jin, D. Periodic shift and event-aware spatio-temporal graph convolutional network for traffic congestion prediction. In Proceedings of the 31st ACM International Conference on Advances in Geographic Information Systems; Association for Computing Machinery: New York, NY, USA, 2023; pp. 1–10. [Google Scholar] [CrossRef] [Scilit]
  26. Ji, J.; Wang, J.; Huang, C.; Wu, J.; Xu, B.; Wu, Z.; Zhang, J.; Zheng, Y. Spatio-temporal self-supervised learning for traffic flow prediction. Proc. AAAI Conf. Artif. Intell. 2023, 37, 4356–4364. [Google Scholar] [CrossRef] [Scilit]
  27. Gao, H.; Jiang, R.; Dong, Z.; Deng, J.; Ma, Y.; Song, X. Spatial-temporal-decoupled masked pre-training for spatiotemporal forecasting. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence; International Joint Conferences on Artificial Intelligence Organization: San Francisco, CA, USA, 2024; pp. 3998–4006. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Li, H.; Zhang, Z.; Wang, X.; Zhu, W. Learning invariant graph representations for out-of-distribution generalization. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2022; Volume 35, pp. 11828–11841. [Google Scholar] [CrossRef] [Scilit]
  29. Wu, Q.; Zhang, H.; Yan, J.; Wipf, D. Handling distribution shifts on graphs: An invariance perspective. In Proceedings of the International Conference on Learning Representations, Virtual, 25–29 April 2022. [Google Scholar]
  30. Lu, Y.; Zhang, Y.; Zhang, Y.; Li, D.; Bader, S. Pipeline posterior scoring module for out-of-distribution detection via attachable uncertainty quantification. Reliab. Eng. Syst. Saf. 2026, 277, 113029. [Google Scholar] [CrossRef] [Scilit]
  31. Zhang, Z.; Wang, X.; Zhang, Z.; Li, H.; Qin, Z.; Zhu, W. Dynamic graph neural networks under spatio-temporal distribution shift. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2022; Volume 35, pp. 6074–6089. [Google Scholar] [CrossRef] [Scilit]
  32. Hu, X.; Fan, W.; Yi, K.; Wang, P.; Xu, Y.; Fu, Y.; Wang, P. Boosting urban prediction via addressing spatial-temporal distribution shift. In Proceedings of the 2023 IEEE International Conference on Data Mining (ICDM); IEEE: Piscataway, NJ, USA, 2023; pp. 160–169. [Google Scholar] [CrossRef] [Scilit]
  33. Zhang, Y.; Lu, Y.; Li, D.; Bader, S.; Zio, E. Dynamic causal graph network for reliable pipeline leak detection. Reliab. Eng. Syst. Saf. 2026, 275, 112795. [Google Scholar] [CrossRef] [Scilit]
  34. Xia, Y.; Liang, Y.; Wen, H.; Liu, X.; Wang, K.; Zhou, Z.; Zimmermann, R. Deciphering spatio-temporal graph forecasting: A causal lens and treatment. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2023; Volume 36, pp. 37068–37088. [Google Scholar] [CrossRef] [Scilit]
  35. Wang, T.; Luo, R.; Shi, D.; Deng, H.; Zhao, S. Robust traffic forecasting with disentangled spatiotemporal graph neural networks. IEEE Trans. Neural Netw. Learn. Syst. 2026, 37, 2549–2562. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention is all you need. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30, pp. 5998–6008. [Google Scholar]
  37. van den Oord, A.; Vinyals, O.; Kavukcuoglu, K. Neural discrete representation learning. In Proceedings of the Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30, pp. 6306–6315. [Google Scholar]
  38. Chen, L.; Chen, L.; Wang, H.; Zhao, J. Temporal representation learning enhanced dynamic adversarial graph convolutional network for traffic flow prediction. Sci. Rep. 2025, 15, 8330. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.