Dual-branch Spatial-Temporal Self-supervised Representation for Enhanced Road Network Learning

Qinghong Guo, Yu Wang, Ji Cao, Tongya Zheng, Junshu Dai, Bingde Hu, Shunyu Liu, Canghong Jin

TL;DR

This paper introduces DST, a novel dual-branch framework for learning enhanced road network representations by jointly modeling spatial semantics and temporal traffic dynamics. DST leverages a mix-hop transition matrix and hypergraphs for spatial understanding and a Transformer-based approach for temporal dynamics, outperforming existing methods on various downstream tasks and demonstrating strong zero-shot transferability.

What Problem Does This Paper Address?

Road networks are the backbone of urban mobility, and understanding their structure and dynamics is crucial for smart city applications like traffic prediction and navigation. Road Network Representation Learning (RNRL) aims to create low-dimensional vector representations of road segments. While Graph Neural Networks (GNNs) have been widely used, they struggle with the inherent spatial heterogeneity (distant roads can be functionally similar) and temporal dynamics (traffic patterns change over time, especially between weekdays and weekends) of road networks. The "neighborhood smoothing" mechanism in standard GNNs can lead to over-smoothing and a loss of crucial information, hindering performance on dynamic downstream tasks. This paper addresses the challenge of effectively capturing these complex spatial and temporal characteristics for more robust and versatile road network representations.

Methods

DST employs a dual-branch architecture:

Spatial Branch: * Mix-hop Transition Matrix: Instead of just considering immediate neighbors, this approach uses trajectory data to learn a transition matrix that captures both short-range and long-range road relationships based on hop distance. This helps to incorporate functional similarities between roads that might be geographically distant. * Hypergraph Construction: To further capture high-order relationships beyond simple graph topology, DST constructs a road hypergraph. This hypergraph uses three types of hyperedges: functional zones, roads of the same type, and one-way connections. A General Hypergraph Neural Network (HGNN+) is used to process this hypergraph. * Contrastive Learning: The representations from the standard graph view (learned via a Graph Attention Network - GAT) and the hypergraph view are then used in a self-supervised contrastive learning objective to maximize mutual information between them.

Temporal Branch: * Causal Transformer: A Transformer-based encoder is used to model the temporal traffic dynamics (e.g., traffic volume, travel modes) extracted from trajectories. This architecture is well-suited for capturing sequential patterns. * Two-Task Joint Dynamic Loss: The temporal branch is trained with two self-supervised tasks: * Dynamic Prediction: Predicting future traffic patterns based on historical sequences. * Dynamic Classification: Differentiating between weekday and weekend traffic patterns. This regularization helps the model learn distinct temporal behaviors.

Finally, the spatial and temporal representations are fused (via concatenation) to create the final joint representation for downstream tasks.

Datasets

The paper evaluates DST on three real-world datasets from the cities of Beijing, Porto, and Xi'an. The data consists of vehicle GPS trajectories, which are map-matched to road segments.

Key Insights and Ideas

  • Beyond Local Neighborhoods: The mix-hop transition matrix is a key innovation, demonstrating that understanding road network relationships requires looking beyond immediate neighbors and leveraging trajectory data to infer functional connectivity.
  • Hypergraphs for Higher-Order Semantics: Using hypergraphs with different hyperedge types effectively captures complex, non-pairwise relationships between roads, which are crucial for understanding functional roles and long-range dependencies.
  • Weekday vs. Weekend Dynamics Matter: Explicitly modeling the difference between weekday and weekend traffic patterns is vital for capturing the nuanced temporal dynamics of road networks, leading to more robust representations.
  • Dual-Branch Synergy: The combination of spatial and temporal branches, each with its own specialized self-supervised tasks, creates a powerful synergy. This comprehensive modeling approach significantly outperforms methods that focus on only one aspect.
  • Zero-Shot Transferability: The framework's ability to generalize to unseen cities (zero-shot learning) highlights the robustness and fundamental nature of the learned representations, which are not overly specific to the training city's unique characteristics.

Key Results

DST consistently outperforms state-of-the-art baseline methods across three downstream tasks: road speed inference (SI), travel time estimation (TE), and trajectory destination prediction (DP) on all three datasets. For instance, in the destination prediction task on the Beijing dataset, DST achieves an accuracy of 0.7288, significantly higher than the next best baseline (TrajRNE at 0.6728). Similarly, for speed inference, DST achieves an MAE of 2.4595, outperforming JCLRNT (2.8512). The ablation studies show that removing any of the core components (mix-hop matrix, hypergraph, or temporal modeling) leads to a significant performance degradation, underscoring the importance of each element.

Limitations and Future Work

The authors acknowledge that while DST demonstrates strong performance, further research could explore more advanced fusion mechanisms beyond simple concatenation.

Future work suggested by the authors includes investigating the application of DST to emergency forecasting problems, particularly in the context of extreme natural disasters like typhoons and storms, which require robust spatio-temporal understanding of road networks.

Summary updated

BibTeX
@inproceedings{guo2026dual,
  author = {Qinghong Guo and Yu Wang and Ji Cao and Tongya Zheng and Junshu Dai and Bingde Hu and Shunyu Liu and Canghong Jin},
  title = {{Dual-branch Spatial-Temporal Self-supervised Representation for Enhanced Road Network Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  url = {https://openreview.net/forum?id=YTvToVeoxW},
}
Figure