Method for Fruit and Vegetable Automatic Recognition Based on Residual Block and Attention Mechanism

被引:0
作者
Yu Q. [1 ]
Zhang R. [1 ,2 ]
Li D. [1 ]
Yun Y. [1 ,3 ]
Wang Z. [1 ,3 ]
机构
[1] College of Mechanical and Electrical Engineering, Qingdao Agricultural University, Qingdao
[2] College of Intelligent Systems Science and Engineering, Harbin Engineering University, Harbin
[3] Shandong Collaborative Innovation Center of Major Crop Mechanized Production Equipment, Qingdao Agricultural University, Qingdao
来源
Nongye Jixie Xuebao/Transactions of the Chinese Society for Agricultural Machinery | 2023年 / 54卷
关键词
attention mechanism; fruits and vegetables recognition; residual block; YOLO v5;
D O I
10.6041/j.issn.1000-1298.2023.S2.025
中图分类号
学科分类号
摘要
To solve the problems of low efficiency and high cost in fruits and vegetables recognition, a fruit and vegetable recognition model based on residual block and attention mechanism was proposed, and successfully deployed in fruit and vegetable intelligent recognition equipment. The fruit and vegetable automatic recognition device was composed of Raspberry Pi, STM32F103ZET6, camera, weighing sensor, processor, display screen, micro printer, binding machine and power supply. The central controller interacted with the display screen to display various parameters in real time. The image and quality of the object to be measured were collected through the camera and weighing sensor. The fruit and vegetable automatic recognition model deployed in the Raspberry Pi could accurately identify the fruits and vegetables. At the same time, it cooperated with MCU STM32F103ZET6 to print fruit and vegetable related information and control the tying machine to seal and pack. Based on YOLO v5 network, an automatic recognition model RB + CBAM - YOLO v5 was constructed by adding residual blocks and attention mechanism. The network was trained with the self-made data set, and six kinds of networks were compared, and the optimal network was selected for the device side detection test. The experimental results showed that the accuracy rate, recall rate and mAP0.5 of RB + CBAM - YOLO v5 were 83. 55%, 96.08% and 96.20%, respectively, which were 4.47 percentage points, 1. 10 percentage points and 0.90 percentage points higher than those of YOLO v5. The RB + CBAM - YOLO v5 model was deployed in the embedded device Raspberry Pi, and the device could realize accurate identification, automatic weighing, printing slip and fast packaging functions, which could meet the needs of fruits and vegetables identification and unsold devices. © 2023 Chinese Society of Agricultural Machinery. All rights reserved.
引用
收藏
页码:214 / 222
页数:8
相关论文
共 30 条
[1]  
PAN Mei, Application of image recognition in classification and recognition of fruits and vegetables [J], Modern Agricultural Science and Technology, 16, pp. 257-259, (2021)
[2]  
BHARGAVA A, BANSAL A., Fruits and vegetables quality evaluation using computer vision : a review, Journal of King Saud University-Computer and Information Sciences, 33, 3, pp. 243-257, (2018)
[3]  
TAO Huawei, ZHAO Li, XI Ji, Et al., Fruits and vegetables recognition based on color and texture features, Transactions of the CSAE, 30, 16, pp. 305-311, (2014)
[4]  
DUBEY R S, JALAL S A., Application of image processing in fruit and vegetable analysis: a review, Journal of Intelligent Systems, 24, 4, pp. 405-424, (2015)
[5]  
PENG H, SHAO Y, CHEN K, Et al., Research on multi-class fruits recognition based on machine vision and SVM, IFAC PapersOnLine, 51, 17, pp. 817-821, (2018)
[6]  
DILL H S, MURUGESAN G, KHEHRA B S, Et al., Fruit recognition from images using deep learning applications, Multimedia Tools and Applications, 81, 23, pp. 33269-33290, (2022)
[7]  
NARANJO-TORRES J, MORA M, HERNANDEZ-GARCIA R, Et al., A review of convolutional neural network applied to fruit image processing, Applied Sciences, 10, 10, (2020)
[8]  
ZHANG Y, DONG Z, CHEN X, Et al., Image based fruit category classification by 13-layer deep convolutional neural network and data augmentation, Multimedia Tools and Applications, 78, 3, pp. 3613-3632, (2019)
[9]  
WANG S, CHEN Y., Fruit category classification via an eight-layer convolutional neural network with parametric rectified linear unit and dropout technique, Multimedia Tools and Applications, 79, pp. 15117-15133, (2020)
[10]  
KATARZYNA R, PAWEL M., A vision-based method utilizing deep convolutional neural networks for fruit variety classification in uncertainty conditions of retail sales, Applied Sciences, 9, 19, (2019)