DOI: 10.3390/agriculture16161746 ISSN: 2077-0472

A Method for Measuring Plant Spacing of Maize Seedlings Based on Improved YOLOv8

Peijing Zhang, Shixiong Yang, Guifa Teng

The uniformity of maize plant spacing serves as a critical indicator for assessing sowing quality, seed vigor, and field seedling emergence stability. However, manual measurement is inefficient, and complex field conditions make automatic seedling detection and plant spacing measurement challenging. Aiming at the challenges of missed detection, insufficient accuracy for small targets, and large errors in plant spacing calculation under complex field conditions, this study constructs a high-quality dataset containing 693 maize seedling images and implements preprocessing enhancement for images degraded by haze or dust. An intelligent maize seedling detection and plant spacing measurement method based on improved YOLOv8 is proposed. The Global Attention Mechanism (GAM) is embedded into the backbone network to strengthen cross-dimension information interaction between channels and spaces, suppress background interference, and reduce the missed detection rate. The Bi-directional Feature Pyramid Network (BiFPN) is adopted to replace the original PAFPN for enhanced multi-scale feature fusion and deep semantic representation. A new 160 × 160 high-resolution small-object detection layer is added to significantly improve the detection performance of weak and small seedlings. Experimental results demonstrate that the improved model achieves a precision, recall, mAP50, and mAP50-95 of 89.4%, 90.3%, 94.4%, and 49.4%, respectively, which are 2.6, 0.5, 1.5, and 2.7 percentage points higher than those of the original YOLOv8 model. These results indicate that the proposed model improved maize seedling detection performance under complex field conditions. Automatic plant spacing calculation is realized based on detection outputs; the average plant spacing of the dataset is 30.42 cm, with a relative error of only 4.93% compared with the preset sowing spacing of 32 cm. The proposed method can efficiently accomplish field seedling identification, plant spacing quantification, and sowing quality evaluation, providing reliable technical support for precision maize sowing, seeder parameter optimization, and intelligent field management, which is of great significance for promoting the intelligent upgrading of grain crop production.

More from our Archive