Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Lightweight Mask Wearing Detection Algorithm Based on Improved YOLOv5

  • Conference paper
  • First Online:
Proceedings of the 9th International Conference on Advanced Intelligent Systems and Informatics 2023 (AISI 2023)

Abstract

To prevent the spread of the epidemic, a lightweight mask-wearing detection algorithm based on the modified YOLOv5 is proposed. The three categories of mask-wearing, mask-less, and non-standard mask-wearing were studied, and images of faces covered with hands and clothing were added as interference items to make the study more realistic. Using YOLOv5 as the base model, the modified deformable convolution is introduced into the CSP-Darknet53 module of the backbone network, which effectively enhances the model's ability to extract key information such as faces and masks and improves the detection accuracy of the model. In addition, image defogging based on dark channel prior is introduced to make the model adapt to detect whether pedestrians wear a mask correctly in special weather. Finally, the knowledge distillation method is used to perform light-weight compression on the model to solve the problem of slow detection speed in practical applications. Training and testing on the self-made T-Mask dataset, the mAP of the model reaches 93.6%, which is about 3% points higher than the original YOLOv5m algorithm, and the number of parameters is reduced to 1/3 of the original one, which has a higher practical value.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Ni, X., Xing, Y., Suo, J., et al.: Characteristics and functions of microbial aerosols in medical institutions. Chin. J. Hosp. Infect. 30(8), 1183–1190 (2020)

    Google Scholar 

  2. Wang, R., Zeng, Q., Liu, H.: Meta-analysis of the relationship between medical staff wearing masks and infections of respiratory infectious diseases. J. Environ. Health 29(3), 269–270 (2012)

    Google Scholar 

  3. Davies, A., Thompson, K.-A., Giri, K., et al.: Testing the efficacy of homemade masks: would they protect in an influenza pandemic? Disaster Med. Public Health Prep. 7(4), 413–418 (2013)

    Google Scholar 

  4. Macintyre, C.R., Cauchemez, S., Dwyer, D.E., et al.: Face mask use and control of respiratory virus transmission in households. Emerg. Infect. Dis. 15(2), 233 (2009)

    Article  Google Scholar 

  5. Kux, L.: Department of health and human services. Food and Drug Administration [docket no FDA-2012-D-0146]: guidance for industry on irritable bowel syndrome-clinical evaluation of drugs for treatment: availability Fed Regist, vol. 77, pp. 32124–32125 (2012)

    Google Scholar 

  6. Henry, S., Manuguerra, J.-C., Escourolle, D., et al.: National plan for the prevention and control “influenza pandemic”. La Revue du Praticien 58(15), 1687–1693 (2008)

    Google Scholar 

  7. Suzhen, C., Dongsen, W., Xing, C., et al.: Research on Chinese residents wearing masks for protective behavior during the COVID-19 epidemic. Environ. Sci. Res. 33(7), 1649–1658 (2020)

    Google Scholar 

  8. Zuodong, N., Tao, Q., Handong, L., et al.: Improved RetinaFace mask wearing detection algorithm in natural scenes. Comput. Eng. Appl. 56(12), 1–7 (2020)

    Google Scholar 

  9. Wu, P., Li, H., Zeng, N., et al.: FMD-Yolo: an efficient face mask detection method for COVID-19 prevention and control in public. Image Vis. Comput. 117, 104341 (2022)

    Article  Google Scholar 

  10. Kumar, A., Kalia, A., Sharma, A., et al.: A hybrid tiny YOLO v4-SPP module based improved face mask detection vision system. J. Ambient Intell. Humaniz. Comput., 1–14 (2021)

    Google Scholar 

  11. Xin, Z., Rui, L., Weiqi, L.: Mask wearing detection algorithm based on improved YOLOV3. Comput. Eng. Des. 43(05), 1319–1326 (2022)

    Google Scholar 

  12. Redmon, J., Divvala, S., Girshick, R., et al.: You only look once: Unified, real-time object detection. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2016)

    Google Scholar 

  13. Redmon, J., Farhadi, A.: YOLO9000: better, faster, stronger. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2017)

    Google Scholar 

  14. Redmon, J., Farhadi, A.: Yolov3: an incremental improvement. arXiv preprint arXiv:180402767 (2018)

    Google Scholar 

  15. Wang, C.-Y., Liao, H.-Y.M., Wu, Y.-H., et al.: CSPNet: a new backbone that can enhance learning capability of CNN. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (2020)

    Google Scholar 

  16. Dai, J., Qi, H., Xiong, Y., et al.: Deformable convolutional networks. In: Proceedings of the IEEE International Conference on Computer Vision (2017)

    Google Scholar 

  17. Zhu, X., Hu, H., Lin, S., et al.: Deformable ConvNets V2: more deformable, better results. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2019)

    Google Scholar 

  18. Gou, J., Yu, B., Maybank, S.J., et al.: Knowledge distillation: a survey. Int. J. Comput. Vis. 129(6), 1789–1819 (2021)

    Article  Google Scholar 

  19. He, K., Sun, J., Tang, X.: Single image haze removal using dark channel prior. IEEE Trans. Pattern Anal. Mach. Intell. 33(12), 2341–2353 (2010)

    Google Scholar 

  20. https://github.com/PaddlePaddle/PaddleHub

  21. Cabani, A., Hammoudi, K., Benhabiles, H., Melkemi, M.: MaskedFace-Net - a dataset of correctly/incorrectly masked face images in the context of COVID-19. Smart Health (2020). ISSN 2352-6483. https://doi.org/10.1016/j.smhl.2020.100144

Download references

Acknowledgement

This work is supported by Heilongjiang Provincial Natural Science Foundation of China (No. LH2022F035) and 2022 Harbin University of Commerce's the support program project of faculty “Innovation” project (No. XL0068) and Harbin University of Commerce Graduate Innovative Research Project (No. YJSCX2022-743HSD).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hongyan Xu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Su, X., Xu, H., Zhang, Y., Zhao, J., Zhang, F., Chen, X. (2023). Lightweight Mask Wearing Detection Algorithm Based on Improved YOLOv5. In: Hassanien, A., Rizk, R.Y., Pamucar, D., Darwish, A., Chang, KC. (eds) Proceedings of the 9th International Conference on Advanced Intelligent Systems and Informatics 2023. AISI 2023. Lecture Notes on Data Engineering and Communications Technologies, vol 184. Springer, Cham. https://doi.org/10.1007/978-3-031-43247-7_44

Download citation

Publish with us

Policies and ethics