arXiv:2608.27942cs.AIAug 2026

Manuscript Offprint

arXiv:2608.27942

CASTANET: Causality-Aware Spatio-Temporal Adversarial Network Using Traffic Incident Effects

Toshiya Kitahara, Ryu Shirakami, Koh Takeuchi, Hisashi Kashima

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Toshiya Kitahara, Ryu Shirakami, Koh Takeuchi, Hisashi Kashima

Abstract—Predicting non-periodic traffic congestion caused by sudden incidents (e.g., accidents and road damage) is crucial for advanced intelligent transportation systems. However, incident-driven congestion is difficult to forecast because incidents are extremely sparse, occur at specific times and locations, and have heterogeneous impacts depending on the traffic context. While recent deep learning approaches have significantly improved periodic traffic forecasting, their performance on non-periodic congestion remains limited, partly because incident records are not explicitly incorporated and their occurrence is strongly biased in space and time. To address these challenges, we propose CASTANET, which integrates spatio-temporal graph neural networks and causal treatment effect estimation to utilize incident records while mitigating selection bias. Experiments on real-world traffic data and accident records from Tokyo, which we treat as incidents, show that CASTANET reduces RMSE by 4.0% overall compared to the best baseline and by 10.1% on incident-conditioned evaluation, with gains reaching 14.55% under severe congestion.

I. INTRODUCTION

Traffic congestion management is an essential function of advanced intelligent transportation systems (ITS). In urban road networks, congestion can be broadly categorized into periodic and non-periodic congestion [1]. Periodic congestion arises from regular social activities such as commuting and logistics, and therefore repeatedly occurs at similar times and locations. In contrast, non-periodic congestion occurs irregularly and may propagate rapidly through the road network because sudden incidents, such as traffic accidents or road damage, often trigger such congestion. If the growth of such incident-driven congestion can be forecast, traffic operators can respond proactively, for example by adapting signal timings and allocating operational resources. We also need to know whether the growth is mainly attributable to the incident or would have occurred even without it.

Although the causes of non-periodic congestion are varied, we hypothesize that incident-driven congestion growth is predictable by modeling the interaction between traffic conditions, road structure, and incidents. Recently, spatio-temporal graph neural networks (STGNNs) [2], [3], [4] have shown their potential to capture such complex relationships from large-scale traffic observations. However, predicting non-periodic congestion remains challenging for two key reasons.

First, the impact of a sudden incident is heterogeneous [5]. We show traffic observations around incidents on two different roads in Figure 1. In the left figure, an incident at around

Figure

Fig. 1. Speed, flow, and queue length under two incidents. (a) Speed and flow drop while queue length rises after the incident. (b) No clear traffic changes are observed.

10:30 causes a sharp decline in speed and flow, leading to a rapid increase in queue length. In contrast, in the right figure, there are no apparent changes in traffic after the incident. These contrasting outcomes arise because the impact of an incident depends on the incident itself, traffic conditions, and the local road network structure. A predictive model must therefore capture these context-dependent interactions rather than treating all incidents uniformly.

Second, incident data are inherently sparse and exhibit strong spatio-temporal biases [6]. In our traffic dataset from Tokyo, incidents occurred in only 0.01% of all samples. The fact that the locations and times where incidents occur are not uniformly distributed is an additional complexity. Figure 2 shows spatial and temporal histograms of incidents in Tokyo, indicating non-uniform distribution across time or space. This sparsity makes prediction difficult, but a more subtle problem arises: incidents occur more frequently under specific conditions. Naively adding incident indicators as input features to an STGNN therefore risks confounding the causal effect of an incident with the traffic conditions that make incidents more likely. A model may attribute congestion to an incident even when similar congestion would have occurred without it, which is undesirable for ITS decision-making.

To mitigate this confounding, we draw on the treatment effect estimation framework from causal inference [7], where an incident can be viewed as a non-random intervention and the impact on congestion is the treatment effect. A key technique developed in this framework is balanced representation learning [8], which learns latent representations where treated and control groups are similarly distributed, thereby reducing selection bias and improving predictive accuracy even

Toshiya Kitahara is with Sumitomo Electric System Solutions Co., Ltd. Ryu Shirakami, Koh Takeuchi and Hisashi Kashima are with Kyoto University. Corresponding author: Toshiya Kitahara (kitahara-toshiya@seiss.co.jp).

(a)

Figure

(b)

Fig. 2. (a) The spatial distribution of incidents in Tokyo from May 1 to September 26, where darker meshes indicate higher frequencies. (b) Temporal histogram of incidents.

for factual outcomes. These methods have been extended to multivariate time series [9], [10] and spatio-temporal data [11], [12]. However, these methods have been developed for domains such as epidemiology [11], and hierarchical spatial systems [12], and have not been applied to traffic congestion prediction, where incidents are extremely sparse, exhibit strong spatio-temporal selection bias, and interact with directional traffic propagation on road networks.

In this paper, we propose a causality-aware spatio-temporal adversarial network (CASTANET) for Incident-Aware traffic congestion prediction. CASTANET predicts future congestion while accounting for traffic context, including traffic history, road structure, and records of sudden traffic incidents. The key idea is to integrate STGNNs with treatment effect estimation, so that sudden incidents can be treated as non-random interventions that affect future traffic. First, we combine an STGNN with balanced representation learning methods [9] to learn latent representations of traffic conditions from historical traffic observations, incident history, and road structure [2]. Second, we predict future congestion using the learned representations with the current presence or absence of a sudden incident. To mitigate bias due to spatio-temporally imbalanced incident occurrences, we incorporate adversarial representation learning (ARL) [9], [10], which encourages balanced representations and reduces dependence on factors that merely make incidents more likely to occur.

We conduct experiments on a real-world dataset consisting of traffic measurements and incident records for approximately two thousand road segments in Tokyo, Japan. We focus on predicting queue length, which is an important quantity for traffic signal control. Experimental results show that CAS-TANET reduces queue length prediction RMSE by 4.0% overall compared to the best external baseline (QTNet) and by 10.1% in post-incident RMSE compared to the best ablation variant, with gains reaching 14.55% in severe congestion against state-of-the-art models.

We summarize the contributions of this study as follows:

• Causality-aware formulation of incident-driven congestion prediction: We formulate Incident-Aware traffic prediction within the treatment effect estimation framework, leveraging balanced representation learning to reduce the influence of confounding factors correlated with both incidents and congestion.

• Integration of STGNNs with adversarial balanced representations: We develop CASTANET, which combines an STGNN encoder with adversarial balanced representation learning tailored to the challenges of traffic incident data, including extreme sparsity and strong spatiotemporal selection bias in incident occurrences.

• Empirical validation on large-scale real-world data: Using seven months of traffic and incident records in Tokyo, we demonstrate that CASTANET consistently outperforms state-of-the-art baselines, with particularly large improvements in post-incident and severe-congestion scenarios where accurate prediction matters most for operational decisions.

References (33)