Yanru Fang, Hongyi Bai, Laijun Sun, Jingli Hou, Yuhang Che
{"title":"Multispectral imaging-based detection of apple bruises using segmentation network and classification model","authors":"Yanru Fang, Hongyi Bai, Laijun Sun, Jingli Hou, Yuhang Che","doi":"10.1111/1750-3841.70003","DOIUrl":null,"url":null,"abstract":"<p>Bruises can affect the appearance and nutritional value of apples and cause economic losses. Therefore, the accurate detection of bruise levels and bruise time of apples is crucial. In this paper, we proposed a method that combines a self-designed multispectral imaging system with deep learning to accurately detect the level and time of bruising on apples. To enhance the accuracy of extracting bruised regions with subtle features and irregular edges, an improved DeepLabV3+ was proposed. More specifically, depthwise separable convolution and efficient channel attention were employed, and the loss function was replaced with a focal loss. With these improvements, DeepLabV3+ achieved the maximum intersection over union of 95.5% and 91.0% for segmenting bruises on two types of apples in the test set, as well as maximum <i>F</i>1-<i>score</i> of 97.5% and 95.2%. In addition, the spectral data of the bruised regions were extracted. After spectral preprocessing, EfficientNetV2, DenseNet121, and ShuffleNetV2 were utilized to identify the bruise levels and times and DenseNet121 exhibited the best performance. To improve the identification accuracy, an improved DenseNet121 was proposed. The learning rate was adjusted using the cosine annealing algorithm, and squeeze-and-excitation attention mechanism and the Gaussian error linear unit activation function were utilized. Test set results demonstrated that the accuracies of the bruising levels were 99.5% and 99.1%, and those of the bruise time were 99.0% and 99.3%, respectively. This provides a new method for detecting bruise levels and bruised time on apples.</p>","PeriodicalId":193,"journal":{"name":"Journal of Food Science","volume":"90 1","pages":""},"PeriodicalIF":3.2000,"publicationDate":"2025-01-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Science","FirstCategoryId":"97","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1111/1750-3841.70003","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Bruises can affect the appearance and nutritional value of apples and cause economic losses. Therefore, the accurate detection of bruise levels and bruise time of apples is crucial. In this paper, we proposed a method that combines a self-designed multispectral imaging system with deep learning to accurately detect the level and time of bruising on apples. To enhance the accuracy of extracting bruised regions with subtle features and irregular edges, an improved DeepLabV3+ was proposed. More specifically, depthwise separable convolution and efficient channel attention were employed, and the loss function was replaced with a focal loss. With these improvements, DeepLabV3+ achieved the maximum intersection over union of 95.5% and 91.0% for segmenting bruises on two types of apples in the test set, as well as maximum F1-score of 97.5% and 95.2%. In addition, the spectral data of the bruised regions were extracted. After spectral preprocessing, EfficientNetV2, DenseNet121, and ShuffleNetV2 were utilized to identify the bruise levels and times and DenseNet121 exhibited the best performance. To improve the identification accuracy, an improved DenseNet121 was proposed. The learning rate was adjusted using the cosine annealing algorithm, and squeeze-and-excitation attention mechanism and the Gaussian error linear unit activation function were utilized. Test set results demonstrated that the accuracies of the bruising levels were 99.5% and 99.1%, and those of the bruise time were 99.0% and 99.3%, respectively. This provides a new method for detecting bruise levels and bruised time on apples.
期刊介绍:
The goal of the Journal of Food Science is to offer scientists, researchers, and other food professionals the opportunity to share knowledge of scientific advancements in the myriad disciplines affecting their work, through a respected peer-reviewed publication. The Journal of Food Science serves as an international forum for vital research and developments in food science.
The range of topics covered in the journal include:
-Concise Reviews and Hypotheses in Food Science
-New Horizons in Food Research
-Integrated Food Science
-Food Chemistry
-Food Engineering, Materials Science, and Nanotechnology
-Food Microbiology and Safety
-Sensory and Consumer Sciences
-Health, Nutrition, and Food
-Toxicology and Chemical Food Safety
The Journal of Food Science publishes peer-reviewed articles that cover all aspects of food science, including safety and nutrition. Reviews should be 15 to 50 typewritten pages (including tables, figures, and references), should provide in-depth coverage of a narrowly defined topic, and should embody careful evaluation (weaknesses, strengths, explanation of discrepancies in results among similar studies) of all pertinent studies, so that insightful interpretations and conclusions can be presented. Hypothesis papers are especially appropriate in pioneering areas of research or important areas that are afflicted by scientific controversy.