{"title":"Face Mask Recognition Based on Improved YOLOv7-Tiny","authors":"Benhai Yu, Mingjie Li","doi":"10.1109/AINIT59027.2023.10212473","DOIUrl":null,"url":null,"abstract":"A face mask recognition algorithm based on the improved YOLOv7-Tiny is proposed to address the current problems such as time-consuming and poor real-time performance of manual checking whether a mask is worn. Firstly, the Backbone of YOLOv7-Tiny is replaced by the MobileNetV3 network as a whole, making the structure more lightweight. Secondly, the edge loss function uses EIOU to improve the localization accuracy of face mask edges. Finally, the CBAM attention mechanism is added to improve the model detection performance. Experiments were conducted on the AIZOO dataset, and the improved YOLOv7-Tiny increased the mAP from 93.9% to 94.2% compared to the original algorithm, with a 28.3% decrease in the number of parameters and a 37.2% decrease in inference time. The experimental results show that the improved model is not only able to reduce the model size, but also improve the accuracy and speed of face mask detection, showing good mask recognition results.","PeriodicalId":276778,"journal":{"name":"2023 4th International Seminar on Artificial Intelligence, Networking and Information Technology (AINIT)","volume":"35 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-06-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 4th International Seminar on Artificial Intelligence, Networking and Information Technology (AINIT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/AINIT59027.2023.10212473","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
A face mask recognition algorithm based on the improved YOLOv7-Tiny is proposed to address the current problems such as time-consuming and poor real-time performance of manual checking whether a mask is worn. Firstly, the Backbone of YOLOv7-Tiny is replaced by the MobileNetV3 network as a whole, making the structure more lightweight. Secondly, the edge loss function uses EIOU to improve the localization accuracy of face mask edges. Finally, the CBAM attention mechanism is added to improve the model detection performance. Experiments were conducted on the AIZOO dataset, and the improved YOLOv7-Tiny increased the mAP from 93.9% to 94.2% compared to the original algorithm, with a 28.3% decrease in the number of parameters and a 37.2% decrease in inference time. The experimental results show that the improved model is not only able to reduce the model size, but also improve the accuracy and speed of face mask detection, showing good mask recognition results.