{"title":"基于多维特征提取网络模型和变压器模块的青苹果检测方法。","authors":"Wei Ji, Kelong Zhai, Bo Xu, Jiawen Wu","doi":"10.1016/j.jfp.2024.100397","DOIUrl":null,"url":null,"abstract":"<p><p>To enhance fast and accurate detection of pollution-free green apples for food safety, this paper uses the DETR network as a framework to propose a new method for pollution-free green apple detection based on a multi-dimensional feature extraction network and Transformer module. Firstly, an improved DETR network main feature extraction module adopts the ResNet18 network and replaces some residual layers with deformable convolutions (DCNv2), enabling the model to better adapt to pollution-free fruit changes at different scales and angles, while eliminating the impact of microbial contamination on fruit testing; Subsequently, the extended spatial pyramid pooling model (DSPP) and multi-scale residual aggregation module (FRAM) are integrated, which help reduce feature noise and minimize the loss of underlying features during the feature extraction process. The fusion of the two modules enhances the model's ability to detect objects of different scales, thereby improving the accuracy of near-color fruit detection; At the same time, in order to solve the problems of slow convergence speed and large calculation amount of the basic network model, the convergence speed of the overall network model is improved by replacing the attention mechanism of Transformer. Experimental results show that compared with the original DETR model, the proposed algorithm has improved in AP, AP50 and AP75 indicators, especially in the AP50 indicator, which has the most obvious improvement reaching a detection accuracy of 97.12%. In the meantime, the trained network model is deployed on the picking robot. Compared with the original DETR network model, its average detection accuracy is as high as 96.58%, and the detection speed is increased by about 51%. Mixed sample detection tests were carried out before and after the model deployment, and the detection rate of the proposed method for non-polluted fruits reached more than 0.95. enabling the picking robot to efficiently complete the task of picking green apples. The test results show that the algorithm proposed in this article exhibits great potential in the task of detecting pollution-free near-color fruits by the picking robot. It ensures pollution-free fruit picking and the application of AI in food safety.</p>","PeriodicalId":15903,"journal":{"name":"Journal of food protection","volume":" ","pages":"100397"},"PeriodicalIF":2.1000,"publicationDate":"2024-11-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Green apple detection method based on multi-dimensional feature extraction network model and Transformer module.\",\"authors\":\"Wei Ji, Kelong Zhai, Bo Xu, Jiawen Wu\",\"doi\":\"10.1016/j.jfp.2024.100397\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>To enhance fast and accurate detection of pollution-free green apples for food safety, this paper uses the DETR network as a framework to propose a new method for pollution-free green apple detection based on a multi-dimensional feature extraction network and Transformer module. Firstly, an improved DETR network main feature extraction module adopts the ResNet18 network and replaces some residual layers with deformable convolutions (DCNv2), enabling the model to better adapt to pollution-free fruit changes at different scales and angles, while eliminating the impact of microbial contamination on fruit testing; Subsequently, the extended spatial pyramid pooling model (DSPP) and multi-scale residual aggregation module (FRAM) are integrated, which help reduce feature noise and minimize the loss of underlying features during the feature extraction process. The fusion of the two modules enhances the model's ability to detect objects of different scales, thereby improving the accuracy of near-color fruit detection; At the same time, in order to solve the problems of slow convergence speed and large calculation amount of the basic network model, the convergence speed of the overall network model is improved by replacing the attention mechanism of Transformer. Experimental results show that compared with the original DETR model, the proposed algorithm has improved in AP, AP50 and AP75 indicators, especially in the AP50 indicator, which has the most obvious improvement reaching a detection accuracy of 97.12%. In the meantime, the trained network model is deployed on the picking robot. Compared with the original DETR network model, its average detection accuracy is as high as 96.58%, and the detection speed is increased by about 51%. Mixed sample detection tests were carried out before and after the model deployment, and the detection rate of the proposed method for non-polluted fruits reached more than 0.95. enabling the picking robot to efficiently complete the task of picking green apples. The test results show that the algorithm proposed in this article exhibits great potential in the task of detecting pollution-free near-color fruits by the picking robot. It ensures pollution-free fruit picking and the application of AI in food safety.</p>\",\"PeriodicalId\":15903,\"journal\":{\"name\":\"Journal of food protection\",\"volume\":\" \",\"pages\":\"100397\"},\"PeriodicalIF\":2.1000,\"publicationDate\":\"2024-11-04\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of food protection\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://doi.org/10.1016/j.jfp.2024.100397\",\"RegionNum\":4,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"BIOTECHNOLOGY & APPLIED MICROBIOLOGY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of food protection","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.1016/j.jfp.2024.100397","RegionNum":4,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"BIOTECHNOLOGY & APPLIED MICROBIOLOGY","Score":null,"Total":0}
Green apple detection method based on multi-dimensional feature extraction network model and Transformer module.
To enhance fast and accurate detection of pollution-free green apples for food safety, this paper uses the DETR network as a framework to propose a new method for pollution-free green apple detection based on a multi-dimensional feature extraction network and Transformer module. Firstly, an improved DETR network main feature extraction module adopts the ResNet18 network and replaces some residual layers with deformable convolutions (DCNv2), enabling the model to better adapt to pollution-free fruit changes at different scales and angles, while eliminating the impact of microbial contamination on fruit testing; Subsequently, the extended spatial pyramid pooling model (DSPP) and multi-scale residual aggregation module (FRAM) are integrated, which help reduce feature noise and minimize the loss of underlying features during the feature extraction process. The fusion of the two modules enhances the model's ability to detect objects of different scales, thereby improving the accuracy of near-color fruit detection; At the same time, in order to solve the problems of slow convergence speed and large calculation amount of the basic network model, the convergence speed of the overall network model is improved by replacing the attention mechanism of Transformer. Experimental results show that compared with the original DETR model, the proposed algorithm has improved in AP, AP50 and AP75 indicators, especially in the AP50 indicator, which has the most obvious improvement reaching a detection accuracy of 97.12%. In the meantime, the trained network model is deployed on the picking robot. Compared with the original DETR network model, its average detection accuracy is as high as 96.58%, and the detection speed is increased by about 51%. Mixed sample detection tests were carried out before and after the model deployment, and the detection rate of the proposed method for non-polluted fruits reached more than 0.95. enabling the picking robot to efficiently complete the task of picking green apples. The test results show that the algorithm proposed in this article exhibits great potential in the task of detecting pollution-free near-color fruits by the picking robot. It ensures pollution-free fruit picking and the application of AI in food safety.
期刊介绍:
The Journal of Food Protection® (JFP) is an international, monthly scientific journal in the English language published by the International Association for Food Protection (IAFP). JFP publishes research and review articles on all aspects of food protection and safety. Major emphases of JFP are placed on studies dealing with:
Tracking, detecting (including traditional, molecular, and real-time), inactivating, and controlling food-related hazards, including microorganisms (including antibiotic resistance), microbial (mycotoxins, seafood toxins) and non-microbial toxins (heavy metals, pesticides, veterinary drug residues, migrants from food packaging, and processing contaminants), allergens and pests (insects, rodents) in human food, pet food and animal feed throughout the food chain;
Microbiological food quality and traditional/novel methods to assay microbiological food quality;
Prevention of food-related hazards and food spoilage through food preservatives and thermal/non-thermal processes, including process validation;
Food fermentations and food-related probiotics;
Safe food handling practices during pre-harvest, harvest, post-harvest, distribution and consumption, including food safety education for retailers, foodservice, and consumers;
Risk assessments for food-related hazards;
Economic impact of food-related hazards, foodborne illness, food loss, food spoilage, and adulterated foods;
Food fraud, food authentication, food defense, and foodborne disease outbreak investigations.