Salvador Urban Network Transportation (SUNT): A Landmark Spatiotemporal Dataset for Public Transportation

Marcos Vinícius dos Santos Ferreira, Matheus Carvalho de Souza, Tatiane Nogueira Rios, Islame Felipe da Costa Fernandes, Danilo Oliveira Andrade, Joao Gama, Albert Bifet, Ricardo RiosOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Efficient public transportation management is essential for the development of large urban centers, providing several benefits such as comprehensive coverage of population mobility, reduction of transport costs, better control of traffic congestion, and significant reduction of environmental impact limiting gas emissions and pollution. Realizing these benefits requires a deeply understanding the population and transit patterns and the adoption of approaches to model multiple relations and characteristics efficiently. This work addresses these challenges by providing a novel dataset that includes various public transportation components from three different systems: regular buses, subway, and BRT (Bus Rapid Transit). Our dataset comprises daily information from about 700,000 passengers in Salvador, one of Brazil's largest cities, and local public transportation data with approximately 2,000 vehicles operating across nearly 400 lines, connecting almost 3,000 stops and stations. With data collected from March 2024 to March 2025 at a frequency lower than one minute, SUNT stands as one of the largest, most comprehensive, and openly available urban datasets in the literature.

Introduction

Urban planners and researchers frequently encounter a "data silo" problem when attempting to model city-wide mobility. While many municipalities share vehicle locations (AVL) or static schedules (GTFS), they rarely release detailed passenger flow data (AFC) due to privacy concerns or technical hurdles. Furthermore, many transit systems in developing countries lack "tap-off" mechanisms, making it nearly impossible to know where passengers actually end their journeys. Without this integrated view, optimizing routes, reducing overcrowding, or accurately modeling the environmental impact of transit systems remains a significant challenge.

The Salvador Urban Network Transportation (SUNT) dataset addresses these gaps by providing a comprehensive, cleaned, and integrated resource that bridges the gap between vehicle movement and passenger behavior for one of Brazil's largest cities.

Methodology and Data Integration

The SUNT dataset was constructed by fusing four primary data streams to create a high-resolution "digital twin" of Salvador's urban mobility:

  1. Automatic Vehicle Location (AVL): Real-time GPS coordinates for approximately 2,000 vehicles.
  2. Automatic Fare Collection (AFC): Anonymized transaction data from ~700,000 daily passengers.
  3. GTFS: Static data defining stops, lines, and schedules.
  4. Local Trip Information (LTI): Contextual data regarding vehicle activities, such as garage departures.
The multi-step process for creating the integrated origin-destination dataset

The integration process involves a rigorous cleaning pipeline to ensure data validity, filtering out excessive travel times or out-of-trip registrations. The final output is modeled as a spatiotemporal graph $G_t = (V, E)$, where nodes ($V$) represent stops or stations and edges ($E$) represent the feasible routes between them, enriched with temporal attributes like travel time and passenger load.

Inferring Alighting via Trip Chaining

A core challenge in "tap-only" systems is the absence of exit data. To solve this "missing alighting" problem, the SUNT dataset employs a Trip Chaining heuristic. This method assumes that if a passenger boards Bus A at Stop 1 and later boards Bus B at Stop 2, their alighting point for the first trip was likely near Stop 2.

Scenarios for inferring alighting locations via trip chaining

As illustrated in the figure above, different scenarios (I, II, and III) account for varying levels of complexity in passenger transfers and return trips. This approach allows for the generation of high-quality origin-destination (OD) matrices even in the absence of explicit exit-gate data.

Dataset Characteristics and Benchmarking

Collected from March 2024 to March 2025, SUNT stands out against existing benchmarks like METR-LA or Beijing Metro due to its scale and granularity:

  • Nodes: 2,871 (significantly higher than the ~200-300 found in many popular datasets).
  • Edges: 4,526.
  • Temporal Resolution: < 1 minute.
  • Scope: Multimodal integration of regular buses, subway, and Bus Rapid Transit (BRT).

Notably, the dataset preserves real-world noise, such as boarding counts that occasionally exceed vehicle capacity. These instances often occur when mobile turnstiles at busy stops register passengers for multiple buses simultaneously. Keeping this data reflects the true, messy nature of urban transit rather than providing an idealized, unrealistic model.

Experimental Validation and Results

The utility of the SUNT dataset was validated using several Graph Neural Network (GNN) architectures for node and edge classification tasks:

  • Node Classification (Passenger Load): The GraphSAGE model achieved the best performance with an accuracy of 0.76 ± 0.1, significantly outperforming standard GCNs.
  • Edge Classification (Mean Velocity): Models including GCN, CHEB, SAGE, and GAT showed consistent performance around 0.61-0.62 accuracy, highlighting the inherent complexity of predicting traffic speeds on specific urban segments.
  • Practical Application: The authors demonstrated the dataset's cross-domain utility by overlaying it with public school locations to analyze student mobility. Furthermore, the data can be used to optimize "Express" vs. "Normal" bus scheduling by identifying peak load segments.

Conclusion and Future Work

SUNT represents a landmark contribution to open-access urban mobility data. While alighting locations are inferred and certain free-fare populations (such as the elderly) are estimated via probability distributions, the dataset provides an unprecedented level of detail for a major metropolitan area. Future research directions include using SUNT to fine-tune time-series foundation models and exploring multi-agent evolutionary algorithms for real-time routing optimization.

Summary updated

Abstract

Efficient public transportation management is essential for the development of large urban centers, providing several benefits such as comprehensive coverage of population mobility, improvement of the local economy with the offer of new jobs and the decrease of transport costs, better control of traffic congestion, and significant reduction of environmental impact limiting gas emissions and pollution. Realizing these benefits requires carefully pursuing two essential pathways: (i) deeply understanding the population and transit patterns and (ii) using intelligent approaches to model multiple relations and characteristics efficiently. This work addresses these challenges by providing a novel dataset that includes various public transportation components alongside machine learning models trained to understand and predict different real-world behaviors. Our dataset comprises daily information from about 710,000 passengers in Salvador, one of Brazil's largest cities, and local public transportation data with approximately 2,000 vehicles operating across nearly 400 lines, connecting almost 3,000 stops and stations. As benchmarks, we have fine-tuned diverse Graph Neural Networks to perform inference on vertices and edges, undertaking both regression and classification tasks. These models leverage temporal and spatial features concerning passengers and transportation data. We emphasize the greatest advantage of using our dataset lies in different possibilities of modeling a real-world urban mobility dataset, reproducing our results, overcoming our models, and investigating several other open-problem situations listed in this manuscript as future work, which include the designing of new methods, optimization strategies, and environmental approaches. Our dataset, codes, and models are available at https://github.com/suntdataset/sunt.git.
BibTeX
@misc{ferreira2025salvador,
  author = {Marcos Vinícius dos Santos Ferreira and Matheus Carvalho de Souza and Tatiane Nogueira Rios and Islame Felipe da Costa Fernandes and Danilo Oliveira Andrade and Joao Gama and Albert Bifet and RICARDO RIOS},
  title = {{Salvador Urban Network Transportation (SUNT): A Landmark Spatiotemporal Dataset for Public Transportation}},
  year = {2025},
  url = {https://openreview.net/forum?id=aOiKt5b0NA},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}
Figure