IDEAS home Printed from https://ideas.repec.org/a/gam/jagris/v15y2025i14p1510-d1700802.html
   My bibliography  Save this article

YOLOv8n-SSDW: A Lightweight and Accurate Model for Barnyard Grass Detection in Fields

Author

Listed:
  • Yan Sun

    (School of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China
    National Digital Agriculture Regional Innovation Center (Northeast), Shenyang 110866, China
    Key Laboratory of Smart Agriculture Technology in Liaoning Province, Shenyang 110866, China)

  • Hanrui Guo

    (School of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China
    National Digital Agriculture Regional Innovation Center (Northeast), Shenyang 110866, China
    Key Laboratory of Smart Agriculture Technology in Liaoning Province, Shenyang 110866, China)

  • Xiaoan Chen

    (School of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China
    National Digital Agriculture Regional Innovation Center (Northeast), Shenyang 110866, China
    Key Laboratory of Smart Agriculture Technology in Liaoning Province, Shenyang 110866, China)

  • Mengqi Li

    (School of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China
    National Digital Agriculture Regional Innovation Center (Northeast), Shenyang 110866, China
    Key Laboratory of Smart Agriculture Technology in Liaoning Province, Shenyang 110866, China)

  • Bing Fang

    (Department of Foreign Language Teaching, Shenyang Agricultural University, Shenyang 110866, China)

  • Yingli Cao

    (School of Information and Electrical Engineering, Shenyang Agricultural University, Shenyang 110866, China
    National Digital Agriculture Regional Innovation Center (Northeast), Shenyang 110866, China
    Key Laboratory of Smart Agriculture Technology in Liaoning Province, Shenyang 110866, China)

Abstract

Barnyard grass is a major noxious weed in paddy fields. Accurate and efficient identification of barnyard grass is crucial for precision field management. However, existing deep learning models generally suffer from high parameter counts and computational complexity, limiting their practical application in field scenarios. Moreover, the morphological similarity, overlapping, and occlusion between barnyard grass and rice pose challenges for reliable detection in complex environments. To address these issues, this study constructed a barnyard grass detection dataset using high-resolution images captured by a drone equipped with a high-definition camera in rice experimental fields in Haicheng City, Liaoning Province. A lightweight field barnyard grass detection model, YOLOv8n-SSDW, was proposed to enhance detection precision and speed. Based on the baseline YOLOv8n model, a novel Separable Residual Coord Conv (SRCConv) was designed to replace the original convolution module, significantly reducing parameters while maintaining detection accuracy. The Spatio-Channel Enhanced Attention Module (SEAM) was introduced and optimized to improve sensitivity to barnyard grass edge features. Additionally, the lightweight and efficient Dysample upsampling module was incorporated to enhance feature map resolution. A new WIoU loss function was developed to improve bounding box classification and regression accuracy. Comprehensive performance analysis demonstrated that YOLOv8n-SSDW outperformed state-of-the-art models. Ablation studies confirmed the effectiveness of each improvement module. The final fused model achieved lightweight performance while improving detection accuracy, with a 2.2% increase in mAP_50, 3.8% higher precision, 0.6% higher recall, 10.6% fewer parameters, 9.8% lower FLOPs, and an 11.1% reduction in model size compared to the baseline. Field tests using drones combined with ground-based computers further validated the model’s robustness in real-world complex paddy environments. The results indicate that YOLOv8n-SSDW exhibits excellent accuracy and efficiency. This study provides valuable insights for barnyard grass detection in rice fields.

Suggested Citation

  • Yan Sun & Hanrui Guo & Xiaoan Chen & Mengqi Li & Bing Fang & Yingli Cao, 2025. "YOLOv8n-SSDW: A Lightweight and Accurate Model for Barnyard Grass Detection in Fields," Agriculture, MDPI, vol. 15(14), pages 1-25, July.
  • Handle: RePEc:gam:jagris:v:15:y:2025:i:14:p:1510-:d:1700802
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/15/14/1510/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/15/14/1510/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:15:y:2025:i:14:p:1510-:d:1700802. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.