Submitted:
13 January 2025
Posted:
14 January 2025
Read the latest preprint version here
Abstract
Keywords:
1. Introduction
- To develop a more accurate traffic congestion model by integrating real-time speed data, historical density information, and current weather conditions.
- To create a scalable, high-performance backend system capable of processing large volumes of streaming data with minimal latency.
- To design an intuitive, user-friendly visualization interface that provides actionable insights for both city planners and individual commuters.
2. Related Work
2.1. Traffic Flow Modeling
2.2. Real-time Data Processing Systems
2.3. Traffic Visualization Techniques
- We integrate real-time weather data as a critical factor in traffic prediction, an aspect often overlooked in existing models.
- Our system processes a higher volume of real-time data points compared to many existing solutions, allowing for more granular and up-to-date visualizations.
- We employ a novel congestion scoring algorithm that considers both historical density data and real-time speed information, providing a more nuanced view of traffic conditions.
3. Methodology
3.1. Data Acquisition
- NYC OpenData [14]: Offers historical traffic density information. This data is updated daily and used to contextualize real-time observations. It provides average vehicle counts for different times of day and days of the week. We get all roads details extracted from (OpenData, 2024). Given a huge amount of data and enormous repetition, the roads were downsampled to an acceptable quantity. These road information is the official input of the whole structure. There are two branches to process these roads. One is served as the request parameters in (Tomtom, 2022) traffic flow API call, another is used for (openweather, 2022) One Call.
- TomTom Traffic API [15]: Provides real-time speed data for road segments. We query this API every 15 minutes for each of the 1,000 road segments in our study area. The API returns current speed, free-flow speed, and confidence value for each segment.
- OpenWeather API [16]: Supplies current weather conditions. We fetch this data hourly for 8 geographic clusters covering Manhattan. The data includes temperature, precipitation, wind speed, and visibility.
3.2. Data Processing and Analysis:
3.2.0.1. Data Cleaning
3.2.0.2. Data Integration
3.3. Algorithm
3.4. System Optimization:
- Session Persistence: We maintain persistent sessions for API calls, reducing connection overhead. Figure 5 compares the performance of persistent vs. non-persistent sessions.
- Data Downsampling: We downsample the original 140,000+ road segments to about 1,000 representative segments to balance detail and processing efficiency.
3.5. Visualization
- Color-coded road segments representing congestion levels (green for free-flow, orange for moderate congestion, red for heavy congestion).
- Interactive timeline allowing users to view historical data or predictions for future time periods.
- Weather overlay displaying current conditions and their impact on traffic.
- Incident markers showing detected anomalies or reported events.
- Customizable filters for viewing specific types of roads or congestion levels.
4. Experiments and Results
4.1. comparative Analysis
4.2. Accuracy Comparison
| Model | Accuracy | Precision | Recall | F1-score |
|---|---|---|---|---|
| Our System | 95% | 93% | 94% | 93.5% |
| Baseline(No Weather) | 65% | 62% | 64% | 63% |
5. Discussion
6. Conclusions and Future Work
References
- Apache Spark. (2022). Retrieved from https://spark.apache.org/docs/latest/index.
- Google Maps Platform. (2022). Retrieved from https://developers.google.
- Wang, F. Y. (2010). Parallel control and management for intelligent transportation systems: Concepts, architectures, and applications. IEEE Transactions on Intelligent Transportation Systems, 11(3), 630-638.
- Zhang, J. , Wang, F. Y., Wang, K., Lin, W. H., Xu, X., & Chen, C. (2011). Data-driven intelligent transportation systems: A survey. IEEE Transactions on Intelligent Transportation Systems, 12(4), 1624-1639. [Google Scholar]
- Lighthill, M. J. , & Whitham, G. B. ( 229(1178), 317–345.
- Treiber, M. , & Kesting, A. (2013). Traffic flow dynamics. Traffic Flow Dynamics: Data, Models and Simulation, Springer-Verlag Berlin Heidelberg.
- Vlahogianni, E. I. , Karlaftis, M. G., & Golias, J. C. (2014). Short-term traffic forecasting: Where we are and where we’re going. Transportation Research Part C: Emerging Technologies, 43, 3-19.
- Lv, Y. , Duan, Y., Kang, W., Li, Z., & Wang, F. Y. (2014). Traffic flow prediction with big data: A deep learning approach. IEEE Transactions on Intelligent Transportation Systems, 16(2), 865-873.
- Jagadish, H. V. , et al. ( 57(7), 86–94.
- Zainab Abbas, Paolo Sottovia, Mohamad Al Hajj Hassan, Daniele Foroni, and Stefano Bortoli. 2020. Real-time traffic jam detection and congestion reduction using streaming graph analytics. In 2020 IEEE International Conference on Big Data (Big Data), pages 3109–3118.
- Artikis, A. , et al. (2017). Self-adaptive event recognition for intelligent transport management. In 2017 IEEE International Conference on Big Data (Big Data) (pp. 85-94). IEEE.
- Chen, W. , Guo, F. Y. ( 16(6), 2970–2984.
- Zheng, X. , Chen, W. ( 17(3), 620–630.
- NYC OpenData. (2022). Retrieved from https://opendata.cityofnewyork.
- TomTom Traffic API. (2022). Retrieved from https://developer.tomtom.
- OpenWeather API. (2022). Retrieved from https://openweathermap.
- Zheng, Y. , Capra, L., Wolfson, O., & Yang, H. (2014). Urban computing: concepts, methodologies, and applications. ACM Transactions on Intelligent Systems and Technology (TIST), 5(3), 1-55.
- Batty, M. (2013). Big data, smart cities and city planning. Dialogues in Human Geography, 3(3), 274-279.
- Hani, S. Mahmassani, Jing Dong, Jiwon Kim and Roger B. Chen. 2009. Incorporating weather impacts in traffic estimation and prediction systems. Washington, DC: US Department of Transportation.
- Barth, M. , & Boriboonsomsin, K. (2008). Real-world carbon dioxide impacts of traffic congestion. Transportation Research Record, 2058(1), 163-171.







Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).