Skip to main content
Log in

Detection of hazelnut varieties and development of mobile application with CNN data fusion feature reduction-based models

  • Original Paper
  • Published:
European Food Research and Technology Aims and scope Submit manuscript

Abstract

In many crops worldwide, including hazelnuts, the majority of stages in production and delivery to end-users are conducted either manually or with machine equipment lacking the advancements brought by technology. Non-destructive, fast, and reliable methods, particularly deep learning algorithms, have emerged as prominent techniques for determining product quality and classification in fruits, vegetables, and cereal products in recent years. This study aims to classify hazelnuts using deep learning algorithms, thereby minimizing the labor, time, and cost expended during the sorting process. Hazelnut images were obtained from Giresun, Ordu, and Van hazelnut varieties. The dataset consists of 1165 images of Giresun, 1324 images of Ordu, and 1138 images of Van hazelnut varieties. The classification was performed using deep learning models such as InceptionV3 and ResNet50. To combine the classification capabilities of the models, an InceptionV3 + ResNet50 data fusion model was created using the data fusion method. In addition, feature reduction processes were conducted by adding a convolutional layer to the data fusion model to decrease the number of features. The classification was conducted using a total of 3627 images, resulting in a 100% classification accuracy. Furthermore, the classification times of all models were analyzed. Based on these analyses, the 1024 reduced features data fusion model with 100% classification accuracy exhibited the shortest classification time. This model was selected, and a mobile application was developed for easy on-field hazelnut classification. The hazelnut classification performed using deep learning algorithms in the application will facilitate the work of both non-experts and professionals in industrial and personal domains. Through these methods, patents for products and devices developed for use in different industries can be obtained, thereby increasing the economic value added of our country.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Data availability

The dataset in this link can be used by citing the source https://www.muratkoklu.com/datasets/Hazelnut_Images_Dataset.zip.

