Perfect pick: A comparative CNN framework for visual quality assessment of fruits and vegetables
Consumer demand for high-quality fresh fruits and vegetables continues to increase. The traditional methods applied for the selection of fruits and vegetables rely on subjective visual assessment, which has proven inadequate, leading to unnecessary food waste and inconsistencies. An artificial intelligence-based image-classification framework is presented to assist with visual assessment of produce quality. Beyond consumer usage, the trained models are well-suited for integration into robotic and automated systems that can be used in greenhouses, supermarkets, fresh markets, and distribution warehouses, where the automated classification of products by healthiness and freshness is necessary. Deep learning models—VGG- 16, VGG-19, ResNet-50, and MobileNet—were compared in the current work to determine the best-suited model to handle this classification task. The dataset comprised 10 categories: five fruits—pomegranate, orange, apple, papaya, and banana—and five vegetables—tomato, radish, capsicum, potato, and cauliflower. After hyperparameter tuning, ResNet-50 achieved the highest classification accuracy of 96.1%, outperforming the other models.
Apostolopoulos, I. D., Tzani, M., & Aznaouridis, S. I. (2023). A general machine learning model for assessing fruit quality using deep image features. AI, 4(4), 812-830. https://doi.org/10.3390/ai4040041
Bargoti, S., & Underwood, J. (2017). Deep fruit detection in orchards. In: Proceedings of the 2017 IEEE International Conference on Robotics and Automation (ICRA), May 29-June 3, 2017, Singapore. 3626-3633. https://doi.org/10.1109/ICRA.2017.7989417
Bhargava, A., & Bansal, A. (2020). Automatic detection and grading of multiple fruits by machine learning. Food Analytical Methods, 13(3), 751-761. https://doi.org/10.1007/s12161-019-01690-6.
Bhargava, A., Bansal, A., & Goyal, V. (2022). Machine learning–based detection and sorting of multiple vegetables and fruits. Food Analytical Methods, 15(1), 228-242. https://doi.org/10.1007/s12161-021-02086-1
Bharman, P., Ahmad Saad, S., Khan, S., Jahan, I., Ray, M., & Biswas, M. (2022). Deep Learning in Agriculture: A Review. Asian Journal of Research in Computer Science, 28–47. https://doi.org/10.9734/ajrcos/2022/v13i230311
Chen, J., Zhao, W., Cui, Y., Wei, C., Polat, K., & Alenezi, F. (2026). A review of EEG-based driver fatigue detection: Nonlinear dynamics, brain networks, and deep learning advances. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 16(2), e70099. https://doi.org/10.1002/widm.70099
Devanna, R. P., Milella, A., Marani, R., Garofalo, S. P., Vivaldi, G. A., Pascuzzi, S., Galati, R., & Reina, G. (2022). In-field automatic identification of pomegranates using a farmer robot. Sensors, 22(15), 5821. https://doi.org/10.3390/s22155821
Fahad, L. G., Tahir, S. F., Rasheed, U., Saqib, H., Hassan, M., & Alquhayz, H. (2022). Fruits and vegetables freshness categorization using deep learning. Computers, Materials & Continua, 71(3), 5083. https://doi.org/10.32604/cmc.2022.023357
Garillos-Manliguez, C. A., & Chiang, J. Y. (2021). Multimodal deep learning and visible-light and hyperspectral imaging for fruit maturity estimation. Sensors, 21(4), 1288. https://doi.org/10.3390/s21041288
Gené-Mola, J., Vilaplana, V., Rosell-Polo, J. R., Morros, J. R., Ruiz-Hidalgo, J., & Gregorio, E. (2019). Multi-modal deep learning for Fuji apple detection using RGB-D cameras and their radiometric capabilities. Computers and Electronics in Agriculture, 162, 689-698. https://doi.org/10.1016/j.compag.2019.05.016
Gong, X., & Wu, Q. (2025). Fruit detection methods based on deep learning in agricultural planting: A systematic literature review. IEEE Access, 13, 96092–96110. https://doi.org/10.1109/access.2025.3573364
Grinblat, G. L., Uzal, L. C., Larese, M. G., & Granitto, P. M. (2016). Deep learning for plant identification using vein morphological patterns. Computers and Electronics in Agriculture, 127, 418-424. https://doi.org/10.1016/j.compag.2016.07.003
Hasan, A. M., Sohel, F., Diepeveen, D., Laga, H., & Jones, M. G. (2021). A survey of deep learning techniques for weed detection from images. Computers and Electronics in Agriculture, 184, 106067. https://doi.org/10.1016/j.compag.2021.106067
Hossain, M. S., Al-Hammadi, M., & Muhammad, G. (2019). Automatic fruit classification using deep learning for industrial applications. IEEE Transactions on Industrial Informatics, 15(2), 1027-1034. https://doi.org/10.1109/TII.2018.2875149
Ismail, N., & Malik, O. A. (2022). Real-time visual inspection system for grading fruits using computer vision and deep learning techniques. Information Processing in Agriculture, 9(1), 24-37. https://doi.org/10.1016/j.inpa.2021.01.005
Jackulin, C., & Murugavalli, S. J. M. S. (2022). A comprehensive review on detection of plant disease using machine learning and deep learning approaches. Measurement: Sensors, 24, 100441. https://doi.org/10.1016/j.measen.2022.100441
Jawarneh, M., Marwanto, A., Syamsuar, D., & Kusnandar, M. (2025). A comparative study of convolutional neural networks and vision transformers for fruit classification. International Journal of Advances in Artificial Intelligence and Machine Learning, 2(2), 104-112. https://doi.org/10.58723/ijaaiml.v2i2.435
Joudah, A., Mallat, S., & Zrigui, M. (2021). Analyzing satellite images by applying deep learning instance segmentation of agricultural fields. Periodicals of Engineering and Natural Sciences, 9(4), 1056-1069. https://doi.org/10.21533/pen.v9.i4.1007
Kamilaris, A., Kartakoullis, A., & Prenafeta-Boldú, F. X. (2017). A review on the practice of big data analysis in agriculture. Computers and Electronics in Agriculture, 143, 23-37. https://doi.org/10.1016/j.compag.2017.09.037
Kamilaris, A., & Prenafeta-Boldú, F. X. (2018). Deep learning in agriculture: A survey. Computers and Electronics in Agriculture, 147, 70-90. https://doi.org/10.1016/j.compag.2018.02.016
Kang, H., & Chen, C. (2019). Fruit detection and segmentation for apple harvesting using visual sensor in orchards. Sensors, 19(20), 4599. https://doi.org/10.3390/s19204599
Kanupuru, P., & Reddy, N. U. (2022). A deep learning approach to detect the spoiled fruits. WSEAS Transactions on Computer Research, 10, 74-87. https://doi.org/10.37394/232018.2022.10.10
Keras Team. (n.d.). Keras applications. Keras. Accessed February 8, 2026. https://keras.io/api/applications/
Khatun, M., Ali, F., Turzo, J. N., & Sarker, P. (2020). Fruits classification using convolutional neural network. GRD Journals-Global Research and Development Journal for Engineering, 5(8), 1-6.
Knott, M., Perez-Cruz, F., & Defraeye, T. (2023). Facilitated machine learning for image-based fruit quality assessment. Journal of Food Engineering, 345, 111401. https://doi.org/10.1016/j.jfoodeng.2022.111401
Koirala, A., Walsh, K. B., Wang, Z., & McCarthy, C. (2019a). Deep learning for real-time fruit detection and orchard fruit load estimation: Benchmarking of 'MangoYOLO'. Precision Agriculture, 20(6), 1107-1135. https://doi.org/10.1007/s11119-019-09642-0.
Koirala, A., Walsh, K. B., Wang, Z., & McCarthy, C. (2019b). Deep learning–Method overview and review of use for fruit detection and yield estimation. Computers and Electronics in Agriculture, 162, 219-234. https://doi.org/10.1016/j.compag.2019.04.017
Lee, S. H., Chan, C. S., Wilkin, P., & Remagnino, P. (2015). Deep-plant: Plant identification with convolutional neural networks. In: Proceedings of the 2015 IEEE International Conference on Image Processing (ICIP), September 27-30, 2015, Quebec City, Canada. 452-456. https://doi.org/10.1109/ICIP.2015.7350839
Mukhiddinov, M., Muminov, A., & Cho, J. (2022). Improved classification approach for fruits and vegetables freshness based on deep learning. Sensors, 22(21), 8192. https://doi.org/10.3390/s22218192.
Nikhitha, M., Sri, S. R., & Maheswari, B. U. (2019). Fruit recognition and grade of disease detection using inception v3 model. In: Proceedings of the 2019 3rd International Conference on Electronics, Communication and Aerospace Technology (ICECA), June 12-14, 2019, Coimbatore, India. 1040-1043. https://doi.org/10.1109/iceca.2019.8822095
Pardede, J., Sitohang, B., Akbar, S., & Khodra, M. L. (2021). Implementation of transfer learning using VGG16 on fruit ripeness detection. International Journal of Intelligent Systems and Applications, 13(2), 52-61. https://doi.org/10.5815/ijisa.2021.02.04
Rahnemoonfar, M., & Sheppard, C. (2017). Real-time yield estimation based on deep learning. In J. A. Thomasson, M. McKee, & R. J. Moorhead (Eds.), SPIE Proceedings (Vol. 10218, p. 1021809). SPIE. https://doi.org/10.1117/12.2263097
Rosada, R., Hussein, Z. M., & Novamizanti, L. (2025). Evaluating YOLO Variants for Real-Time Multi-Object Detection of Strawberry Quality and Ripeness. In: Proceedings of the 2025 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT), July 3-5, 2025, Bali, Indonesia. 483–490. https://doi.org/10.1109/iaict65714.2025.11100674
Sa, I., Ge, Z., Dayoub, F., Upcroft, B., Perez, T., & McCool, C. (2016). Deepfruits: A fruit detection system using deep neural networks. Sensors, 16(8), 1222. https://doi.org/10.3390/s16081222
Saleem, M. H., Potgieter, J., & Arif, K. M. (2019). Plant disease detection and classification by deep learning. Plants, 8(11), 468. https://doi.org/10.3390/plants8110468
She, J., Zhan, W., Hong, S., Min, C., Dong, T., Huang, H., & He, Z. (2022). A method for automatic real-time detection and counting of fruit fly pests in orchards by trap bottles via convolutional neural network with attention mechanism added. Ecological Informatics, 70, 101690. https://doi.org/10.1016/j.ecoinf.2022.101690.
Srinivasan, D., & Yousef, M. (2020). Apple Fruit Detection and Maturity Status Classification. International Journal of Recent Technology and Engineering (IJRTE), 9(2), 1055–1059. https://doi.org/10.35940/ijrte.b4063.079220
Syed-Ab-Rahman, S. F., Hesamian, M. H., & Prasad, M. (2022). Citrus disease detection and classification using end-to-end anchor-based deep learning model. Applied Intelligence, 52(1), 927-938. https://doi.org/10.1007/s10489-021-02452-w
Toon, O. P., Zakaria, M. A., Nasir, A. F., Abdul Majeed, A., Tan, C. Y., & Ng, L. C. Y. (2019). Autonomous tomato harvesting robotic system in greenhouses: deep learning classification. Mekatronika, 1(1), 80-86. https://doi.org/10.15282/mekatronika.v1i1.1148
Tu, S., Pang, J., Liu, H., Zhuang, N., Chen, Y., Zheng, C., Wan, H., & Xue, Y. (2020). Passion fruit detection and counting based on multiple scale faster R-CNN using RGB-D images. Precision Agriculture, 21(5), 1072-1091. https://doi.org/10.1007/s11119-020-09709-3
Tuia, D., Ratle, F., Pacifici, F., Kanevski, M. F., & Emery, W. J. (2009). Active Learning Methods for Remote Sensing Image Classification. IEEE Transactions on Geoscience and Remote Sensing, 47(7), 2218–2232. https://doi.org/10.1109/tgrs.2008.2010404
Wu, S.-L., Tung, H.-Y., & Hsu, Y.-L. (2020). Deep learning for automatic quality grading of mangoes: methods and insights. In: Proceedings of the 2020 19th IEEE International Conference on Machine Learning and Applications (ICMLA), December 14-17, 2020, Miami, FL. 446-453. https://doi.org/10.1109/icmla51294.2020.00076
Yamashita, R., Nishio, M., Do, R. K. G., & Togashi, K. (2018). Convolutional neural networks: an overview and application in radiology. Insights into Imaging, 9(4), 611-629. https://doi.org/10.1007/s13244-018-0639-9.
Zinemanas, P., Rocamora, M., Miron, M., Font, F., & Serra, X. (2021). An interpretable deep learning model for automatic sound classification. Electronics, 10(7), 850. https://doi.org/10.3390/electronics10070850.
