Abstract:Aiming to address the problems of low weed removal rate and high seedling damage rate caused by the difficulty of dynamically adjusting the rotational speed of the intra-row weeding mechanism of a weeding robot in response to forward speed and plant spacing, a rotational-speed prediction and control method was proposed. Based on the sequential cyclic switching of the weeding mechanism among three operating states (seedling avoidance, cutting into the intra-row zone, and maintaining forward travel), an improved bobcat optimization algorithm (IBOA) was proposed, incorporating good point set initialisation, a differential-Lévy composite exploration mechanism and a multi-elite dual-mode exploitation strategy. An IBOA-optimised one-dimensional convolutional neural network (IBOA-1D-CNN) model was constructed to predict the motor rotational speed, and a fuzzy PID controller was designed to track the target rotational speed in a closed loop. Bench test results showed that the IBOA fitness converged to 0.001 85, outperforming that of PSO, GWO, SSA and the basic bobcat optimization algorithm (BOA). The RMSE values of the lateral-movement and rotary-blade-speed predictions were 24.18 r/min and 14.70 r/min, respectively, representing reductions of 7.5% and 0.6% compared with that of the basic 1D-CNN, with a coefficient of determination R2 of 0.988 4 and a single inference time of 0.011 ms. The forward-reverse commutation lag was only 9~10 ms, with no position overshoot throughout the entire stroke. The system exhibited high robustness under alternating loads, and the three-state switching achieved rapid response, low overshoot and high steady-state accuracy. Field trial results showed that, at forward speeds of 0.2~0.5 m/s, the weed removal rate was 88.4%~91.5% and the seedling damage rate was 6.0%~7.4%. The proposed method outperformed both fixed-speed control and fuzzy PID control alone, and exhibited the smallest performance degradation as speed increased, enabling efficient, low-damage intra-row cultivation and weeding during the seedling stage. These findings could provide a theoretical basis for the design and motion control of intra-row cultivation and weeding robots.