Lightweight Mask Detection Algorithm Based on Improved YOLOv4

W. Hu, Yujia Du, Yuan Huang, Hongkun Wang, Kun Zhao
{"title":"Lightweight Mask Detection Algorithm Based on Improved YOLOv4","authors":"W. Hu, Yujia Du, Yuan Huang, Hongkun Wang, Kun Zhao","doi":"10.1109/ICCET58756.2023.00029","DOIUrl":null,"url":null,"abstract":"In view of the fact that the current YOLOv4 target detection network structure is complex and difficult to be applied to low-computing hardware platforms such as mobile terminals, a lightweight mask detection algorithm based on improved YOLOv4 is proposed. Using GhostNet to replace the backbone feature extraction network of YOLOv4, the number of network parameters is greatly reduced and the detection speed is improved. The ordinary convolution of YOLOv4 is replaced with a depthwise separable convolution to further reduce the amount of model parameters. It is proposed to introduce the CBAM attention mechanism into the feature fusion network part to enhance the feature extraction ability of space and channel. The label smoothing and learning rate cosine annealing decay algorithms are used to optimize the convergence effect of the model, and Mosaic data is used to enhance the robustness of the model. Experiments on the constructed face mask dataset show that compared with the original YOLOv4, the proposed algorithm sacrifices 1.92% of mAP, the detection speed (FPS) is increased by about 71%, and the size of model is reduced by 201. 86M. Compared with other mainstream target detection algorithms, this algorithm also has better detection effect and can meet the accuracy and real-time requirements of mask detection tasks.","PeriodicalId":170939,"journal":{"name":"2023 6th International Conference on Communication Engineering and Technology (ICCET)","volume":"62 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 6th International Conference on Communication Engineering and Technology (ICCET)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCET58756.2023.00029","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

In view of the fact that the current YOLOv4 target detection network structure is complex and difficult to be applied to low-computing hardware platforms such as mobile terminals, a lightweight mask detection algorithm based on improved YOLOv4 is proposed. Using GhostNet to replace the backbone feature extraction network of YOLOv4, the number of network parameters is greatly reduced and the detection speed is improved. The ordinary convolution of YOLOv4 is replaced with a depthwise separable convolution to further reduce the amount of model parameters. It is proposed to introduce the CBAM attention mechanism into the feature fusion network part to enhance the feature extraction ability of space and channel. The label smoothing and learning rate cosine annealing decay algorithms are used to optimize the convergence effect of the model, and Mosaic data is used to enhance the robustness of the model. Experiments on the constructed face mask dataset show that compared with the original YOLOv4, the proposed algorithm sacrifices 1.92% of mAP, the detection speed (FPS) is increased by about 71%, and the size of model is reduced by 201. 86M. Compared with other mainstream target detection algorithms, this algorithm also has better detection effect and can meet the accuracy and real-time requirements of mask detection tasks.
基于改进YOLOv4的轻量级掩码检测算法
针对当前YOLOv4目标检测网络结构复杂,难以应用于移动终端等低计算硬件平台的问题,提出了一种基于改进YOLOv4的轻量级掩码检测算法。使用GhostNet代替YOLOv4的骨干特征提取网络,大大减少了网络参数的数量,提高了检测速度。将YOLOv4的普通卷积替换为深度可分离卷积,进一步减少模型参数的数量。提出在特征融合网络部分引入CBAM注意机制,增强空间和信道的特征提取能力。利用标签平滑和学习率余弦退火衰减算法优化模型的收敛效果,利用拼接数据增强模型的鲁棒性。在构建的人脸数据集上进行的实验表明,与原始的YOLOv4算法相比,该算法的mAP值损失1.92%,检测速度提高约71%,模型尺寸减小约71%。86米。与其他主流目标检测算法相比,该算法也具有更好的检测效果,能够满足掩模检测任务的准确性和实时性要求。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信