journal article·2023-11-20Open access

Deep Learning-Based Method for Classification and Ripeness Assessment of Fruits and Vegetables

Enoc Tapia-Mendez, Irving A. Cruz-Albarran, Saul Tovar-Arriaga, Luis A. Morales-Hernandez

Applied Sciences· Volume 13· Issue 22

Abstract

Food waste is a global concern and is the focus of this research. Currently, no method in the state of the art classifies multiple fruits and vegetables and their level of ripening. The objective of the study is to design and develop an intelligent system based on deep learning techniques to classify between types of fruits and vegetables, and also to evaluate the level of ripeness of some of them. The system consists of two models using the MobileNet V2 architecture. One algorithm is for the classification of 32 classes of fruits and vegetables, and another is for the determination of the ripeness of 6 classes of them. The overall intelligent system is the union of the two models, predicting first the class of fruit or vegetable and then its ripeness. The fruits and vegetables classification model achieved 97.86% accuracy, 98% precision, 98% recall, and 98% F1-score, while the ripeness assessment model achieved 100% accuracy, 98% precision, 99% recall, and 99% F1-score. According to the results, the proposed system is able to classify between types of fruits and vegetables and evaluate their ripeness. To achieve the best performance indicators, it is necessary to obtain the appropriate hyperparameters for the artificial intelligence models, in addition to having an extensive database with well-defined classes.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Smart Agriculture and AI · Advanced Chemical Sensor Technologies · Date Palm Research Studies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Laboratory of Artificial Vision and Thermography/Mechatronics, Faculty of Engineering, Autonomous University of Queretaro, Campus San Juan del Rio, San Juan del Rio 76807, Queretaro, Mexico

Artificial Intelligence Systems Applied to Biomedical and Mechanical Models, Faculty of Engineering, Autonomous University of Queretaro, Campus San Juan del Rio, San Juan del Rio 76807, Queretaro, Mexico

Faculty of Engineering, Autonomous University of Queretaro, Cerro de las Campanas S/N, Santiago de Queretaro 76010, Queretaro, Mexico

References (39)

