Submitted:
28 July 2025
Posted:
29 July 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Apple Samples Collection and Digital Image Acquisition
2.2. Algorithm for Digital Identification of Different Types of Apples by Deep Learning Techniques
2.3. Deep Learning Model Parameters and Training Setting for Identification
2.4. Evaluation Metrics
3. Results
5. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Robinson, T. Advances in apple culture worldwide, Revista Brasileira de Fruticultura 2011, 33:37-47. [CrossRef]
- Morariu, P.; Mureșan, A.; Sestras, A.; Dan, C.; Andrecan, A.F.; Borsai, O.; Militaru, M.; Mureșan, V.; Sestras, R. E. The impact of cultivar and production conditions on apple quality, Notulae Botanicae Horti Agrobotanici Cluj-Napoca, 53, 2025 14046. [CrossRef]
- https://internet-law.ru/gosts/gost/66071/.
- Ma, J.; Sun, D.W.; Qu, J.H.; Liu, D.; Pu, H.; Gao, W.H.; Zeng, X.A. Applications of computer vision for assessing quality of agri-food products: A review of recent research advances, Crit. Rev. Food Sci. Nutr. 2016, 56, 113–127. [Google Scholar] [CrossRef] [PubMed]
- Mizushima, A.; Lu, R. An image segmentation method for apple sorting and grading using support vector machine and Otsu’s method, Comput. Electron. Agric. 94, 2013, 29–37.
- Mirbod, O.; Choi, D.; Heinemann, P.H.; Marini, R.P.; He, L. On-tree apple fruit size estimation using stereo vision with deep learning-based occlusion handling, Biosystems Engineering, 226, 2023, 27–42.
- Moallem, P.; Serajoddin, A.; Pourghassem, H. Computer vision based apple grading for golden delicious apples based on surface features, Inf Process Agric 2017;4(1):33–40.
- Roberts, C.A.; Workman, J.; Reeves, J.B. Near-Infrared Spectroscopy in Agriculture, (IM Publications, Boston, 2004) A,K, Bhatt, D, Pant, AI Soc, 30, 45, 2015. [CrossRef]
- Nwosisi, S.; Dhakal, K.; Nandwani, D.; Raji, J.I. Krishnan, S.; Beovides-García, Y. Genetic Diversity in Vegetable and Fruit Crops, In: Nandwani, D, (eds) Genetic Diversity in Horticultural Plants, Sustainable Development and Biodiversity, vol 22, Springer, Cham, 2019. [CrossRef]
- Campeanu, G.; Neata, G.; Darjanschi, G. Chemical Composition of the Fruits of Several Apple Cultivars Growth as Biological Crop Not, Bot, Hort, Agrobot, Cluj 37 (2) 2009, 161-164.
- Pilco, A.; Moya, V.; Quito, A.; Vásconez, J.P; Limaico, M. Image Processing-Based System for Apple Sorting, Journal of Image and Graphics, Vol. 12, No. 4, 2024, 362-371. [CrossRef]
- Miranda, J.; Arno, J.; Gene-Mola, J.; Lordan, J.; Asin, L.; Gregorio, E. Assessing automatic data processing algorithms for RGB-D cameras to predict fruit size and weight in apples, Computers and Electronics in Agriculture, 214, 2023, 1-15.
- Li, Y.; Feng, X.; Liu, Y. et al. Apple quality identification and classification by image processing based on convolutional neural networks, Sci Rep 11, 16618, 2021. [CrossRef]
- Garrido-Novell, C.; Pérez-Marin, D.; Amigo, J.M.; Fernández-Novales, J.; Guerrero, J.E.; Garrido-Varo, A. Grading and color evolution of apples using RGB and hyperspectral imaging vision cameras, J. Food Eng, 113, 2012, 281–288.
- Li, Q.; Wang, M.; Gu, W. “Computer vision based system for apple surface defect detection,” Computers and Electronics in Agriculture, vol. 36, no, 2-3, 2002, 215–223.
- Xiao-bo, Z.; Jie-wen, Z.; Yanxiao, L.; Holmes, M. In-line detection of apple defects using three color cameras system, Computers and Electronics in Agriculture, vol. 70, no. 1, 2010, 129–134.
- Lee, J.H.; Vo, H.T.; Kwon, G.J.; Kim, H.G.; Kim, J.Y. Multi-Camera-Based Sorting System for Surface Defects of Apples, Sensors 2023, 23, 3968. [CrossRef]
- Amrutha, M.; Kousalya, S.; Ananya, R.; Harshitha, D. A. Grading of Apple Fruit Using Image Processing Techniques, International Journal of Advanced Research in Science, Communication and Technology (IJARSCT) Volume 8, Issue 1, 2021, ISSN (Online) 2581-9429.
- Kamilaris, A. Prenafeta-Boldú, F. X. Deep learning in agriculture: a survey, Computers and Electronics in Agriculture, vol. 147, 2018, 70–90.
- Zhu, L.; Spachos, P.; Pensini, E.; Plataniotis, K. N. Deep learning and machine vision for food processing: A survey, Current Research in Food Science, 4, 2021, 233–249. [CrossRef]
- Ibarra-Pérez, T.; Jaramillo-Martínez, R.; Correa-Aguado, H.C.; Ndjatchi, C.; Martínez-Blanco, M.D.R.; Guerrero-Osuna, H.A.; Mirelez-Delgado, F.D.; Casas-Flores, J.I.; Reveles-Martínez, R.; Hernández-González, U.A. A Performance Comparison of CNN Models for Bean Phenology Classification Using Transfer Learning Techniques, AgriEngineering 6, 2024, 841–857. [CrossRef]
- Yulita, I.N.; Rambe, M.F.R.; Sholahuddin, A.; Prabuwono, A.S. Convolutional Neural Network Algorithm for Pest Detection Using GoogleNet, AgriEngineering 5, 2023, 2366–2380. [CrossRef]
- Rady, A.; Fisher, O.; El-Banna, A.A.A.; Emasih, H.H.; Watson, N.J. Computer Vision and Transfer Learning for Grading of Egyptian Cotton Fibres, AgriEngineering 2025, 7, 127.
- Yunong, T.; Guodong, Y,; Zhe, W.; En, L.; Zize, L. Detection of Apple Lesions in Orchards Based on Deep Learning Methods of CycleGAN and YOLOV3-Dense, Journal of Sensors Volume 2019, 13 pages. [CrossRef]
- Yanfei, L.; Xianying, F.; Yandong, L.; Xingchang, H. Apple quality identification and classification by image processing based on convolutional neural networks, Scientific Reports, 11:16618, 2021. [CrossRef]
- https://unece.org/sites/default/files/2020-12/50_Apples.pdf.
- Yuesheng, F.; Jian, S.; Fuxiang, X.; Yang, B.; Xiang, Z.; Peng, G.; Zhengtao, W.; Shengqiao, X. Circular Fruit and Vegetable Classification Based on Optimized GoogLeNet, IEEE Access 2021, 9, 113599–1135611.
- Iandola, F.N.; Han, S.; Moskewicz, M.W.; Ashraf, K.; Dally, W.J.; Keutzer, K. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and<0.5 MB model size, arXiv 2016. arXiv:1602.07360.
- Zeng, K.; Liu, J.; Jiang, Z.; Xu, D. A Scaling Transition Method from SGDM to SGD with 2ExpLR Strategy, Appl, Sci, 2022, 12, 12023. [CrossRef]
- Alikhanov, J.; Moldazhanov, A.; Kulmakhambetova, A.; Zinchenko, D.; Nurtuleuov, A.; Shynybay, Z.; Georgieva, T.; Daskalov, P. Methodology for Determining the Main Physical Parameters of Apples by Digital Image Analysis, AgriEngineering 2025, 7, 57. [CrossRef]
- Qin, J.; Hu, T.; Yuan, J.; Liu, Q.; Wang,W.; Liu, J.; Guo, L.; Song, G. Deep-Learning-Based Rice Phenological Stage Recognition. Remote Sens. 2023, 15, 2891.












