Menglong Ma , Haitao Fu , Yixiao Wang , Zelin Lu , Ziwei Wang , Jingjing Cheng , Xiaodan Liu , Huang Dai , Fuwei Pi , Jiahua Wang
{"title":"基于x射线成像的山茶籽和栗子内部缺陷无损分类:深度学习分类器的优化与比较","authors":"Menglong Ma , Haitao Fu , Yixiao Wang , Zelin Lu , Ziwei Wang , Jingjing Cheng , Xiaodan Liu , Huang Dai , Fuwei Pi , Jiahua Wang","doi":"10.1016/j.foodcont.2025.111367","DOIUrl":null,"url":null,"abstract":"<div><div>Camellia seeds and chestnuts are two important nut resources that provide healthy and nutritious oils and foods for humans. However, frequently occurring internal defects such as insect-damaged, mold-infested, and withered cause food safety risks and loss of economic value. In this study, X-ray digital radiography (DR) imaging was used in conjunction with deep learning (VGG16, ResNet18 and DenseNet121) to classify internal defects. The number of pre-processed images was increased to 10 times, reaching 2040 for camellia seeds and 2370 for chestnuts, through the use of image enhancement methods. Subsequently, these images were divided into training, validation, and prediction sets in a ratio of approximately 70:15:15 to construct and evaluate deep learning classifiers. A hyperparameter optimization strategy was developed to search for optimal hyperparameter combinations for training classifiers.</div><div>In addition, the performance and consistency of the three deep learning classifiers were compared in terms of sensitivity, specificity and accuracy using the outputs of the prediction sets. The best classifier DenseNet121 obtained a satisfactory area under the curve (AUC) of 0.9991 for classification of camellia seeds, while ResNet18 gained the best result for chestnuts with an AUC of 0.9234. This study integrates low-energy X-ray DR with deep learning to non-destructively classify internal defects in camellia seeds and chestnuts. It circumvents limitations of molecular spectroscopy and CT imaging (e.g., penetration depth, cost, reconstruction time) while offering actionable guidelines for industrial-scale implementation in food quality control.</div></div>","PeriodicalId":319,"journal":{"name":"Food Control","volume":"176 ","pages":"Article 111367"},"PeriodicalIF":5.6000,"publicationDate":"2025-04-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Nondestructive classification of internal defects in camellia seeds and chestnuts using X-ray imaging: optimization and comparison of deep learning classifiers\",\"authors\":\"Menglong Ma , Haitao Fu , Yixiao Wang , Zelin Lu , Ziwei Wang , Jingjing Cheng , Xiaodan Liu , Huang Dai , Fuwei Pi , Jiahua Wang\",\"doi\":\"10.1016/j.foodcont.2025.111367\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Camellia seeds and chestnuts are two important nut resources that provide healthy and nutritious oils and foods for humans. However, frequently occurring internal defects such as insect-damaged, mold-infested, and withered cause food safety risks and loss of economic value. In this study, X-ray digital radiography (DR) imaging was used in conjunction with deep learning (VGG16, ResNet18 and DenseNet121) to classify internal defects. The number of pre-processed images was increased to 10 times, reaching 2040 for camellia seeds and 2370 for chestnuts, through the use of image enhancement methods. Subsequently, these images were divided into training, validation, and prediction sets in a ratio of approximately 70:15:15 to construct and evaluate deep learning classifiers. A hyperparameter optimization strategy was developed to search for optimal hyperparameter combinations for training classifiers.</div><div>In addition, the performance and consistency of the three deep learning classifiers were compared in terms of sensitivity, specificity and accuracy using the outputs of the prediction sets. The best classifier DenseNet121 obtained a satisfactory area under the curve (AUC) of 0.9991 for classification of camellia seeds, while ResNet18 gained the best result for chestnuts with an AUC of 0.9234. This study integrates low-energy X-ray DR with deep learning to non-destructively classify internal defects in camellia seeds and chestnuts. It circumvents limitations of molecular spectroscopy and CT imaging (e.g., penetration depth, cost, reconstruction time) while offering actionable guidelines for industrial-scale implementation in food quality control.</div></div>\",\"PeriodicalId\":319,\"journal\":{\"name\":\"Food Control\",\"volume\":\"176 \",\"pages\":\"Article 111367\"},\"PeriodicalIF\":5.6000,\"publicationDate\":\"2025-04-14\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Food Control\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0956713525002361\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"FOOD SCIENCE & TECHNOLOGY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Food Control","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0956713525002361","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
Nondestructive classification of internal defects in camellia seeds and chestnuts using X-ray imaging: optimization and comparison of deep learning classifiers
Camellia seeds and chestnuts are two important nut resources that provide healthy and nutritious oils and foods for humans. However, frequently occurring internal defects such as insect-damaged, mold-infested, and withered cause food safety risks and loss of economic value. In this study, X-ray digital radiography (DR) imaging was used in conjunction with deep learning (VGG16, ResNet18 and DenseNet121) to classify internal defects. The number of pre-processed images was increased to 10 times, reaching 2040 for camellia seeds and 2370 for chestnuts, through the use of image enhancement methods. Subsequently, these images were divided into training, validation, and prediction sets in a ratio of approximately 70:15:15 to construct and evaluate deep learning classifiers. A hyperparameter optimization strategy was developed to search for optimal hyperparameter combinations for training classifiers.
In addition, the performance and consistency of the three deep learning classifiers were compared in terms of sensitivity, specificity and accuracy using the outputs of the prediction sets. The best classifier DenseNet121 obtained a satisfactory area under the curve (AUC) of 0.9991 for classification of camellia seeds, while ResNet18 gained the best result for chestnuts with an AUC of 0.9234. This study integrates low-energy X-ray DR with deep learning to non-destructively classify internal defects in camellia seeds and chestnuts. It circumvents limitations of molecular spectroscopy and CT imaging (e.g., penetration depth, cost, reconstruction time) while offering actionable guidelines for industrial-scale implementation in food quality control.
期刊介绍:
Food Control is an international journal that provides essential information for those involved in food safety and process control.
Food Control covers the below areas that relate to food process control or to food safety of human foods:
• Microbial food safety and antimicrobial systems
• Mycotoxins
• Hazard analysis, HACCP and food safety objectives
• Risk assessment, including microbial and chemical hazards
• Quality assurance
• Good manufacturing practices
• Food process systems design and control
• Food Packaging technology and materials in contact with foods
• Rapid methods of analysis and detection, including sensor technology
• Codes of practice, legislation and international harmonization
• Consumer issues
• Education, training and research needs.
The scope of Food Control is comprehensive and includes original research papers, authoritative reviews, short communications, comment articles that report on new developments in food control, and position papers.