{"title":"A Mask Detection Algorithm Based on Improved Yolov5s","authors":"Xin Zhang, Yalan Zeng, Shunyong Zhou","doi":"10.1145/3581807.3581818","DOIUrl":null,"url":null,"abstract":"Aiming at the severe form of new coronavirus epidemic prevention and control, a target detection algorithm is proposed to detect whether masks are worn in public places. The Ghostnet and SElayer modules with fewer design parameters replace the BottleneckCSP part in the original Yolov5s network, which reduces the computational complexity of the model and improves the detection accuracy. The bounding box regression loss function DIOU is optimized, the DGIOU loss function is used for bounding box regression, and the center coordinate distance between the two bounding boxes is considered to achieve a better convergence effect. In the feature pyramid, the depthwise separable convolution DW is used to replace the ordinary convolution, which further reduces the amount of parameters and reduces the loss of feature information caused by multiple convolutions. The experimental results show that compared with the yolov5s algorithm, the proposed method improves the mAP by 4.6% and the detection rate by 10.7 frame/s in the mask wearing detection. Compared with other mainstream algorithms, the improved yolov5s algorithm has better generalization ability and practicability.","PeriodicalId":292813,"journal":{"name":"Proceedings of the 2022 11th International Conference on Computing and Pattern Recognition","volume":"70 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2022 11th International Conference on Computing and Pattern Recognition","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3581807.3581818","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Aiming at the severe form of new coronavirus epidemic prevention and control, a target detection algorithm is proposed to detect whether masks are worn in public places. The Ghostnet and SElayer modules with fewer design parameters replace the BottleneckCSP part in the original Yolov5s network, which reduces the computational complexity of the model and improves the detection accuracy. The bounding box regression loss function DIOU is optimized, the DGIOU loss function is used for bounding box regression, and the center coordinate distance between the two bounding boxes is considered to achieve a better convergence effect. In the feature pyramid, the depthwise separable convolution DW is used to replace the ordinary convolution, which further reduces the amount of parameters and reduces the loss of feature information caused by multiple convolutions. The experimental results show that compared with the yolov5s algorithm, the proposed method improves the mAP by 4.6% and the detection rate by 10.7 frame/s in the mask wearing detection. Compared with other mainstream algorithms, the improved yolov5s algorithm has better generalization ability and practicability.