Every year, millions of lives are lost around the world as a result of violations of traffic laws, especially excessive speeding, which continues to be a considerable issue in road safety management. When assessing the efficacy of a road network, vehicular speed is a critical metric. Inconsistencies and abrupt fluctuations in traffic speed typically indicate the presence of congestion, collisions, or other disruptive occurrences. This study utilizes a Python script in Visual Studio Code, employing web scraping techniques with Selenium to gather and analyse data on vehicle speeds and travel times. A comparison of the traffic patterns on weekdays and weekends was made, with particular attention paid to the variations that occurred at peak, lunchtime, and evening hours. The findings suggest significant differences in speed, with weekdays experiencing considerably lower speeds during morning and evening rush hours, while weekends maintain higher and more consistent speeds throughout the day. These insights can provide strategies for the optimization of traffic flow, the improvement of road safety, and the guidance of metropolitan development plans.
Introduction
The transportation sector is crucial in urban areas, significantly impacting social, economic, and cultural development while facing challenges such as inadequate public transit, traffic violations, congestion, and accidents. Road safety depends mainly on driver behavior, vehicle condition, and infrastructure, with speed being a critical factor influencing accident severity.
Advanced technologies like wireless sensor networks (WSNs), vehicular ad hoc networks (VANETs), and cooperative vehicle-infrastructure systems are enhancing road safety and traffic management. Various methods, including Bluetooth tracking, video surveillance, and spatial-temporal correlation techniques, help monitor traffic flow and vehicle speeds. Emerging tools like deep learning, drones, and passive Wi-Fi/Bluetooth sensors further improve traffic monitoring and anomaly detection.
Despite technological advances, challenges remain in data collection accuracy, sensor deployment costs, and real-time processing. Integrating multiple data sources presents complexity but offers potential to improve urban transportation efficiency, reduce congestion, and enhance safety.
The study focuses on measuring vehicular speed along a key route in Peshawar to analyze traffic dynamics. Using Python, Visual Studio Code, Selenium WebDriver, and web scraping of Google Maps, the project automates data extraction of travel times and distances. The collected data is stored in Excel for further analysis, aiming to identify traffic bottlenecks and improve road infrastructure and traffic flow.
Conclusion
The study\'s objective was to evaluate the feasibility of employing the average speed of vehicles as a measure for monitoring and assessing traffic condition patterns. The efficacy of this approach was illustrated by the acquisition of numerous significant insights through comprehensive data collection and analysis. In summary, using average vehicle speed as a metric for observing traffic conditions is a practical and effective method. The insights obtained from this study have the potential to make a substantial contribution to the advancement of more efficient and intelligent urban transportation systems, which will ultimately result in a higher quality of life, improved air quality, and reduced congestion for urban residents.
Future investigations should focus on enhancing data processing methodologies, integrating supplementary traffic metrics such as volume and density, and examining hybrid models that amalgamate various low-cost data sources. Technological advancements present low-cost vehicular speed monitoring methods that could significantly enhance traffic management strategies, optimize signal control, and improve road safety in urban and highway environments.
References
[1] Bhatti, F., Shah, M. A., Maple, C., & Islam, S. U. (2019). A Novel Internet of Things-Enabled Accident Detection and Reporting System for Smart City Environments. Sensors, 19(9), 2071. https://doi.org/10.3390/s19092071
[2] Komackova, L., & Poliak, M. (2016). Factors affecting road safety. Journal of Communication and Computer, 13(3), 146–152.
[3] EongSeong 1, *, Yunsik Kim 2, Hyewon Goh 3, &, Hyunmin Kim 4, and Ana Stanescu. (n.d.). (PDF) Measuring Traffic Congestion with Novel Metrics: A Case Study of Six U.S.
[4] Elvik, R., Vadeby, A., Hels, T., &Schagen, I. van. (2019). Updated estimates of the relationship between speed and road safety at the aggregate and individual levels. Accident Analysis & Prevention, 123, 114–122. https://doi.org/10.1016/j.aap.2018.11.014
[5] Batrakova, A., & Gredasova, O. (2016). Influence of Road Conditions on Traffic Safety. Procedia Engineering, 134, 196–204. https://doi.org/10.1016/j.proeng.2016.01.060
[6] Tripp Barba, C., Ornelas Aguirre, K., & Aguilar Igartua, M. (2010). Performance evaluation of a hybrid sensor and vehicular network to improve road safety. Proceedings of the 7th ACM Workshop on Performance Evaluation of Wireless Ad Hoc, Sensor, and Ubiquitous Networks, 71–78. https://doi.org/10.1145/1868589.1868604
[7] Cheng, H. T., Shan, H., & Zhuang, W. (2011). Infotainment and road safety service support in vehicular networking: From a communication perspective. Mechanical Systems and Signal Processing, 25(6), 2020–2038. https://doi.org/10.1016/j.ymssp.2010.11.009
[8] Bachmann, C., Roorda, M. J., Abdulhai, B., & Moshiri, B. (2013). Fusing a Bluetooth Traffic Monitoring System with Loop Detector Data for Improved Freeway Traffic Speed Estimation. Journal of Intelligent Transportation Systems, 17(2), 152–164. https://doi.org/10.1080/15472450.2012.696449
[9] Wang, C., Zhang, Z., Shao, L., & Zhou, M. (2016). Estimating travel speed via sparse vehicular crowdsensing data. 2016 IEEE 3rd World Forum on Internet of Things (WF-IoT), 643–648. https://doi.org/10.1109/WF-IoT.2016.7845432
[10] Lewandowski, M., P?aczek, B., Bernas, M., &Szyma?a, P. (2018). Road Traffic Monitoring System Based on Mobile Devices and Bluetooth Low Energy Beacons. Wireless Communications and Mobile Computing, 2018(1), 3251598. https://doi.org/10.1155/2018/3251598
[11] Tsuboi, T. (2020). New Traffic Congestion Analysis Method in Developing Countries (India): Proceedings of the 6th International Conference on Vehicle Technology and Intelligent Transport Systems, 145–151. https://doi.org/10.5220/0009766501450151
[12] Khazukov, K., Shepelev, V., Karpeta, T., Shabiev, S., Slobodin, I., Charbadze, I., &Alferova, I. (2020). Real-time monitoring of traffic parameters. Journal of Big Data, 7(1), 84. https://doi.org/10.1186/s40537-020-00358-x
[13] Tisljaric, L., Majstorovic, Z., Erdelic, T., &Caric, T. (2020). Measure for Traffic Anomaly Detection on the Urban Roads Using Speed Transition Matrices. 2020 43rd International Convention on Information, Communication and Electronic Technology (MIPRO), 252–259. https://doi.org/10.23919/MIPRO48935.2020.9245327
[14] Pu, Z., Cui, Z., Tang, J., Wang, S., & Wang, Y. (2022). Multimodal Traffic Speed Monitoring: A Real-Time System Based on Passive Wi-Fi and Bluetooth Sensing Technology. IEEE Internet of Things Journal, 9(14), 12413–12424. https://doi.org/10.1109/JIOT.2021.3136031
[15] Bisio, I., Garibotto, C., Haleem, H., Lavagetto, F., &Sciarrone, A. (2022). A systematic review of drone-based road traffic monitoring system. IEEE Access.
[16] Tippannavar, S. S., &Yashwanth, S. (2023). Real-Time Vehicle Identification for Improving the Traffic Management system-A Review. Journal of Trends in Computer Science and Smart Technology, 5(3), 323–342.
[17] Wang, C., Atkison, T., & Park, H. (2023). Dynamic adaptive vehicle re-routing strategy for traffic congestion mitigation of grid network. International Journal of Transportation Science and Technology.
[18] Seong, J., Kim, Y., Goh, H., Kim, H., & Stanescu, A. (2023). Measuring Traffic Congestion with Novel Metrics: A Case Study of Six U.S. Metropolitan Areas. ISPRS International Journal of Geo-Information, 12(3). https://doi.org/10.3390/ijgi12030130
[19] Rychlicki, M., Kasprzyk, Z., Pe?ka, M., &Rosi?ski, A. (2024). Use of Wireless Sensor Networks for Area-Based Speed Control and Traffic Monitoring. Applied Sciences, 14(20). https://doi.org/10.3390/app14209243
[20] Colombaroni, C., Fusco, G., &Isaenko, N. (2020). Analysis of Road Safety Speed from Floating Car Data. Transportation Research Procedia, 45, 898–905. https://doi.org/10.1016/j.trpro.2020.02.078