Local Gaussian Processes for Efficient Fine-Grained Traffic Speed Prediction

Truc Viet Le, Richard J. Oentaryo, Siyuan Liu, Hoong Chuin Lau

Abstract

Traffic speed is a key indicator for the efficiency of an urban transportation system. Accurate modeling of the spatiotemporally varying traffic speed thus plays a crucial role in urban planning and development. This paper addresses the problem of efficient fine-grained traffic speed prediction using big traffic data obtained from static sensors. Gaussian processes (GPs) have been previously used to model various traffic phenomena, including flow and speed. However, GPs do not scale with big traffic data due to their cubic time complexity. In this work, we address their efficiency issues by proposing localGPs to learn from and make predictions for correlated subsets of data. The main idea is to quickly group speed variables in both spatial and temporal dimensions into a finite number of clusters, so that future and unobserved traffic speed queries can be heuristically mapped to one of such clusters. A local GP corresponding to that cluster can then be trained on the fly to make predictions in real-time. We call this method localization. We use non-negative matrix factorization for localization and propose simple heuristics for cluster mapping. We additionally leverage on the expressiveness of GP kernel functions to model road network topology and incorporate side information. Extensive experiments using real-world traffic data collected in the two U.S. cities of Pittsburgh and Washington, D.C., show that our proposed local GPs significantly improve both runtime performances and prediction accuracies compared to the baseline global and local GPs.

Introduction

Predicting fine-grained traffic speed is a cornerstone of Intelligent Transportation Systems (ITS), yet it remains computationally daunting. Static sensors provide sparse coverage, leaving many road segments unobserved, while traffic patterns fluctuate wildly due to rush hours and incidents. While Gaussian Processes (GPs) are the "gold standard" for this task—offering non-parametric Bayesian modeling and built-in uncertainty estimation—they don't scale. A GP's training complexity grows cubically ($O(N^3)$) with the number of data points. For a city-wide sensor network, a global GP becomes a bottleneck.

The Localization Framework

To address the scalability bottleneck, we propose a "localization" framework that uses Non-negative Matrix Factorization (NMF) to cluster traffic data into specialized spatiotemporal "bins." This allows for the training of small, specialized GPs that are both significantly faster and more accurate than global models.

The proposed localization framework for learning and prediction.

The approach consists of three main stages:

  1. NMF-based Clustering: Instead of partitioning the city into a physical grid, we apply NMF to a matrix of historical speed observations. This groups road segments (spatial) and time intervals (temporal) based on actual speed patterns. This "soft" clustering identifies regions and times that behave similarly, even if they aren't geographically adjacent.
  2. Local GP Training: For any specific query (e.g., "What is the speed on Main St. in 15 minutes?"), the system maps the query to its corresponding spatiotemporal cluster. A "Local GP" is then trained on-the-fly using only the data from that specific cluster.
  3. Kernel Engineering: To make the GPs more expressive, we use kernels that account for road network topology and incorporate side information (e.g., lanes, road type, and network centrality) through an additive structure.

Experimental Evaluation

The models were evaluated using real-world Traffic Message Channel (TMC) data from August 2014 in Pittsburgh, PA (1,190 road segments) and Washington, D.C. (1,091 road segments). GIS shapefiles provided road attributes to calculate graph-theoretic features like node degree and edge betweenness.

Key Insights

Our experiments revealed that clustering by response (speed patterns) is superior to clustering by features (coordinates). Two highways on opposite sides of a city might be more correlated than a highway and a nearby residential alley. Furthermore, local GPs often improved accuracy by ignoring irrelevant data from unrelated clusters, avoiding the "noise" that plagues global models.

Average speed distribution over time for weekdays vs. weekends.

As shown in the speed distribution, traffic patterns differ significantly between weekdays and weekends. We found that the optimal number of clusters ($K$) was higher for weekdays, confirming that commute-driven traffic patterns are more complex and require finer partitioning.

Results and Conclusion

In Pittsburgh, NMF-based local GPs were over 10 times faster than global GPs for weekday predictions. The proposed model consistently achieved the lowest error rates (RMSE, MAE, and MAPE) across both cities, significantly outperforming grid-based local GPs. This proves that NMF-based localization captures traffic dynamics better than simple geometry.

Future work includes optimizing feature selection for specific cities and extending the localization approach to long-term forecasting by incorporating exogenous variables like weather or planned events.

Summary updated

BibTeX
@article{le2017local,
  author = {Truc Viet Le and Richard J. Oentaryo and Siyuan Liu and Hoong Chuin Lau},
  title = {{Local Gaussian Processes for Efficient Fine-Grained Traffic Speed Prediction}},
  journal = {IEEE Trans. Big Data},
  year = {2017},
  doi = {10.1109/tbdata.2016.2620488},
}
Figure