Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (2): 613-619.DOI: 10.11772/j.issn.1001-9081.2025020170

• Multimedia computing and computer simulation • Previous Articles    

Unsafe driving behavior detection under complex lighting conditions

Quanjie LIU1, Zhaoyi GU2, Chunyuan WANG1()   

  1. 1.School of Mechanical and Automotive Engineering,Qingdao University of Technology,Qingdao Shandong 266520,China
    2.School of Safety Engineering,Shenyang Aerospace University,Shenyang Liaoning 110136,China
  • Received:2025-02-24 Revised:2025-04-29 Accepted:2025-04-30 Online:2025-05-16 Published:2026-02-10
  • Contact: Chunyuan WANG
  • About author:LIU Quanjie, born in 2000, M. S. candidate. His research interests include object detection and tracking algorithms, deep learning.
    GU Zhaoyi, born in 1999. His research interests include artificial intelligence, intelligent security.
    WANG Chunyuan, born in 1980, M. S., associate professor. His research interests include intelligent security, object detection algorithms. Email:chunyuanmail@163.com
  • Supported by:
    National Natural Science Foundation of China(52474238)

复杂光照条件下的不安全驾驶行为检测

刘权捷1, 顾兆一2, 王春源1()   

  1. 1.青岛理工大学 机械与汽车工程学院,山东 青岛 266520
    2.沈阳航空航天大学 安全工程学院,沈阳 110136
  • 通讯作者: 王春源
  • 作者简介:刘权捷(2000—),男,辽宁抚顺人,硕士研究生,CCF会员,主要研究方向:目标检测跟踪算法、深度学习
    顾兆一(1999—),男,辽宁大连人,主要研究方向:人工智能、智慧安防
    王春源(1980—),男,山东诸城人,副教授,硕士,主要研究方向:智能安全、目标检测算法。Email:chunyuanmail@163.com
  • 基金资助:
    国家自然科学基金资助项目(52474238)

Abstract:

For real-time and effective detection of unsafe driving behaviors such as not wearing seatbelts and using mobile phones under various complex lighting conditions, a deep learning-based unsafe driving behavior detection method under complex lighting conditions was designed. In the method, with YOLOv8n model selected as the foundation, a series of targeted improvements were implemented to enhance the detection performance. Firstly, a P6 scale was added to enable the model to capture the diversity of unsafe driving behaviors under various lighting conditions more comprehensively. Secondly, Spatial Separable Adaptive Convolution (SSAC) module was used to replace the traditional convolution module in the backbone network, thereby achieving lightweight design while improving feature extraction accuracy. Thirdly, Channel Prior Convolutional Attention (CPCA) was introduced to enhance the network’s focus on important features effectively and improve feature expression capability. Finally, the Selective Attention Feature Fusion (SAFF) structure was used to replace the original YOLOv8n neck network, thereby further improving the mode’s comprehensive performance. Experimental results show that compared to the original model, the improved YOLOv8n model increases the overall mean Average Precision (mAP) by 2.17%; under normal lighting conditions, the improvement is 1.76%; in night scenes, the improvement is 1.75%; in backlit environments, the improvement is 2.42%. Meanwhile, the improved YOLOv8n reaches 118 Frames Per Second (FPS) in comparison with other models (such as YOLO11n, RT-DETR(Real-Time DEtection TRansformer)), balancing precision and speed, demonstrating distinct advantages.

Key words: improved YOLOv8, unsafe driving behavior detection, deep learning, object detection algorithm, complex lighting condition

摘要:

为了在各种复杂光照条件下实时有效检测驾驶人员不系安全带和看手机等不安全行为,设计一种基于深度学习的复杂光照下不安全驾驶行为检测方法。该方法以YOLOv8n模型作为基础,实施一系列针对性的改进措施,以提升检测性能。首先,增加P6尺度,使模型能更全面地捕捉各种光照下不安全驾驶行为的多样性;其次,使用空间可分离自适应卷积(SSAC)模块替换主干网络的传统卷积模块,从而在提高特征提取精度的同时实现轻量化;再次,引入通道先验卷积注意力(CPCA),有效增强网络对重要特征的关注,并提升特征的表达能力;最后,使用选择注意特征融合(SAFF)结构替换原有YOLOv8n颈部网络,进一步提升模型的综合性能。实验结果表明,相较于原模型,改进后的YOLOv8n模型整体的平均精度均值(mAP)提升了2.17%;在正常光照条件下提升了1.76%;在夜间场景下提升了1.75%;在逆光环境下提升了2.42%。同时,改进后的YOLOv8n在与其他模型(如YOLO11n和RT-DETR(Real-Time DEtection TRansformer))的对比中,每秒帧数(FPS)达到118,精度与速度兼顾,展现出较明显的优势。

关键词: 改进YOLOv8, 不安全驾驶行为检测, 深度学习, 目标检测算法, 复杂光照条件

CLC Number: