C3DE: Causal-Aware Collaborative Neural Controlled Differential Equation for Long-Term Urban Crowd Flow Prediction

Yuting Liu, Qiang Zhou, Hanzhe Li, Chenqi Gong, Jingjing Gu · DOI

Introduction

Predicting urban crowd flow is a cornerstone of smart city management, essential for optimizing traffic, public transit, and emergency responses. However, as prediction horizons extend, traditional models face three significant hurdles: cumulative error propagation in discrete-time models, asynchronous dynamics between fast-changing crowd flows and slow-evolving urban structures (Points of Interest, or POIs), and spurious correlations that lead to brittle predictions.

To address these challenges, researchers have introduced C³DE (Causal-Aware Collaborative Neural Controlled Differential Equation). This framework shifts the perspective from viewing city data as a series of snapshots to treating it as a continuous flow governed by underlying causal laws.

Methodology: The C³DE Framework

The C³DE framework introduces two major innovations to model urban dynamics more accurately.

Overview of the C³DE framework, illustrating the Dual-Path NCDE architecture and the detailed Counterfactual-Based Causal Estimator.

Dual-Path Neural CDEs

Instead of standard discrete neural networks, C³DE leverages Neural Controlled Differential Equations (NCDEs). NCDEs treat input data as a continuous "path" (using cubic splines) rather than a sequence of points. C³DE uses a dual-path architecture—one for crowd flow and one for POI distribution—allowing the model to capture the evolution of both signals across multiple timescales simultaneously, effectively syncing their different "clocks."

Counterfactual-Based Causal Estimation

To solve the problem of spurious correlations, C³DE employs Counterfactual Inference. The model generates "what-if" scenarios by perturbing POI data (e.g., masking specific categories like restaurants) to create counterfactual datasets. By comparing the factual "truth" with these counterfactual outcomes, the model calculates a Causal Effect Value. These weights are fed back into the NCDE integration process, amplifying true causal drivers while muting irrelevant noise.

Experimental Evaluation

The model was evaluated on three real-world datasets: taxi and bike flow from New York City (NYC-1 & NYC-2) and a highly volatile crowd movement dataset from Beijing, alongside corresponding POI data.

Key Results and Insights

C³DE consistently outperformed state-of-the-art baselines (such as MTGODE and STG-NCDE) across all metrics (MAE, RMSE, MAPE):

  • Superiority in Volatility: The most dramatic improvement occurred in the Beijing dataset, where C³DE achieved an average MAE of 120.81, compared to 180.89 for the next best model.
  • Long-Term Stability: While other models saw error rates spike as the prediction horizon increased, C³DE’s performance remained stable, proving the effectiveness of the NCDE backbone against cumulative error.
  • Causality as a Regularizer: By forcing the model to estimate causal effects through counterfactuals, the researchers effectively "de-biased" the network, making it more robust to sudden fluctuations in city life.

Conclusion and Future Work

C³DE represents a sophisticated step forward in urban computing, suggesting that the secret to predicting the future of our cities lies in treating them as continuous, causal systems. While the current model is purely data-driven, future work may integrate expert domain knowledge, such as urban planning rules, to further refine the causal priors and improve computational efficiency.

Summary updated

BibTeX
@inproceedings{liu2025c,
  author = {Yuting Liu and Qiang Zhou and Hanzhe Li and Chenqi Gong and Jingjing Gu},
  title = {{C3DE: Causal-Aware Collaborative Neural Controlled Differential Equation for Long-Term Urban Crowd Flow Prediction}},
  booktitle = {ECML/PKDD},
  year = {2025},
  doi = {10.1007/978-3-032-06109-6\_29},
}
Figure