Abstract
Traffic signal retiming and coordination play a significant role in traffic management, especially when the traffic incidents disrupt the network. Many researchers have developed artificially intelligent (AI) traffic signal controllers based on goal-oriented machine learning frameworks to try and optimize network performance. However, previous efforts have lacked the means to evaluate these networks under traffic incident conditions. To make these AI traffic signal controllers more robust, current research needs to consider AI traffic controller performance under traffic incidents and accompanying emergency response. Obtaining field incident data and converting into inputs for simulation models to evaluate these machine learning models has been a huge hurdle because it is expensive, time-consuming, and sometimes even unfeasible. This paper provides an integrated traffic incident and response simulation tool for a grid network made in Simulation of Urban MObility (SUMO) to overcome this gap. The tool includes random traffic incident generation (location and duration), incident detection, random emergency vehicle generation, and emergency vehicle dispatching. With this tool, users can simulate a road network with traffic incidents and emergency vehicle response to produce substantial amounts of data for training robust reinforcement learning models. In addition, this tool will save future researchers and practitioners both time and effort in testing the impact of their proposed AI traffic control models and allow for a more complete evaluation of performance.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Liu H, Hall R (2000) INCISM: Users Manual
Ozbay K, Bartin B (2003) Incident management simulation. SIMULATION 79(2):69–82
Ozbay KM, Xiao W, Jaiswal G, Bartin B, Kachroo P, Baykal-Gursoy M (2009). Evaluation of incident management strategies and technologies using an integrated traffic/incident management simulation. World Rev Intermodal Transp Res 2(2–3):155–186
Wirtz JJ, Schofer JL, Schulz DF (2005) Using simulation to test traffic incident management strategies: the benefits of preplanning. Transp Res Rec 1923(1):82–90
Krajzewicz D, Erdmann J, Behrisch M, Bieker L (2012) Recent development and applications of SUMO-Simulation of Urban MObility. Int J Adv Syst Meas 5(3&4)
Acknowledgements
This work was sponsored by the USDOT CAMMSE University Transportation Center, University of North Carolina, Charlotte.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Appendix
Appendix
1.1 Appendix 1
Below command was run for generating the 4 × 4 grid network illustrated in this paper.
netgenerate --grid --grid.number=4 --grid.length=200 --default.lanenumber=2 --default.speed=20 --no-turnarounds=true --turn-lanes=1 --turn-lanes.length=100 --default-junction-type=traffic_light --grid.attach-length=200 --tls.yellow.time=3 --tls.left-green.time=12 --tls.allred.time = 2 --output-file=net.net.xml
Network generating parameters and their meanings:
--grid: grid network will be generated. SUMO also provides other types of the network to be generated automatically, including spider and random networks.
--grid.length defines the length of each intersection leg in meters
--default.lanenumber defines the number of lanes for each approach
--default.speed defines the edge design speed in meters/second
--no-turnarounds defines whether to allow turn around for the left turn lane
--turn-lanes defines the number of left turn lanes
--turn-lanes.length defines the length of left turn lanes
--default-junction-type defines the intersections in the network are controlled by the pretimed traffic signals
--grid.attach-length defines the length of road attached to the fringe of intersections in the network
--tls.yellow.time defines the duration of yellow phase in seconds
--tls.left-green.time defines the protected left turn movement green time in seconds
--tls.allred.time defines the duration of all red phase in seconds
1.2 Appendix 2
Traffic demand was prepared by calling python randomTrips.py -n net.net.xml -r random.rou.xml --fringe-factor=100000000 --period=0.5 -e 3600.
where randomTrips.py is a Python script tool provided by SUMO.
-n net.net.xml defines the location of the network file.
-r defines the name of the output route file.
--fringe-factor defines the ratios of through and internal traffic demand in the network. An extremely large number is used here to eliminate the internal traffic demand in the network.
--period defines the 1/number of vehicles generated per second. 0.5 used here means two vehicles will be generated per second in the network.
-e defines the end simulation step of generating trips, so here one hour traffic demand is generated.
Rights and permissions
Copyright information
© 2024 Canadian Society for Civil Engineering
About this paper
Cite this paper
Li, T., Zhao, W., Baumanis, C., Hall, J., Machemehl, R. (2024). A Python Extension in Sumo for Simulating Traffic Incidents and Emergency Service Vehicles. In: Gupta, R., et al. Proceedings of the Canadian Society of Civil Engineering Annual Conference 2022. CSCE 2022. Lecture Notes in Civil Engineering, vol 359. Springer, Cham. https://doi.org/10.1007/978-3-031-34027-7_35
Download citation
DOI: https://doi.org/10.1007/978-3-031-34027-7_35
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-34026-0
Online ISBN: 978-3-031-34027-7
eBook Packages: EngineeringEngineering (R0)