Show source-provided references
1. Towards a new definition of quality for fresh fruits and vegetables10.1016/j.scienta.2017.09.046 ↗
2. Physicochemical and physiological changes during the ripening of Banana (Musaceae) fruit grown in Colombia10.1111/ijfs.14851 ↗
3. Biochemical changes during ripening of banana: A review
4. Fruits and vegetables quality evaluation using computer vision: A review
5. Immature peach detection in colour images acquired in natural illumination conditions using statistical classifiers and neural network10.1007/s11119-013-9323-8 ↗
6. Sensors and systems for fruit detection and localization: A review10.1016/j.compag.2015.05.021 ↗
7. Vignati, S., Tugnolo, A., Giovenzana, V., Pampuri, A., Casson, A., Guidetti, R., and Beghi, R. (2023). Hyperspectral Imaging for Fresh-Cut Fruit and Vegetable Quality Assessment: Basic Concepts and Applications. Appl. Sci., 13.10.3390/app13179740 ↗
8. Recent Advances and Applications of Hyperspectral Imaging for Fruit and Vegetable Quality Assessment10.1007/s11947-011-0725-1 ↗
9. Kiwifruit detection in field images using Faster R-CNN with VGG1610.1016/j.ifacol.2019.12.500 ↗
10. Faster R-CNN for multi-class fruit detection using a robotic vision system10.1016/j.comnet.2019.107036 ↗
11. Deep learning-based apple detection using a suppression mask R-CNN10.1016/j.patrec.2021.04.022 ↗
12. GHFormer-Net: Towards more accurate small green apple/begonia fruit detection in the nighttime
13. Przybył, K., Gawrysiak-Witulska, M., Bielska, P., Rusinek, R., Gancarz, M., Dobrzański, B., and Siger., A. (2023). Application of Machine Learning to Assess the Quality of Food Products—Case Study: Coffee Bean. Appl. Sci., 13.10.3390/app131910786 ↗
14. Advances in Machine Vision Applications for Automatic Inspection and Quality Evaluation of Fruits and Vegetables10.1007/s11947-010-0411-8 ↗
15. Real-time visual inspection system for grading fruits using computer vision and deep learning techniques
16. Fruits and Vegetables Freshness Categorization Using Deep Learning
17. Deep learning based real-time Industrial framework for rotten and fresh fruit detection using semantic segmentation10.1007/s00542-020-05123-x ↗
18. Deep Learning based Fruit Freshness Classification and Detection with CMOS Image sensors and Edge processors
19. Implementation of a Fruit Quality Classification Application Using an Artificial Intelligence Algorithm
20. Zargham, A., Haq, I.U., Alshloul, T., Riaz, S., Husnain, G., Assam, M., Ghadi, Y.Y., and Mohamed, H.G. (2023). Revolutionizing Small-Scale Retail: Introducing an Intelligent IoT-based Scale for Efficient Fruits and Vegetables Shops. Appl. Sci., 13.10.3390/app13148092 ↗
21. On line detection of defective apples using computer vision system combined with deep learning methods10.1016/j.jfoodeng.2020.110102 ↗
22. Classification and Grading of Multiple Varieties of Apple Fruit10.1007/s12161-021-01970-0 ↗
23. Zhang, Y., Gao, J., and Zhou, H. (2020, January 15–17). Breeds Classification with Deep Convolutional Neural Network. Proceedings of the 2020 12th International Conference on Machine Learning and Computing, Shenzhen, China.10.1145/3383972.3383975 ↗
24. Deep learning10.1038/nature14539 ↗
25. Fernández, M.A.A. (2021). Inteligencia Artificial Para Programadores Con Prisa, Universo de letras. [2nd ed.].
26. Zhang, E. (2022, March 01). Fruit Classification. Kaggle. Available online: https://www.kaggle.com/datasets/sshikamaru/fruit-recognition.
27. Reddy, S. (2022, March 01). Fruits Fresh and Rotten for Classification. Kaggle. Available online: https://www.kaggle.com/datasets/sriramr/fruits-fresh-and-rotten-for-classification.
28. Mukhiddinov, M. (2022, March 01). Fruits and Vegetables Dataset. Kaggle. Available online: https://www.kaggle.com/datasets/muhriddinmuxiddinov/fruits-and-vegetables-dataset.
29. Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., and Chen, L.C. (2018, January 18–23). MobileNetV2: Inverted Residuals and Linear Bottlenecks. Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00474 ↗
30. Automatic defect segmentation of ‘Jonagold’ apples on multi-spectral images: A comparative study10.1016/j.postharvbio.2006.06.010 ↗
31. Gabor feature-based apple quality inspection using kernel principal component analysis10.1016/j.jfoodeng.2007.01.008 ↗
32. Deep Features Based Approach for Fruit Disease Detection and Classification
33. Image based fruit category classification by 13-layer deep convolutional neural network and data augmentation10.1007/s11042-017-5243-3 ↗
34. Apple disease classification using color, texture and shape features from images10.1007/s11760-015-0821-1 ↗
35. Classification of grapefruit peel diseases using color texture feature analysis
36. Lakshmana Computer Vision Based Fruit Grading System for Quality Evaluation of Tomato in Agriculture industry10.1016/j.procs.2016.03.055 ↗
37. Classification of sour lemons based on apparent defects using stochastic pooling mechanism in deep convolutional neural networks10.1016/j.scienta.2019.109133 ↗
38. Sakib, S., Ashrafi, Z., and Siddique, M.A.B. (2019). Implementation of Fruits Recognition Classifier Using Convolutional Neural Network Algorithm for Observation of Accuracies for Various Hidden Layers. arXiv.
39. Automatic Fruit Classification Using Deep Learning for Industrial Applications10.1109/TII.2018.2875149 ↗