Huang Deqi, Tu Yating, Zhang Zhenhua, Ye Zikuang
School of Electrical Engineering, Xinjiang University, Urumqi 830017, China.
Sensors (Basel). 2024 Apr 9;24(8):2394. doi: 10.3390/s24082394.
Aiming at the problems of target detection models in traffic scenarios including a large number of parameters, heavy computational burden, and high application cost, this paper introduces an enhanced lightweight real-time detection algorithm, which exhibits higher detection speed and accuracy for vehicle detection. This paper considers the YOLOv7 algorithm as the benchmark model, designs a lightweight backbone network, and uses the MobileNetV3 lightweight network to extract target features. Inspired by the structure of SPPF, the spatial pyramid pooling module is reconfigured by incorporating GSConv, and a lightweight SPPFCSPC-GS module is designed, aiming to minimize the quantity of model parameters and enhance the training speed even further. Furthermore, the CA mechanism is integrated to enhance the feature extraction capability of the model. Finally, the MPDIoU loss function is utilized to optimize the model's training process. Experiments showcase that the refined YOLOv7 algorithm can achieve 98.2% mAP on the BIT-Vehicle dataset with 52.8% fewer model parameters than the original model and a 35.2% improvement in FPS. The enhanced model adeptly strikes a finer equilibrium between velocity and precision, providing favorable conditions for embedding the model into mobile devices.
针对交通场景中目标检测模型存在的参数数量多、计算负担重、应用成本高等问题,本文提出了一种增强的轻量级实时检测算法,该算法在车辆检测方面具有更高的检测速度和精度。本文以YOLOv7算法作为基准模型,设计了一个轻量级主干网络,并使用MobileNetV3轻量级网络提取目标特征。受SPPF结构的启发,通过合并GSConv重新配置空间金字塔池化模块,设计了一个轻量级的SPPFCSPC-GS模块,旨在最小化模型参数数量并进一步提高训练速度。此外,集成CA机制以增强模型的特征提取能力。最后,利用MPDIoU损失函数优化模型的训练过程。实验表明,改进后的YOLOv7算法在BIT-Vehicle数据集上可实现98.2%的平均精度均值,模型参数比原始模型少52.8%,帧率提高35.2%。增强后的模型在速度和精度之间巧妙地达到了更好的平衡,为将模型嵌入移动设备提供了有利条件。