Traffic4cast at NeurIPS 2021 - Temporal and Spatial Few-Shot Transfer Learning in Gridded Geo-Spatial Processes

Christian Eichenberger, Moritz Neun, Henry Martin, Pedro Herruzo, Markus Spanring, Yichao Lu, Sungbin Choi, Vsevolod Konyakhin, Nina Lukashina, Aleksei Shpilman, Nina Wiedemann, Martin Raubal, Bo Wang, Hai L. Vu, Reza Mohajerpoor, Chen Cai, Inhi Kim, Luca Hermes, Andrew Melnik, Riza Velioglu, Markus Vieth, Malte Schilling, Alabi Bojesomo, Hasan Al-Marzouqi, Panos Liatsis, Jay Santokhi, Dylan Hillier, Yiming Yang, Joned Sarwar, Anna Jordan, Emil Hewage, David Jonietz, Fei Tang, Aleksandra Gruca, Michael Kopp, David P. Kreil, Sepp Hochreiter

TL;DR

This paper presents the Traffic4cast 2021 competition, which challenged participants to predict traffic flow in new cities and time periods, simulating real-world domain shifts. The competition introduced a novel dataset with temporal and spatial shifts, including the impact of COVID-19, and found that surprisingly simple models leveraging only recent traffic history and static road data could achieve strong performance.

What Problem Does This Paper Address?

Predicting traffic flow is crucial for urban planning and mobility management. However, existing models often struggle when faced with significant changes in traffic patterns, such as those caused by new urban infrastructure, evolving mobility behaviors, or external events like pandemics. This phenomenon, known as "domain shift," is a major hurdle for deploying AI models in real-world, dynamic environments. The Traffic4cast 2021 competition specifically aimed to address this by creating a benchmark that tests the robustness and generalizability of traffic forecasting models across both spatial (different cities) and temporal (pre- vs. post-COVID) domain shifts. This is particularly important as classical traffic models have historically struggled with such drastic changes.

Methods

The core of the Traffic4cast 2021 competition involved predicting future traffic conditions using a "movie completion" task, where models predict future frames (traffic states) based on past frames. The winning architecture in previous years, U-Nets, continued to be a strong contender. This year's challenge focused on few-shot learning and transfer learning, encouraging participants to develop models that could adapt to new domains with limited or no specific training data for those domains. Solutions explored various approaches, including:

  • U-Net Ensembles: Combining multiple U-Net models with different architectures or trained on different subsets of data.
  • Multi-Task Learning: Training a single model to predict traffic for multiple cities simultaneously, promoting city-agnostic representations.
  • Temporal Domain Adaptation (TDA): Explicitly incorporating mechanisms to handle temporal shifts in data.
  • Patch-Based Approaches: Processing the traffic data in smaller, localized patches.
  • Graph Neural Networks (GNNs) and Transformers: Leveraging graph structures of road networks or attention mechanisms for improved feature extraction.

The competition also provided static road graph information as an additional input, which could be used to encode road geometry and connectivity.

Datasets

The Traffic4cast 2021 competition utilized a novel dataset comprising industrial-scale GPS trajectories from over 10^12 probe vehicles across 10 diverse metropolitan areas worldwide. This dataset covered a 2-year span (2019 and 2020) and was specifically designed to include:

  • Temporal Domain Shift: Data from pre-COVID (April/May 2019) and in-COVID (April/May 2020) periods.
  • Spatial Domain Shift: Data from 10 different cities, with some cities used for training and others for testing without prior training data.

The data was provided in an aggregated format, representing traffic conditions in ~100m x 100m spatial cells over 5-minute time bins, forming "Traffic Map Movies."

Key Insights and Ideas

  • Domain Shift is a Major Hurdle: The competition highlighted that real-world traffic data exhibits significant temporal and spatial shifts, making it challenging for models to generalize. The COVID-19 pandemic provided a stark example of such a shift.
  • Simplicity Can Be Powerful: Surprisingly, winning solutions often relied on relatively simple models that used only the previous hour of traffic data and static road information. This suggests that for many scenarios, complex feature engineering or extensive pre-training might not be strictly necessary if the model can effectively leverage recent dynamics.
  • Few-Shot Learning is Key: The competition underscored the importance of few-shot learning techniques, where models must learn from very few examples, a critical skill for adapting to new or changing environments.
  • Static Road Information is Valuable: The inclusion of static road graph data proved beneficial, providing crucial contextual information about road networks and connectivity, especially in areas with sparse dynamic data.
  • MSE Limitations: The standard Mean Squared Error (MSE) metric, while common, has limitations in handling outliers and might incentivize models to predict averaged scenarios rather than rare but critical events.

