《计算机应用》唯一官方网站

• •    下一篇

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

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

  1. 1. 青岛理工大学
    2. 沈阳航空航天大学
  • 收稿日期:2025-02-25 修回日期:2025-04-29 发布日期:2025-05-16 出版日期:2025-05-16
  • 通讯作者: 王春源
  • 基金资助:
    长大海底隧道钻爆施工风流-粉尘-烟气耦合时空运移规律及协同净化技术研究

Unsafe driving behavior detection under complex lighting conditions

  • Received:2025-02-25 Revised:2025-04-29 Online:2025-05-16 Published:2025-05-16

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

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

Abstract: In order to effectively detect unsafe behaviors, such as drivers not wearing seatbelts and looking at cell phones in real time under various complex lighting conditions, a deep learning-based method for detecting unsafe driving behaviors under complex lighting has been designed. The YOLOv8n model has been selected as the basis, and a series of targeted improvement measures have been proposed to enhance its detection performance. First, the P6 scale is increased to allow the model to capture the diversity of unsafe driving behaviors under various lighting more comprehensively.Then, a spatially separable adaptive convolutional module (SSAC) is used to replace the traditional convolutional module of the backbone network, improving the feature extraction accuracy while achieving lightweighting.Next, Channel Prior Convolutional Attention (CPCA) is introduced to effectively enhance the network's attention to important features and improve feature representation. Finally, the original YOLOv8n neck network is replaced using the Selective Attention Feature Fusion (SAFF) structure to further enhance the comprehensive performance of the model. The experimental results demonstrate that the enhanced YOLOv8n model enhances the mean average precision (mAP) from 0.969 to 0.990 compared to the original version, representing a 2.17% improvement. Under normal lighting conditions, the model exhibits an enhancement of 1.76%. In night scenes, the improvement is 1.75%. In the backlight environment, the enhancement is 2.42%. In addition, the enhanced YOLOv8n model demonstrates a substantial advantage over other models (e.g., YOLO11n, RT-DETR) with an FPS of 118, exhibiting a synergy between accuracy and processing speed.

Key words: Keywords: improved YOLOv8, unsafe driving behavior detection, deep learning, target detection algorithm

中图分类号: