The Novel Combination of Nano Vector Network Analyzer and Machine Learning for Fruit Identification and Ripeness Grading
Abstract
:1. Introduction
- The image analysis may not be robust because different fruit images may have indistinguishable shape and color features. Some fruits (e.g., some varieties of peaches, apples, and watermelons) do not change their skin color as the fruit ripens or matures. In this case, the global color cannot be used as a ripeness evaluation parameter;
- Hyperspectral imaging-based techniques take a great deal of computational time because of their complexity. A hyperspectral image includes a large number of bands whose information is frequently highly correlated, leading to a huge amount of data;
- Near-infrared spectroscopy-based methods depend highly on position measurement, the surface of objects, as well as environmental white light.
2. Proposed Method
2.1. Data Collection
2.2. Feature Extraction
2.3. Preprocessing
2.4. Machine Learning Model
2.4.1. KNN (K-Nearest Neighbor)
2.4.2. Neural Network
- Input Layer: series of 40 data points were sweep from 700 Mhz to 1 GHz;
- Hidden Layers: 1 hidden layer with 20 neural node;
- Activation function: tansig;
- Output Layer: 5 outputs in Dataset 1 and 10 outputs in Dataset 2.
- Processor: Xeon E5-2630—2.40 GHz;
- RAM memory: 32 GB;
- GPU: NVIDIA TITAN V 12GB VGA;
- Environment: MATLAB R2018a.
2.4.3. K-Fold Cross-Validation
3. Experimental Results
3.1. Experiments on Dataset 1
3.2. Experiments on Dataset 2
3.3. Comparison with Other Classification Methods
4. Conclusions and Discussion
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Narendra, V.G.; Hareesha, K.S. Prospects of computer vision automated grading and sorting systems in agricultural and food products for quality evaluation. Int. J. Comput. Appl. 2010, 1, 1–9. [Google Scholar] [CrossRef]
- Rauf, H.T.; Saleem, B.A.; Lali, M.I.U.; Khan, M.A.; Sharif, M.; Bukhari, S.A.C. A citrus fruits and leaves dataset for detection and classification of citrus diseases through machine learning. Data Brief 2019, 26, 104340. [Google Scholar] [CrossRef] [PubMed]
- Almadhor, A.; Rauf, H.T.; Lali, M.I.U.; Damaševičius, R.; Alouffi, B.; Alharbi, A. AI-Driven Framework for Recognition of Guava Plant Diseases through Machine Learning from DSLR Camera Sensor Based High Resolution Imagery. Sensors 2021, 21, 3830. [Google Scholar] [CrossRef] [PubMed]
- Jie, D.; Zhou, W.; Wei, X. Nondestructive detection of maturity of watermelon by spectral characteristic using NIR diffuse transmittance technique. Sci. Hortic. 2019, 257, 108718. [Google Scholar] [CrossRef]
- Cubero, S.; Aleixos, N.; Moltó, E.; Gómez-Sanchis, J.; Blasco, J. Advances in machine vision applications for automatic inspection and quality evaluation of fruits and vegetables. Food Bioprocess Technol. 2011, 4, 487–504. [Google Scholar] [CrossRef]
- Duong, L.T.; Nguyen, P.T.; Di Sipio, C.; Di Ruscio, D. Automated fruit recognition using EfficientNet and MixNet. Comput. Electron. Agric. 2020, 171, 105326. [Google Scholar] [CrossRef]
- Marimuthu, S.; Roomi, S.M.M. Particle swarm optimized fuzzy model for the classification of banana ripeness. IEEE Sensors J. 2017, 17, 4903–4915. [Google Scholar] [CrossRef]
- Hossain, M.S.; Al-Hammadi, M.; Muhammad, G. Automatic Fruit Classification Using Deep Learning for Industrial Applications. IEEE Trans. Ind. Inform. 2019, 15, 1027–1034. [Google Scholar] [CrossRef]
- Rocha, A.; Hauagge, D.C.; Wainer, J.; Goldenstein, S. Automatic fruit and vegetable classification from images. Comput. Electron. Agric. 2010, 70, 96–104. [Google Scholar] [CrossRef] [Green Version]
- Steinbrener, J.; Posch, K.; Leitner, R. Hyperspectral fruit and vegetable classification using convolutional neural networks. Comput. Electron. Agric. 2019, 162, 364–372. [Google Scholar] [CrossRef]
- Hikichi, W.; Honma, N.; Murata, K.; Center, A.I. Contactless Estimation Method of Complex Permittivity Using Load Modulation for Agricultural Application. Change 2021, 1, 2. [Google Scholar]
- Ren, A.; Zahid, A.; Zoha, A.; Shah, S.A.; Imran, M.A.; Alomainy, A.; Abbasi, Q.H. Machine learning driven approach towards the quality assessment of fresh fruits using non-invasive sensing. IEEE Sensors J. 2020, 20, 2075–2083. [Google Scholar] [CrossRef] [Green Version]
- Garvin, J.; Abushakra, F.; Choffin, Z.; Shiver, B.; Gan, Y.; Kong, L.; Jeong, N. Microwave imaging for watermelon maturity determination. Curr. Res. Food Sci. 2022, 6, 100412. [Google Scholar] [CrossRef] [PubMed]
- Trinh, L.H.; Truong, N.V.; Ferrero, F. Low Cost Circularly Polarized Antenna for IoT Space Applications. Electronics 2020, 9, 1564. [Google Scholar] [CrossRef]
- Korostynska, O.; Mason, A.; From, P.J. Electromagnetic sensing for non-destructive real-time fruit ripeness detection: Case-study for automated strawberry picking. Multidiscip. Digit. Publ. Inst. Proc. 2018, 2, 980. [Google Scholar]
- Dataset from Measurements. Available online: https://github.com/Lic-Tran-Van/FruitClassification (accessed on 8 November 2022).
- Khanh Ninh, D.; Doan, T.N.C.; Khanh Ninh, C.; Xuan Nguyen-Thi, T.; Le Thanh, N. Fruit recognition based on near-infrared spectroscopy using deep neural networks. In Proceedings of the 2021 the 5th International Conference on Machine Learning and Soft Computing, Da Nang, Vietnam, 29–31 January 2021; pp. 90–95. [Google Scholar]
Fruit | Quantity | Size (Diameter) | Sweep |
---|---|---|---|
Orange | 80 | 7 cm +/−1 cm | 700–1500 |
Guava | 80 | 7 cm +/−2 cm | 700–1500 |
Tomato | 80 | 5 cm +/−1 cm | 700–1500 |
Avocado | 80 | 15 cm +/−3 cm | 700–1500 |
Mango | 80 | 9 cm +/−2 cm | 700–1500 |
KNN | |||
---|---|---|---|
Feature | S11 | S21 | S11 + S21 |
Amplitude | 95% | 95.25% | 96% |
Real | 95.75% | 98.5% | 98.25% |
Image | 98% | 98.25% | 98.75% |
Phase | 89.25% | 91.75% | 94.75% |
Neural Network | |||
Feature | S11 | S21 | S11 + S21 |
Amplitude | 97.25% | 95.75% | 99.25% |
Real | 97.75% | 99% | 99% |
Image | 98.25% | 99.5% | 99.75% |
Phase | 91% | 90.75% | 96% |
KNN | |||||
Avocado | Tomato | Orange | Guava | Mango | |
Avocado | 75 | 0 | 0 | 3 | 2 |
Tomato | 0 | 80 | 0 | 0 | 0 |
Orange | 0 | 0 | 80 | 0 | 0 |
Guava | 0 | 0 | 0 | 80 | 0 |
Mango | 0 | 0 | 0 | 0 | 80 |
Neural Network | |||||
Avocado | Tomato | Orange | Guava | Mango | |
Avocado | 80 | 0 | 0 | 0 | 0 |
Tomato | 0 | 79 | 0 | 1 | 0 |
Orange | 0 | 0 | 80 | 0 | 0 |
Guava | 0 | 0 | 0 | 80 | 0 |
Mango | 0 | 0 | 0 | 0 | 80 |
Fruit | Quantity | Antenna | Sweep |
---|---|---|---|
Mhz | Mhz | ||
Ripe Avocado | 50 | 923 | 700–1500 |
Avocado | 50 | 923 | 700–1500 |
Ripe Tomato | 50 | 923 | 700–1500 |
Tomato | 50 | 923 | 700–1500 |
Yellow Orange | 50 | 923 | 700–1500 |
Green Orange | 50 | 923 | 700–1500 |
Ripe Guava | 50 | 923 | 700–1500 |
Guava | 50 | 923 | 700–1500 |
Mango | 50 | 923 | 700–1500 |
Ripe Mango | 50 | 923 | 700–1500 |
KNN | ||||||||||
Ripe Avocado | Avocado | Ripe Tomato | Tomato | Yellow Orange | Green Orange | Ripe Guava | Guava | Mango | Ripe Mango | |
Ripe Avocado | 47 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Avocado | 1 | 48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Ripe Tomato | 0 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Tomato | 0 | 0 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 |
Yellow Orange | 0 | 0 | 0 | 0 | 50 | 0 | 0 | 0 | 0 | 0 |
Green Orange | 0 | 0 | 0 | 0 | 0 | 50 | 0 | 0 | 0 | 0 |
Ripe Guava | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 0 | 0 | 0 |
Guava | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 0 | 0 |
Mango | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 48 | 1 |
Ripe Mango | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 49 |
Neural Network | ||||||||||
Ripe Avocado | Avocado | Ripe Tomato | Tomato | Yellow Orange | Green Orange | Ripe Guava | Guava | Mango | Ripe Mango | |
Ripe Avocado | 46 | 2 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Avocado | 0 | 47 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
Ripe Tomato | 0 | 1 | 49 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Tomato | 0 | 0 | 0 | 48 | 0 | 0 | 0 | 1 | 0 | 1 |
Yellow Orange | 0 | 0 | 0 | 0 | 50 | 0 | 0 | 0 | 0 | 0 |
Green Orange | 0 | 0 | 0 | 0 | 0 | 50 | 0 | 0 | 0 | 0 |
Ripe Guava | 1 | 0 | 0 | 0 | 0 | 0 | 48 | 1 | 0 | 0 |
Guava | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 0 | 0 |
Mango | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 46 | 3 |
Ripe Mango | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 49 |
KNN | |||
Feature | S11 | S21 | S11 + S21 |
Amplitude | 80.2% | 93.2% | 93.6% |
Real | 88% | 97.2% | 98.4% |
Image | 89.2% | 96.4% | 96.6% |
Phase | 66.8% | 83.4% | 85.6% |
Neural Network | |||
Feature | S11 | S21 | S11 + S21 |
Amplitude | 77.2% | 83.2% | 92.2% |
Real | 88.2% | 95.2% | 96.6% |
Image | 90.2% | 95% | 95.4% |
Phase | 67.6% | 81.6% | 80% |
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. |
© 2023 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Tran, V.L.; Doan, T.N.C.; Ferrero, F.; Huy, T.L.; Le-Thanh, N. The Novel Combination of Nano Vector Network Analyzer and Machine Learning for Fruit Identification and Ripeness Grading. Sensors 2023, 23, 952. https://doi.org/10.3390/s23020952
Tran VL, Doan TNC, Ferrero F, Huy TL, Le-Thanh N. The Novel Combination of Nano Vector Network Analyzer and Machine Learning for Fruit Identification and Ripeness Grading. Sensors. 2023; 23(2):952. https://doi.org/10.3390/s23020952
Chicago/Turabian StyleTran, Van Lic, Thi Ngoc Canh Doan, Fabien Ferrero, Trinh Le Huy, and Nhan Le-Thanh. 2023. "The Novel Combination of Nano Vector Network Analyzer and Machine Learning for Fruit Identification and Ripeness Grading" Sensors 23, no. 2: 952. https://doi.org/10.3390/s23020952
APA StyleTran, V. L., Doan, T. N. C., Ferrero, F., Huy, T. L., & Le-Thanh, N. (2023). The Novel Combination of Nano Vector Network Analyzer and Machine Learning for Fruit Identification and Ripeness Grading. Sensors, 23(2), 952. https://doi.org/10.3390/s23020952