DOI: 10.3390/electronics15132775 ISSN: 2079-9292

A YOLO11n-Based Visual Framework for Chopped Maize Stalk Length Measurement

Ben Che, Jun Fu, Fengshuang Liu, Zhao Xue

Image-based measurement of chopped maize stalk length remains difficult because the fragments are often slender, curved, touching, or partly overlapped. Bounding-box dimensions are therefore not reliable for length estimation, and manual measurement is too slow for repeated quality assessment. In this study, we developed a YOLO11n-based visual framework for measuring chopped maize stalk length under fixed imaging conditions. The dataset contained 1127 images collected on a laboratory platform and covered stalk lengths of 10–150 mm, different moisture states, and isolated, touching, and overlapping arrangements. To obtain more stable regions of interest, the YOLO11n detector was modified with large separable kernel attention (LSKA), a lightweight cross-scale decoupled detection (LSCD) head, and Wise intersection over union version 3 (WIoU v3). The detected stalk regions were then processed by local segmentation, morphological refinement, skeleton extraction, longest-path calculation, and washer-based scale conversion. The modified detector reached 94.8% precision, 90.4% recall, 96.5% mAP@0.5, and 71.1% mAP@0.5:0.95, with a detector inference speed of 174 FPS. In the length-measurement test, the mean relative errors were 5.8%, 8.3%, and 10.4% for the <40 mm, 40–80 mm, and >80 mm groups, respectively. Across all evaluated fragments, the complete pipeline produced an MAE of 6.0 mm, an RMSE of 9.4 mm, and a mean relative error of 8.2%. The framework therefore provides a practical way to measure chopped maize stalk length under controlled imaging conditions, although long, curved, and cluttered fragments still caused most of the remaining errors.

More from our Archive