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

• GFR-YOLOv8n enhances grain detection using MPDIoU, SCSA, and SCConv modules. • Dual-line counting corrects missed detections and avoids double-counting errors. • Multi-rule filtering improves counting robustness under real harvesting conditions. • Achieves 94.5 % mAP and 89.76 % counting accuracy in dynamic grain flow scenarios. • Supports low-cost, real-time, vision-based grain yield monitoring for smart agriculture. 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.

Institutions

Publication Details

Journal
Smart Agricultural Technology
Published
2025-12-17
DOI
https://doi.org/10.1016/j.atech.2025.101728
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Smart Agricultural Technology
Smart Agriculture and AI
article

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

article en

Abstract

• GFR-YOLOv8n enhances grain detection using MPDIoU, SCSA, and SCConv modules. • Dual-line counting corrects missed detections and avoids double-counting errors. • Multi-rule filtering improves counting robustness under real harvesting conditions. • Achieves 94.5 % mAP and 89.76 % counting accuracy in dynamic grain flow scenarios. • Supports low-cost, real-time, vision-based grain yield monitoring for smart agriculture. 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.

Smart Agricultural TechnologyVol. 13
Yunnan Agricultural University (CN)
Peace, Justice and strong institutions
Openalex Percentile: Top 26%
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.