References

  1. Tercan E, Dengiz O, Özkan B, Dereli MA, Öztekin YB (2022) Geographic information system–assisted site quality assessment for hazelnut cultivation using multi-criteria decision analysis in the Black Sea region. Turkey Environ Sci Pollut Res 29(24):35908–35933

    Article  Google Scholar 

  2. Król K, Gantner M (2020) Morphological traits and chemical composition of hazelnut from different geographical origins: a review. Agriculture 10(9):375

    Article  Google Scholar 

  3. Köksal Aİ, Artik N, Şimşek A, Güneş N (2006) Nutrient composition of hazelnut (Corylus avellana L.) varieties cultivated in Turkey. Food Chem 99(3):509–515

    Article  Google Scholar 

  4. Yıldırım Ç, Türkten H, Boz İ (2022) Assessing the sustainability index of part-time and full-time hazelnut farms in Giresun and Ordu Province. Turkey Environ Sci Pollut Res 29(52):79225–79240

    Article  Google Scholar 

  5. Secer A (2008) An investigation on Turkish hazelnut export concentration. J Appl Sci Res 4(11):1557–1560

    Google Scholar 

  6. Şahinli MA, Özçelik A (2016) Fındık arz fonksiyonu tahmin modeli: Türkiye üzerine ekonometrik bir uygulama. Nevşehir Bilim ve Teknoloji Dergisi 5:79–88

    Article  Google Scholar 

  7. Yenisu E (2017) TÜRK FINDIK SEKTÖRÜNÜN REKABET GÜCÜ: BALASSA ENDEKSİ YAKLAŞIMI. Giresun Üniversitesi İktisadi ve İdari Bilimler Dergisi 3(5):22–37

    Google Scholar 

  8. Battistoni C, Dominici L, Barbero S, Comino E (2020) Systemic design methodology applied to hazelnut processing. Int J Des Sci Technol 24(1):39–65

    Google Scholar 

  9. Islam A (2019) Fındık ıslahında gelişmeler. Akademik Ziraat Dergisi 8:167–174

    Article  Google Scholar 

  10. Hosseinpour A, Seifi E, Javadi D, Ramezanpour SS, Molnar TJ (2013) Nut and kernel characteristics of twelve hazelnut cultivars grown in Iran. Sci Hortic 150:410–413

    Article  CAS  Google Scholar 

  11. Ozdemir F, Akinci I (2004) Physical and nutritional properties of four major commercial Turkish hazelnut varieties. J Food Eng 63(3):341–347

    Article  Google Scholar 

  12. Ghisoni S, Lucini L, Rocchetti G, Chiodelli G, Farinelli D, Tombesi S, Trevisan M (2020) Untargeted metabolomics with multivariate analysis to discriminate hazelnut (Corylus avellana L.) cultivars and their geographical origin. J Sci Food Agric 100(2):500–508

    Article  CAS  PubMed  Google Scholar 

  13. Koklu M, Kursun R, Taspinar YS, Cinar I (2021) Classification of date fruits into genetic varieties using image analysis. Math Probl Eng 2021:1–13

    Article  Google Scholar 

  14. Sabanci K, Koklu M, Unlersen MF (2015) Classification of Siirt and long type pistachios (Pistacia vera l.) by artificial neural networks. Int J Intell Syst Appl Eng 3(2):86–89

    Article  Google Scholar 

  15. Örnek MN, Kahramanlı Örnek H (2021) Developing a deep neural network model for predicting carrots volume. J Food Measurement Charact 15(4):3471–3479

    Article  Google Scholar 

  16. Mulla NA, Ravichandran S, Naik PK, Balappa B (2022) Computer Vision System to detect maturity of tomatoes in real time using deep learning. Advances in distributed computing and machine learning learning: Proceedings of ICADCML 2021. Springer

    Google Scholar 

  17. Koklu M, Ozkan IA (2020) Multiclass classification of dry beans using computer vision and machine learning techniques. Comput Electron Agric 174:105507

    Article  Google Scholar 

  18. Koklu M, Cinar I, Taspinar YS (2021) Classification of rice varieties with deep learning methods. Comput Electron Agric 187:106285

    Article  Google Scholar 

  19. Taspinar YS (2023) Light weight convolutional neural network and low-dimensional images transformation approach for classification of thermal images. Case Stud Therm Eng 41:102670

    Article  Google Scholar 

  20. Singh D, Taspinar YS, Kursun R, Cinar I, Koklu M, Ozkan IA, Lee H-N (2022) Classification and analysis of pistachio species with pre-trained deep learning models. Electronics 11(7):981

    Article  Google Scholar 

  21. Sayinci B, Kara M, Ercişli S, Duyar Ö, Ertürk Y (2015) Elliptic Fourier analysis for shape distinction of Turkish hazelnut cultivars. Erwerbs-obstbau 57(1):1–11

    Article  Google Scholar 

  22. Guvenc SA, Senel FA, Cetisli B (2015) Classification of processed hazelnuts with computer vision. In: 2015 23nd Signal Processing and Communications Applications Conference (SIU). IEEE.

  23. Bayrakdar S, Çomak B, Başol D, Yücedag İ (2015) Determination of type and quality of hazelnut using image processing techniques. In: 2015 23nd Signal Processing and Communications Applications Conference (SIU). IEEE.

  24. Manfredi M, Robotti E, Quasso F, Mazzucco E, Calabrese G, Marengo E (2018) Fast classification of hazelnut cultivars through portable infrared spectroscopy and chemometrics. Spectrochim Acta Part A Mol Biomol Spectrosc 189:427–435

    Article  CAS  Google Scholar 

  25. Giraudo A, Calvini R, Orlandi G, Ulrici A, Geobaldo F, Savorani F (2018) Development of an automated method for the identification of defective hazelnuts based on RGB image analysis and colourgrams. Food Control 94:233–240

    Article  CAS  Google Scholar 

  26. Solak S, Altinişik U (2018) Detection and classification of hazelnut fruit by using image processing techniques and clustering methods. Sakarya Univ J Sci 22(1):56–65

    Google Scholar 

  27. Campmajó G, Saez-Vigo R, Saurina J, Núñez O (2020) High-performance liquid chromatography with fluorescence detection fingerprinting combined with chemometrics for nut classification and the detection and quantitation of almond-based product adulterations. Food Control 114:107265

    Article  Google Scholar 

  28. Farhadi M, Abbaspour-Gilandeh Y, Mahmoudi A, Mari Maja J (2020) An integrated system of artificial intelligence and signal processing techniques for the sorting and grading of nuts. Appl Sci 10(9):3315

    Article  CAS  Google Scholar 

  29. Caner K, Gerdan D, EmİNoĞLu MB, YegüL U, Bulent K, VatandaŞ M (2020) Classification of hazelnut cultivars: comparison of DL4J and ensemble learning algorithms. Notulae Botanicae Horti Agrobotanici Cluj-Napoca 48(4):2316–2327

    Article  Google Scholar 

  30. Keles O, Taner A (2021) Classification of hazelnut varieties by using artificial neural network and discriminant analysis. Span J Agric Res 19(4):e0211–e0211

    Article  Google Scholar 

  31. Taner A, Öztekin YB, Duran H (2021) Performance analysis of deep learning CNN models for variety classification in hazelnut. Sustainability 13(12):6527

    Article  Google Scholar 

  32. Ayvaz H, Temizkan R, Genis HE, Mortas M, Genis DO, Dogan MA, Nazlim BA (2022) Rapid discrimination of Turkish commercial hazelnut (Corylus avellana L.) varieties using near-infrared spectroscopy and chemometrics. Vib Spectrosc 119:103353

    Article  CAS  Google Scholar 

  33. Karasulu B, Yücalar F, Borandağ E (2022) A hybrid approach based on deep learning for gender recognition using human ear images. J Faculty Eng Archit Gazi Univ 37(3):1579–1594

    Google Scholar 

  34. Taspinar YS, Selek M (2020) Object recognition with hybrid deep learning methods and testing on embedded systems. Int J Intell Syst Appl Eng 8(2):71–77

    Article  Google Scholar 

  35. Butuner R, Cinar I, Taspinar YS, Kursun R, Calp MH, Koklu M (2023) Classification of deep image features of lentil varieties with machine learning techniques. Eur Food Res Technol 249(5):1303–1316

    Article  CAS  Google Scholar 

  36. Dogan M, Taspinar YS, Cinar I, Kursun R, Ozkan IA, Koklu M (2023) Dry bean cultivars classification using deep cnn features and salp swarm algorithm based extreme learning machine. Comput Electron Agric 204:107575

    Article  Google Scholar 

  37. Ozaltin O, Yeniay O, Subasi A (2023) OzNet: a new deep learning approach for automated classification of COVID-19 computed tomography scans. Big Data. https://doi.org/10.1089/big.2022.0042

    Article  PubMed  Google Scholar 

  38. Ramaneswaran S, Srinivasan K, Vincent PDR, Chang C-Y (2021) Hybrid inception v3 XGBoost model for acute lymphoblastic leukemia classification. Comput Math Methods Med 2021:1–10

    Article  Google Scholar 

  39. Gong W, Chen H, Zhang Z, Zhang M, Wang R, Guan C, Wang Q (2019) A novel deep learning method for intelligent fault diagnosis of rotating machinery based on improved CNN-SVM and multichannel data fusion. Sensors 19(7):1693

    Article  PubMed  PubMed Central  Google Scholar 

  40. Feyzioglu A, Taspinar YS (2023) Beef quality classification with reduced E-nose data features according to beef cut types. Sensors 23(4):2222

    Article  PubMed  PubMed Central  Google Scholar 

  41. Ozaltin O, Coskun O, Yeniay O, Subasi A (2022) A deep learning approach for detecting stroke from brain CT images using OzNet. Bioengineering 9(12):783

    Article  PubMed  PubMed Central  Google Scholar 

  42. Yucalar F, Ozcift A, Borandag E, Kilinc D (2020) Multiple-classifiers in software quality engineering: combining predictors to improve software fault prediction ability. Eng Sci Technol Int J 23(4):938–950

    Google Scholar 

  43. Kishore B, Yasar A, Taspinar YS, Kursun R, Cinar I, Shankar VG, Koklu M, Ofori I (2022) Computer-aided multiclass classification of corn from corn images integrating deep feature extraction. Comput Intell Neurosci. https://doi.org/10.1155/2022/2062944

    Article  PubMed  PubMed Central  Google Scholar 

  44. Borandağ E, Özçift A, Kaygusuz Y (2021) Development of majority vote ensemble feature selection algorithm augmentedwith rank allocation to enhance Turkish text categorization. Turkish J Electr Eng Comput Sci 29(2):514–530

    Article  Google Scholar 

  45. Sofaer HR, Hoeting JA, Jarnevich CS (2019) The area under the precision-recall curve as a performance metric for rare binary events. Methods Ecol Evol 10(4):565–577

    Article  Google Scholar 

  46. Guibon G, Ermakova L, Seffih A, Firsov, Noe-Bienvenu GL. Multilingual fake news detection with satire. In: Computational Linguistics and Intelligent Text Processing: 20th International Conference, CICLing 2019, La Rochelle, France, April 7–13, 2019, Revised Selected Papers, Part II. 2023. Springer.

  47. Naseer I, Akram S, Masood T, Jaffar A, Khan MA, Mosavi A (2022) Performance analysis of state-of-the-art cnn architectures for luna16. Sensors 22(12):4426

    Article  CAS  PubMed  PubMed Central  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yavuz Selim Taspinar.

Ethics declarations

Conflict of interest

The authors declare that they have no competing interests.

Compliance with ethics requirements

The article does not contain any studies with human or animal subjects.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Gencturk, B., Arsoy, S., Taspinar, Y.S. et al. Detection of hazelnut varieties and development of mobile application with CNN data fusion feature reduction-based models. Eur Food Res Technol 250, 97–110 (2024). https://doi.org/10.1007/s00217-023-04369-9

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00217-023-04369-9

Keywords

Navigation