A Preliminary Study on Rice Seedling Detection and Binocular Localization Based on YOLOv8s for Seedling-Avoidance Weeding
Abstract
Accurate detection and localization of rice seedlings are essential for intelligent mechanical weeding. In paddy fields, small target sizes, overlapping leaves, variable illumination, and complex backgrounds make these tasks challenging. This study developed a rice seedling detection and binocular localization system for seedling-avoidance mechanicalweeding. A squeeze-and-excitation (SE) channel attention module was inserted after the SPPF module of YOLOv8 to form SE-YOLOv8s. A binocular vision module used Zhang’s calibration, Bouguet rectification, and semi-global block matching (SGBM) to construct a 3D coordinate system. Using images collected during the tillering stage, SE-YOLOv8s achieved an mAP@0.5 values of 97.8% and 96.1% in single-seedling and four-seedling scenarios, respectively, with inference speeds of 29.8 FPS and 28.8 FPS on a desktop GPU platform. Binocular translation experiments showed mean relative localization errors of 3.25% and 3.02% in the X and Y directions, respectively; Z-direction accuracy was not independently assessed. The detection model, binocular vision module, and Raspberry Pi 4B controller were integrated into a prototype weeding device for functional verification. The results support the feasibility under bench-top conditions at a fixed working distance. Further dynamic field experiments are required to quantify end-to-end latency, localization deviation, seedling-avoidance rate, and seedling damage rate under actual operating conditions.