Classification of Apple Color and Deformity Using Machine Vision Combined with CNN
Dekai Qiu,
Tianhao Guo,
Shengqi Yu,
Wei Liu,
Lin Li,
Zhizhong Sun,
Hehuan Peng () and
Dong Hu ()
Additional contact information
Dekai Qiu: College of Optical, Mechanical and Electrical Engineering, Zhejiang A&F University, Hangzhou 311300, China
Tianhao Guo: College of Optical, Mechanical and Electrical Engineering, Zhejiang A&F University, Hangzhou 311300, China
Shengqi Yu: College of Optical, Mechanical and Electrical Engineering, Zhejiang A&F University, Hangzhou 311300, China
Wei Liu: College of Optical, Mechanical and Electrical Engineering, Zhejiang A&F University, Hangzhou 311300, China
Lin Li: School of Agricultural Engineering, Jiangsu University, Zhenjiang 212013, China
Zhizhong Sun: College of Chemistry and Materials Engineering, Zhejiang A&F University, Hangzhou 311300, China
Hehuan Peng: College of Optical, Mechanical and Electrical Engineering, Zhejiang A&F University, Hangzhou 311300, China
Dong Hu: College of Optical, Mechanical and Electrical Engineering, Zhejiang A&F University, Hangzhou 311300, China
Agriculture, 2024, vol. 14, issue 7, 1-14
Abstract:
Accurately classifying the quality of apples is crucial for maximizing their commercial value. Deep learning techniques are being widely adopted for apple quality classification tasks, achieving impressive results. While existing research excels at classifying apple variety, size, shape, and defects, color and deformity analysis remain an under-explored area. Therefore, this study investigates the feasibility of utilizing convolutional neural networks (CNN) to classify the color and deformity of apples based on machine vision technology. Firstly, a custom-assembled machine vision system was constructed for collecting apple images. Then, image processing was performed to extract the largest fruit diameter from the 45 images taken for each apple, establishing an image dataset. Three classic CNN models (AlexNet, GoogLeNet, and VGG16) were employed with parameter optimization for a three-category classification task (non-deformed slice–red apple, non-deformed stripe–red apple, and deformed apple) based on apple features. VGG16 achieved the best results with an accuracy of 92.29%. AlexNet and GoogLeNet achieved 91.66% and 88.96% accuracy, respectively. Ablation experiments were performed on the VGG16 model, which found that each convolutional block contributed to the classification task. Finally, prediction using VGG16 was conducted with 150 apples and the prediction accuracy was 90.50%, which was comparable to or better than other existing models. This study provides insights into apple classification based on color and deformity using deep learning methods.
Keywords: apple classification; color; convolutional neural network; deformity; machine vision (search for similar items in EconPapers)
JEL-codes: Q1 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 (search for similar items in EconPapers)
Date: 2024
References: View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2077-0472/14/7/978/pdf (application/pdf)
https://www.mdpi.com/2077-0472/14/7/978/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jagris:v:14:y:2024:i:7:p:978-:d:1420607
Access Statistics for this article
Agriculture is currently edited by Ms. Leda Xuan
More articles in Agriculture from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().