Guoyan Yu, Ruilin Cai, Yingtong Luo, Mingxin Hou, Ruoling Deng
{"title":"A-pruning: a lightweight pineapple flower counting network based on filter pruning","authors":"Guoyan Yu, Ruilin Cai, Yingtong Luo, Mingxin Hou, Ruoling Deng","doi":"10.1007/s40747-023-01261-7","DOIUrl":null,"url":null,"abstract":"<p>During pineapple cultivation, detecting and counting the number of pineapple flowers in real time and estimating the yield are essential. Deep learning methods are more efficient in real-time performance than traditional manual detection. However, existing deep learning models are characterized by low detection speeds and cannot be applied in real time on mobile devices. This paper presents a lightweight model in which filter pruning compresses the YOLOv5 network. An adaptive batch normalization layer evaluation mechanism is introduced to the pruning process to evaluate the performance of the subnetwork. With this approach, the network with the best performance can be found quickly after pruning. Then, an efficient channel attention mechanism is added for the pruned network to constitute a new YOLOv5_E network. Our findings demonstrate that the proposed YOLOv5_E network attains an accuracy of 71.7% with a mere 1.7 M parameters, a model size of 3.8 MB, and an impressive running speed of 178 frames per second. Compared to the original YOLOv5, YOLOv5_E shows a 0.9% marginal decrease in accuracy; while, the number of parameters and the model size are reduced by 75.8% and 73.8%, respectively. Moreover, the running speed of YOLOv5_E is nearly twice that of the original. Among the ten networks evaluated, YOLOv5_E boasts the fastest detection speed and ranks second in detection accuracy. Furthermore, YOLOv5_E can be integrated with StrongSORT for real-time detection and counting on mobile devices. We validated this on the NVIDIA Jetson Xavier NX development board, where it achieved an average detection speed of 24 frames per second. The proposed YOLOv5_E network can be effectively used on agricultural equipment such as unmanned aerial vehicles, providing technical support for the detection and counting of crops on mobile devices.</p>","PeriodicalId":10524,"journal":{"name":"Complex & Intelligent Systems","volume":"10 1","pages":""},"PeriodicalIF":5.0000,"publicationDate":"2023-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Complex & Intelligent Systems","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1007/s40747-023-01261-7","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0
Abstract
During pineapple cultivation, detecting and counting the number of pineapple flowers in real time and estimating the yield are essential. Deep learning methods are more efficient in real-time performance than traditional manual detection. However, existing deep learning models are characterized by low detection speeds and cannot be applied in real time on mobile devices. This paper presents a lightweight model in which filter pruning compresses the YOLOv5 network. An adaptive batch normalization layer evaluation mechanism is introduced to the pruning process to evaluate the performance of the subnetwork. With this approach, the network with the best performance can be found quickly after pruning. Then, an efficient channel attention mechanism is added for the pruned network to constitute a new YOLOv5_E network. Our findings demonstrate that the proposed YOLOv5_E network attains an accuracy of 71.7% with a mere 1.7 M parameters, a model size of 3.8 MB, and an impressive running speed of 178 frames per second. Compared to the original YOLOv5, YOLOv5_E shows a 0.9% marginal decrease in accuracy; while, the number of parameters and the model size are reduced by 75.8% and 73.8%, respectively. Moreover, the running speed of YOLOv5_E is nearly twice that of the original. Among the ten networks evaluated, YOLOv5_E boasts the fastest detection speed and ranks second in detection accuracy. Furthermore, YOLOv5_E can be integrated with StrongSORT for real-time detection and counting on mobile devices. We validated this on the NVIDIA Jetson Xavier NX development board, where it achieved an average detection speed of 24 frames per second. The proposed YOLOv5_E network can be effectively used on agricultural equipment such as unmanned aerial vehicles, providing technical support for the detection and counting of crops on mobile devices.
期刊介绍:
Complex & Intelligent Systems aims to provide a forum for presenting and discussing novel approaches, tools and techniques meant for attaining a cross-fertilization between the broad fields of complex systems, computational simulation, and intelligent analytics and visualization. The transdisciplinary research that the journal focuses on will expand the boundaries of our understanding by investigating the principles and processes that underlie many of the most profound problems facing society today.