Deep Learning-Based Classification Consisting of Pre-Trained Models and Proposed Model Using K-Fold Cross-Validation for Pistachio Species
Source abstract
Abstract
Pistachio is a nut originating from the Middle East, and the main varieties grown and exported in Turkey are Kirmizi and Siirt pistachios. Due to their strategic importance in the agricultural economy, they need to be classified correctly. This study aims to classify Kirmizi and Siirt pistachios using various deep learning-based models and k-fold cross-validation. For this purpose, the seven convolutional neural network models trained by transfer learning and the proposed MSU-CNN model are used for classification with k-fold cross-validation. The dataset used in this study consists of 2148 images, 1232 of which belong to Kirmizi pistachio and 916 to Siirt pistachio. The K-fold cross-validation method is applied to enhance the generalization ability of the classification model, prevent overfitting, and improve performance reliability. The AlexNet, GoogLeNet, proposed MSU-CNN, VGG16, EfficientNet-b0, ResNet-18, Inception-v3, and ResNet-50 models achieved classification accuracies of 94.88%, 96.79%, 96.79%, 97.90%, 98.88%, 99.02%, 99.21%, and 99.63%, respectively, with average results based on 5-fold cross-validation and the highest accuracy attained by ResNet-50. The performance of models was evaluated using classification accuracy, sensitivity, specificity, precision, F1-score, and ROC-AUC values. According to the results, many of the proposed models proved to be effective in the identification of pistachio species.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Identification and Quantification in Food · Smart Agriculture and AI
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Electronics and Automation, Ilgın Vocational School, Selcuk University, Konya 42600, Turkey
References (42)
Show source-provided references
1. Rapid detection of adulteration in pistachio based on deep learning methodologies and affordable system
2. Chemical composition, antioxidant and anti-inflammatory properties of pistachio hull extracts10.1016/j.foodchem.2016.04.088 ↗
3. Mandalari, G., Barreca, D., Gervasi, T., Roussell, M.A., Klein, B., Feeney, M.J., and Carughi, A. (2022). Pistachio Nuts (Pistacia vera L.): Production, Nutrients, Bioactives and Novel Health Effects. Plants, 11.10.3390/plants11010018 ↗
4. Physicochemical properties and health benefits of pistachio nuts A comprehensive review10.1024/0300-9831/a000529 ↗
5. Nutrition attributes and health effects of pistachio nuts10.1017/S0007114514003250 ↗
6. Derbyshire, E., Higgs, J., Feeney, M.J., and Carughi, A. (2023). Believe it or ‘nut’: Why it is time to set the record straight on nut protein quality: Pistachio (Pistacia vera L.) focus. Nutrients, 15.10.3390/nu15092158 ↗
7. Prediction of Pistachio (Pistacia vera L.) Mass Based on Shape and Size Attributes by Using Machine Learning Algorithms10.1007/s12161-021-02154-6 ↗
8. Mandavi-Jafari, S., Salehinejad, H., and Talebi, S. (2008, January 10–12). A Pistachio Nuts Classification Technique: An ANN Based Signal Processing Scheme. Proceedings of the International Conference on Computational Intelligence for Modelling, Control and Automation, Vienna, Austria.10.1109/CIMCA.2008.150 ↗
9. Mahmoudi, A., Omid, M., and Aghagolzadeh, A. (2006, January 12–14). Artificial neural network based separation system for classifying pistachio nuts varieties. Proceedings of the International Conference on Innovations in Food and Bioprocess Technologies, Pathum Thani, Thailand.
10. Classification of peeled pistachio kernels using computer vision and color features
11. Farazi, M., Abbas-Zadeh, M.J., and Moradi, H. (2017, January 22–23). A machine vision based pistachio sorting using transferred mid-level image representation of Convolutional Neural Network. Proceedings of the 2017 10th Iranian Conference on Machine Vision and Image Processing (MVIP), Isfahan, Iran.10.1109/IranianMVIP.2017.8342335 ↗
12. Abbaszadeh, M., Rahimifard, A., Eftekhari, M., Zadeh, H.G., Fayazi, A., Dini, A., and Danaeian, M. (2019). Deep learning-based classification of the defective pistachios via deep autoencoder neural networks. arXiv.
13. Designing a hardware system to separate defective pistachios from healthy ones using deep neural networks
14. Classification and Analysis of Pistachio Species Through Neural Embedding-Based Feature Extraction and Small-Scale Machine Learning Techniques10.1142/S0219467824500323 ↗
15. Detecting and counting pistachios based on deep learning10.1007/s42044-021-00090-6 ↗
16. Pistachio Variety Classification using Convolutional Neural Networks
17. Singh, D., Taspinar, Y.S., Kursun, R., Cinar, I., Koklu, M., Ozkan, I.A., and Lee, H.N. (2022). Classification and Analysis of Pistachio Species with Pre-Trained Deep Learning Models. Electronics, 11.10.3390/electronics11070981 ↗
18. Classification of pistachio images with the resnet deep learning model
19. Karadag, A.E., and Kiliç, A. (2023). Non-destructive robotic sorting of cracked pistachio using deep learning. Postharvest Biol. Technol., 198.10.1016/j.postharvbio.2022.112229 ↗
20. Pistachio Classification Based on Acoustic Systems and Machine Learning10.5755/j02.eie.38221 ↗
21. Classification of Pistachio Species Using Improved k-NN Classifier
22. The pistachio quality detection based on deep features plus unsupervised clustering10.1111/jfpe.14519 ↗
23. ImageNet Classification with Deep Convolutional Neural Networks10.1145/3065386 ↗
24. Dog behavior recognition and tracking based on faster R-CNN
25. A deep learning CNN architecture applied in smart near-infrared analysis of water pollution for agricultural irrigation resources10.1016/j.agwat.2020.106303 ↗
26. Arsa, D.M.S., and Susila, A.A.N.H. (2019, January 19–20). VGG16 in batik classification based on random forest. Proceedings of the 2019 International Conference on Information Management and Technology (ICIMTech), Jakarta, Indonesia.10.1109/ICIMTech.2019.8843844 ↗
27. Bayar, B., and Stamm, M.C. (2016, January 20–22). A deep learning approach to universal image manipulation detection using a new convolutional layer. Proceedings of the 4th ACM Workshop on Information Hiding And Multimedia Security, Galicia, Spain.10.1145/2909827.2930786 ↗
28. Glorot, X., Bordes, A., and Bengio, Y. (2011, January 11–13). Deep sparse rectifier neural networks. Proceedings of the Fourteenth International Conference on Artificial Intelligence And Statistics, Fort Lauderdale, FL, USA.
29. Interpretation of intelligence in CNN-pooling processes: A methodological survey10.1007/s00521-019-04296-5 ↗
30. Optimization and acceleration of convolutional neural networks: A survey10.1016/j.jksuci.2020.10.004 ↗
31. Yosinski, J., Clune, J., Bengio, Y., and Lipson, H. (2014, January 8–13). How transferable are features in deep neural networks?. Proceedings of the 28th International Conference on Neural Information Processing Systems, Montreal, QC, Canada.
32. Transfer learning and deep convolutional neural networks for safety guardrail detection in 2D images10.1016/j.autcon.2018.01.003 ↗
33. Automatic recognition of quarantine citrus diseases10.1016/j.eswa.2012.12.059 ↗
34. A new approach to aflatoxin detection in chili pepper by machine vision10.1016/j.compag.2012.06.001 ↗
35. A Method of Classification Performance Improvement Via a Strategy of Clustering-Based Data Elimination Integrated with k-Fold Cross-Validation10.1007/s13369-020-04972-y ↗
36. A hybrid breast cancer detection system via neural network and feature selection based on SBS, SFS and PCA10.1007/s00521-012-0982-6 ↗
37. Occupancy detection through light, temperature, humidity and CO2 sensors using ANN
38. Classification of chronic kidney disease with most known data mining methods
39. Automated detection of Alzheimer’s disease using brain MRI images–a study with various feature extraction techniques10.1007/s10916-019-1428-9 ↗
40. Rajinikanth, V., Joseph Raj, A.N., Thanaraj, K.P., and Naik, G.R. (2020). A customized VGG19 network with concatenation of deep and handcrafted features for brain tumor detection. Appl. Sci., 10.10.3390/app10103429 ↗
41. Classification of date fruits into genetic varieties using image analysis10.1155/2021/4793293 ↗
42. Classification by a stacking model using CNN features for COVID-19 infection diagnosis