Affiliation:
1. School of Information Science and Technology, Beijing Forestry University, Beijing 100083, China
2. Engineering Research Center for Forestry-Oriented Intelligent Information Processing, Beijing 100083, China
Abstract
Real-time seed detection on resource-constrained embedded devices is essential for the agriculture industry and crop yield. However, traditional seed variety detection methods either suffer from low accuracy or cannot directly run on embedded devices with desirable real-time performance. In this paper, we focus on the detection of rapeseed varieties and design a dual-dimensional (spatial and channel) pruning method to lighten the YOLOv7 (a popular object detection model based on deep learning). We design experiments to prove the effectiveness of the spatial dimension pruning strategy. And after evaluating three different channel pruning methods, we select the custom ratio layer-by-layer pruning, which offers the best performance for the model. The results show that using custom ratio layer-by-layer pruning can achieve the best model performance. Compared to the YOLOv7 model, this approach results in mAP increasing from 96.68% to 96.89%, the number of parameters reducing from 36.5 M to 9.19 M, and the inference time per image on the Raspberry Pi 4B reducing from 4.48 s to 1.18 s. Overall, our model is suitable for deployment on embedded devices and can perform real-time detection tasks accurately and efficiently in various application scenarios.
Reference50 articles.
1. Physical and mechanical properties of rapeseed at different moisture content;Izli;Int. Agrophys.,2009
2. Mácová, K., Prabhullachandran, U., Štefková, M., Spyroglou, I., Pěnčík, A., Endlová, L., Novák, O., and Robert, H.S. (2022). Long-term high-temperature stress impacts on embryo and seed development in Brassica napus. Front. Plant Sci., 13.
3. Zhou, L., Li, Y., Hussain, N., Li, Z., Wu, D., and Jiang, L. (2016). Allelic variation of BnaC. TT2. a and its association with seed coat color and fatty acids in rapeseed (Brassica napus L.). PLoS ONE, 11.
4. Machine learning: Trends, perspectives, and prospects;Jordan;Science,2015
5. Plumpness Recognition and Quantification of Rapeseeds using Computer Vision;Li;J. Softw.,2010