Nondestructive Detection of Hazelnut Defects Using X-ray Imaging and Deep Learning-Based Segmentation
Abstract
The hazelnut (Corylus avellana L.) is a strategic agricultural product of high economic and nutritional value. Turkiye is the world leader in hazelnut production and export. The quality of hazelnuts is critically essential for international competitiveness and economic returns. The most common method for determining quality in the literature and industry is calculating the percentage of hazelnut kernels based on the ratio of sound kernels. However, this method relies on human observation, which can lead to errors and inconsistencies. In particular, this observation-based method sometimes fails to detect defects in the hazelnut kernel. Recently, nondestructive quality determination methods, particularly X-ray imaging technology, have allowed for the quick and accurate detection of internal and external defects in food products. However, the hazelnut industry has only recently started to adopt these technologies and deep learning–based computer vision methods. Significant advantages in terms of accuracy and efficiency for analyzing the quality of hazelnuts, recognizing objects, and detecting defects are offered by nondestructive food processing technologies and artificial intelligence-based approaches. This study created and made publicly available a unique dataset of X-ray images for defect detection in hazelnut kernels. Defect detection was performed using deep learning–based object detection algorithms, including YOLOv5, YOLOv8, Faster R CNN, and SSD, whereas segmentation was achieved using K-means clustering, yielding successful results. Consequently, with joint usage of defect detection and segmentation, the developed method provides a more objective, accurate, and reliable process for assessing hazelnut quality.
Keywords
Supporting Institution
References
- Abasi S, Minaei S, Jamshidi B & Fathi D (2018). Dedicated nondestructive devices for food quality measurement: A review. Trends in Food Science & Technology 78:197-205. https://doi.org/10.1016/j.tifs.2018.05.009
- Arciuolo R, Santos C, Soares C, Castello G, Spigolon N, Chiusa G, Lima N & Battilani P (2020). Molecular Characterization of Diaporthe Species Associated With Hazelnut Defects. Front. Plant Sci. 11: 611655. doi: 10.3389/fpls.2020.611655
- Arendse E, Fawole O A, Magwaza L S & Opara U L (2018). Nondestructive prediction of internal and external quality attributes of fruit with thick rind: A review. Journal of Food Engineering 217: 11-23. https://doi.org/10.1016/j.jfoodeng.2017.08.009
- Ataş İ (2023). Performance Evaluation of Jaccard-Dice Coefficient on Building Segmentation from High Resolution Satellite Images. Balkan Journal of Electrical and Computer Engineering 11(1): 100-106. https://doi.org/10.17694/bajece.1212563
- Ayyildiz E, Yildiz A, Taskin A & Ozkan C (2023). An interval valued Pythagorean fuzzy AHP integrated quality function deployment methodology for hazelnut production https://doi.org/10.1016/j.eswa.2023.120708 in Turkiye. Expert Systems with Applications 231: 100708.
- Baki R (2023). The evaluation of target markets for hazelnut exports with the classification approach of potential market alternatives. British Food Journal 125(10):3540-3552. https://doi.org/10.1108/BFJ-02-2023-0100
- Bostan S Z & Karakaya O (2024). Morphological, chemical, and molecular characterization of a new late-leafing and high fruit quality hazelnut (Corylus avellana L.) genotype. Genetic Resources and Crop Evolution 71: 5113–5126. https://doi.org/10.1007/s10722-024-01968-7
- Bostan S Z (2019). Nut and kernel defects in hazelnut (In Turkish). Akademik Ziraat Dergisi 8(Special Issue): 157-166. https://doi.org/10.29278/azd.644005
Details
Primary Language
English
Subjects
Artificial Intelligence (Other), Precision Agriculture Technologies, Post Harvest Horticultural Technologies (Incl. Transportation and Storage), Basic Food Processes, Sustainable Agricultural Development
Journal Section
Research Article
Publication Date
July 28, 2026
Submission Date
June 13, 2025
Acceptance Date
February 28, 2026
Published in Issue
Year 2026 Volume: 32 Number: 3