Agri-PIDNet-S: Lightweight semantic segmentation for field-structure and obstacle perception in seedling-stage cotton fields
Reliable joint perception of crop rows, furrows, and obstacles is essential for autonomous inter-row operations in seedling-stage cotton fields. However, small and sparsely distributed plants, perspective-convergent rows, irregular furrow boundaries, and low obstacle pixel coverage jointly challenge fine-detail preservation, long-range structural modeling, and boundary discrimination under real-time constraints. This study formulated cotton-field perception as a four-class semantic segmentation task and constructed a dataset of 709 pixel-wise annotated images comprising background, crop rows, furrows, and obstacles. We developed Agri-PIDNet-S, a field-specific lightweight network based on PIDNet-S. A coordinate-aware multi-kernel inverted residual module (CA-MKIR) preserves shallow details and small-obstacle contours, a squeeze-and-excitation-enhanced deep-to-token module (SaE-D2T) models long-range row and furrow structures, and a boundary-guided window-attention refinement Bag (BWR-Bag) improves semantic-boundary fusion. The network was trained with a composite loss incorporating auxiliary boundary supervision. On the cotton-field test set, Agri-PIDNet-S achieved 92.37% mean intersection over union (mIoU) and 96.02% mean Dice coefficient (mDice) in the model-comparison experiment, while repeated training with three seeds yielded an mIoU of 92.35 ± 0.03%. Relative to PIDNet-S under the same comparison protocol, mIoU increased by 3.53 percentage points, while obstacle IoU improved from 79.60% to 88.67%. The model contained 8.048 million parameters, required 19.161 GFLOPs, and achieved 155.67 frames per second. Zero-shot external evaluation on tomato, watermelon, and maize fields yielded a structural mIoU of 86.29% for the background, crop-row, and furrow classes. Under the evaluated conditions, the task-oriented modifications achieved higher segmentation point estimates than PIDNet-S while maintaining computational efficiency; the external results provide preliminary evidence of cross-crop structural transfer.
Authors
- Bowen Mao (ORCID: https://orcid.org/0009-0005-4676-5628)
- Xinyu Cao (ORCID: https://orcid.org/0009-0008-1477-5583)
- Yanhong Chen (ORCID: https://orcid.org/0009-0006-6741-4066)
- Yanlin Xin
- Wuchen Wei
- Yongke Li
Institutions
- Xinjiang Agricultural University (CN)
Publication Details
- Journal
- PLoS ONE
- Published
- 2026-11-02
- DOI
- https://doi.org/10.1371/journal.pone.0361992
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00