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 条
[1]  
[Anonymous], 2010, International journal of computer vision, DOI DOI 10.1007/s11263-009-0275-4
[2]   Mechatronic components in apple sorting machines with computer vision [J].
Baneh, Nesar Mohammadi ;
Navid, Hosein ;
Kafashan, Jalal .
JOURNAL OF FOOD MEASUREMENT AND CHARACTERIZATION, 2018, 12 (02) :1135-1155
[3]   Comparison of convolution neural networks for smartphone image based real time classification of citrus leaf disease [J].
Barman, Utpal ;
Choudhury, Ridip Dev ;
Sahu, Diganto ;
Barman, Golap Gunjan .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2020, 177
[4]   A field-tested robotic harvesting system for iceberg lettuce [J].
Birrell, Simon ;
Hughes, Josie ;
Cai, Julia Y. ;
Iida, Fumiya .
JOURNAL OF FIELD ROBOTICS, 2020, 37 (02) :225-245
[5]  
Cao Jin-ping, 2020, Journal of Zhejiang University (Agriculture and Life Sciences), V46, P1, DOI 10.3785/j.issn.1008-9209.2019.11.171
[6]   A new method for pedicel/peduncle detection and size assessment of grapevine berries and other fruits by image analysis [J].
Cubero, Sergio ;
Diago, Maria Paz ;
Blasco, Jose ;
Tardaguila, Javier ;
Millan, Borja ;
Aleixos, Nuria .
BIOSYSTEMS ENGINEERING, 2014, 117 :62-72
[7]   Computer vision based detection of external defects on tomatoes using deep learning [J].
da Costa, Arthur Z. ;
Figueroa, Hugo E. H. ;
Fracarolli, Juliana A. .
BIOSYSTEMS ENGINEERING, 2020, 190 :131-144
[8]   On line detection of defective apples using computer vision system combined with deep learning methods [J].
Fan, Shuxiang ;
Li, Jiangbo ;
Zhang, Yunhe ;
Tian, Xi ;
Wang, Qingyan ;
He, Xin ;
Zhang, Chi ;
Huang, Wenqian .
JOURNAL OF FOOD ENGINEERING, 2020, 286
[9]   GhostNet: More Features from Cheap Operations [J].
Han, Kai ;
Wang, Yunhe ;
Tian, Qi ;
Guo, Jianyuan ;
Xu, Chunjing ;
Xu, Chang .
2020 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2020, :1577-1586
[10]   Searching for MobileNetV3 [J].
Howard, Andrew ;
Sandler, Mark ;
Chu, Grace ;
Chen, Liang-Chieh ;
Chen, Bo ;
Tan, Mingxing ;
Wang, Weijun ;
Zhu, Yukun ;
Pang, Ruoming ;
Vasudevan, Vijay ;
Le, Quoc V. ;
Adam, Hartwig .
2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2019), 2019, :1314-1324