Shanshan Hu , Guoxin Tang , Kang Yu , Wen Chen , Zhiwei Wang
{"title":"Embedded YOLO v8: Real-time detection of sugarcane nodes in complex natural environments by rapid structural pruning method","authors":"Shanshan Hu , Guoxin Tang , Kang Yu , Wen Chen , Zhiwei Wang","doi":"10.1016/j.measurement.2024.116291","DOIUrl":null,"url":null,"abstract":"<div><div>In the exploring of sugarcane intelligent harvesting technology, the target detection task of sugarcane node faces serious challenges on low detection accuracy affected by complex natural environment and the time-consuming task to lightweight algorithm structure. In addition, the classical target detection model, such as YOLO (You Only Look Once), with requirement of huge computationally ability puts huge computing pressure to the embedded device for sugarcane nodes detection. In order to solve these problems, this study proposed an improved YOLOv8n-ghost, which adopted Ghost module to build lightweight network and reduce model redundancy while ensuring performance. The dataset was extended and diversified by data classification and enhancement to increasing the robustness and generalization ability of the model. The structured pruning method based on DepGraph (Dependency Graph) was adopted to compress the optimized model, which greatly reduced the complexity of the model. To reduce experimentation time and computational cost, a rapid method for the optimal pruning rate was proposed by combination of big-small step size to quickly achieve the optimal pruning rate with shorter experiment time and satisfied accuracy. By comparison of different pruning methods and lightweight methods, the AP (Average Precision) of model Pruned 65 %-YOLOv8n-ghost was > 90 % with only 0.53 M parameters and 2.2G FLOPs. Finally, the model was accelerated with TensorRT and tested in the embedded device. The real-time speed of the improved model approached 30 frames per second, which was 200 % higher than before and met the requirements of real-time detection of sugarcane node.</div></div>","PeriodicalId":18349,"journal":{"name":"Measurement","volume":"242 ","pages":"Article 116291"},"PeriodicalIF":5.2000,"publicationDate":"2024-11-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Measurement","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0263224124021766","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
In the exploring of sugarcane intelligent harvesting technology, the target detection task of sugarcane node faces serious challenges on low detection accuracy affected by complex natural environment and the time-consuming task to lightweight algorithm structure. In addition, the classical target detection model, such as YOLO (You Only Look Once), with requirement of huge computationally ability puts huge computing pressure to the embedded device for sugarcane nodes detection. In order to solve these problems, this study proposed an improved YOLOv8n-ghost, which adopted Ghost module to build lightweight network and reduce model redundancy while ensuring performance. The dataset was extended and diversified by data classification and enhancement to increasing the robustness and generalization ability of the model. The structured pruning method based on DepGraph (Dependency Graph) was adopted to compress the optimized model, which greatly reduced the complexity of the model. To reduce experimentation time and computational cost, a rapid method for the optimal pruning rate was proposed by combination of big-small step size to quickly achieve the optimal pruning rate with shorter experiment time and satisfied accuracy. By comparison of different pruning methods and lightweight methods, the AP (Average Precision) of model Pruned 65 %-YOLOv8n-ghost was > 90 % with only 0.53 M parameters and 2.2G FLOPs. Finally, the model was accelerated with TensorRT and tested in the embedded device. The real-time speed of the improved model approached 30 frames per second, which was 200 % higher than before and met the requirements of real-time detection of sugarcane node.
期刊介绍:
Contributions are invited on novel achievements in all fields of measurement and instrumentation science and technology. Authors are encouraged to submit novel material, whose ultimate goal is an advancement in the state of the art of: measurement and metrology fundamentals, sensors, measurement instruments, measurement and estimation techniques, measurement data processing and fusion algorithms, evaluation procedures and methodologies for plants and industrial processes, performance analysis of systems, processes and algorithms, mathematical models for measurement-oriented purposes, distributed measurement systems in a connected world.