基于YOLOv11的杂粮成分识别
Based on YOLOv11 for Multi-Grain Component Recognition
DOI: 10.12677/jsta.2026.143059, PDF,   
作者: 彭雪锋, 瞿士骐, 王雨晗, 李 涛, 曾曙光:三峡大学数理学院、核能科学与工程学院,湖北 宜昌
关键词: 谷物分类谷物计数图像增强YOLO模型Grain Classification Grain Counting Image Enhancement Yolo Model
摘要: 杂粮由于其粮食种类丰富、营养全面等优点存在着极大的市场空间。为便于消费者了解杂粮的品质、工商部门检测杂粮的质量以及农民设备的局限性,呼应市场的需求,本文设计了一种基于YOLO模型的谷物分类计数器,且仅用手机相机即可实现数据收集。针对杂粮识别场景中颗粒目标细小、密集易粘连、类别外观高度相似、复杂背景干扰强等问题,本文通过针对性数据增强、优化分类与定位损失权重、引入测试时增强TTA及差异化后处理策略。实验结果表明,改进模型在10类杂粮识别任务中,有8类杂粮都具备较高分类精度与计数稳定性,模型对大多数谷物的识别准确率达到了85%以上。改进模型的平均绝对误差由1.130降至0.880,平均相对误差由3.5%降至2.9%。本文也通过混淆矩阵、性能曲线、对比实验、重复性检验与误差分析验证了鲁棒性与实用性,可有效实现杂粮成分快速判别与精准计数。
Abstract: Coarse cereals hold significant market potential due to their rich variety and comprehensive nutritional value. To help consumers assess product quality, support market regulation, and address the limitations of equipment in agricultural settings, this paper presents a grain classification and counting system based on a YOLO model, which only requires a mobile phone camera for data collection. To address challenges in coarse cereal recognition, such as small and densely packed particles, high inter-class visual similarity, and complex background interference, this study employs targeted data augmentation, optimizes the weights of classification and localization losses, introduces Test Time Augmentation (TTA), and applies differentiated post-processing strategies. Experimental results show that the improved model achieves high classification accuracy and counting stability for 8 out of 10 coarse cereal types, with recognition accuracy exceeding 85% for most grains. The mean absolute error of the enhanced model is reduced from 1.130 to 0.880, and the mean relative error decreases from 3.5% to 2.9%. The robustness and practicality of the system are further validated through confusion matrices, performance curves, comparative experiments, repeatability tests, and error analysis, demonstrating its effectiveness for rapid composition identification and accurate counting of mixed grains.
文章引用:彭雪锋, 瞿士骐, 王雨晗, 李涛, 曾曙光. 基于YOLOv11的杂粮成分识别[J]. 传感器技术与应用, 2026, 14(3): 600-610. https://doi.org/10.12677/jsta.2026.143059

参考文献

[1] 韩雪晨, 程征, 曾曙光, 等. 基于图像处理的杂粮成分智能识别[J]. 光学与光电技术, 2014, 12(2): 58-62.
[2] 孙明, 王一鸣, 凌云, 等. 基于色调的黄粒米检测方法[J]. 农业机械学报, 2005(8): 78-81.
[3] 卢亚玲. 基于图像处理的粮虫自动计数系统的研究[J]. 微计算机信息, 2007(24): 311-312.
[4] 许晓琳, 牛思琪, 梁敖, 等. 基于改进YOLOv8的玉米籽粒品种鉴别算法研究[J]. 中国农机化学报, 2025, 46(9): 137-144.
[5] 李云, 邱述金, 赵华民, 等. 基于轻量化YoloV5的谷穗实时检测方法[J]. 江苏农业科学, 2023, 51(6): 168-177.
[6] 孟庆宽, 蔡成宇, 张漫, 等. 基于改进YOLO11n的自然环境下玉米幼苗与杂草轻量化检测方法[J/OL]. 农业工程学报, 1-10.
https://link.cnki.net/urlid/11.2047.S.20260420.1621.006, 2026-04-22.
[7] 张毅杰, 宋泽祺, 张志涛, 等. 基于YOLO11n改进的自然环境下云南澳洲坚果花识别[J/OL]. 农业工程学报, 1-10.
https://link.cnki.net/urlid/11.2047.S.20260420.1623.016, 2026-04-22.
[8] 戴一奇, 张子豪, 奚美娟, 等. 基于YOLO神经网络的中药材自动识别模型及其手机应用的开发[J]. 北京生物医学工程, 2026, 45(2): 153-162.
[9] 许佳琪. 基于CLAHE-Mosaic算法的铝模天花图像增强方法研究[D]: [硕士学位论文]. 上海: 东华理工大学, 2024.