An Improved Lightweight YOLOv5 Model Based on Attention Mechanism for Face Mask Detection

12Citations
Citations of this article
33Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Coronavirus 2019 has brought severe challenges to social stability and public health worldwide. One effective way of curbing the epidemic is to require people to wear masks in public places and monitor their mask-wearing states by suitable automatic detectors. However, existing models struggle to simultaneously achieve the requirements of both high precision and real-time performance. To solve this problem, we propose an improved lightweight face mask detector based on YOLOv5, which can achieve an excellent balance of precision and speed. Firstly, a novel backbone ShuffleCANet that combines ShuffleNetV2 network with Coordinate Attention mechanism is proposed as the backbone. Afterward, an efficient path aggression network BiFPN is applied as the feature fusion neck. Furthermore, the localization loss is replaced with α -CIoU in model training phase to obtain higher-quality anchors. Some valuable strategies such as data augmentation, adaptive image scaling, and anchor cluster operation are also utilized. Experimental results on AIZOO face mask dataset show the superiority of the proposed model. Compared with the original YOLOv5, the proposed model increases the inference speed by 28.3% while still improving the precision by 0.58%. It achieves the best mean average precision of 95.2% compared with other seven existing models, which is 4.4% higher than the baseline.

Cite

CITATION STYLE

APA

Xu, S., Guo, Z., Liu, Y., Fan, J., & Liu, X. (2022). An Improved Lightweight YOLOv5 Model Based on Attention Mechanism for Face Mask Detection. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 13531 LNCS, pp. 531–543). Springer Science and Business Media Deutschland GmbH. https://doi.org/10.1007/978-3-031-15934-3_44

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free