Face Mask-Wearing Detection Model Based on Loss Function and Attention Mechanism
- PMID: 35865498
- PMCID: PMC9296297
- DOI: 10.1155/2022/2452291
Face Mask-Wearing Detection Model Based on Loss Function and Attention Mechanism
Abstract
Face mask-wearing detection is of great significance for safety protection during the epidemic. Aiming at the problem of low detection accuracy due to the problems of occlusion, complex illumination, and density in mask-wearing detection, this paper proposes a neural network model based on the loss function and attention mechanism for mask-wearing detection in complex environments. Based on YOLOv5s, we first introduce an attention mechanism in the feature fusion process to improve feature utilization, study the effect of different attention mechanisms (CBAM, SE, and CA) on improving deep network models, and then explore the influence of different bounding box loss functions (GIoU, CIoU, and DIoU) on mask-wearing recognition. CIoU is used as the frame regression loss function to improve the positioning accuracy. By collecting 7,958 mask-wearing images and a large number of images of people without masks as a dataset and using YOLOv5s as the benchmark model, the mAP of the model proposed in the paper reached 90.96% on the validation set, which is significantly better than the traditional deep learning method. Mask-wearing detection is carried out in a real environment, and the experimental results of the proposed method can meet the daily detection requirements.
Copyright © 2022 Zhong Wang et al.
Conflict of interest statement
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Figures







Similar articles
-
A Face Detection and Standardized Mask-Wearing Recognition Algorithm.Sensors (Basel). 2023 May 10;23(10):4612. doi: 10.3390/s23104612. Sensors (Basel). 2023. PMID: 37430525 Free PMC article.
-
Deep Learning-Based Biomimetic Identification Method for Mask Wearing Standardization.Biomimetics (Basel). 2024 Sep 18;9(9):563. doi: 10.3390/biomimetics9090563. Biomimetics (Basel). 2024. PMID: 39329585 Free PMC article.
-
Face mask detection and classification via deep transfer learning.Multimed Tools Appl. 2022;81(3):4475-4494. doi: 10.1007/s11042-021-11772-5. Epub 2021 Dec 9. Multimed Tools Appl. 2022. PMID: 34903950 Free PMC article.
-
"I'm smiling back at you": Exploring the impact of mask wearing on communication in healthcare.Int J Lang Commun Disord. 2021 Jan;56(1):205-214. doi: 10.1111/1460-6984.12578. Epub 2020 Oct 10. Int J Lang Commun Disord. 2021. PMID: 33038046 Free PMC article. Review.
-
Deep learning techniques for detecting and recognizing face masks: A survey.Front Public Health. 2022 Sep 26;10:955332. doi: 10.3389/fpubh.2022.955332. eCollection 2022. Front Public Health. 2022. PMID: 36225777 Free PMC article. Review.
Cited by
-
EcoDetect-YOLO: A Lightweight, High-Generalization Methodology for Real-Time Detection of Domestic Waste Exposure in Intricate Environmental Landscapes.Sensors (Basel). 2024 Jul 18;24(14):4666. doi: 10.3390/s24144666. Sensors (Basel). 2024. PMID: 39066064 Free PMC article.
-
Research on Beef Marbling Grading Algorithm Based on Improved YOLOv8x.Foods. 2025 May 8;14(10):1664. doi: 10.3390/foods14101664. Foods. 2025. PMID: 40428444 Free PMC article.
References
-
- Yang C. W., Phung T. H., Shuai H. H., Cheng W. H. Mask or non-mask? robust face mask detector via triplet-consistency representation learning. ACM Transactions on Multimedia Computing, Communications, and Applications . 2022;18(1s):1–20. doi: 10.1145/3472623. - DOI
Publication types
MeSH terms
LinkOut - more resources
Full Text Sources