Straw row grouping is vital in conservation tillage for precision seeding, and accurate centerline extraction of the seedling bands enhances agricultural spraying efficiency. However, the traditional single-threshold Otsu segmentation struggles with adaptability and accuracy under complex field conditions. To overcome these issues, this study proposes an adaptive multi-threshold Otsu algorithm optimized by a Simulated Annealing-Enhanced Differential Evolution–Whale Optimization Algorithm (SADE-WOA). The method avoids premature convergence and improves population diversity by embedding the crossover mechanism of Differential Evolution (DE) into the Whale Optimization Algorithm (WOA) and introducing a vector disturbance strategy. It adaptively selects thresholds based on straw-covered image features. Combined with least-squares fitting, it suppresses noise and improves centerline continuity. The experimental results show that SADE-WOA accurately separates soil regions while preserving straw texture, achieving higher between-class variance and significantly faster convergence than the other tested algorithms. It runs at just one-tenth of the time of the Grey Wolf Optimizer and one-ninth of that of DE and requires only one-sixth to one-seventh of the time needed by DE-GWO. During centerline fitting, the mean yaw angle error (MEA) ranged from 0.34° to 0.67°, remaining well within the 5° tolerance required for agricultural navigation. The root-mean-square error (RMSE) fell between 0.37° and 0.73°, while the mean relative error (MRE) stayed below 0.2%, effectively reducing the influence of noise and improving both accuracy and robustness.
Accurately quantifying the amount of corn straw returned to the field is crucial for evaluating conservation tillage measures and phaeozem protection. This study proposes a framework for quantitatively estimating the amount of corn straw returned to the field based on UAV multispectral imaging, integrating a standardized spectral correction strategy, a novel straw index (SI), and an improved deep learning model (convolutional neural network-straw, CNN-Straw). By combining multispectral images acquired by UAVs with ground-measured straw weight data, regression datasets covering autumn and spring conditions were constructed. The proposed straw index aims to enhance the spectral differences between non-photosynthetic straw residues and living vegetation. Furthermore, the CNN-Straw model, combining frequency domain convolution and local spatial attention mechanisms, has an improved ability to represent the complex texture of straw features. Experimental results show that CNN-Straw outperforms traditional machine learning models, including random forest (RF), support vector regression (SVR), and XGBoost, achieving a high coefficient of determination (R2) of 0.82 on different seasonal datasets and effectively reducing the root mean square error (RMSE) and mean absolute error (MAE). Cross-seasonal experiments further demonstrate the stable performance of the framework under different environmental conditions. The proposed method provides an efficient and scalable solution for the quantitative assessment of straw return to the field, supporting precision agricultural management and phaeozem conservation practices.