{"title":"计算机图像识别算法在农产品质量检测中的应用","authors":"Xiangyu Lu","doi":"10.1016/j.procs.2025.04.237","DOIUrl":null,"url":null,"abstract":"<div><div>In agricultural product quality inspection, subtle defects of agricultural products are easily disturbed by complex background and lighting changes, making them difficult to identify. To solve this problem, this paper uses Vision Transformer (ViT) to increase the precision of identifying minute flaws on agricultural items’ surfaces. The training data set is enlarged using data augmentation technology, which rotates, crops, and modifies brightness to enhance the model’s capacity to adjust to various changes. Using a self-attention mechanism, the ViT model detects minor surface flaws globally and captures long-range dependencies in the image. Combining transfer learning and fine-tuning strategies, the ViT model pre-trained on a large-scale image dataset was optimized on a specific agricultural product dataset, further improving recognition accuracy and robustness. Experimental results indicate that the ViT model in this work has F1-score of 0.89 and a precision of 92.5% when compared to other models. This shows that ViT has high accuracy and robustness in agricultural product quality detection. The results of this paper have made a great contribution to the development of future agricultural automation detection.</div></div>","PeriodicalId":20465,"journal":{"name":"Procedia Computer Science","volume":"261 ","pages":"Pages 485-493"},"PeriodicalIF":0.0000,"publicationDate":"2025-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Application of Computer Image Recognition Algorithm in Agricultural Product Quality Inspection\",\"authors\":\"Xiangyu Lu\",\"doi\":\"10.1016/j.procs.2025.04.237\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>In agricultural product quality inspection, subtle defects of agricultural products are easily disturbed by complex background and lighting changes, making them difficult to identify. To solve this problem, this paper uses Vision Transformer (ViT) to increase the precision of identifying minute flaws on agricultural items’ surfaces. The training data set is enlarged using data augmentation technology, which rotates, crops, and modifies brightness to enhance the model’s capacity to adjust to various changes. Using a self-attention mechanism, the ViT model detects minor surface flaws globally and captures long-range dependencies in the image. Combining transfer learning and fine-tuning strategies, the ViT model pre-trained on a large-scale image dataset was optimized on a specific agricultural product dataset, further improving recognition accuracy and robustness. Experimental results indicate that the ViT model in this work has F1-score of 0.89 and a precision of 92.5% when compared to other models. This shows that ViT has high accuracy and robustness in agricultural product quality detection. The results of this paper have made a great contribution to the development of future agricultural automation detection.</div></div>\",\"PeriodicalId\":20465,\"journal\":{\"name\":\"Procedia Computer Science\",\"volume\":\"261 \",\"pages\":\"Pages 485-493\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2025-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Procedia Computer Science\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S1877050925013390\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Procedia Computer Science","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1877050925013390","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Application of Computer Image Recognition Algorithm in Agricultural Product Quality Inspection
In agricultural product quality inspection, subtle defects of agricultural products are easily disturbed by complex background and lighting changes, making them difficult to identify. To solve this problem, this paper uses Vision Transformer (ViT) to increase the precision of identifying minute flaws on agricultural items’ surfaces. The training data set is enlarged using data augmentation technology, which rotates, crops, and modifies brightness to enhance the model’s capacity to adjust to various changes. Using a self-attention mechanism, the ViT model detects minor surface flaws globally and captures long-range dependencies in the image. Combining transfer learning and fine-tuning strategies, the ViT model pre-trained on a large-scale image dataset was optimized on a specific agricultural product dataset, further improving recognition accuracy and robustness. Experimental results indicate that the ViT model in this work has F1-score of 0.89 and a precision of 92.5% when compared to other models. This shows that ViT has high accuracy and robustness in agricultural product quality detection. The results of this paper have made a great contribution to the development of future agricultural automation detection.