{"title":"Using Novel Optimized Deep Learning Techniques for Detecting Fungal Infections in Hazelnuts Kernels Based on Shell Color Changes","authors":"Mehdi Farahani, Hossein Bagherpour","doi":"10.1155/jfq/3350046","DOIUrl":null,"url":null,"abstract":"<div>\n <p>Improper environmental or storage conditions can lead to fungal development in some hazelnuts. This type of fungus causes a slight discoloration on the hazelnut shell. To increase the marketability of the product, it is essential to separate these defective samples from sound ones. Due to the high color similarity between defective and sound samples, manual separation is prone to significant errors, necessitating an automated process. Furthermore, given the strong feature identification and extraction capabilities of convolutional neural networks (CNNs), this model was employed for the classification task. This study investigated the effect of some important factors such as input image size, flattening methods (global average pooling (GAP) and fully connected layer (FCL)), as well as the number of hidden layers and dropout on the model performance. In examining the effect of input image size on the models’ performance, the highest classification accuracy was obtained with a moderate image size of 128 × 128. Comparing the FCL and GAP methods indicated that the GAP method not only increased training speed but also minimized overfitting, resulting in overall better performance than FCL. The results of the models revealed that the proposed CNN model with four convolutional layers, employing the GAP method, a dropout rate of 0.5, and no hidden layers achieved the highest performance. The results demonstrate that the proposed CNN model effectively classified hazelnuts based on subtle color variations on their shells. It achieved a 0.8% improvement in detection accuracy compared to the manual classification method.</p>\n </div>","PeriodicalId":15951,"journal":{"name":"Journal of Food Quality","volume":"2025 1","pages":""},"PeriodicalIF":2.6000,"publicationDate":"2025-07-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1155/jfq/3350046","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Quality","FirstCategoryId":"97","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1155/jfq/3350046","RegionNum":3,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Improper environmental or storage conditions can lead to fungal development in some hazelnuts. This type of fungus causes a slight discoloration on the hazelnut shell. To increase the marketability of the product, it is essential to separate these defective samples from sound ones. Due to the high color similarity between defective and sound samples, manual separation is prone to significant errors, necessitating an automated process. Furthermore, given the strong feature identification and extraction capabilities of convolutional neural networks (CNNs), this model was employed for the classification task. This study investigated the effect of some important factors such as input image size, flattening methods (global average pooling (GAP) and fully connected layer (FCL)), as well as the number of hidden layers and dropout on the model performance. In examining the effect of input image size on the models’ performance, the highest classification accuracy was obtained with a moderate image size of 128 × 128. Comparing the FCL and GAP methods indicated that the GAP method not only increased training speed but also minimized overfitting, resulting in overall better performance than FCL. The results of the models revealed that the proposed CNN model with four convolutional layers, employing the GAP method, a dropout rate of 0.5, and no hidden layers achieved the highest performance. The results demonstrate that the proposed CNN model effectively classified hazelnuts based on subtle color variations on their shells. It achieved a 0.8% improvement in detection accuracy compared to the manual classification method.
期刊介绍:
Journal of Food Quality is a peer-reviewed, Open Access journal that publishes original research articles as well as review articles related to all aspects of food quality characteristics acceptable to consumers. The journal aims to provide a valuable resource for food scientists, nutritionists, food producers, the public health sector, and governmental and non-governmental agencies with an interest in food quality.