Wheat Seed Detection and Counting Method Based on Improved YOLOv8 Model
- PMID: 38475189
- PMCID: PMC10934596
- DOI: 10.3390/s24051654
Wheat Seed Detection and Counting Method Based on Improved YOLOv8 Model
Abstract
Wheat seed detection has important applications in calculating thousand-grain weight and crop breeding. In order to solve the problems of seed accumulation, adhesion, and occlusion that can lead to low counting accuracy, while ensuring fast detection speed with high accuracy, a wheat seed counting method is proposed to provide technical support for the development of the embedded platform of the seed counter. This study proposes a lightweight real-time wheat seed detection model, YOLOv8-HD, based on YOLOv8. Firstly, we introduce the concept of shared convolutional layers to improve the YOLOv8 detection head, reducing the number of parameters and achieving a lightweight design to improve runtime speed. Secondly, we incorporate the Vision Transformer with a Deformable Attention mechanism into the C2f module of the backbone network to enhance the network's feature extraction capability and improve detection accuracy. The results show that in the stacked scenes with impurities (severe seed adhesion), the YOLOv8-HD model achieves an average detection accuracy (mAP) of 77.6%, which is 9.1% higher than YOLOv8. In all scenes, the YOLOv8-HD model achieves an average detection accuracy (mAP) of 99.3%, which is 16.8% higher than YOLOv8. The memory size of the YOLOv8-HD model is 6.35 MB, approximately 4/5 of YOLOv8. The GFLOPs of YOLOv8-HD decrease by 16%. The inference time of YOLOv8-HD is 2.86 ms (on GPU), which is lower than YOLOv8. Finally, we conducted numerous experiments and the results showed that YOLOv8-HD outperforms other mainstream networks in terms of mAP, speed, and model size. Therefore, our YOLOv8-HD can efficiently detect wheat seeds in various scenarios, providing technical support for the development of seed counting instruments.
Keywords: YOLOv8; attention mechanism; lightweight; wheat seed detection.
Conflict of interest statement
The authors declare no conflicts of interest.
Figures

















Similar articles
-
High accuracy identification of maize seed varieties based on a lightweight improved YOLOv8.Sci Rep. 2025 May 27;15(1):18541. doi: 10.1038/s41598-025-00499-0. Sci Rep. 2025. PMID: 40425696 Free PMC article.
-
A lightweight wheat ear counting model in UAV images based on improved YOLOv8.Front Plant Sci. 2025 Feb 11;16:1536017. doi: 10.3389/fpls.2025.1536017. eCollection 2025. Front Plant Sci. 2025. PMID: 40007960 Free PMC article.
-
YOLOv8-seg-CP: a lightweight instance segmentation algorithm for chip pad based on improved YOLOv8-seg model.Sci Rep. 2024 Nov 12;14(1):27716. doi: 10.1038/s41598-024-78578-x. Sci Rep. 2024. PMID: 39532990 Free PMC article.
-
A lightweight Yunnan Xiaomila detection and pose estimation based on improved YOLOv8.Front Plant Sci. 2024 Jun 5;15:1421381. doi: 10.3389/fpls.2024.1421381. eCollection 2024. Front Plant Sci. 2024. PMID: 38903433 Free PMC article.
-
A Lightweight Strip Steel Surface Defect Detection Network Based on Improved YOLOv8.Sensors (Basel). 2024 Oct 9;24(19):6495. doi: 10.3390/s24196495. Sensors (Basel). 2024. PMID: 39409535 Free PMC article.
Cited by
-
Trinocular Vision-Driven Robotic Fertilization: Enhanced YOLOv8n for Precision Mulberry Growth Synchronization.Sensors (Basel). 2025 Apr 24;25(9):2691. doi: 10.3390/s25092691. Sensors (Basel). 2025. PMID: 40363130 Free PMC article.
-
High-resolution RGB image dataset for wheat seed varietal identification and purity assessment.Data Brief. 2025 May 20;61:111690. doi: 10.1016/j.dib.2025.111690. eCollection 2025 Aug. Data Brief. 2025. PMID: 40521154 Free PMC article.
-
YOLOV8-CMS: a high-accuracy deep learning model for automated citrus leaf disease classification and grading.Plant Methods. 2025 Jun 24;21(1):88. doi: 10.1186/s13007-025-01396-3. Plant Methods. 2025. PMID: 40551213 Free PMC article.
-
YOLOv8-licorice: a lightweight salt-resistance detection method for licorice based on seed germination state.Front Plant Sci. 2024 Oct 9;15:1474321. doi: 10.3389/fpls.2024.1474321. eCollection 2024. Front Plant Sci. 2024. PMID: 39445145 Free PMC article.
-
A non-invasive diagnostic approach for neuroblastoma utilizing preoperative enhanced computed tomography and deep learning techniques.Sci Rep. 2025 Apr 26;15(1):14652. doi: 10.1038/s41598-025-99451-5. Sci Rep. 2025. PMID: 40287486 Free PMC article.
References
-
- Xing X., Liu C., Han J., Feng Q., Lu Q., Feng Y. Wheat-Seed Variety Recognition Based on the GC_DRNet Model. Agriculture. 2023;13:2056. doi: 10.3390/agriculture13112056. - DOI
-
- Zhou L. Ph.D. Thesis. Zhejiang University; Hangzhou, China: 2022. Research on Wheat Phenotypic Information Perception Method Based on Spectrum and Image. (In Chinese with English Abstract) - DOI
-
- Yan R., Zhao X., Xiang F., Li Y., Li X., Xi Z., Li P., Gao Y., Li J. Research on the Production Pattern and Fertilization Status of Wheat in China’s Dominant Regions. [(accessed on 29 February 2024)];J. Titioeae Crops. 2024 44:230–241. Available online: http://kns.cnki.net/kcms/detail/61.1359.S.20231018.0954.002.html.
-
- Sun J., Zhang L., Zhou X., Wu X., Shen J., Dai C. Detection of rice seed vigor level by using deep feature of hyperspectral images. Trans. CSAE. 2021;37:171–178. doi: 10.11975/j.issn.1002-6819.2021.14.019. (In Chinese with English Abstract) - DOI
-
- Liu X. Bachelor’s Thesis. Anhui Agriculture University; Hefei, China: 2022. Research on Automatic Counting of Wheat Seed Based on Image Processing. (In Chinese with English Abstract) - DOI
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Miscellaneous