Introduction
Optimizing public transit is a "wicked problem." Transit agencies must navigate the complex trade-offs between high-utilization routes and equitable coverage for low-density areas, all while striving to minimize energy costs and maintenance. While Artificial Intelligence (AI) and Machine Learning (ML) offer promising solutions for vehicle scheduling and routing, these algorithms require massive, high-quality datasets for training and validation.
Currently, researchers face a significant bottleneck: a reliance on static historical data that fails to account for rare events, changing traffic patterns, or the specific energy needs of electric vehicles (EVs). Transit-Gym addresses this gap as a new open-source simulation platform designed to help researchers and transit agencies optimize bus systems. By combining the high-fidelity traffic simulator SUMO with a custom domain-specific modeling language (DSML) and microscopic energy consumption models, it enables the generation of realistic datasets and the evaluation of "what-if" scenarios across entire cities.
Methodology
Transit-Gym is built as an extensible framework that sits on top of SUMO (Simulation of Urban MObility). Its architecture automates the pipeline from raw data (OpenStreetMap and GTFS schedules) to a running simulation.
The platform's core innovations include:
- Domain-Specific Modeling Language (DSML): Users write simple scripts to define scenarios (e.g., simulating weekday traffic with electric buses on specific routes), which a dedicated interpreter then converts into simulation artifacts.
- Microscopic Energy Estimation: The platform integrates an Artificial Neural Network (ANN) model that utilizes 1Hz trajectory data (speed and acceleration) to predict energy use for diesel, hybrid, and electric buses with high precision.
- Intermodal Routing: Using SUMO’s
DUAROUTER, the system simulates "person plans," where virtual agents walk to stops, wait for buses, and transfer, providing a realistic look at passenger occupancy.
To demonstrate the framework, the researchers used data from Chattanooga, Tennessee, including road networks from OpenStreetMap, GTFS schedules from the Chattanooga Area Regional Transportation Authority (CARTA), and a 2014 daily average Origin-Destination (OD) matrix to simulate background city traffic.
Key Results and Insights
Transit-Gym's primary value lies in its "data augmentation" power—the ability to generate synthetic datasets for scenarios that haven't occurred yet. Key findings from the Chattanooga case study include:
- Energy Efficiency: Electric buses consistently outperformed diesel and hybrids. For example, on Route 1, a diesel bus achieved ~1.0 mpg equivalent, while an electric bus achieved ~11.6 mpg equivalent.
- Traffic Sensitivity: Reducing background traffic by 20% improved the energy economy of diesel buses due to fewer braking events. However, it occasionally decreased the relative advantage of EVs, as free-flowing traffic offers fewer opportunities for regenerative braking.
- Occupancy Visualization: The tool successfully visualized passenger loads across a 24-hour period, identifying specific "peak" trips where buses reached maximum capacity.
Conclusion and Future Work
Transit-Gym provides a robust toolchain for microscopic transit simulation, yet several areas for growth remain. Currently, city-scale microscopic simulations are computationally expensive; the team is exploring partitioned traffic simulations to distribute the load. Future versions also aim to incorporate equity metrics—such as socio-economic data for virtual passengers—to evaluate the fairness of transit changes. Finally, the researchers plan to bridge the gap between long-term transportation planning and short-term operational simulation.
The code for Transit-Gym is available on GitHub for the research community: https://github.com/smarttransit-ai/transit-simulator.
Summary updated