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 条
  • [31] Complex Text Detection Algorithm Based on Edge Attention Mechanism
    Cui, Shaoguo
    Chen, Xi
    Mou, Zhenping
    Xie, Zheng
    Sun, Yisha
    Li, Dongchun
    JOURNAL OF CIRCUITS SYSTEMS AND COMPUTERS, 2024, 33 (03)
  • [32] Complex Text Detection Algorithm Based on Edge Attention Mechanism
    Cui, Shaoguo
    Chen, Xi
    Mou, Zhenping
    Xie, Zheng
    Sun, Yisha
    Li, Dongchun
    JOURNAL OF CIRCUITS SYSTEMS AND COMPUTERS, 2023,
  • [33] Research on Small Acceptance Domain Text Detection Algorithm Based on Attention Mechanism and Hybrid Feature Pyramid
    Liu, Mingzhu
    Li, Ben
    Zhang, Wei
    ELECTRONICS, 2022, 11 (21)
  • [34] Research on Forest Flame Detection Algorithm Based on a Lightweight Neural Network
    Chen, Yixin
    Wang, Ting
    Lin, Haifeng
    FORESTS, 2023, 14 (12):
  • [35] Research on Steel Surface Defect Detection Based on YOLOv5 with Attention Mechanism
    Shi, Jianting
    Yang, Jian
    Zhang, Yingtao
    ELECTRONICS, 2022, 11 (22)
  • [36] A Lightweight Uav Swarm Detection Method Integrated Attention Mechanism
    Wang, Chuanyun
    Meng, Linlin
    Gao, Qian
    Wang, Jingjing
    Wang, Tian
    Liu, Xiaona
    Du, Furui
    Wang, Linlin
    Wang, Ershen
    DRONES, 2023, 7 (01)
  • [37] Small target detection algorithm based on attention mechanism and data augmentation
    Wang, Jiuxin
    Liu, Man
    Su, Yaoheng
    Yao, Jiahui
    Du, Yurong
    Zhao, Minghu
    Lu, Dingze
    SIGNAL IMAGE AND VIDEO PROCESSING, 2024, 18 (04) : 3837 - 3853
  • [38] Small target detection algorithm based on attention mechanism and data augmentation
    Jiuxin Wang
    Man Liu
    Yaoheng Su
    Jiahui Yao
    Yurong Du
    Minghu Zhao
    Dingze Lu
    Signal, Image and Video Processing, 2024, 18 : 3837 - 3853
  • [39] Space Target Detection Algorithm Based on Attention Mechanism and Dynamic Activation
    Liu Shengli
    Guo Yulan
    Wang Gang
    LASER & OPTOELECTRONICS PROGRESS, 2022, 59 (14)
  • [40] SMALL OBJECT DETECTION ALGORITHM BASED ON CONTEXT INFORMATION AND ATTENTION MECHANISM
    Zhong Hang
    Li Fan
    Kuang Ping
    Gu Xiaofeng
    He Mingyun
    Tang Heng
    2022 19TH INTERNATIONAL COMPUTER CONFERENCE ON WAVELET ACTIVE MEDIA TECHNOLOGY AND INFORMATION PROCESSING (ICCWAMTIP), 2022,