Real-time detection algorithm of helmet and reflective vest based on improved YOLOv5

被引:21
作者
Chen, Zhihua [1 ]
Zhang, Fan [1 ]
Liu, Hongbo [1 ,3 ]
Wang, Longxuan [1 ]
Zhang, Qian [2 ]
Guo, Liulu [1 ]
机构
[1] Tianjin Univ, State Key Lab Hydraul Engn Simulat & Safety, Tianjin 300072, Peoples R China
[2] China Construction Sixth Engn Bur, Tianjin 300072, Peoples R China
[3] Hebei Univ Engn, Dept Civil Engn, Handan 056000, Peoples R China
关键词
Object detection; Helmet; Reflective vest; YOLOv5; Deep learning;
D O I
10.1007/s11554-023-01268-w
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
To address the current problems of helmet and reflective vest detection algorithms, such as long inference times, high hardware requirements, and difficulty detecting small objects, an improved real-time detection algorithm based on YOLOv5 is proposed. First, the Mosaic-9 data enhancement method is adopted to expand the number of image splicings from four to nine, enriching the small-scale sample dataset. Minimum rectangular area cropping is used instead of the original random cropping to improve the training efficiency. Then, the EIOU (Efficient Intersection Over Union) loss is used as the loss function, and the focal loss is introduced to focus on the high-quality anchor box, achieving the purpose of accelerating the convergence speed and improving regression accuracy. Next, the CBAM-CA (Convolutional Block Attention Module-Coordinate Attention) hybrid attention mechanism is added to the network model. The purpose of the model is to focus on the small object's spatial and channel feature information to improve the small object's detection performance. Finally, a new scale object detection layer is added to learn the multilevel features of the dense object. The experimental results show that the improved model's mAP (mean average precision) is 94.9%, an improvement of 7.0% over the original model. The size of the improved model is 4.49 MB, and the mean FPS (Frames Per Second) is 62. This algorithm guarantees a small model size while significantly increasing mAP, which is suitable for deployment on low computing power platforms.
引用
收藏
页数:14
相关论文
共 31 条
[1]  
[Anonymous], 2017, PROC CVPR IEEE, DOI DOI 10.1109/CVPR.2017.690
[2]   A real-time and high-precision method for small traffic-signs recognition [J].
Chen, Junzhou ;
Jia, Kunkun ;
Chen, Wenquan ;
Lv, Zhihan ;
Zhang, Ronghui .
NEURAL COMPUTING & APPLICATIONS, 2022, 34 (03) :2233-2245
[3]  
Fang Ming, 2019, Optics and Precision Engineering, V27, P1196, DOI [10.3788/ope.20192705.1196, 10.3788/OPE.20192705.1196]
[4]   Tinier-YOLO: A Real-Time Object Detection Method for Constrained Environments [J].
Fang, Wei ;
Wang, Lin ;
Ren, Peiming .
IEEE ACCESS, 2020, 8 :1935-1944
[5]   Coordinate Attention for Efficient Mobile Network Design [J].
Hou, Qibin ;
Zhou, Daquan ;
Feng, Jiashi .
2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR 2021, 2021, :13708-13717
[6]   Enabling real-time object detection on low cost FPGAs [J].
Jain, Vikram ;
Jadhav, Ninad ;
Verhelst, Marian .
JOURNAL OF REAL-TIME IMAGE PROCESSING, 2022, 19 (01) :217-229
[7]  
Jun W. C., 2019, COMPUT SYST APPL, V28, P174, DOI [10.15888/j.cnki.csa.007065.[4]W., DOI 10.15888/J.CNKI.CSA.007065.[4]W]
[8]   Deep learning [J].
LeCun, Yann ;
Bengio, Yoshua ;
Hinton, Geoffrey .
NATURE, 2015, 521 (7553) :436-444
[9]  
Liu H., 2023, J CIVIL ENV ENG, V66, P1
[10]  
[罗齐鸣 Luo Qiming], 2021, [建筑结构学报, Journal of Building Structures], V42, P1