Mei Huang, Yongxin Chang, Liangbao Zhang, Shuaifeng Jiao
{"title":"A lightweight YOLOv5 garbage detection and classification method","authors":"Mei Huang, Yongxin Chang, Liangbao Zhang, Shuaifeng Jiao","doi":"10.1117/12.2653673","DOIUrl":null,"url":null,"abstract":"Aiming at the problems of unclear, difficult, and inefficient classification of traditional manual waste, and the difficulty of deploying large existing garbage classification network models, a lightweight garbage detection and classification network S-YOLOv5 is designed based on YOLOv5s. First, a garbage dataset containing 18 types of common household garbage is constructed and labeled according to the principles of garbage classification; secondly, a module combining shufflenetv2 and CoordAttention was introduced to replace the YOLOv5s backbone network, and the ReLU activation function in the shufflenet module was substituted by FReLU; finally the PANet structure was replaced by the BiFPN structure, so as to reduce the model complexity and achieve lightweight while maintaining a high mAP. The experimental results show that the size of S-YOLOv5 is only 2.6MB, which is about 1/6 of the original network size, and the mAP is 80.2%. The size of the proposed network is reduced while maintaining high accuracy, making it more suitable for deployment in smart devices.","PeriodicalId":253792,"journal":{"name":"Conference on Optics and Communication Technology","volume":"53 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Conference on Optics and Communication Technology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1117/12.2653673","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Aiming at the problems of unclear, difficult, and inefficient classification of traditional manual waste, and the difficulty of deploying large existing garbage classification network models, a lightweight garbage detection and classification network S-YOLOv5 is designed based on YOLOv5s. First, a garbage dataset containing 18 types of common household garbage is constructed and labeled according to the principles of garbage classification; secondly, a module combining shufflenetv2 and CoordAttention was introduced to replace the YOLOv5s backbone network, and the ReLU activation function in the shufflenet module was substituted by FReLU; finally the PANet structure was replaced by the BiFPN structure, so as to reduce the model complexity and achieve lightweight while maintaining a high mAP. The experimental results show that the size of S-YOLOv5 is only 2.6MB, which is about 1/6 of the original network size, and the mAP is 80.2%. The size of the proposed network is reduced while maintaining high accuracy, making it more suitable for deployment in smart devices.