A Lightweight YOLOv5 Real-time Mask-wearing Detection Algorithm for the Post-pandemic Era
DOI:
https://doi.org/10.54691/fse.v3i8.5523Keywords:
COVID-19; Lightweight Mask-wearing Detection; Post-pandemic; YOLOv5.Abstract
Since the outbreak of the COVID-19 pandemic, standardized mask-wearing has become a powerful measure to combat the epidemic. Although the epidemic has been brought under control, vigilance in densely populated areas remains essential. Manual supervision is not only inefficient but also increases the risk of infection among relevant personnel. As a result, this paper proposes a lightweight real-time mask-wearing detection algorithm to monitor mask-wearing in crowds in real time. Built upon the YOLOv5 framework, the proposed algorithm replaces the backbone feature extraction network of the original model with an improved EfficientNetV2, reducing the model's parameter count and enhancing accuracy. The introduction of the ECA module in place of the SE module in the EfficientNetV2 network, coupled with the substitution of DIoU-NMS for the weighted NMS in the original model, further reduces model parameters and improves convergence. Additionally, this approach enhances the detection of occluded objects. Experimental results based on a publicly collected mask dataset demonstrate that the proposed algorithm reduces the model's parameter count by 44.7%, achieves a mAP of 95.3%, and attains an inference speed of 270.3 FPS. The algorithm introduced in this paper effectively identifies whether individuals are wearing masks correctly. Its lightweight nature makes it suitable for deployment on resource-constrained mobile devices, aligning well with post-pandemic epidemic prevention and control efforts in the era to come.
Downloads
References
Pastor L, Vorsatz B.Mutual Fund Performance and Flows During the COVID-19 Crisis[J]. Social Science Electronic Publishing [2023-08-10]. DOI: https://doi.org/10.1093/rapstu/raaa015
Javakhishvili I.Covid-19-Pandemic Measures in Conflict Zones in 2020 and 2021—The Case of the OSCE and South Ossetia in Georgia[M]. 2021. DOI: https://doi.org/10.1007/978-3-030-77489-9_13
Sauter,Marian,Liesefeld,et al.Region-based shielding of visual search from salient distractors: Target detection is impaired with same- but not different-dimension distractors[J].Attention Perception & Psychophysics, 2018. DOI: https://doi.org/10.3758/s13414-017-1477-4
Wu,Zhihuan,Chen,et al.Rapid Target Detection in High Resolution Remote Sensing Images Using YOLO Model[C]//2018. DOI: https://doi.org/10.5194/isprs-archives-XLII-3-1915-2018
[1] Lin C , Chen S Y , Chen C C ,et al.Detecting Newly Grown Tree Leaves from Unmanned-Aerial-Vehicle Images using Hyperspectral Target Detection Techniques[J].ISPRS Journal of Photogrammetry and Remote Sensing, 2018, 142(AUG.):174-189. DOI: https://doi.org/10.1016/j.isprsjprs.2018.05.022
Dlamini S , Kao C Y , Su S L ,et al.Development of a real-time machine vision system for functional textile fabric defect detection using a deep YOLOv4 model[J].Textile research journal, 2022(5/6):92. DOI: https://doi.org/10.1177/00405175211034241
Majeed F , Khan F Z , Nazir M ,et al.Investigating the efficiency of deep learning based security system in a real-time environment using YOLOv5[J].Sustainable Energy Technologies and Assessments, 2022. DOI: https://doi.org/10.1016/j.seta.2022.102603
Hu L , Liu W , Li B ,et al.Robust motion detection using histogram of oriented gradients for illumination variations[C]//International Conference on Industrial Mechatronics & Automation. IEEE, 2010.
Pérez, Diego Sebastián, Bromberg F , Diaz C A .Image classification for detection of winter grapevine buds in natural conditions using scale-invariant features transform, bag of features and support vector machines[J].Computers and Electronics in Agriculture, 2017, 135:81-95. DOI: https://doi.org/10.1016/j.compag.2017.01.020
Mulyawan I T .Two wheeled Vehicles detection Using Haar-like Features and Support Vector Machine on CCTV Traffic Image[J]. 2019. DOI: https://doi.org/10.26555/jifo.v13i2.a13194
Seddati O , Dupont S , Mahmoudi S ,et al.Towards Good Practices for Image Retrieval Based on CNN Features[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. IEEE, 2018. DOI: https://doi.org/10.1109/ICCVW.2017.150
Calakli F , Taubin G .SSD: Smooth Signed Distance Surface Reconstruction[J].Computer Graphics Forum, 2011, 30(7):1993-2002. DOI: https://doi.org/10.1111/j.1467-8659.2011.02058.x
A S S R , B S K V , C Y K .Review on recent development in infrared small target detection algorithms[J].Procedia Computer Science, 2020, 167:2496-2505. DOI: https://doi.org/10.1016/j.procs.2020.03.302
Envelope J C A , A E B , A J P .Classification and Positioning of Circuit Board Components Based on Improved YOLOv5[J].Procedia Computer Science, 2022, 208:613-626. DOI: https://doi.org/10.1016/j.procs.2022.10.085
Darapaneni N , Kumar S , Krishnan S ,et al.Implementing a Real-Time, YOLOv5 based Social Distancing Measuring System for Covid-19[J]. 2022.
Tan M , Le Q V .EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks[J]. 2019.
Tan M , Le Q V .EfficientNetV2: Smaller Models and Faster Training[J]. 2021.
Yang Q , Wei M , Zhu R ,et al.Facial expression recognition algorithm based on efficient channel attention[J].Journal of electronic imaging, 2022. DOI: https://doi.org/10.1117/1.JEI.31.5.053021
Hartweg B , Fisher K , Niverty S ,et al.Analysis of electrically conductive adhesives in shingled solar modules by X-ray imaging techniques[J].Microelectronics and reliability, 2022. DOI: https://doi.org/10.1016/j.microrel.2022.114627
Karthik R , Vaichole T S , Kulkarni S K ,et al.Eff2Net: An efficient channel attention-based convolutional neural network for skin disease classification[J].Biomedical Signal Processing and Control, 2022, 73:103406-. DOI: https://doi.org/10.1016/j.bspc.2021.103406
Cailing Z , Shihua L , Bo H ,et al.Relationship between the Convective Boundary Layer and Residual Layer over Badain Jaran Desert in Summer[J].Plateau Meteorology, 2016.
[1] Fang S , Mu L , Jia S ,et al.Research on sunken & submerged oil detection and its behavior process under the action of breaking waves based on YOLO v4 algorithm[J].Marine pollution bulletin, 2022(Jun.):179. DOI: https://doi.org/10.1016/j.marpolbul.2022.113682
Wang G , Ding H , Li B ,et al.Trident-YOLO: Improving the precision and speed of mobile device object detection[J].IET image processing, 2022(1):16. DOI: https://doi.org/10.1049/ipr2.12340
Yang F .A Real-Time Apple Targets Detection Method for Picking Robot Based on Improved YOLOv5[J].Remote Sensing, 2021, 13. DOI: https://doi.org/10.3390/rs13091619
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.




