YOLO-AFR: An Improved YOLOv12-Based Model for Accurate and Real-Time Dangerous Driving Behavior Detection
Source abstract
Abstract
Accurate detection of dangerous driving behaviors is crucial for improving the safety of intelligent transportation systems. However, existing methods often struggle with limited feature extraction capabilities and insufficient attention to multiscale and contextual information. To overcome these limitations, we propose YOLO-AFR (YOLO with Adaptive Feature Refinement) for dangerous driving behavior detection. YOLO-AFR builds upon the YOLOv12 architecture and introduces three key innovations: (1) the redesign of the original A2C2f module by introducing a Feature-Refinement Feedback Network (FRFN), resulting in a new A2C2f-FRFN structure that adaptively refines multiscale features, (2) the integration of self-calibrated convolution (SC-Conv) modules in the backbone to enhance multiscale contextual modeling, and (3) the employment of a SEAM-based detection head to improve global contextual awareness and prediction accuracy. These three modules combine to form a Calibration-Refinement Loop, which progressively reduces redundancy and enhances discriminative features layer by layer. We evaluate YOLO-AFR on two public driver behavior datasets, YawDD-E and SfdDD. Experimental results show that YOLO-AFR significantly outperforms the baseline YOLOv12 model, achieving improvements of 1.3% and 1.8% in mAP@0.5, and 2.6% and 12.3% in mAP@0.5:0.95 on the YawDD-E and SfdDD datasets, respectively, demonstrating its superior performance in complex driving scenarios while maintaining high inference speed.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Neural Network Applications · Autonomous Vehicle Technology and Safety · Video Surveillance and Tracking Methods
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Information Science and Technology College, Dalian Maritime University, Dalian 116026, China
Funding
National Natural Science Foundation of China · High-Performance Computing Center at Dalian Maritime University
References (58)
Show source-provided references
1. Road traffic accidental injuries and deaths: A neglected global health issue10.1002/hsr2.1240 ↗
2. Fatal road traffic accidents: Causes and factors responsible10.5958/0974-0848.2016.00014.2 ↗
3. The useful field of view assessment predicts simulated commercial motor vehicle driving safety10.1080/15389588.2015.1137560 ↗
4. Advanced Driver Assistance Systems from Autonomous to Cooperative Approach10.1080/01441640801987825 ↗
5. Hou, J., Zhang, B., Zhong, Y., and He, W. (2025). Research Progress of Dangerous Driving Behavior Recognition Methods Based on Deep Learning. World Electr. Veh. J., 16.10.3390/wevj16020062 ↗
6. Identification of dangerous driving state based on lightweight deep learning model10.1016/j.compeleceng.2022.108509 ↗
7. Driver Behavior Modeling Toward Autonomous Vehicles: Comprehensive Review10.1109/ACCESS.2023.3249144 ↗
8. Lane Detection in Autonomous Vehicles: A Systematic Review10.1109/ACCESS.2023.3234442 ↗
9. Driver Behavior Monitoring and Warning With Dangerous Driving Detection Based on the Internet of Vehicles10.1109/TITS.2020.3004655 ↗
10. A Deep-Learning-Based Scheme for Detecting Driver Cell-Phone Use10.1109/ACCESS.2020.2968464 ↗
11. Deep learning based driver smoking behavior detection for driving safety10.18178/joig.8.1.15-20 ↗
12. Driver drowsiness detection and smart alerting using deep learning and IoT10.1016/j.iot.2023.100705 ↗
13. Jiang, H., and Learned-Miller, E. (June, January 30). Face Detection with the Faster R-CNN. Proceedings of the 2017 12th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2017), Washington, DC, USA.10.1109/FG.2017.82 ↗
14. Kehl, W., Manhardt, F., Tombari, F., Ilic, S., and Navab, N. (2017, January 22–29). Ssd-6d: Making rgb-based 3d detection and 6d pose estimation great again. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.169 ↗
15. YOLO8-FASG: A High-Accuracy Fish Identification Method for Underwater Robotic System10.1109/ACCESS.2024.3404867 ↗
16. YOLO-MRS: An efficient deep learning-based maritime object detection method for unmanned surface vehicles10.1016/j.apor.2024.104240 ↗
17. YOLO-SGC: A Dangerous Driving Behavior Detection Method With Multiscale Spatial-Channel Feature Aggregation10.1109/JSEN.2024.3457686 ↗
18. Zhang, R., Liu, Y., Wang, B., and Liu, D. (November, January 31). CoP-YOLO: A Light-weight Dangerous Driving Behavior Detection Method. Proceedings of the 2024 International Conference on Sensing, Measurement & Data Analytics in the Era of Artificial Intelligence (ICSMD), Huangshan, China.10.1109/ICSMD64214.2024.10920481 ↗
19. Zhou, S., Chen, D., Pan, J., Shi, J., and Yang, J. (2024, January 16–22). Adapt or Perish: Adaptive Sparse Transformer with Attentive Feature Refinement for Image Restoration. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR52733.2024.00285 ↗
20. Liu, J.J., Hou, Q., Cheng, M.M., Wang, C., and Feng, J. (2020, January 13–19). Improving Convolutional Networks With Self-Calibrated Convolutions. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.01011 ↗
21. YOLO-FaceV2: A scale and occlusion aware face detector10.1016/j.patcog.2024.110714 ↗
22. Pomerleau, D. (1995, January 25–26). RALPH: Rapidly adapting lateral position handler. Proceedings of the Intelligent Vehicles ’95. Symposium, Detroit, MI, USA.
23. ECG sensor for detection of driver’s drowsiness10.1016/j.procs.2019.09.366 ↗
24. Tao, H., Zhang, G., Zhao, Y., and Zhou, Y. (2017, January 19–22). Real-time driver fatigue detection based on face alignment. Proceedings of the Ninth International Conference on Digital Image Processing (ICDIP 2017), Hong Kong, China.10.1117/12.2282043 ↗
25. Girshick, R., Donahue, J., Darrell, T., and Malik, J. (2014, January 23–28). Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Columbus, OH, USA.10.1109/CVPR.2014.81 ↗
26. Leibe, B., Matas, J., Sebe, N., and Welling, M. SSD: Single Shot MultiBox Detector. Proceedings of the Computer Vision—ECCV 2016.10.1007/978-3-319-46493-0 ↗
27. Redmon, J., and Farhadi, A. (2018). Yolov3: An incremental improvement. arXiv.
28. Jocher, G., Stoken, A., Borovec, J., Changyu, L., Hogan, A., Diaconu, L., Poznanski, J., Yu, L., Rai, P., and Ferriday, R. (2025, May 23). ultralytics/yolov5: V3.0. Zenodo. Available online: https://zenodo.org/records/3983579.
29. Li, C., Li, L., Geng, Y., Jiang, H., Cheng, M., Zhang, B., Ke, Z., Xu, X., and Chu, X. (2023). YOLOv6 v3.0: A Full-Scale Reloading. arXiv.
30. Wang, C.Y., Bochkovskiy, A., and Liao, H.Y.M. (2023, January 17–24). YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada.10.1109/CVPR52729.2023.00721 ↗
31. Jacob, I.J., Piramuthu, S., and Falkowski-Gilski, P. A Review on YOLOv8 and Its Advancements. Proceedings of the Data Intelligence and Cognitive Informatics.
32. Wang, C.Y., and Liao, H.Y.M. (2024). YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information. arXiv.10.1007/978-3-031-72751-1_1 ↗
33. Wang, A., Chen, H., Liu, L., Chen, K., Lin, Z., Han, J., and Ding, G. (2024). YOLOv10: Real-Time End-to-End Object Detection. arXiv.
34. Khanam, R., and Hussain, M. (2024). YOLOv11: An Overview of the Key Architectural Enhancements. arXiv.
35. Tian, Y., Ye, Q., and Doermann, D. (2025). YOLOv12: Attention-Centric Real-Time Object Detectors. arXiv.
36. Le, T.N., Ono, S., Sugimoto, A., and Kawasaki, H. (November, January 19). Attention R-CNN for Accident Detection. Proceedings of the 2020 IEEE Intelligent Vehicles Symposium (IV), Las Vegas, NV, USA.10.1109/IV47402.2020.9304730 ↗
37. Yang, T., Yang, J., and Meng, J. (2021, January 16–18). Driver’s Illegal Driving Behavior Detection with SSD Approach. Proceedings of the 2021 IEEE 2nd International Conference on Pattern Recognition and Machine Learning (PRML), Chengdu, China.10.1109/PRML52754.2021.9520735 ↗
38. Driver drowsiness detection and tracking based on YOLO with Haar cascades and ERNN
39. Trockman, A., and Kolter, J.Z. (2022). Patches Are All You Need?. arXiv.
40. Abtahi, S., Omidyeganeh, M., Shirmohammadi, S., and Hariri, B. (2025, May 23). YawDD: Yawning Detection Dataset. Available online: https://ieee-dataport.org/open-access/yawdd-yawning-detection-dataset.
41. yunxizhineng (2025, May 23). VOC-COCO Dataset. Available online: https://aistudio.baidu.com/datasetdetail/94583/0.
42. Barcelona Autonomous University, Computer Vision Center (2025, May 23). CVC11 DrivFace Dataset. Available online: https://archive.ics.uci.edu/dataset/378/drivface.
43. Montoya, A. (2025, May 23). State Farm Distracted Driver Detection. Available online: https://www.kaggle.com/competitions/state-farm-distracted-driver-detection/data.
44. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks10.1109/TPAMI.2016.2577031 ↗
45. Yaw Estimation Using Cylindrical and Ellipsoidal Face Models10.1109/TITS.2014.2313371 ↗
46. Driver Yawning Detection Based on Subtle Facial Action Recognition10.1109/TMM.2020.2985536 ↗
47. Behavior-based driver fatigue detection system with deep belief network10.1007/s00521-022-07141-4 ↗
48. Dong, B.T., Lin, H.Y., and Chang, C.C. (2022). Driver Fatigue and Distracted Driving Detection Using Random Forest and Convolutional Neural Network. Appl. Sci., 12.10.3390/app12178674 ↗
49. Two-Stream Spatial–Temporal Graph Convolutional Networks for Driver Drowsiness Detection10.1109/TCYB.2021.3110813 ↗
50. A Lightweight Driver Drowsiness Detection System Using 3DCNN With LSTM10.32604/csse.2023.024643 ↗
51. Driver fatigue detection and human-machine cooperative decision-making for road scenarios10.1007/s11042-023-15994-7 ↗
52. Abouelnaga, Y., Eraqi, H.M., and Moustafa, M.N. (2018). Real-time Distracted Driver Posture Classification. arXiv.
53. Towards Computationally Efficient and Realtime Distracted Driver Detection with MobileVGG Network10.1109/TIV.2020.2995555 ↗
54. Distracted Driver Detection Based on a CNN with Decreasing Filter Size10.1109/TITS.2021.3063521 ↗
55. Learning Accurate, Speedy, Lightweight CNNs via Instance-Specific Multi-Teacher Knowledge Distillation for Distracted Driver Posture Identification10.1109/TITS.2022.3161986 ↗
56. FedBiKD: Federated Bidirectional Knowledge Distillation for Distracted Driving Detection10.1109/JIOT.2023.3243622 ↗
57. Improving real-time driver distraction detection via constrained attention mechanism10.1016/j.engappai.2023.107408 ↗
58. Three stage classification framework with ranking scheme for distracted driver detection using heuristic-assisted strategy10.1016/j.knosys.2024.111589 ↗