Apple stem/calyx real-time recognition using YOLO-v5 algorithm for fruit automatic loading system

被引:181
作者
Wang, Zhipeng [1 ,2 ]
Jin, Luoyi [1 ,2 ]
Wang, Shuai [1 ,2 ]
Xu, Huirong [1 ,2 ]
机构
[1] Zhejiang Univ, Coll Biosyst Engn & Food Sci, 866 Yuhangtang Rd, Hangzhou 310058, Peoples R China
[2] Minist Agr, Key Lab Site Proc Equipment Agr Prod, Beijing, Peoples R China
关键词
Apple stem; calyx; Real-time recognition; YOLO-v5; Algorithmic optimization; NETWORKS; DEFECTS; STEM;
D O I
10.1016/j.postharvbio.2021.111808
中图分类号
S3 [农学(农艺学)];
学科分类号
0901 ;
摘要
Fruit loading and packaging are still labor-intensive tasks during postharvest commercialization, of which the key issues is to realize the real-time detection and adjustment of fruit posture. However, fruit stem/calyx position is a key structural characteristic for fruit posture and will also affect fruit internal quality detection. In this paper, an image acquisition system based on fruit posture adjustment equipment was set up, and the YOLO-v5 algorithm based on deep learning was used to study the real-time recognition of stem/calyx of apples. First, hyperparameters were determined, and the training method of transfer learning was used to obtain better detection performance; then the networks with different widths and depths were trained to find the best baseline detection net; finally, the YOLO-v5 algorithm was optimized for this task by using detection head searching, layer pruning and channel pruning. The results showed that under the same setting conditions, YOLO-v5s had a more superior usability and could be selected as the baseline network considering detection performance, model weight size, and detection speed. After optimization, the complexity of the algorithm was further reduced. The model parameters and weight volume were decreased by about 71 %, while mean Average Precision (mAP) and F1-score (F1) were only decreased by 1.57 % and 2.52 %, respectively. The optimized algorithm could achieve real-time detection under CPU condition at a speed of 25.51 frames per second (FPS). In comparison with other deep learning target detection algorithms, the algorithm used in this paper was similar to other lightweight networks in complexity. Its mAP and F1 were 0.880 and 0.851, respectively. This was better than other one-stage object detection algorithms in detection ability, only lower than that of Faster R-CNN. The optimized YOLO-v5s achieved 93.89 % accuracy in fruit stem/calyx detection for different cultivars of apples. This research could lay the foundation for the automation of fruit loading and packing systems.
引用
收藏
页数:11
相关论文
共 37 条
[21]   Computer vision-based apple grading for golden delicious apples based on surface features [J].
Moallem P. ;
Serajoddin A. ;
Pourghassem H. .
Information Processing in Agriculture, 2017, 4 (01) :33-40
[22]   Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks [J].
Ren, Shaoqing ;
He, Kaiming ;
Girshick, Ross ;
Sun, Jian .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2017, 39 (06) :1137-1149
[23]   Grape detection, segmentation, and tracking using deep neural networks and three-dimensional association [J].
Santos, Thiago T. ;
de Souza, Leonardo L. ;
dos Santos, Andreza A. ;
Avila, Sandra .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2020, 170
[24]   An attribution-based pruning method for real-time mango detection with YOLO network [J].
Shi, Rui ;
Li, Tianxing ;
Yamaguchi, Yasushi .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2020, 169
[25]  
Tan MX, 2019, PR MACH LEARN RES, V97
[26]   Apple detection during different growth stages in orchards using the improved YOLO-V3 model [J].
Tian, Yunong ;
Yang, Guodong ;
Wang, Zhe ;
Wang, Hao ;
Li, En ;
Liang, Zize .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2019, 157 :417-426
[27]   Stem and calyx recognition on 'Jonagold' apples by pattern recognition [J].
Unay, D. ;
Gosselin, B. .
JOURNAL OF FOOD ENGINEERING, 2007, 78 (02) :597-605
[28]   Do Consumers Evaluate New and Existing Fruit Varieties in the Same Way? Modeling the Role of Search and Experience Intrinsic Attributes [J].
Uribe, Rodrigo ;
Infante, Rodrigo ;
Kusch, Carolina ;
Contador, Loreto ;
Pacheco, Igor ;
Mesa, Karen .
JOURNAL OF FOOD PRODUCTS MARKETING, 2020, 26 (08) :521-534
[29]   Detection of apple defect using laser-induced light backscattering imaging and convolutional neural network [J].
Wu, Ang ;
Zhu, Juanhua ;
Ren, Taiyong .
COMPUTERS & ELECTRICAL ENGINEERING, 2020, 81
[30]   Effect of measurement position on prediction of apple soluble solids content (SSC) by an on-line near-infrared (NIR) system [J].
Xu, Xiao ;
Xu, Huirong ;
Xie, Lijuan ;
Ying, Yibin .
JOURNAL OF FOOD MEASUREMENT AND CHARACTERIZATION, 2019, 13 (01) :506-512