Application of Computer Image Recognition Algorithm in Agricultural Product Quality Inspection

Xiangyu Lu
{"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}
引用次数: 0

Abstract

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.
计算机图像识别算法在农产品质量检测中的应用
在农产品质量检测中,农产品的细微缺陷容易受到复杂背景和光照变化的干扰,难以识别。为了解决这一问题,本文利用视觉变压器(Vision Transformer, ViT)来提高农产品表面微小缺陷的识别精度。利用数据增强技术对训练数据集进行放大,通过旋转、裁剪和修改亮度来增强模型对各种变化的适应能力。使用自注意机制,ViT模型可以全局检测微小的表面缺陷,并捕获图像中的长期依赖关系。将迁移学习和微调策略相结合,在大规模图像数据集上进行预训练的ViT模型在特定农产品数据集上进行优化,进一步提高识别精度和鲁棒性。实验结果表明,与其他模型相比,本文的ViT模型的f1得分为0.89,精度为92.5%。这表明ViT在农产品质量检测中具有较高的准确性和鲁棒性。本文的研究成果对未来农业自动化检测的发展有很大的贡献。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
4.50
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信