Cargando…

Helmet Wearing State Detection Based on Improved Yolov5s

At many construction sites, whether to wear a helmet is directly related to the safety of the workers. Therefore, the detection of helmet use has become a crucial monitoring tool for construction safety. However, most of the current helmet wearing detection algorithms are only dedicated to distingui...

Descripción completa

Detalles Bibliográficos
Autores principales: Zhang, Yi-Jia, Xiao, Fu-Su, Lu, Zhe-Ming
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9786055/
https://www.ncbi.nlm.nih.gov/pubmed/36560211
http://dx.doi.org/10.3390/s22249843
_version_ 1784858199165239296
author Zhang, Yi-Jia
Xiao, Fu-Su
Lu, Zhe-Ming
author_facet Zhang, Yi-Jia
Xiao, Fu-Su
Lu, Zhe-Ming
author_sort Zhang, Yi-Jia
collection PubMed
description At many construction sites, whether to wear a helmet is directly related to the safety of the workers. Therefore, the detection of helmet use has become a crucial monitoring tool for construction safety. However, most of the current helmet wearing detection algorithms are only dedicated to distinguishing pedestrians who wear helmets from those who do not. In order to further enrich the detection in construction scenes, this paper builds a dataset with six cases: not wearing a helmet, wearing a helmet, just wearing a hat, having a helmet, but not wearing it, wearing a helmet correctly, and wearing a helmet without wearing the chin strap. On this basis, this paper proposes a practical algorithm for detecting helmet wearing states based on the improved YOLOv5s algorithm. Firstly, according to the characteristics of the label of the dataset constructed by us, the K-means method is used to redesign the size of the prior box and match it to the corresponding feature layer to increase the accuracy of the feature extraction of the model; secondly, an additional layer is added to the algorithm to improve the ability of the model to recognize small targets; finally, the attention mechanism is introduced in the algorithm, and the CIOU_Loss function in the YOLOv5 method is replaced by the EIOU_Loss function. The experimental results indicate that the improved algorithm is more accurate than the original YOLOv5s algorithm. In addition, the finer classification also significantly enhances the detection performance of the model.
format Online
Article
Text
id pubmed-9786055
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-97860552022-12-24 Helmet Wearing State Detection Based on Improved Yolov5s Zhang, Yi-Jia Xiao, Fu-Su Lu, Zhe-Ming Sensors (Basel) Article At many construction sites, whether to wear a helmet is directly related to the safety of the workers. Therefore, the detection of helmet use has become a crucial monitoring tool for construction safety. However, most of the current helmet wearing detection algorithms are only dedicated to distinguishing pedestrians who wear helmets from those who do not. In order to further enrich the detection in construction scenes, this paper builds a dataset with six cases: not wearing a helmet, wearing a helmet, just wearing a hat, having a helmet, but not wearing it, wearing a helmet correctly, and wearing a helmet without wearing the chin strap. On this basis, this paper proposes a practical algorithm for detecting helmet wearing states based on the improved YOLOv5s algorithm. Firstly, according to the characteristics of the label of the dataset constructed by us, the K-means method is used to redesign the size of the prior box and match it to the corresponding feature layer to increase the accuracy of the feature extraction of the model; secondly, an additional layer is added to the algorithm to improve the ability of the model to recognize small targets; finally, the attention mechanism is introduced in the algorithm, and the CIOU_Loss function in the YOLOv5 method is replaced by the EIOU_Loss function. The experimental results indicate that the improved algorithm is more accurate than the original YOLOv5s algorithm. In addition, the finer classification also significantly enhances the detection performance of the model. MDPI 2022-12-14 /pmc/articles/PMC9786055/ /pubmed/36560211 http://dx.doi.org/10.3390/s22249843 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Zhang, Yi-Jia
Xiao, Fu-Su
Lu, Zhe-Ming
Helmet Wearing State Detection Based on Improved Yolov5s
title Helmet Wearing State Detection Based on Improved Yolov5s
title_full Helmet Wearing State Detection Based on Improved Yolov5s
title_fullStr Helmet Wearing State Detection Based on Improved Yolov5s
title_full_unstemmed Helmet Wearing State Detection Based on Improved Yolov5s
title_short Helmet Wearing State Detection Based on Improved Yolov5s
title_sort helmet wearing state detection based on improved yolov5s
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9786055/
https://www.ncbi.nlm.nih.gov/pubmed/36560211
http://dx.doi.org/10.3390/s22249843
work_keys_str_mv AT zhangyijia helmetwearingstatedetectionbasedonimprovedyolov5s
AT xiaofusu helmetwearingstatedetectionbasedonimprovedyolov5s
AT luzheming helmetwearingstatedetectionbasedonimprovedyolov5s