Research on Safety Helmet Detection Algorithm Based on Improved YOLOv5s

Safety helmets are essential in various indoor and outdoor workplaces, such as metallurgical high-temperature operations and high-rise building construction, to avoid injuries and ensure safety in production. However, manual supervision is costly and prone to lack of enforcement and interference fro...

Full description

Bibliographic Details
Main Authors: Qing An, Yingjian Xu, Jun Yu, Miao Tang, Tingting Liu, Feihong Xu
Format: Article
Language:English
Published: MDPI AG 2023-06-01
Series:Sensors
Subjects:
Online Access:https://www.mdpi.com/1424-8220/23/13/5824
_version_ 1827734597133139968
author Qing An
Yingjian Xu
Jun Yu
Miao Tang
Tingting Liu
Feihong Xu
author_facet Qing An
Yingjian Xu
Jun Yu
Miao Tang
Tingting Liu
Feihong Xu
author_sort Qing An
collection DOAJ
description Safety helmets are essential in various indoor and outdoor workplaces, such as metallurgical high-temperature operations and high-rise building construction, to avoid injuries and ensure safety in production. However, manual supervision is costly and prone to lack of enforcement and interference from other human factors. Moreover, small target object detection frequently lacks precision. Improving safety helmets based on the helmet detection algorithm can address these issues and is a promising approach. In this study, we proposed a modified version of the YOLOv5s network, a lightweight deep learning-based object identification network model. The proposed model extends the YOLOv5s network model and enhances its performance by recalculating the prediction frames, utilizing the IoU metric for clustering, and modifying the anchor frames with the K-means++ method. The global attention mechanism (GAM) and the convolutional block attention module (CBAM) were added to the YOLOv5s network to improve its backbone and neck networks. By minimizing information feature loss and enhancing the representation of global interactions, these attention processes enhance deep learning neural networks’ capacity for feature extraction. Furthermore, the CBAM is integrated into the CSP module to improve target feature extraction while minimizing computation for model operation. In order to significantly increase the efficiency and precision of the prediction box regression, the proposed model additionally makes use of the most recent SIoU (SCYLLA-IoU LOSS) as the bounding box loss function. Based on the improved YOLOv5s model, knowledge distillation technology is leveraged to realize the light weight of the network model, thereby reducing the computational workload of the model and improving the detection speed to meet the needs of real-time monitoring. The experimental results demonstrate that the proposed model outperforms the original YOLOv5s network model in terms of accuracy (Precision), recall rate (Recall), and mean average precision (mAP). The proposed model may more effectively identify helmet use in low-light situations and at a variety of distances.
first_indexed 2024-03-11T01:29:50Z
format Article
id doaj.art-eb8a7610d25b47b08a51d57e63ee8e17
institution Directory Open Access Journal
issn 1424-8220
language English
last_indexed 2024-03-11T01:29:50Z
publishDate 2023-06-01
publisher MDPI AG
record_format Article
series Sensors
spelling doaj.art-eb8a7610d25b47b08a51d57e63ee8e172023-11-18T17:27:18ZengMDPI AGSensors1424-82202023-06-012313582410.3390/s23135824Research on Safety Helmet Detection Algorithm Based on Improved YOLOv5sQing An0Yingjian Xu1Jun Yu2Miao Tang3Tingting Liu4Feihong Xu5School of Artificial Intelligence, Wuchang University of Technology, Wuhan 430223, ChinaSchool of Safety Science and Emergency Management, Wuhan University of Technology, Wuhan 430079, ChinaUSTC iFLYTEK Co., Ltd., Hefei 230088, ChinaSchool of Artificial Intelligence, Wuchang University of Technology, Wuhan 430223, ChinaSchool of Artificial Intelligence, Wuchang University of Technology, Wuhan 430223, ChinaSchool of Artificial Intelligence, Wuchang University of Technology, Wuhan 430223, ChinaSafety helmets are essential in various indoor and outdoor workplaces, such as metallurgical high-temperature operations and high-rise building construction, to avoid injuries and ensure safety in production. However, manual supervision is costly and prone to lack of enforcement and interference from other human factors. Moreover, small target object detection frequently lacks precision. Improving safety helmets based on the helmet detection algorithm can address these issues and is a promising approach. In this study, we proposed a modified version of the YOLOv5s network, a lightweight deep learning-based object identification network model. The proposed model extends the YOLOv5s network model and enhances its performance by recalculating the prediction frames, utilizing the IoU metric for clustering, and modifying the anchor frames with the K-means++ method. The global attention mechanism (GAM) and the convolutional block attention module (CBAM) were added to the YOLOv5s network to improve its backbone and neck networks. By minimizing information feature loss and enhancing the representation of global interactions, these attention processes enhance deep learning neural networks’ capacity for feature extraction. Furthermore, the CBAM is integrated into the CSP module to improve target feature extraction while minimizing computation for model operation. In order to significantly increase the efficiency and precision of the prediction box regression, the proposed model additionally makes use of the most recent SIoU (SCYLLA-IoU LOSS) as the bounding box loss function. Based on the improved YOLOv5s model, knowledge distillation technology is leveraged to realize the light weight of the network model, thereby reducing the computational workload of the model and improving the detection speed to meet the needs of real-time monitoring. The experimental results demonstrate that the proposed model outperforms the original YOLOv5s network model in terms of accuracy (Precision), recall rate (Recall), and mean average precision (mAP). The proposed model may more effectively identify helmet use in low-light situations and at a variety of distances.https://www.mdpi.com/1424-8220/23/13/5824detectionYOLOv5SIoUcombinatorial attention mechanismsK-means++knowledge distillation
spellingShingle Qing An
Yingjian Xu
Jun Yu
Miao Tang
Tingting Liu
Feihong Xu
Research on Safety Helmet Detection Algorithm Based on Improved YOLOv5s
Sensors
detection
YOLOv5
SIoU
combinatorial attention mechanisms
K-means++
knowledge distillation
title Research on Safety Helmet Detection Algorithm Based on Improved YOLOv5s
title_full Research on Safety Helmet Detection Algorithm Based on Improved YOLOv5s
title_fullStr Research on Safety Helmet Detection Algorithm Based on Improved YOLOv5s
title_full_unstemmed Research on Safety Helmet Detection Algorithm Based on Improved YOLOv5s
title_short Research on Safety Helmet Detection Algorithm Based on Improved YOLOv5s
title_sort research on safety helmet detection algorithm based on improved yolov5s
topic detection
YOLOv5
SIoU
combinatorial attention mechanisms
K-means++
knowledge distillation
url https://www.mdpi.com/1424-8220/23/13/5824
work_keys_str_mv AT qingan researchonsafetyhelmetdetectionalgorithmbasedonimprovedyolov5s
AT yingjianxu researchonsafetyhelmetdetectionalgorithmbasedonimprovedyolov5s
AT junyu researchonsafetyhelmetdetectionalgorithmbasedonimprovedyolov5s
AT miaotang researchonsafetyhelmetdetectionalgorithmbasedonimprovedyolov5s
AT tingtingliu researchonsafetyhelmetdetectionalgorithmbasedonimprovedyolov5s
AT feihongxu researchonsafetyhelmetdetectionalgorithmbasedonimprovedyolov5s