BusTr: Predicting Bus Travel Times from Real-Time Traffic

Richard Barnes, Senaka Buthpitiya, James Cook, Alex Fabrikant, Andrew Tomkins, Fangzhou Xu · DOI

Abstract

We present BusTr, a machine-learned model for translating road traffic forecasts into predictions of bus delays, used by Google Maps to serve the majority of the world's public transit systems where no official real-time bus tracking is provided. We demonstrate that our neural sequence model improves over DeepTTE, the state-of-the-art baseline, both in performance (-30% MAPE) and training stability. We also demonstrate significant generalization gains over simpler models, evaluated on longitudinal data to cope with a constantly evolving world.

Introduction

Accurate real-time transit information is a cornerstone of modern urban mobility. However, a significant portion of the world's transit agencies lack the infrastructure to broadcast live vehicle locations via protocols like GTFS-Realtime. For these "dark" systems, commuters typically rely on static schedules that fail to account for dynamic traffic conditions.

Buses exhibit distinct movement patterns compared to passenger cars: they stop frequently, utilize dedicated lanes, and have unique acceleration profiles. Consequently, using raw car travel times as a direct proxy for bus ETAs leads to substantial errors. BusTr addresses this by learning the non-linear relationship between general road traffic and bus-specific movement at a global scale.

Methodology

The BusTr model utilizes a modular neural network architecture that decomposes a bus trip into a sequence of discrete components termed "quanta", representing individual road segments and bus stops.

Additive Structure

Unlike traditional recurrent architectures such as LSTMs, BusTr employs an additive structure. The model predicts the duration for each quantum independently and sums these values to produce the total travel time. This design choice results in a model that is significantly faster (up to 700x) than typical reporting intervals and exhibits superior training stability.

Figure 2: BusTr model architecture showing the decomposition of a trip into road and stop units.

Component Units

The model consists of two primary unit types:

  • Road Units: These units utilize a "car-dependent" formula: Duration = $\alpha(d/s) + \beta d$, where $d/s$ represents the car travel time (distance/speed). This allows the model to learn the sensitivity of bus speeds to traffic ($\alpha$) versus fixed overheads like segment length ($\beta$).
  • Stop Units: These units model the time spent at bus stops, influenced by location and trip context.

Spatial Representation and Generalization

To achieve global scalability, BusTr employs multi-scale spatial embeddings using the S2 Geometry Library. This hierarchical representation allows the model to capture features at various granularities, from specific intersections to entire metropolitan areas. To ensure robust generalization to unseen cities, the authors implemented Spatial Input Ablation (SIA), a technique that randomly masks fine-grained location data during training, forcing the model to rely on broader regional features.

Experimental Setup

The model was trained using a combination of Google Maps traffic forecasts and GTFS-Realtime feeds as ground-truth data. The evaluation spanned a planet-scale dataset to test cross-regional generalization.

Table 1: Hyperparameters and embedding dimensions used for training BusTr.

Results

BusTr demonstrates significant improvements over existing baselines:

  • Accuracy: The model achieved a Mean Absolute Percentage Error (MAPE) of 13.2%, representing a 30% improvement over the DeepTTE baseline.
  • Stability: BusTr achieved 100% convergence across 20 training trials, whereas DeepTTE failed to converge in 37% of trials.
  • Efficiency: With a 90th-percentile latency of 38.1 ms, the model is highly suitable for global production deployment.
  • Traffic Sensitivity: Ablation studies showed that removing real-time traffic data increased error by 16%, confirming that live traffic is the primary driver of prediction accuracy.

Conclusion

BusTr provides a scalable, efficient solution for predicting bus travel times in regions lacking real-time tracking infrastructure. By treating buses as distinct from cars and leveraging a modular, additive architecture, the model achieves state-of-the-art accuracy and stability. Future work will focus on improving predictions for the start of trips and better capturing the compounding nature of delays over long routes.

Summary updated

Abstract

We present BusTr, a machine-learned model for translating road traffic forecasts into predictions of bus delays, used by Google Maps to serve the majority of the world's public transit systems where no official real-time bus tracking is provided. We demonstrate that our neural sequence model improves over DeepTTE, the state-of-the-art baseline, both in performance (-30% MAPE) and training stability. We also demonstrate significant generalization gains over simpler models, evaluated on longitudinal data to cope with a constantly evolving world.
BibTeX
@inproceedings{barnes2020bustr,
  author = {Richard Barnes and Senaka Buthpitiya and James Cook and Alex Fabrikant and Andrew Tomkins and Fangzhou Xu},
  title = {{BusTr: Predicting Bus Travel Times from Real-Time Traffic}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  url = {https://openreview.net/forum?id=Y7Koua0d_o},
}
Figure