A grain flow detection method based on an improved YOLOv8n model and dual-line counting with a multi-criterion discrimination mechanism

IF 7.1 Q1 AGRICULTURAL ENGINEERING
Smart agricultural technology Pub Date : 2026-03-01 Epub Date: 2025-12-17 DOI:10.1016/j.atech.2025.101728
Jie Shi, Xinrui Zhang, Yantao Zhao, Zhi Li, Linlin Yang, Wencai Yang
{"title":"A grain flow detection method based on an improved YOLOv8n model and dual-line counting with a multi-criterion discrimination mechanism","authors":"Jie Shi,&nbsp;Xinrui Zhang,&nbsp;Yantao Zhao,&nbsp;Zhi Li,&nbsp;Linlin Yang,&nbsp;Wencai Yang","doi":"10.1016/j.atech.2025.101728","DOIUrl":null,"url":null,"abstract":"<div><div>To support non-contact grain yield monitoring in smart agriculture, this study presents a deep learning-based method for grain flow detection. The system includes two core components: an enhanced YOLOv8n detection model and a dual-line counting algorithm guided by multiple decision rules. In real harvesting conditions, challenges such as occlusion, fast grain movement, poor lighting, and small target sizes often lead to missed detections when using standard YOLO models. To improve performance, the YOLOv8n structure is modified in three ways. A minimum point distance IoU loss (MPDIoU) is applied to better distinguish overlapping grains. A spatial-channel shared attention (SCSA) module is added to help the model focus on weak or small grain targets. A lightweight Spatial and Channel reconstruction Convolution (SCConv) module is inserted into the network to reduce computation while maintaining accuracy. As a result, the updated model reaches 90.6 % in precision, 91.4 % in recall, and 94.5 % in mAP, improving the original version by 2.7, 1.7, and 2.5 points. In the counting stage, a dual-line method is used, combining rules such as movement direction checking, two-line crossing validation, abnormal shape removal, and IoU-based filtering. The full system remains stable even when grains move quickly, supporting reliable detection under field conditions.</div></div>","PeriodicalId":74813,"journal":{"name":"Smart agricultural technology","volume":"13 ","pages":"Article 101728"},"PeriodicalIF":7.1000,"publicationDate":"2026-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Smart agricultural technology","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2772375525009591","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/12/17 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"AGRICULTURAL ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

To support non-contact grain yield monitoring in smart agriculture, this study presents a deep learning-based method for grain flow detection. The system includes two core components: an enhanced YOLOv8n detection model and a dual-line counting algorithm guided by multiple decision rules. In real harvesting conditions, challenges such as occlusion, fast grain movement, poor lighting, and small target sizes often lead to missed detections when using standard YOLO models. To improve performance, the YOLOv8n structure is modified in three ways. A minimum point distance IoU loss (MPDIoU) is applied to better distinguish overlapping grains. A spatial-channel shared attention (SCSA) module is added to help the model focus on weak or small grain targets. A lightweight Spatial and Channel reconstruction Convolution (SCConv) module is inserted into the network to reduce computation while maintaining accuracy. As a result, the updated model reaches 90.6 % in precision, 91.4 % in recall, and 94.5 % in mAP, improving the original version by 2.7, 1.7, and 2.5 points. In the counting stage, a dual-line method is used, combining rules such as movement direction checking, two-line crossing validation, abnormal shape removal, and IoU-based filtering. The full system remains stable even when grains move quickly, supporting reliable detection under field conditions.
基于改进的YOLOv8n模型和多准则判别机制的双线计数谷物流检测方法
为了支持智能农业中的非接触式粮食产量监测,本研究提出了一种基于深度学习的粮食流量检测方法。该系统包括两个核心部分:增强型YOLOv8n检测模型和多决策规则指导下的双线计数算法。在实际收获条件下,使用标准的YOLO模型时,遮挡、谷物快速移动、光照不足和目标尺寸小等挑战往往会导致错过检测。为了提高性能,可以对YOLOv8n结构进行三种修改。最小点距IoU损失(MPDIoU)用于更好地区分重叠颗粒。增加了空间通道共享注意(SCSA)模块,帮助模型关注弱颗粒或小颗粒目标。在网络中插入了一个轻量级的空间和信道重构卷积(SCConv)模块,在保持精度的同时减少了计算量。结果,更新后的模型精度达到90.6%,召回率达到91.4%,mAP达到94.5%,分别比原始版本提高了2.7、1.7和2.5个点。在计数阶段,采用双线法,结合运动方向检查、双线交叉验证、异常形状去除和基于iou的滤波等规则。整个系统即使在颗粒快速移动时也保持稳定,支持在现场条件下可靠的检测。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
4.20
自引率
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学术官方微信
小红书