Real-Time Grading of Defect Apples Using Semantic Segmentation Combination with a Pruned YOLO V4 Network
Open Access
Abstract
At present, the apple grading system usually conveys apples by a belt or rollers. This usually leads to low hardness or expensive fruits being bruised, resulting in economic losses. In order to realize real-time detection and classification of high-quality apples, separate fruit trays were designed to convey apples and used to prevent apples from being bruised during image acquisition. A semantic segmentation method based on the BiSeNet V2 deep learning network was proposed to segment the defective parts of defective apples. BiSeNet V2 for apple defect detection obtained a slightly better result in MPA with a value of 99.66%, which was 0.14 and 0.19 percentage points higher than DAnet and Unet, respectively. A model pruning method was used to optimize the structure of the YOLO V4 network. The detection accuracy of defect regions in apple images was further improved by the pruned YOLO V4 network. Then, a surface mapping method between the defect area in apple images and the actual defect area was proposed to accurately calculate the defect area. Finally, apples on separate fruit trays were sorted according to the number and area of defects in the apple images. The experimental results showed that the average accuracy of apple classification was 92.42%, and the F1 score was 94.31. In commercial separate fruit tray grading and sorting machines, it has great application potential.Keywords
Funding Information
- National Natural Science Foundation of China (31871523, 2019QNRC001)
- Young Elite Scientists Sponsorship Program (31871523, 2019QNRC001)
This publication has 25 references indexed in Scilit:
- Mechatronic components in apple sorting machines with computer visionJournal of Food Measurement and Characterization, 2018
- Detection of blueberry internal bruising over time using NIR hyperspectral reflectance imaging with optimum wavelengthsPostharvest Biology and Technology, 2017
- Automatic detection of defective apples using NIR coded structured light and fast lightness correctionJournal of Food Engineering, 2017
- Real time automatic bruise detection in (Apple) fruits using thermal camera2017
- Real-time pixel based early apple bruise detection using short wave infrared hyperspectral imaging in combination with calibration and glare correction techniquesFood Control, 2016
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2016
- Development of a multispectral imaging system for online detection of bruises on applesJournal of Food Engineering, 2015
- Spatial Pyramid Pooling in Deep Convolutional Networks for Visual RecognitionIEEE Transactions on Pattern Analysis and Machine Intelligence, 2015
- Principles, developments and applications of computer vision for external quality inspection of fruits and vegetables: A reviewFood Research International, 2014
- An image segmentation method for apple sorting and grading using support vector machine and Otsu’s methodComputers and Electronics in Agriculture, 2013