Introduction
Modern urban infrastructure relies heavily on accurate traffic forecasting to manage congestion and improve emergency response. While state-of-the-art Spatio-Temporal Graph Neural Networks (GNNs) excel at modeling routine traffic patterns, such as daily rush hours, their performance often degrades significantly during non-recurring events like accidents, road construction, or sudden closures. These models are primarily correlational; they assume future traffic will mirror historical trends. However, unpredictable disruptions introduce novel causal factors that invalidate these historical patterns. Furthermore, critical information regarding these disruptions is frequently trapped in unstructured textual reports that traditional numerical models cannot process.
To address these challenges, we present Event-CausNet, a framework designed to bridge the gap between qualitative textual data and quantitative forecasting by integrating Large Language Models (LLMs) with formal causal inference.
The Event-CausNet Framework
The Event-CausNet architecture consists of three distinct stages that transform raw event text into actionable causal insights for traffic prediction.
Stage 1: LLM-Powered Event Feature Engineering
The process begins by extracting structure from "messy" unstructured event logs (e.g., social media posts or map alerts). An LLM pipeline first identifies key attributes such as time, location, and event type. Subsequently, the LLM quantifies the event by assigning scores (1-5) for severity, danger, and duration, resulting in a feature vector $e_t$ that represents the event's potential impact.
Stage 2: Causal Knowledge Base Construction
To understand the true impact of an event, the framework employs Propensity Score Matching (PSM). This statistical method allows for a fair comparison between "treated" road segments (those experiencing an event) and "control" segments (similar roads without an event). By calculating the Average Treatment Effect (ATE), the system builds a library of "causal priors." For instance, the model can determine that a specific type of hazard typically reduces traffic speed by a precise margin, such as 10.06 km/h, providing a grounded baseline for adjustments.
Stage 3: Causal-Enhanced Prediction Network
The final stage utilizes a dual-stream neural network. A Base Predictor estimates the standard traffic trend, while a Causal Estimator predicts the necessary adjustment based on the current event. A novel Causal-Aware Attention mechanism ensures the model prioritizes these causal features over noisy historical data when a disruption is active, allowing for "strategic flexibility" in its predictions.
Causal Insights and Interpretability
One of the primary advantages of Event-CausNet is its inherent interpretability. By explicitly modeling causal relationships, the framework reveals how different event types and confounding factors (like road capacity or event scope) influence traffic speed.
As shown in the causal analysis, different events have varying degrees of negative impact on speed (e.g., Accidents at -3.13, Construction at -4.30). Interestingly, the research also uncovered counter-intuitive effects: some accidents during peak hours actually resulted in a positive speed effect (+2.57). This is attributed to proactive re-routing by navigation apps, which diverts traffic away from the affected segment, leaving it less congested than its typical "control" state.
Experimental Results
The framework was evaluated using the Beijing Text-Traffic (BjTT) dataset, which includes one month of traffic velocity data from 1,260 road segments and over 4,000 aligned textual event reports. Event-CausNet demonstrated superior performance over standard baselines like STGCN and DCRNN:
- Accuracy: The model achieved a 10% improvement in Mean Absolute Error (MAE) for short-term forecasts (12 min) and a 25.6% improvement for longer-term horizons (32 min).
- Robustness: In high-volatility scenarios, prediction error was reduced by as much as 35.87%.
- Reliability: Diagnostic analysis confirmed that the model's residuals remained tightly clustered around zero, indicating unbiased performance even during critical disruptions.
Conclusion
Event-CausNet represents a significant step toward more reliable and interpretable urban AI. By unlocking the causal knowledge hidden in text, it provides traffic management systems with a "causal compass" to navigate unpredictable disruptions. Future work will focus on generalizing this causal knowledge across different cities and expanding the framework to include broader factors such as weather and large-scale public events.
Summary updated