Physics-guided Active Sample Reweighting for Urban Flow Prediction

Wei Jiang, Tong Chen, Guanhua Ye, Wentao Zhang, Lizhen Cui, Zi Huang, Hongzhi Yin

Predicting urban traffic and passenger flows is a cornerstone of modern smart city infrastructure. However, real-world data is often "messy," characterized by uncalibrated sensors, coarse recording intervals, and significant noise. This research, presented at CIKM '24, introduces P-GASR (Physics-guided Active Sample Reweighting), a novel framework designed to bridge the gap between rigid physical laws and imperfect data.

The Challenge: Physical Inconsistency

Traditional spatio-temporal prediction relies on two main paradigms: data-driven deep learning models (like GNNs) and Physics-guided Machine Learning (PGML). While PGML incorporates physical laws like the conservation of mass, it typically assumes that observed data perfectly adheres to these equations. In reality, sensor errors and temporal aggregation create a state of physical inconsistency.

Conceptual illustration of physical consistency versus inconsistency in urban energy density and flux.

When rigid physical constraints are applied to inconsistent data, PGML models often underperform compared to purely data-driven approaches. P-GASR addresses this by using physics not just as a constraint, but as a diagnostic tool to evaluate data quality.

The P-GASR Framework

The authors propose a two-pronged solution to handle the "chunkiness" and noise of urban data:

  1. Discretized Physics-guided Network (PN): Unlike standard PGML that uses continuous Differential Equations, the PN uses a discrete version of the continuity equation. This better aligns with the snapshot-based nature of urban flow data recorded at fixed intervals (e.g., every 30 or 60 minutes).
  2. Active Reweighting Policy (ARP): This core innovation calculates a "trustworthiness" weight for each data sample during a pre-training phase. Weights are determined by:
  3. Model Uncertainty: Utilizing Monte Carlo (MC) dropout to identify where the model lacks confidence.
  4. Physical Consistency: Measuring how well a specific data point obeys conservation laws (matching inflow/outflow with density changes).

By down-weighting samples that violate physical laws or exhibit high uncertainty, the model avoids being led astray by anomalies and sensor errors.

Experimental Results and Noise Resilience

The framework was evaluated on four major benchmarks: NYCBike1, NYCBike2, NYCTaxi, and BJTaxi. P-GASR achieved state-of-the-art performance, outperforming eight major baselines (including ST-SSL) with improvements in accuracy of up to 6.1%.

Performance of P-GASR across four datasets under varying levels of artificial Gaussian noise (0% to 50%).

A key strength of P-GASR is its robustness. In stress tests where artificial noise was injected into up to 50% of the data, P-GASR maintained high performance while standard models saw significant degradation. This resilience confirms that the active reweighting policy effectively filters out unreliable data points.

Conclusion

P-GASR represents a shift toward "data-centric physics." By prioritizing samples where the model is uncertain but the physics remain consistent, the framework performs a type of active learning that focuses on the most informative and reliable parts of a dataset. Future work may expand this approach by incorporating more complex dynamics, such as social force models or non-linear traffic fluid pressure.

Summary updated

BibTeX
@inproceedings{jiang2024physics,
  author = {Wei Jiang and Tong Chen and Guanhua Ye and Wentao Zhang and Lizhen Cui and Zi Huang and Hongzhi Yin},
  title = {{Physics-guided Active Sample Reweighting for Urban Flow Prediction}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  url = {https://openreview.net/forum?id=xSA4lbQdde},
}
Figure