Improved Algorithm for Face Mask Detection Based on YOLO-v4

Abstract To reduce the chance of being infected by the COVID-19, wearing masks correctly when entering and leaving public places has become the most feasible and effective ways to prevent the spread of the virus. It is a concern to how to quickly and accurately detect whether a face is worn a mask c...

Full description

Bibliographic Details
Main Authors: Gang Zhao, Shuilong Zou, Huijie Wu
Format: Article
Language:English
Published: Springer 2023-06-01
Series:International Journal of Computational Intelligence Systems
Subjects:
Online Access:https://doi.org/10.1007/s44196-023-00286-7
_version_ 1797801254554959872
author Gang Zhao
Shuilong Zou
Huijie Wu
author_facet Gang Zhao
Shuilong Zou
Huijie Wu
author_sort Gang Zhao
collection DOAJ
description Abstract To reduce the chance of being infected by the COVID-19, wearing masks correctly when entering and leaving public places has become the most feasible and effective ways to prevent the spread of the virus. It is a concern to how to quickly and accurately detect whether a face is worn a mask correctly while reduce missed detection and false detection in practical applied scenarios. In this paper, an improved algorithm is proposed based on the YOLO-v4 algorithm. The attention mechanism module is added to the appropriate network level to enhance the key feature points of face wearing masks and suppress useless information. Apart from that, three attention mechanism modules are added to different layers of the YOLO-v4 network for ablation experiments, including CBAM (convolutional block attention module), SENet (squeeze-and-excitation networks) and CANet (coordinate attention networks). The path-aggregation network and feature pyramid are used to extract features from images. Two network models were compared and improved in the experiment, and it is found that adding the dual-channel attention mechanism CBAM before the three YOLO heads of YOLOv4 and in the neck network had better detection performance than the single channel attention mechanism SENet and the coordinated attention mechanism CANet. The experimental results show that when the attention module CBAM and the YOLO-v4 model are integrated, the accuracy of the selected MAFA + WIDER Face dataset reaches the highest value of 93.56%, which is 4.66% higher than that of the original YOLO-v4.
first_indexed 2024-03-13T04:47:40Z
format Article
id doaj.art-9d5c8ec29c4741a0b65e16a6fb0bd96d
institution Directory Open Access Journal
issn 1875-6883
language English
last_indexed 2024-03-13T04:47:40Z
publishDate 2023-06-01
publisher Springer
record_format Article
series International Journal of Computational Intelligence Systems
spelling doaj.art-9d5c8ec29c4741a0b65e16a6fb0bd96d2023-06-18T11:24:32ZengSpringerInternational Journal of Computational Intelligence Systems1875-68832023-06-0116111310.1007/s44196-023-00286-7Improved Algorithm for Face Mask Detection Based on YOLO-v4Gang Zhao0Shuilong Zou1Huijie Wu2School of Electronics and Information Engineering, Nanchang Normal College of Applied TechnologySchool of Electronics and Information Engineering, Nanchang Normal College of Applied TechnologySchool of Electronics and Information Engineering, Nanchang Normal College of Applied TechnologyAbstract To reduce the chance of being infected by the COVID-19, wearing masks correctly when entering and leaving public places has become the most feasible and effective ways to prevent the spread of the virus. It is a concern to how to quickly and accurately detect whether a face is worn a mask correctly while reduce missed detection and false detection in practical applied scenarios. In this paper, an improved algorithm is proposed based on the YOLO-v4 algorithm. The attention mechanism module is added to the appropriate network level to enhance the key feature points of face wearing masks and suppress useless information. Apart from that, three attention mechanism modules are added to different layers of the YOLO-v4 network for ablation experiments, including CBAM (convolutional block attention module), SENet (squeeze-and-excitation networks) and CANet (coordinate attention networks). The path-aggregation network and feature pyramid are used to extract features from images. Two network models were compared and improved in the experiment, and it is found that adding the dual-channel attention mechanism CBAM before the three YOLO heads of YOLOv4 and in the neck network had better detection performance than the single channel attention mechanism SENet and the coordinated attention mechanism CANet. The experimental results show that when the attention module CBAM and the YOLO-v4 model are integrated, the accuracy of the selected MAFA + WIDER Face dataset reaches the highest value of 93.56%, which is 4.66% higher than that of the original YOLO-v4.https://doi.org/10.1007/s44196-023-00286-7YOLO-v4Face mask detectionCBAMSENetCANet
spellingShingle Gang Zhao
Shuilong Zou
Huijie Wu
Improved Algorithm for Face Mask Detection Based on YOLO-v4
International Journal of Computational Intelligence Systems
YOLO-v4
Face mask detection
CBAM
SENet
CANet
title Improved Algorithm for Face Mask Detection Based on YOLO-v4
title_full Improved Algorithm for Face Mask Detection Based on YOLO-v4
title_fullStr Improved Algorithm for Face Mask Detection Based on YOLO-v4
title_full_unstemmed Improved Algorithm for Face Mask Detection Based on YOLO-v4
title_short Improved Algorithm for Face Mask Detection Based on YOLO-v4
title_sort improved algorithm for face mask detection based on yolo v4
topic YOLO-v4
Face mask detection
CBAM
SENet
CANet
url https://doi.org/10.1007/s44196-023-00286-7
work_keys_str_mv AT gangzhao improvedalgorithmforfacemaskdetectionbasedonyolov4
AT shuilongzou improvedalgorithmforfacemaskdetectionbasedonyolov4
AT huijiewu improvedalgorithmforfacemaskdetectionbasedonyolov4