| Value | TA, % | TL | VA, % | VL | TA, % | TL | VA, % | VL | ||||
| Solver Sgdm | ||||||||||||
| CNN | SqueezeNet | SqueezeNet | SqueezeNet | SqueezeNet | GoogLeNet | GoogLeNet | GoogLeNet | GoogLeNet | ||||
| Min | 90.91 | 0.0040 | 90.33 | 0.1373 | 100.00 | 0.0002 | 91.67 | 0.1351 | ||||
| Max | 100.00 | 0.1166 | 96.67 | 0.3962 | 100.00 | 0.0108 | 96.00 | 0.3595 | ||||
| Average value | 98.70 | 0.0343 | 94.05 | 0.2232 | 100.00 | 0.0032 | 93.14 | 0.2401 | ||||
| Solver Adam | ||||||||||||
| CNN | SqueezeNet | SqueezeNet | SqueezeNet | SqueezeNet | GoogLeNet | GoogLeNet | GoogLeNet | GoogLeNet | ||||
| Min | 100.00 | 0.0025 | 94.00 | 0.1453 | 100.00 | 0.0002 | 91.33 | 0.1251 | ||||
| Max | 100.00 | 0.0304 | 97.00 | 0.3052 | 100.00 | 0.0240 | 97.33 | 0.2841 | ||||
| Average value | 100.00 | 0.0113 | 95.43 | 0.2078 | 100.00 | 0.0048 | 95.00 | 0.2070 | ||||
| Solver RMSprop | ||||||||||||
| CNN | SqueezeNet | SqueezeNet | SqueezeNet | SqueezeNet | GoogLeNet | GoogLeNet | GoogLeNet | GoogLeNet | ||||
| Min | 100.00 | 0.0002 | 94.67 | 0.1325 | 91.67 | 0.0002 | 94.67 | 0.0948 | ||||
| Max | 100.00 | 0.0748 | 96.33 | 0.2117 | 100.00 | 0.0069 | 98.00 | 0.1900 | ||||
| Average value | 100.00 | 0.0111 | 95.33 | 0.1776 | 98.81 | 0.0027 | 96.62 | 0.1254 | ||||
| DNN | Solver | Initial Learning Rate (ILR) | TP | FP | FN | Accuracy, [%] | Precision, [%] | Recall, [%] | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Ainur | |||||||||||
| SqueezeNet | Sgdm | 0.0003 | 59 | 240 | 0 | 1 | 99.67 | 100 | 98.3 | ||
| Adam | 0.0004 | 60 | 239 | 0 | 1 | 99.67 | 98.4 | 100 | |||
| RMSprop | 0.0003 | 60 | 239 | 1 | 0 | 99.67 | 98.4 | 100 | |||
| GoogLeNet | Sgdm | 0.00035 | 60 | 237 | 3 | 0 | 99.00 | 95.2 | 100 | ||
| Adam | 0.0001 | 60 | 240 | 0 | 0 | 100.00 | 100 | 100 | |||
| RMSprop | 0.0005 | 60 | 240 | 0 | 0 | 100.00 | 100 | 100 | |||
| Aport | |||||||||||
| SqueezeNet | Sgdm | 0.0003 | 60 | 234 | 6 | 0 | 98.00 | 90.9 | 100 | ||
| Adam | 0.0004 | 59 | 235 | 5 | 1 | 98.00 | 92.2 | 98.3 | |||
| RMSprop | 0.0003 | 59 | 235 | 5 | 1 | 98.00 | 92.2 | 98.3 | |||
| GoogLeNet | Sgdm | 0.00035 | 59 | 235 | 5 | 1 | 98.00 | 92.2 | 98.3 | ||
| Adam | 0.0001 | 60 | 235 | 5 | 0 | 98.33 | 92.3 | 100 | |||
| RMSprop | 0.0005 | 60 | 236 | 4 | 0 | 98.67 | 93.8 | 100 | |||
| Kazakhski Yubileynyi | |||||||||||
| SqueezeNet | Sgdm | 0.0003 | 55 | 241 | 1 | 3 | 98.67 | 98.2 | 91.7 | ||
| Adam | 0.0004 | 58 | 239 | 1 | 2 | 99.00 | 98.3 | 96.7 | |||
| RMSprop | 0.0003 | 54 | 240 | 0 | 6 | 98.00 | 100 | 90 | |||
| GoogLeNet | Sgdm | 0.00035 | 57 | 240 | 0 | 3 | 99.00 | 100 | 95 | ||
| Adam | 0.0001 | 57 | 240 | 0 | 3 | 99.00 | 100 | 95 | |||
| RMSprop | 0.0005 | 58 | 240 | 0 | 2 | 99.33 | 100 | 96.7 | |||
| Nursat | |||||||||||
| SqueezeNet | Sgdm | 0.0003 | 59 | 240 | 0 | 1 | 99.67 | 100 | 98.3 | ||
| Adam | 0.0004 | 58 | 240 | 0 | 2 | 99.33 | 100 | 96.7 | |||
| RMSprop | 0.0003 | 58 | 239 | 1 | 2 | 99.00 | 98.3 | 96.7 | |||
| GoogLeNet | Sgdm | 0.00035 | 56 | 239 | 1 | 4 | 98.33 | 98.2 | 93.3 | ||
| Adam | 0.0001 | 59 | 239 | 1 | 1 | 99.33 | 98.3 | 98.3 | |||
| RMSprop | 0.0005 | 59 | 239 | 1 | 1 | 99.33 | 98.3 | 98.3 | |||
| Sinap Almatynski | |||||||||||
| SqueezeNet | Sgdm | 0.0003 | 57 | 237 | 3 | 3 | 98.00 | 95 | 95 | ||
| Adam | 0.0004 | 56 | 238 | 2 | 4 | 98.00 | 96.6 | 93.3 | |||
| RMSprop | 0.0003 | 58 | 236 | 4 | 2 | 98.00 | 93.5 | 96.7 | |||
| GoogLeNet | Sgdm | 0.00035 | 56 | 237 | 3 | 4 | 97.67 | 94.9 | 93.3 | ||
| Adam | 0.0001 | 56 | 238 | 2 | 4 | 98.00 | 96.6 | 93.3 | |||
| RMSprop | 0,0005 | 57 | 239 | 1 | 3 | 98,67 | 98,3 | 95 | |||
| Apple Variety |
Validation set | |||||
|---|---|---|---|---|---|---|
| CNN model | Solver | ILR | Accuracy [%] | Precision [%] | Recall [%] |
|
| Ainur | GoogLeNet | RMSprop | 0.0005 | 100.00 | 100.00 | 100.00 |
| Aport | GoogLeNet | RMSprop | 0.0005 | 98.67 | 93.80 | 100.00 |
| Kazakhski Yubileinyi | GoogLeNet | RMSprop | 0.0005 | 99.33 | 100.00 | 96.70 |
| Nursat | SqeezeNet | Sgdm | 0.0003 | 99.67 | 100.00 | 98.30 |
| Sinap Amaty |
GoogLeNet | RMSprop | 0.0005 | 98.67 | 98.30 | 95.00 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).