skip to main content
10.1145/3614008.3614032acmotherconferencesArticle/Chapter ViewAbstractPublication PagesspmlConference Proceedingsconference-collections
research-article

A mask-wearing detection algorithm based on improved YOLOv7

Published:17 October 2023Publication History

ABSTRACT

Aiming at the problem that the accuracy of mask-wearing detection is poor and it is difficult to deploy in low-cost equipment, this paper has proposed a mask-wearing detection algorithm based on improved YOLOv7. By adding an attention mechanism to the backbone network and introducing the partial convolution method, the algorithm enhances the perception ability of the network to small targets, improves the accuracy of mask-wearing detection, reduces the parameters and calculation of the network, and improves the efficiency of feature extraction of the network. By integrating Distribution Shift Convolution in the head network, the required memory and equipment requirements are reduced while the operation speed is also improved. The experimental results show that, compared to the original model, the mean average precision of the improved YOLOv7 network improved by 0.5%, the parameters are reduced by 20%, the computation only accounts for 51% while the model size is lower to 63%and the reasoning speed remains basically unchanged. These improvements can be applied in the current mask-wearing monitoring task and provide a useful reference for future object detection tasks.

References

  1. Song Yao, Liu Jun. Improved U-Net COVID-19 image segmentation method [J]. Computer Engineering and Application, 2021, 57(19):9.Google ScholarGoogle Scholar
  2. Wang Xinran, Tian Qichuan, Zhang Dong. A summary of the research on wearing and detecting face masks [J]. Computer Engineering and Application, 2022, 58(10):13-26.Google ScholarGoogle Scholar
  3. Viola P . Rapid Object Detection using a Boosted Cascade of Simple Features[J]. Proc. IEEE CVPR 2001, 2001.Google ScholarGoogle ScholarCross RefCross Ref
  4. Viola P, Jones M J . Robust Real-Time Face Detection[J]. International Journal of Computer Vision, 2004, 57(2):137-154.Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Dalal N, Triggs B . Histograms of Oriented Gradients for Human Detection[C]// IEEE Computer Society Conference on Computer Vision & Pattern Recognition. IEEE, 2005.Google ScholarGoogle Scholar
  6. Felzenszwalb, Pedro, F, Object Detection with Discriminatively Trained Part-Based Models.[J]. IEEE Transactions on Pattern Analysis & Machine Intelligence, 2010, 32(9):1627-1645.Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Bochkovskiy A, Wang C Y, Liao H . YOLOv4: Optimal Speed and Accuracy of Object Detection[J]. 2020.Google ScholarGoogle Scholar
  8. Wang C Y, Bochkovskiy A, Liao H . YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors[J]. arXiv e-prints, 2022.Google ScholarGoogle Scholar
  9. Berg A C , Fu C Y , Szegedy C , SSD: Single Shot MultiBox Detector: 10.1007/978-3-319-46448-0_2[P]. 2015.Google ScholarGoogle Scholar
  10. Yu L , Park E , Berg A C , Proceedings - 2015 IEEE International Conference on Computer Vision, ICCV 2015[J]. IEEE, 2016.Google ScholarGoogle Scholar
  11. Ren S, He K, Girshick R, Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks[J]. IEEE Transactions on Pattern Analysis & Machine Intelligence, 2017, 39(6):1137-1149.Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Zhang Xiubao, Lin Ziyuan, Tian Wanxin, Face mask recognition technology in all-weather natural scenes [J]. China Science: Information Science, 2020, 50(7):11.Google ScholarGoogle Scholar
  13. Niu Zuodong, Qin Tao, Li Handong, Improved natural scene mask-wearing detection algorithm of RetinaFace [J]. Computer Engineering and Application, 2020, 56(12):7.Google ScholarGoogle Scholar
  14. Chen Zhaojun, Chu Jun, Zeng Lunjie. Multi-category mask-wearing detection based on dynamic weighted category balance loss [J]. Journal of Graphics, 2022, 43(4):9.Google ScholarGoogle Scholar
  15. Mao Xiaobo, Xu Xiangyang, Li Nan, The entrance guard system of mask-wearing detection based on improved SSD and Jetson Nano [J]. Journal of Zhengzhou University (Engineering Edition), 2021(006):042.Google ScholarGoogle Scholar
  16. CHEN J, KAO S hong, HE H, Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks[Z]. 2023Google ScholarGoogle Scholar
  17. Gennari M , Fawcett R , Prisacariu V A . DSConv: Efficient Convolution Operator[J]. 2019.Google ScholarGoogle Scholar
  18. Woo S, Park J, Lee J Y, Cbam: Convolutional block attention module[C]//Proceedings of the European conference on computer vision (ECCV). 2018: 3-19.Google ScholarGoogle Scholar
  19. Wang Q , Wu B , Zhu P , ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks[C]// 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2020.Google ScholarGoogle Scholar
  20. Chen J, Lu Z, Liao Q. XSepConv: extremely separated convolution for efficient deep networks with large kernels[C]//Thirteenth International Conference on Digital Image Processing (ICDIP 2021). SPIE, 2021, 11878: 160-169.Google ScholarGoogle Scholar

Index Terms

  1. A mask-wearing detection algorithm based on improved YOLOv7

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      SPML '23: Proceedings of the 2023 6th International Conference on Signal Processing and Machine Learning
      July 2023
      383 pages
      ISBN:9798400707575
      DOI:10.1145/3614008

      Copyright © 2023 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 17 October 2023

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
      • Research
      • Refereed limited
    • Article Metrics

      • Downloads (Last 12 months)20
      • Downloads (Last 6 weeks)2

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    HTML Format

    View this article in HTML Format .

    View HTML Format