[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to main content

A Python Extension in Sumo for Simulating Traffic Incidents and Emergency Service Vehicles

  • Conference paper
  • First Online:
Proceedings of the Canadian Society of Civil Engineering Annual Conference 2022 (CSCE 2022)

Part of the book series: Lecture Notes in Civil Engineering ((LNCE,volume 359))

Included in the following conference series:

  • 516 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
£29.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
GBP 19.95
Price includes VAT (United Kingdom)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
GBP 175.50
Price includes VAT (United Kingdom)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
GBP 219.99
Price includes VAT (United Kingdom)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
GBP 219.99
Price includes VAT (United Kingdom)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Liu H, Hall R (2000) INCISM: Users Manual

    Google Scholar 

  2. Ozbay K, Bartin B (2003) Incident management simulation. SIMULATION 79(2):69–82

    Article  Google Scholar 

  3. 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

    Google Scholar 

  4. 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

    Article  Google Scholar 

  5. 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)

    Google Scholar 

Download references

Acknowledgements

This work was sponsored by the USDOT CAMMSE University Transportation Center, University of North Carolina, Charlotte.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tianxin Li .

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

Reprints and permissions

Copyright information

© 2024 Canadian Society for Civil Engineering

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics