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 条
  • [41] Attention Mechanism-Based Object Detection Algorithm in Aerial Images
    Bai, Zongbao
    Zhang, Junju
    Gao, Yuan
    Hu, Youcheng
    LASER & OPTOELECTRONICS PROGRESS, 2023, 60 (12)
  • [42] A Dense Attention Railway Foreign Object Detection Algorithm Based on Mask R-CNN
    Gao, Shuang
    IEEE ACCESS, 2024, 12 : 85761 - 85772
  • [43] Research on mine underground inspection robot target detection algorithm based on pyramid structure and attention mechanism coupling
    Wang, Maosen
    Bao, Jiusheng
    Bao, Zhouyang
    Yin, Yan
    Wang, Xiangsai
    Ge, Shirong
    Meitan Kexue Jishu/Coal Science and Technology (Peking), 2024, 52 (06): : 206 - 215
  • [44] Driving Behavior Recognition Algorithm Combining Attention Mechanism and Lightweight Network
    Wang, Lili
    Yao, Wenjie
    Chen, Chen
    Yang, Hailu
    ENTROPY, 2022, 24 (07)
  • [45] AMFLW-YOLO: A Lightweight Network for Remote Sensing Image Detection Based on Attention Mechanism and Multiscale Feature Fusion
    Peng, Guili
    Yang, Zijian
    Wang, Shoubin
    Zhou, Yuan
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2023, 61 : 1 - 16
  • [46] Research on lightweight algorithm for gangue detection based on improved Yolov5
    Xinpeng Yuan
    Zhibo Fu
    Bowen Zhang
    Zhengkun Xie
    Rui Gan
    Scientific Reports, 14
  • [47] Research on lightweight algorithm for gangue detection based on improved Yolov5
    Yuan, Xinpeng
    Fu, Zhibo
    Zhang, Bowen
    Xie, Zhengkun
    Gan, Rui
    SCIENTIFIC REPORTS, 2024, 14 (01)
  • [48] Object detection method based on lightweight YOLOv4 and attention mechanism in security scenes
    Peng Ding
    Huaming Qian
    Yipeng Zhou
    Shuai Chu
    Journal of Real-Time Image Processing, 2023, 20
  • [49] Object detection method based on lightweight YOLOv4 and attention mechanism in security scenes
    Ding, Peng
    Qian, Huaming
    Zhou, Yipeng
    Chu, Shuai
    JOURNAL OF REAL-TIME IMAGE PROCESSING, 2023, 20 (02)
  • [50] Research on Anomaly Network Detection Based on Self-Attention Mechanism
    Hu, Wanting
    Cao, Lu
    Ruan, Qunsheng
    Wu, Qingfeng
    SENSORS, 2023, 23 (11)