A lightweight detection model for rice grain with dense bonding distribution based on YOLOv5s

• Lightweight YOLOv5s reduced model size by 64.16 % and parameters by 70.8 %. • Enhances small-target feature capture via contextual fusion. • The RicegrainDetector application can counting of densely bonded rice grains. • Deployed and validated the generality of model on Android smartphones. Accurate counting of rice grains plays a critical role in rice breeding and thousand-grain weight measurement. However, the accuracy of existing algorithms is insufficient under conditions of high-density and densely bonded rice grain distribution. To quickly and accurately detect high-density and densely bonded rice grains with as many grains as possible, this study developed a lightweight model based on YOLOv5s. First, we built an efficient lightweight model architecture to obtain small-target location and semantic information of rice grains. Second, we use an omni-dimensional dynamic convolution (ODConv) module to replace some of the convolutions of the backbone network to fully extract feature information. We then introduce the mixed local channel attention (MLCA) mechanism to weigh local features through spatial information, allowing the model to locate and identify dense rice grains accurately. Finally, we use the SIoU loss function to improve the convergence speed and accuracy of model training. The model’s detection accuracy was verified via ablation experiments. The results indicated that compared with the original YOLOv5s network, the model size, parameters and floating-point operations per second (FLOPS) of the improved model decreased by 64.16 %, 70.8 % and 28.3 %, respectively, while mAP 0.5:0.95 increased by 7.21 %. The mean error rate and mean detection time of the improved model were 0.234 % and 25.9 ms, respectively. Its superior capacity against other detection algorithm models at rapidly detecting densely bonded rice grains. Furthermore, an android application was further developed. After comparative testing on three types of mobile phones, the application was able to effectively and accurately detect and count rice grains, providing an effective solution for rice grain detection and counting.

Authors

Institutions

Publication Details

Journal
Computers and Electronics in Agriculture
Published
2025-06-18
DOI
https://doi.org/10.1016/j.compag.2025.110672
Citations
4
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
4.97
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A lightweight detection model for rice grain with dense bonding distribution based on YOLOv5s

Dongquan Chen, Ranbing Yang, Yiren Qing, Kang Xu et al.
4 citations
Computers and Electronics in Agriculture
Industrial Vision Systems and Defect Detection
4.97
article

A lightweight detection model for rice grain with dense bonding distribution based on YOLOv5s

Dongquan Chen, Ranbing Yang, Yiren Qing, Kang Xu, Wenbin Sun, Guiquan Zhou
article en
4 citations

Abstract

• Lightweight YOLOv5s reduced model size by 64.16 % and parameters by 70.8 %. • Enhances small-target feature capture via contextual fusion. • The RicegrainDetector application can counting of densely bonded rice grains. • Deployed and validated the generality of model on Android smartphones. Accurate counting of rice grains plays a critical role in rice breeding and thousand-grain weight measurement. However, the accuracy of existing algorithms is insufficient under conditions of high-density and densely bonded rice grain distribution. To quickly and accurately detect high-density and densely bonded rice grains with as many grains as possible, this study developed a lightweight model based on YOLOv5s. First, we built an efficient lightweight model architecture to obtain small-target location and semantic information of rice grains. Second, we use an omni-dimensional dynamic convolution (ODConv) module to replace some of the convolutions of the backbone network to fully extract feature information. We then introduce the mixed local channel attention (MLCA) mechanism to weigh local features through spatial information, allowing the model to locate and identify dense rice grains accurately. Finally, we use the SIoU loss function to improve the convergence speed and accuracy of model training. The model’s detection accuracy was verified via ablation experiments. The results indicated that compared with the original YOLOv5s network, the model size, parameters and floating-point operations per second (FLOPS) of the improved model decreased by 64.16 %, 70.8 % and 28.3 %, respectively, while mAP 0.5:0.95 increased by 7.21 %. The mean error rate and mean detection time of the improved model were 0.234 % and 25.9 ms, respectively. Its superior capacity against other detection algorithm models at rapidly detecting densely bonded rice grains. Furthermore, an android application was further developed. After comparative testing on three types of mobile phones, the application was able to effectively and accurately detect and count rice grains, providing an effective solution for rice grain detection and counting.

Computers and Electronics in AgricultureVol. 237
Hainan University (CN)
Zero hunger
Openalex Percentile: Top 5%
Industrial Vision Systems and Defect Detection
4.97
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.