Research and Optimization of a Lightweight Refined Mask-Wearing Detection Algorithm Based on an Attention Mechanism

被引:0
|
作者
Shi, Xiangbo [1 ]
Tong, Yala [1 ]
Mei, Fei [1 ]
Wu, Zhongjian [2 ]
机构
[1] Hubei Univ Technol, Sch Sci, Wuhan 430068, Peoples R China
[2] Hubei Univ Technol, Sch Detroit, Wuhan 430068, Peoples R China
关键词
attention mechanism; feature fusion; mask detection; small targets; YOLOv4-tiny;
D O I
10.3390/electronics12081911
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
To address the current problems of the incomplete classification of mask-wearing detection data, small-target miss detection, and the insufficient feature extraction capabilities of lightweight networks dealing with complex faces, a lightweight method with an attention mechanism for detecting mask wearing is presented in this paper. This study incorporated an "incorrect_mask" category into the dataset to address incomplete classification. Additionally, the YOLOv4-tiny model was enhanced with a prediction feature layer and feature fusion execution, expanding the detection scale range and improving the performance on small targets. A CBAM attention module was then introduced into the feature enhancement network, which re-screened the feature information of the region of interest to retain important feature information and improve the feature extraction capabilities. Finally, a focal loss function and an improved mosaic data enhancement strategy were used to enhance the target classification performance. The experimental results of classifying three objects demonstrate that the lightweight model's detection speed was not compromised while achieving a 2.08% increase in the average classification precision, which was only 0.69% lower than that of the YOLOv4 network. Therefore, this approach effectively improves the detection effect of the lightweight network for mask-wearing.
引用
收藏
页数:12
相关论文
共 50 条
  • [1] Mask-Wearing Detection Method Based on YOLO-Mask
    Cao Chengshuo
    Yuan Jie
    LASER & OPTOELECTRONICS PROGRESS, 2021, 58 (08)
  • [2] Lightweight face mask detection algorithm with attention mechanism
    Shao, Yanhua
    Ning, Jiajia
    Shao, Huicao
    Zhang, Duo
    Chu, Hongyu
    Ren, Zhenwen
    ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2024, 137
  • [3] Attention-enhanced multiscale fusion for face mask-wearing detection
    Li, Ying
    Kang, Dejian
    Sun, Shiyu
    Yang, Guangsong
    JOURNAL OF ELECTRONIC IMAGING, 2024, 33 (01)
  • [4] Mask-Wearing Detection in Complex Environments Based on Improved YOLOv7
    Feng, Guang
    Yang, Qun
    Tang, Chong
    Liu, Yunhai
    Wu, Xiaoting
    Wu, Wenyan
    APPLIED SCIENCES-BASEL, 2024, 14 (09):
  • [5] Face Detection Algorithm Based on a Lightweight Attention Mechanism Network
    Gao Liuya
    Sun Dong
    Lu Yixiang
    LASER & OPTOELECTRONICS PROGRESS, 2021, 58 (02)
  • [6] Attention Mechanism Based Joint Optimization Algorithm for Defect Detection
    Dong Y.
    Sun S.
    Wang Z.
    Liu J.
    Jisuanji Fuzhu Sheji Yu Tuxingxue Xuebao/Journal of Computer-Aided Design and Computer Graphics, 2024, 36 (01): : 102 - 111
  • [7] Lightweight SAR ship detection algorithm based on attention mechanism
    Fu, Weihong
    Zheng, Peiyuan
    SIGNAL IMAGE AND VIDEO PROCESSING, 2025, 19 (01)
  • [8] Attention Mechanism-Based Improved Lightweight Target Detection Algorithm
    Jin Mei
    Li Yihui
    Zhang Liguo
    Ma Zijian
    LASER & OPTOELECTRONICS PROGRESS, 2023, 60 (04)
  • [9] An Improved Lightweight YOLOv5 Model Based on Attention Mechanism for Face Mask Detection
    Xu, Sheng
    Guo, Zhanyu
    Liu, Yuchi
    Fan, Jingwei
    Liu, Xuxu
    ARTIFICIAL NEURAL NETWORKS AND MACHINE LEARNING - ICANN 2022, PT III, 2022, 13531 : 531 - 543
  • [10] Improved Efficient Convolutional Neural Networks for Complex Scene Mask-Wearing Detection
    Xue J.
    Cheng J.
    Zhang Q.
    Guo Y.
    Lu A.
    Li J.
    Wan X.
    Xu J.
    Jisuanji Fuzhu Sheji Yu Tuxingxue Xuebao/Journal of Computer-Aided Design and Computer Graphics, 2021, 33 (07): : 1045 - 1054