Submitted:
14 February 2025
Posted:
14 February 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
1.1. Background and Motivation
1.2. Problem Statement
- The primary objectives of this research are:
- To develop a real-time collision warning system for unsignalized intersections using YOLOv8 and Deep SORT for object detection and tracking.
- To implement deep learning models for accurate trajectory prediction of road users.
- To evaluate the effectiveness of the proposed system in various traffic scenarios and assess its potential for reducing accident risks.
1.3. Organization of the Paper
- Materials and methods: Descriptions of a predictive collision risk area estimation system based on Bi-LSTM networks and statistical inference method.
- Experiments and results: Validating feasibility and applicability of the proposed system, and discussion of results and limitations.
- Conclusions: Summary of our study and future research directions.
2. Literature Review
2.1. Traffic Accident Prevention Systems
2.2. Object Detection and Tracking Technologies
2.3. Trajectory Prediction Methods
3. Methodology
3.1. System Architecture
- Data sources: High-definition cameras and edge computing unit installed at strategic locations around the intersection.
- Preprocessing: (1) Object Detection: Utilizing YOLOv8 for detecting vehicles, pedestrians, and cyclists. (2) Object Tracking: Implementing Deep SORT to track detected objects over time. (3) Trajectory Prediction: Using a Bi-LSTM model for predicting future positions of tracked objects.
- Risk estimation: Evaluating the likelihood of collisions based on predicted trajectories.
- Dangers warning: Through variable message signs (VMS) and audio-visual warning devices installed on the roadside, warnings are issued to vehicles on the main road and to pedestrians and non-motorized vehicles on the side roads.
3.2. Object Detection
3.3. Object Tracking
3.4. Vehicle Speed Measurement
3.4.1. Model Assumptions
3.4.2. Model Design and Implementation
3.4.3. Vehicle Speed Measurement
3.5. Trajectory Prediction
- -
- In the forward network layer, computations are performed sequentially from the beginning to the end, yielding the forward hidden state outputs for each time step.
- -
- In the backward network layer, the sequence is processed in reverse, from the end to the beginning, producing the backward hidden state outputs at each time step.
- -
- Finally, the outputs from both the forward and backward layers are combined to provide the comprehensive output for each time step. This dual-direction approach ensures that the model captures richer temporal dependencies, resulting in more accurate predictions.
3.6. Collision Risk Estimation
- Danger: When the PCRAs of vehicles and pedestrians overlap 1 second into the future.
- Warning: When the PCRAs overlap 2 seconds into the future.
- Caution: When the PCRAs overlap 3 seconds into the future.
- Relatively Safe: When there is no overlap between the PCRAs.
4. Experimental Analysis
4.1. Experimental Setup and Model Training
4.1.1. Dataset Annotation
4.1.2. Dataset Training
4.2. Selection of Evaluation Metrics
5. Results and Discussion
5.1. Detection and Tracking Performance
5.2. Trajectory Prediction Accuracy
5.3. System Performance
6. Conclusions
- (1)
- YOLOv8 is employed as the primary detector, optimized with the RepLayer module, GIoU loss, and Global Attention Mechanism (GAM) to improve object detection accuracy, especially in complex traffic environments. The model demonstrated high detection precision with mAP50 exceeding 96.7% and significant improvements in detecting multi-scale objects due to the ReContext gradient composition feature pyramid.
- (2)
- Deep SORT was modified to enhance tracking robustness, reducing identity switches caused by occlusions and ensuring continuous monitoring of vehicles, pedestrians, and non-motorized users. This allows for reliable multi-target tracking, which is essential for accurate collision prediction at intersections.
- (3)
- A Bi-LSTM network was implemented for trajectory prediction, effectively capturing long-range dependencies and predicting future movements with high precision. The Predictive Collision Risk Area (PCRA) approach was used to assess collision risk levels (danger, warning, and caution), based on the spatial overlap of predicted paths.
- (4)
- In the experimental setup, the dataset used for training the model consisted of 30,000 images, annotated with bounding boxes around vehicles, pedestrians, and non-motorized vehicles. Data augmentation techniques such as Mosaic, Random_perspective, Mixup, HSV adjustments, Flipud, and Fliplr were applied to enrich the dataset and improve model robustness.
- (5)
- In field tests on the G310 highway project, the system achieved 97% accuracy in collision risk prediction across 120 recorded events involving vehicles and pedestrians. The system’s reliable performance in real-time collision warnings demonstrates its applicability and effectiveness in reducing accident risks at unsignalized intersections.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Fernando, D.M.; Tennakoon, S.U.; Samaranayake, A.N.; Wickramasinghe, M. Characteristics of Road Traffic Accident Casualties Admitted to a Tertiary Care Hospital in Sri Lanka. Forensic Sci Med Pathol 2017, 13, 44–51. [Google Scholar] [CrossRef] [PubMed]
- Peličić, D.; Ristić, B.; Radević, S. EPIDEMIOLOGY OF TRAFFIC TRAUMATISM. Sanamed 2024, 19. [Google Scholar] [CrossRef]
- Yang, P.; Yang, R.; Luo, Y.; Zhang, Y.; Hu, M. Hospitalization Costs of Road Traffic Injuries in Hunan, China: A Quantile Regression Analysis. Accid. Anal. Prev. 2024, 194, 107368. [Google Scholar] [CrossRef]
- Song, L.; (David) Fan, W. Exploring Truck Driver-Injury Severity at Intersections Considering Heterogeneity in Latent Classes: A Case Study of North Carolina. Int. J. Transp. Sci. Technol. 2021, 10, 110–120. [Google Scholar] [CrossRef]
- Shao, Y.; Luo, Z.; Wu, H.; Han, X.; Pan, B.; Liu, S.; Claudel, C.G. Evaluation of Two Improved Schemes at Non-Aligned Intersections Affected by a Work Zone with an Entropy Method. Sustainability 2020, 12, 5494. [Google Scholar] [CrossRef]
- Sharafeldin, M.; Farid, A.; Ksaibati, K. Examining the Risk Factors of Rear-End Crashes at Signalized Intersections. J. Transp. Technol. 2022, 12, 635. [Google Scholar] [CrossRef]
- Singh, H.; Kathuria, A. Analyzing Driver Behavior under Naturalistic Driving Conditions: A Review. Accid. Anal. Prev. 2021, 150, 105908. [Google Scholar] [CrossRef]
- Schepers, P.; Hagenzieker, M.; Methorst, R.; van Wee, B.; Wegman, F. A Conceptual Framework for Road Safety and Mobility Applied to Cycling Safety. Accid. Anal. Prev. 2014, 62, 331–340. [Google Scholar] [CrossRef]
- Pawar, D.S.; Patil, G.R. Response of Major Road Drivers to Aggressive Maneuvering of the Minor Road Drivers at Unsignalized Intersections: A Driving Simulator Study. Transp. Res. Part F: Traffic Psychol. Behav. 2018, 52, 164–175. [Google Scholar] [CrossRef]
- Luo, Z.; Shi, H.; Liu, W.; Jin, Y. HMM-Based Traffic Situation Assessment and Prediction Method | Proceedings | Vol, No. 2020.
- Cheng, H.T.; Shan, H.; Zhuang, W. Infotainment and Road Safety Service Support in Vehicular Networking: From a Communication Perspective. Mech. Syst. Signal Process. 2011, 25, 2020–2038. [Google Scholar] [CrossRef]
- Advancing Traffic Safety through the Safe System Approach: A Systematic Review. Accid. Anal. Prev. 2024, 199, 107518. [CrossRef] [PubMed]
- Yuan, T.; Da Rocha Neto, W.; Rothenberg, C.E.; Obraczka, K.; Barakat, C.; Turletti, T. Machine Learning for Next-Generation Intelligent Transportation Systems: A Survey. Trans. Emerg. Telecommun. Technol. 2022, 33, e4427. [Google Scholar] [CrossRef]
- Geng, M.; Cai, Z.; Zhu, Y.; Chen, X.; Lee, D.-H. Multimodal Vehicular Trajectory Prediction With Inverse Reinforcement Learning and Risk Aversion at Urban Unsignalized Intersections. IEEE Trans. Intell. Transp. Syst. 2023, 24, 12227–12240. [Google Scholar] [CrossRef]
- Mihalj, T.; Li, H.; Babić, D.; Lex, C.; Jeudy, M.; Zovak, G.; Babić, D.; Eichberger, A. Road Infrastructure Challenges Faced by Automated Driving: A Review. Appl. Sci. 2022, 12, 3477. [Google Scholar] [CrossRef]
- A Review of Different Components of the Intelligent Traffic Management System (ITMS). Available online: https://www.mdpi.com/2073-8994/15/3/583 (accessed on 31 October 2024).
- Luo, Z.; Bi, Y.; Lei, Q.; Li, Y.; Song, L. Method for Identifying and Alerting to Operational Risks of En-Route Vehicles on Arterial Road. In Proceedings of the Ninth International Conference on Electromechanical Control Technology and Transportation (ICECTT 2024).
- YOLOv8: Advancements and Innovations in Object Detection | SpringerLink. Available online: https://link.springer.com/chapter/10.1007/978-981-97-1323-3_1 (accessed on 31 October 2024).
- Wojke, N.; Bewley, A.; Paulus, D. Simple Online and Realtime Tracking with a Deep Association Metric. In Proceedings of the 2017 IEEE International Conference on Image Processing (ICIP); September 2017; pp. 3645–3649. [Google Scholar]
- DDSS: Driver Decision Support System Based on the Driver Behaviour Prediction to Avoid Accidents in Intelligent Transport System. Int. J. Cogn. Comput. Eng. 2024, 5, 1–13. [CrossRef]
- Predictions for COVID-19 with Deep Learning Models of LSTM, GRU and Bi-LSTM. Chaos Solitons Fractals 2020, 140, 110212. [CrossRef]
- Understanding the Potential of Emerging Digital Technologies for Improving Road Safety. Accid. Anal. Prev. 2022, 166, 106543. [CrossRef]
- Wang, Y.; Yang, X.; Liang, H.; Liu, Y. A Review of the Self-Adaptive Traffic Signal Control System Based on Future Traffic Environment. J. Adv. Transp. 2018, 2018, 1096123. [Google Scholar] [CrossRef]
- Cicchino, J.B. Effects of Forward Collision Warning and Automatic Emergency Braking on Rear-End Crashes Involving Pickup Trucks. Taylor Fr. 2023. [Google Scholar] [CrossRef]
- Effectiveness of Forward Collision Warning and Autonomous Emergency Braking Systems in Reducing Front-to-Rear Crash Rates. Accid. Anal. Prev. 2017, 99, 142–152. [CrossRef]
- Smart Cities: Advances in Research—An Information Systems Perspective. Int. J. Inf. Manag. 2019, 47, 88–100. [CrossRef]
- Zhu, Z.; He, X.; Qi, G.; Li, Y.; Cong, B.; Liu, Y. Brain Tumor Segmentation Based on the Fusion of Deep Semantics and Edge Information in Multimodal MRI. Inf. Fusion 2023, 91, 376–387. [Google Scholar] [CrossRef]
- Liu, Y.; Qi, Z.; Cheng, J.; Chen, X. Rethinking the Effectiveness of Objective Evaluation Metrics in Multi-Focus Image Fusion: A Statistic-Based Approach. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 5806–5819. [Google Scholar] [CrossRef] [PubMed]
- Hussain, M. YOLOv1 to v8: Unveiling Each Variant–A Comprehensive Review of YOLO. IEEE Access 2024, 12, 42816–42833. [Google Scholar] [CrossRef]
- Enhancing Vehicle Detection in Intelligent Transportation Systems via Autonomous UAV Platform and YOLOv8 Integration. Appl. Soft Comput. 2024, 164, 112015. [CrossRef]
- Wang, H.; Liu, C.; Cai, Y.; Chen, L.; Li, Y. YOLOv8-QSD: An Improved Small Object Detection Algorithm for Autonomous Vehicles Based on YOLOv8. IEEE Trans. Instrum. Meas. 2024, 73, 1–16. [Google Scholar] [CrossRef]
- Utilizing YOLOv8 for Enhanced Traffic Monitoring in Intelligent Transportation Systems (ITS) Applications. Digit. Signal Process. 2024, 152, 104594. [CrossRef]
- Adžemović, M.; Tadić, P.; Petrović, A.; Nikolić, M. Beyond Kalman Filters: Deep Learning-Based Filters for Improved Object Tracking 2024.
- Hu, D.; Al Shafian, S. Segmentation and Tracking of Moving Objects on Dynamic Construction Sites | Proceedings | Vol, No. 2021.
- Zhao, J.; Chen, J. YOLOv8 Detection and Improved BOT-SORT Tracking Algorithm for Iron Ladles. In Proceedings of the Proceedings of the 2024 7th International Conference on Image and Graphics Processing; Association for Computing Machinery: New York, NY, USA, May 3, 2024; pp. 409–415. [Google Scholar]
- Mercorelli, P. Denoising and Harmonic Detection Using Nonorthogonal Wavelet Packets in Industrial Applications. Jrl Syst Sci Complex 2007, 20, 325–343. [Google Scholar] [CrossRef]
- He, Y.; Huang, P.; Hong, W.; Luo, Q.; Li, L.; Tsui, K.-L. In-Depth Insights into the Application of Recurrent Neural Networks (RNNs) in Traffic Prediction: A Comprehensive Review. Algorithms 2024, 17, 398. [Google Scholar] [CrossRef]
- Machine Learning for Autonomous Vehicle’s Trajectory Prediction: A Comprehensive Survey, Challenges, and Future Research Directions. Veh. Commun. 2024, 46, 100733. [CrossRef]
- Korbmacher, R.; Tordeux, A. Review of Pedestrian Trajectory Prediction Methods: Comparing Deep Learning and Knowledge-Based Approaches. IEEE Trans. Intell. Transp. Syst. 2022, 23, 24126–24144. [Google Scholar] [CrossRef]
- Zhang, C.; Ni, Z.; Berger, C. Spatial-Temporal-Spectral LSTM: A Transferable Model for Pedestrian Trajectory Prediction. IEEE Trans. Intell. Veh. 2024, 9, 2836–2849. [Google Scholar] [CrossRef]
- Pereira, G.A.; Hussain, M. A Review of Transformer-Based Models for Computer Vision Tasks: Capturing Global Context and Spatial Relationships 2024.
- Hussain, A.; Hussain, T.; Ullah, W.; Baik, S.W. Vision Transformer and Deep Sequence Learning for Human Activity Recognition in Surveillance Videos. Comput. Intell. Neurosci. 2022, 2022, 3454167. [Google Scholar] [CrossRef]
- Berhanu, Y.; Alemayehu, E.; Schröder, D. Examining Car Accident Prediction Techniques and Road Traffic Congestion: A Comparative Analysis of Road Safety and Prevention of World Challenges in Low-Income and High-Income Countries. J. Adv. Transp. 2023, 2023, 6643412. [Google Scholar] [CrossRef]
- Predicting Real-Time Traffic Conflicts Using Deep Learning. Accid. Anal. Prev. 2020, 136, 105429. [CrossRef] [PubMed]
- Enhancing Road Safety in Internet of Vehicles Using Deep Learning Approach for Real-Time Accident Prediction and Prevention. Int. J. Intell. Netw. 2024, 5, 212–223. [CrossRef]
- Hegde, C.; Dash, S.; Agarwal, P. Vehicle Trajectory Prediction Using GAN. In Proceedings of the 2020 Fourth International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), October 2020; pp. 502–507. [Google Scholar]
- Pang, Y.; Kashiyama, T.; Yabe, T.; Tsubouchi, K.; Sekimoto, Y. Development of People Mass Movement Simulation Framework Based on Reinforcement Learning. Transp. Res. Part C: Emerg. Technol. 2020, 117, 102706. [Google Scholar] [CrossRef]
- Li, C.; Liu, Z.; Lin, S.; Wang, Y.; Zhao, X. Intention-Convolution and Hybrid-Attention Network for Vehicle Trajectory Prediction. Expert Syst. Appl. 2024, 236, 121412. [Google Scholar] [CrossRef]
- Luo, Z.; Bi, Y.; Yang, X.; Li, Y.; Yu, S.; Wu, M.; Ye, Q. Enhanced YOLOv5s + DeepSORT Method for Highway Vehicle Speed Detection and Multi-Sensor Verification. Front. Phys. 2024, 12. [Google Scholar] [CrossRef]
- Xing, L.; Liu, W. A Data Fusion Powered Bi-Directional Long Short Term Memory Model for Predicting Multi-Lane Short Term Traffic Flow. IEEE Trans. Intell. Transp. Syst. 2022, 23, 16810–16819. [Google Scholar] [CrossRef]
- Analyzing Vehicle–Pedestrian Interactions: Combining Data Cube Structure and Predictive Collision Risk Estimation Model. Accid. Anal. Prev. 2022, 165, 106539. [CrossRef] [PubMed]














| Type | Fps(frame/s) | P-value(%) | mAp50 (%) | mAp50-95(%) | |
|---|---|---|---|---|---|
| YOLOv8n | 256 | 80.2 | 84.6 | 92.5 | 68.3 |
| + RepLayer | 243 | 82.5 | 85.3 | 93.3 | 72.6 |
| + GIoU | 226 | 84.6 | 86.3 | 94.6 | 75.8 |
| + GAM | 182 | 90.6 | 89.3 | 95.6 | 79.8 |
| + ReContext | 165 | 92.3 | 90.7 | 96.7 | 84.5 |
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 (https://creativecommons.org/licenses/by/4.0/).