Crop Row Line Detection for Rapeseed Seedlings in Complex Environments Based on Improved BiSeNetV2 and Dynamic Sliding Window Fitting
Crop row line detection is essential for precision agriculture, supporting autonomous navigation, field management, and growth monitoring. To address the low detection accuracy of rapeseed seedling rows under complex field conditions, this study proposes a detection framework that integrates an improved BiSeNetV2 with a dynamic sliding-window fitting strategy. The improved BiSeNetV2 incorporates the Efficient Channel Attention (ECA) mechanism to strengthen crop-specific feature representation, an Atrous Spatial Pyramid Pooling (ASPP) decoder to improve multi-scale perception, and Depthwise Separable Convolutions (DS Conv) in the Detail Branch to reduce model complexity while preserving accuracy. After semantic segmentation, a Gaussian-filtered vertical projection method is applied to identify crop-row regions by locating density peaks. A dynamic sliding-window algorithm is then used to extract row trajectories, with the window size adaptively determined by the row width and the sliding process incorporating both a lateral inertial-drift strategy and a dynamically adjusted longitudinal step size. Finally, variable-order polynomial fitting is performed within each crop-row region to achieve precise extraction of the crop-row lines. Experimental results indicate that the improved BiSeNetV2 model achieved a Mean Pixel Accuracy (mPA) of 87.73% and a Mean Intersection over Union (MIoU) of 79.40% on the rapeseed seedling dataset, marking improvements of 9.98% and 8.56%, respectively, compared to the original BiSeNetV2. The crop row detection performance for rapeseed seedlings under different environmental conditions demonstrated that the Curve Fitting Coefficient (CFC), Root Mean Squared Error (RMSE), and Mean Absolute Error (MAE) were 0.85, 1.57, and 1.27 pixels on sunny days; 0.86, 2.05 and 1.63 pixels on cloudy days; 0.74, 2.89, and 2.22 pixels on foggy days; and 0.76, 1.38, and 1.11 pixels during the evening, respectively. The results reveal that the improved BiSeNetV2 can effectively identify rapeseed seedlings, and the detection algorithm can identify crop row lines in various complex environments. This research provides methodological support for crop row line detection in precision agriculture.
Authors
- Wanjing Dong (ORCID: https://orcid.org/0000-0002-1437-7365)
- Fanguo Zeng (ORCID: https://orcid.org/0000-0002-7648-5193)
- Zhendong Liu (ORCID: https://orcid.org/0000-0002-7554-7962)
- Ye Jiang (ORCID: https://orcid.org/0000-0003-2195-4092)
- Rui Wang
- Qingyang Shi
- Yang Zhang
- Wei Xu
Institutions
- Huazhong Agricultural University (CN)
- Ministry of Agriculture and Rural Affairs (CN)
Publication Details
- Journal
- Agriculture
- Published
- 2025-12-21
- DOI
- https://doi.org/10.3390/agriculture16010023
- Citations
- 1
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 1.75