Abstract:Tillage depth is a key indicator for quantitatively evaluating the operational quality of soil preparation processes such as deep plowing and subsoiling, and its accurate measurement is of great significance for improving tillage quality, optimizing soil structure, and increasing crop yield. Currently, tillage depth is mainly measured based on the posture parameters of the tractor three-point hitch linkage or by profiling mechanisms;however, these methods are highly dependent on the initial calibration results and rely heavily on additional sensors and mechanical structures. A tillage depth measurement method based on an improved random forest regression model was proposed. Key input features were constructed by using real-time operating condition data obtained from the tractor electronic control unit (ECU), including wheel speed, drawbar pull, rear hitch position, engine speed, and instantaneous fuel consumption. A weighted bootstrap mechanism was employed to dynamically assign sample weights, and Bayesian optimization was introduced to perform hyperparameter tuning, thereby improving the fitting capability and stability of the model and enabling data-driven tillage depth measurement. Based on the test set results, compared with the conventional model, the improved model achieved an increase of 0.16 in R2, while the mean squared error (MSE) and mean absolute error (MAE) were reduced by 0.63 cm2 and 0.46 cm, respectively. Field experiment results showed that under multiple operating conditions, the maximum error between the predicted and actual tillage depth was 1.78 cm, and the average error was 0.73 cm, providing technical support for information acquisition in agricultural machinery operations.