Key Results

  • Winning solutions successfully captured traffic dynamics and coped with complex domain shifts, demonstrating the potential for models to generalize across cities and time periods.
  • Models that leveraged only the previous 1-hour traffic dynamic history and static road graph as input achieved competitive results, indicating the sufficiency of this information for many tasks.
  • The competition provided a rich dataset for studying temporal and spatial transfer learning, as well as the impact of real-world events like COVID-19 on mobility patterns.
  • Analysis of model performance revealed that most approaches struggled in areas with high speed variance or where data was sparse, particularly during off-peak hours.

Limitations and Future Work

  • MSE Metric Limitations: The authors acknowledge that the MSE metric can be distorted by missing values, may not handle spatial and temporal shifts optimally, and struggles with different scales and distribution-aware predictions. Future work could explore alternative metrics that better capture these aspects.
  • Outlier Prediction: Models trained with MSE tend to predict averaged scenarios, underestimating speed and overestimating density in outlier situations like traffic jams. Developing models that can better predict rare events is an ongoing challenge.
  • Data Sparsity: The analysis highlighted that models struggle in areas with data sparsity, whether due to fleet bias or lack of traffic. Future work could focus on improving model robustness in such conditions.
  • Incorporating New Data Sources: The authors suggest exploring the adaptation of the Traffic4cast framework to incorporate new data sources like satellite data, loop counter data, or crowd-sourced traffic data, and investigating sensor fusion techniques.
  • Further Analysis: The paper suggests conducting more in-depth analysis, including checking the robustness of binning strategies, analyzing other cities, incorporating mean/percentiles into analysis, and performing day/night time specific analysis. Calculating per-pixel R2 values for different models is also proposed.

Summary updated

Abstract

The IARAI Traffic4cast competitions at NeurIPS 2019 and 2020 showed that neural networks can successfully predict future traffic conditions 1 hour into the future on simply aggregated GPS probe data in time and space bins. We thus reinterpreted the challenge of forecasting traffic conditions as a movie completion task. U-Nets proved to be the winning architecture, demonstrating an ability to extract relevant features in this complex real-world geo-spatial process. Building on the previous competitions, Traffic4cast 2021 now focuses on the question of model robustness and generalizability across time and space. Moving from one city to an entirely different city, or moving from pre-COVID times to times after COVID hit the world thus introduces a clear domain shift. We thus, for the first time, release data featuring such domain shifts. The competition now covers ten cities over 2 years, providing data compiled from over 10^12 GPS probe data. Winning solutions captured traffic dynamics sufficiently well to even cope with these complex domain shifts. Surprisingly, this seemed to require only the previous 1h traffic dynamic history and static road graph as input.
BibTeX
@inproceedings{eichenberger2021traffic,
  author = {Christian Eichenberger and Moritz Neun and Henry Martin and Pedro Herruzo and Markus Spanring and Yichao Lu and Sungbin Choi and Vsevolod Konyakhin and Nina Lukashina and Aleksei Shpilman and Nina Wiedemann and Martin Raubal and Bo Wang and Hai L. Vu and Reza Mohajerpoor and Chen Cai and Inhi Kim and Luca Hermes and Andrew Melnik and Riza Velioglu and Markus Vieth and Malte Schilling and Alabi Bojesomo and Hasan Al-Marzouqi and Panos Liatsis and Jay Santokhi and Dylan Hillier and Yiming Yang and Joned Sarwar and Anna Jordan and Emil Hewage and David Jonietz and Fei Tang and Aleksandra Gruca and Michael Kopp and David P. Kreil and Sepp Hochreiter},
  title = {{Traffic4cast at NeurIPS 2021 - Temporal and Spatial Few-Shot Transfer Learning in Gridded Geo-Spatial Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=dmYdXgjjmPe},
}
Figure