ABSTRACT
Uniform post-sowing compaction reduces moisture evaporation and enhances the contact between seed and soil, thereby optimising the growing environment for the seed. Detection of the compaction force during the seeding process is a prerequisite for actively stabilising the compaction force. The aim of this study was to develop a non-destructive prediction method for the compaction force in a no-till precision planter based on a deep neural network with an attention mechanism (DNN-Attention). The model takes the target compaction force, working speed, triaxial acceleration, and triaxial angle as input variables, and predicts the actual compaction force as the output, with actual measurements of the compaction force made by a force sensor used as the ground truth for training and validation of the model. The proposed prediction method is intended to replace direct force sensing in practical applications, thereby avoiding the need for structural modification and sensor-induced damage. Comparative results show that this segmented modelling approach achieves higher accuracy than overall modelling. The incorporation of an attention mechanism and the application of leave-one-out cross-validation (LOOCV) further enhances the robustness and precision, with coefficients of determination (R2) ranging from 0.78 to 0.92, mean absolute error (MAE) from 11.94 to 23.08, and root mean square error (RMSE) from 17.07 to 38.10. The results of field experiments verify the high prediction accuracy of this approach (R2 = 0.90, MAE = 16.98, RMSE = 23.07). The proposed LOOCV-DNN-Attention model effectively predicts the compaction force without damaging the structure, providing a reliable and non-destructive solution for intelligent compaction control in no-till precision planters.
Key words:
press wheel; inertial sensing; soil bin testing; compaction force predction; model validation
HIGHLIGHTS:
An indirect, non-destructive prediction method for the compaction force is designed based on segmented LOOCV-DNN-Attention.
The dynamic response parameters of the compaction device are selected as predictors for the prediction model.
The proposed LOOCV-DNN-Attention model achieves high prediction accuracy and robustness for prediction of compaction force.
RESUMO
A compactação uniforme após a semeadura reduz a evaporação da umidade e melhora o contato semente-solo. A detecção da força de compactação durante a semeadura é essencial para o controle estável dessa força. Este estudo teve como objetivo desenvolver um método não destrutivo de previsão da força de compactação para semeadoras de precisão em sistema de plantio direto, baseado em uma rede neural profunda com mecanismo de atenção (DNN-Attention). O modelo utiliza como variáveis de entrada a força de compactação alvo, a velocidade de trabalho, a aceleração triaxial e o ângulo triaxial do braço de pressão. A força de compactação real, medida por um sensor de força, foi utilizada como valor de referência (Ground truth) para o treinamento e a validação do modelo, enquanto, na aplicação prática, o método proposto visa substituir a medição direta da força. Os resultados mostraram que a modelagem segmentada apresentou maior precisão do que a modelagem global. A incorporação do mecanismo de atenção e da LOOCV aumentou a robustez e a precisão do modelo, com R2 variando de 0,78 a 0,92, MAE entre 11,94 e 23,08 e RMSE entre 17,07 e 38,10. Os experimentos de campo confirmaram o bom desempenho preditivo do modelo (R2 = 0,90, MAE = 16,98, RMSE = 23,07), demonstrando sua viabilidade para a previsão e o controle inteligente da força de compactação em plantio direto.
Palavras-chave:
roda compactadora; sensoriamento inercial; ensaio em canal de solo; controle de pressão; validação de modelo
INTRODUCTION
Post-seeding compaction plays a crucial role in ensuring the performance of a no-till corn precision planter (Brune et al., 2018). However, a non-uniform surface level and a high level of soil firmness often cause unstable compaction forces (Afzalinia & Zabihi, 2014; Sivarajan et al., 2018). Hence, the development of a detection method for the soil compaction force can improve performance and seed emergence.
Research into the detection of compaction force is still limited, and previous studies have mainly focused on active compaction control. Existing approaches can be classified as direct and indirect methods. Direct methods measure compaction force by installing force sensors on key structural components, such as press wheels, axles, or linkages (Li et al., 2016; Fu et al., 2024). Although these methods offer high measurement accuracy, they require structural modification of the planter, which may reduce its mechanical strength and increase the risk of fatigue failure under long-term loading (Bai et al., 2020; An et al., 2025), meaning that their applicability in the field is limited.
Indirect methods infer the compaction force from other measurable physical quantities, using mechanical models or empirical relationships (Jia et al., 2018). However, their accuracy strongly depends on mathematical modelling, and is sensitive to changes in operating conditions, soil properties, and surface irregularities, resulting in limited robustness under complex field environments.
Although neural networks have been widely used for data-driven modelling in applications involving agricultural machinery and soil, their application to the indirect prediction of the soil compaction force in no-till planter press-wheel systems using multi-sensor dynamic response features remains limited. Neural networks possess strong generalisation capabilities, and can perform effectively on unseen data (Zhou et al., 2019; Zhao et al., 2024). Soni et al. (2025) proposed a PSO-based Chebyshev neural network model for soil moisture prediction, and reported improved accuracy through parameter optimisation. Pan et al. (2015) employed a BP neural network to establish the relationship between maximum stress, compression yield stress, elastic modulus, and the hardness of apples. Prakash et al. (2025) applied an artificial neural network to predict the degree of arm vibration of a tractor during different soil tillage operations. Neural networks have been widely used for mathematical modelling across engineering domains (Zhou et al., 2019; Zhao et al., 2024), but have not been used to model and predict soil compaction forces.
The aim of this study was to develop a non-destructive prediction method for the soil compaction force in no-till planters based on DNN-Attention. The model presented here takes the target compaction force, working speed, triaxial acceleration, and triaxial angle of the press arm as input variables, and generates the actual compaction force as the output. To improve the prediction accuracy and robustness, overall and segmented modelling strategies were systematically compared, and leave-one-out cross-validation (LOOCV) was employed to refine the dataset for the construction of segmented DNN-Attention models. This study provides a data-driven approach for the indirect detection of soil compaction force, and the results will support future integration into intelligent compaction force control systems for no-till planters.
MATERIAL AND METHODS
The proposed non-destructive prediction system for the compaction force of a no-till planter consists of a speed measurement module, an inertial measurement unit (IMU) (Shenzhen Wit, China, WT9011DCL), and a compaction force prediction model, as shown in Figure 1. The speed measurement module was used to monitor the working speed of the no-till planter in real time, while the IMU was installed on the press arm to measure the triaxial acceleration and triaxial angle. The air spring was used to provide a downward force to the press wheel.
System structure and working principle of the proposed non-destructive soil compaction force detection system
The operator adjusts the air pressure of the air spring using an electronic-pneumatic valve (SMC, Japan, ITV2050-322BL), in order to control the target compaction force. The speed measurement module collects data on the working speed, while the IMU records the triaxial acceleration and the angle of the press arm in real time, and the collected sensor data are input into the compaction force prediction model after outlier processing. The compaction force prediction model takes the target compaction force, working speed, triaxial acceleration and triaxial angle as independent variables and the actual compaction force as the dependent variable. This system enables the non-destructive prediction of the compaction force without altering the structure of the planter. In this study, the term “non-destructive” refers to the absence of structural or mechanical modification of the planter; the additional sensors, including the speed measurement module and the IMU, are externally mounted, and do not affect the original mechanical configuration.
Experiments were conducted between October and December 2024 in the Modern Agricultural Equipment Laboratory at Shandong University of Technology, Zibo City, Shandong Province, China (118° 00′ 19.56″ E, 36° 48′ 18.18″ N, and altitude of 35 m). The soil bin used for these experiments had dimensions of 60 × 3 × 0.8 m (length × width × depth). The soil was collected from the central Shandong region, and was classified as brown soil with a loam texture; it was characterised by a moderate particle size distribution and a relatively loose structure, with physical properties that lay between those of clay and sandy soils, with good air permeability, water permeability, water-holding capacity, and thermal insulation performance. The soil bin trolley that was used to tow the no-till planting unit had a traction force of 15 kN, a lifting force of 10 kN, a rated power of 90 kW, and a maximum speed of 10 km h-1. The no-till precision planting unit (Kangda, 2BMZF, China) used was equipped with a pneumatic system, with an air spring as the actuating element to provide a downward force to the press wheel.
To simulate realistic field soil conditions, the soil bin was prepared based on measured soil parameters of the plough layer (0-10 cm). The moisture content of the soil was measured using a soil moisture meter, while the firmness was determined using a soil penetrometer. After natural drying, the soil was compacted with a roller. Post-treatment measurements showed a moisture content of 16% ± 2% and a firmness of 275 ± 25 kPa. In these soil bin experiments, three factors were considered: the working speed, the target compaction force, and surface undulation. A full-factorial design was employed to investigate the effects of these key factors on soil compaction force, with three replications for each treatment. Working speeds of 3, 5, and 7 km h-1 were selected to represent typical field operation ranges for no-till precision planters (Fu et al., 2024; An et al., 2025), while the target compaction force levels (150, 380, 480, 600, 680, and 760 N) were determined based on a soil-bin calibration experiment. Eight types of surface undulation were constructed to simulate different field terrain conditions. During each experiment, the working speed, target compaction force, triaxial acceleration, and triaxial angle of the press arm were recorded as independent variables, while the actual soil compaction force was measured as the dependent variable.
When a planter operates in the field, the autocorrelation function of its vibration follows sine and cosine functions. Following the experimental method of Tang et al. (2021), eight types of surface undulation shown were constructed in this study, as shown in Figure 2, based on the equation in Eq. 1. Figure 2A shows the physically constructed terrain in the soil bin, while the profiles in Figure 2B were produced using acrylic plates, which served as templates to enable accurate construction of the corresponding physical terrain. Surface profiles of this type are commonly used to simulate realistic field-induced excitation of press wheels and to reproduce the dynamic interaction between the planter and uneven soil surfaces under controlled soil bin conditions.
(A) Photograph of the terrain in the soil bin; (B) eight surface undulation profiles with amplitudes of 0.01 m and 0.02 m and periods of 0.2, 0.4, 0.6, and 0.8 m constructed to simulate different field surface conditions
where:
A - amplitude of the terrain profile (with values of 0.01 and 0.02 m);
T - period of the profile (with values of 0.2, 0.4, 0.6 and 0.8 m);
x - horizontal distance along the road, m; and
y - vertical height of the surface, m.
To describe the relationship between the target compaction force, working speed, triaxial acceleration and triaxial angle of the press arm, and the actual compaction force, data on these parameters need to be acquired. The experimental equipment and sensors used for data collection are shown in Figure 3.
Experimental equipment and sensors used for data acquisition (IMU: inertial measurement unit)
An electronic-pneumatic valve was used to regulate the internal air pressure of the air spring, thereby adjusting the force applied to the press wheel. A compaction force detection module was constructed, consisting of force and angle sensors. Soil bin experiments were conducted to establish the relationship between the output voltage of the force sensor, the angle of the press arm, and the compaction force of the press wheel on the ground, using the experimental setup shown in Figure 4. The planter was connected to the soil bin trolley by means of U-shaped clips. An electronic scale (TCS-300, Yongkang Huaying Weighing Equipment Co.) was placed beneath the lifting frame to measure the compaction force applied by the press wheel. The angle sensor and force sensor measured the angle of rotation and the force from the air spring acting on the press wheel, respectively.
A calibration experiment was conducted to establish the relationship between the air-spring pressure and the compaction force applied by the press wheel. The experiment was based on a full factorial design, with two factors: the rotation angle of the press arm and the input voltage of the electronic-pneumatic valve. Seven rotation angles (-3°, -2°, -1°, 0°, 1°, 2°, and 3°) and six input voltages (1.0, 1.5, 2.0, 2.5, 3.0, and 3.5 V) were selected, resulting in 42 treatment combinations, each of which was repeated three times.
During each test, the output voltage of the force sensor (V), the rotation angle of the press arm (α), and the compaction force applied by the press wheel (F) were recorded. The electronic-pneumatic valve (ITV2050-322BL, SMC, Japan) was used to adjust the internal pressure of the air spring, as this allowed for a high level of control over the precision and responsiveness, and has been widely applied in pneumatic actuation systems for agricultural machinery (Fu et al., 2024; An et al., 2025). To eliminate the influence of the lifting frame and the self-weight of the device, the electronic scale was tared after each adjustment of the press arm angle. The experimental data were later used for model fitting and validation of the compaction force detection system.
The actual compaction force applied by the press wheel to the ground, the rotation angle of the press arm, and the output voltage of the force sensor were obtained using a multivariate linear fitting model in MATLAB. The structure of the model was selected based on preliminary correlation analysis, which indicated a linear relationship with both variables. The fitting result is shown in Eq. 2:
where:
F - compaction force, N;
V - output voltage of the force sensor, V; and,
- rotation angle of the press arm, °.
To obtain the working speed of the no-till precision planter, a Hall sensor (CHE12-10NA-H710, Huchuang Industrial Co., China) was used for real-time data acquisition. The guide wheels of the soil bin trolley were equipped with four evenly distributed magnets, symmetrically distributed at 90°. When the magnet was close to the sensor, the sensor output signal changed from low level to high level, and the duration interval was recorded by the data acquisition card. The expression used to calculate the velocity is presented in Eq. 3:
where:
v - working speed of the soil bin vehicle, km h-1;
r - radius of the guide wheel (0.11 m); and,
t - duration obtained from the Hall speed sensor, s.
To obtain the triaxial acceleration and triaxial angle (attitude angles) of the press arm, an IMU (Shenzhen Wit, China, WT9011DCL) was used for real-time data acquisition (100 Hz), with the data transmitted to the upper computer via a Bluetooth module. The resolution of the angle was 0.0055°/LSB, and the resolution of the acceleration was 0.5 mg/LSB. The accuracy of the X and Y axes was 0.2°, and the accuracy of the Z axis was 1°.
The IMU and the force sensor were both sampled at 100 Hz, and the working speed signal was used as the temporal reference for data alignment. Time-stamping was applied to all sensor data streams, and data synchronisation was achieved by matching the IMU and force sensor measurements to the corresponding speed time stamps. This time-based synchronisation ensured consistent temporal alignment among the multi-sensor signals in the dynamic compaction process.
To compare the prediction performance of different modelling approaches, we considered two alternatives based on the DNN, using overall modelling and segmented modelling, where the latter was based on the division of the target compaction force. The aim of this was to determine the optimal modelling strategy. A DNN prediction model incorporating an attention mechanism was also constructed to further improve the prediction accuracy. To further enhance the accuracy and robustness of the model, the data were processed using LOOCV, and the refined dataset was used to develop segmented DNN-Attention prediction models. The dataset comprised 17,175 samples, which were divided into training and test sets in a ratio of 7:3 for each of the six target compaction force levels (Table 1). In the model, the target compaction force, working speed, triaxial acceleration, and triaxial angle of the press arm were taken as independent variables and the compaction force as the dependent variable. All raw data from the repeated trials were retained and used directly for training of the model.
Compared to traditional artificial neural networks, deep neural networks (DNNs) typically have deeper hierarchical structures and more complex connection modes including input layers, multiple hidden layers, and output layers (Spencer et al., 2014; Schmidhuber, 2015). Each layer contains multiple neurons, which are connected by weights to construct a complex network structure. A typical DNN network structure is shown in Figure 5A. The output y of layer i in the DNN model was computed using Eq. 4, while the prediction error was quantified using the loss function defined in Eq. 5. The DNN model yielded a reduced error through the use of backpropagation and a gradient descent function to update the model’s parameters.
Architectural schematics of the neural network models: (A) conventional DNN; (B) DNN model incorporating the attention mechanism
where:
yi - output of the i-th hidden layer;
f - activation function;
Wi - weight matrix of the i -th hidden layer;
xi - input of the i -th hidden layer, and,
b - bias vector.
where:
- actual value, N;
- predicted value, N;
- model parameter; and,
- model parameter.
The attention mechanism is a resource allocation strategy that simulates human attention by increasing the weights of certain features in the input data to improve the predictive performance of the model for complex tasks (Zhang et al., 2024). This involves assigning weights to different input data channels. Weight coefficients are assigned to the feature vectors , and each feature vector is multiplied by its weight coefficient to obtain the weighted features ( Eq. 6):
The output of the attention mechanism c′ has the same shape as the input c. The input features are scaled dynamically based on their importance.
Several signals may contain redundant fault information and a large amount of useless information. To address this issue, an self-attention mechanism was integrated into the DNN to form a DNN-Attention model (Guang et al., 2024; Tian et al., 2024; Wang et al., 2025), as illustrated in Figure 4. This DNN-Attention model consisted of an input layer, three fully connected hidden layers, an attention layer, and an output layer. The input layer received four features: the target compaction force, working speed, triaxial acceleration, and triaxial angle. The three hidden layers contained 10 neurons each, and a rectified linear unit (ReLU) function was adopted as the activation function for all hidden layers. In the output layer, a linear activation function was used to predict the continuous compaction force. A feature-level attention mechanism was incorporated after the hidden layers to adaptively assign weights to different input features based on their relative importance. The attention weights were generated using a fully connected layer followed by a Softmax function, thus enabling the model to emphasise informative features while suppressing less relevant ones. To mitigate overfitting, L2 regularisation was applied during training. Dropout and batch normalisation were not used in this study.
The Adam optimiser, an adaptive learning rate algorithm, was employed to accelerate the training of the DNN and to ensure rapid convergence. This automatically adjusts the learning rate and applies annealing to the step size to improve the stability and efficiency of the training process. In this study, the training parameters were set as follows: the initial learning rate was 0.001, the maximum number of iterations was 1000, and the weight decay coefficient was 0.001. L2 regularisation was applied together with Adam to mitigate overfitting and improve the generalisation performance of the model.
LOOCV is a widely used evaluation method (Challener et al., 2023), and is a special case of k-fold cross-validation in which one sample is selected as the test set while the remaining samples are used for training in each iteration. In this study, the DNN-Attention algorithm was employed to construct the prediction model, which was trained and evaluated iteratively until every sample had been used once as the test set. LOOCV was then applied to compute the prediction errors for all samples and to identify outliers based on a predefined error threshold. Samples with prediction errors greater than the mean absolute error plus two standard deviations were regarded as outliers. This threshold is often used in statistical analysis to identify extreme deviations while preserving the majority of valid samples (Challener et al., 2023), and provides a balance between noise suppression and information retention. Although LOOCV traditionally involves training the model once per sample, the direct application of full LOOCV to a dataset of 17,175 samples would be computationally prohibitive for DNNs; in this case, LOOCV was therefore implemented in an segmented manner, with the primary objectives being data refinement and outlier detection rather than exhaustive evaluation of the model.
To evaluate the performance and reliability of the compaction force prediction model, the coefficient of determination (R2), mean absolute error (MAE), and root mean square error (RMSE) were used as evaluation indexes, as shown in Eq. (7) (Guo et al., 2023; Li et al., 2025). R2 reflects the linear correlation between the predicted and actual values, and ranges from zero to one; the closer the value of R2 to one, the better the model fit. The MAE measures the average absolute difference between the predicted and actual values, and a lower MAE signifies a higher prediction accuracy. The RMSE is calculated as the square root of the average squared differences between predicted and actual values, with smaller values indicating improved model performance.
where:
- predicted value, N;
- actual value, N;
- mean of the actual values, N; and,
n - number of samples.
Field experiments were conducted in the Linzi District of Zibo City (118° 06’ 27’’ E, 36° 37’ 51’’ N), in December 2024. The experimental equipment is shown in Figure 6. The soil moisture content of the field was 17% ± 2%, and the soil firmness was 280±20 kPa. The working speeds were 3, 5, and 7 km h-1. The target compaction force was 380 N, and the seeding depth was 50 mm. For each experiment, data on the target compaction force, working speed, triaxial acceleration, triaxial angle and compaction force were collected. The evaluation indexes used for the experiment were the R2, MAE and RMSE.
RESULTS AND DISCUSSION
To evaluate the accuracy of the compaction force detection model, five additional rotation angles and six input voltages of the electronic-pneumatic valve were tested based on the calibration experiment. A comparison between the measured and predicted compaction forces (Figure 7) shows a strong linear relationship (R2 = 0.96), confirming that the proposed model can effectively capture the nonlinear mapping between the sensor outputs and the actual compaction force. This high level of agreement demonstrates the reliability of the model and its potential applicability for real-time monitoring in a compaction control system.
Fitting results for the compaction force detection model, with predicted versus actual values showing a 1:1 correspondence
R2 - Coefficient of determination
Noise reduction of the force sensor output signal is required, as mechanical vibrations during the operation of the planting unit can cause the force sensor output signal to become adulterated with noise. The Kalman filtering algorithm is a recursive method based on a linear system state and equations derived from observation, in which the optimal value of the system state is iteratively estimated by prediction and updating. This algorithm requires minimal data storage and offers high data processing efficiency, making it well-suited for real-time control systems (So et al., 2017; Xuezhen et al., 2021). Kalman filtering was chosen because it provides adaptive, real-time noise suppression and state estimation capabilities, which are more suitable for dynamic systems with continuous measurement updates than conventional fixed-coefficient filters such as moving average or Butterworth filters. In this study, the process noise covariance (Q) was set to 0.01 and measurement noise covariance (R) to 0.1. The noise reduction performance is shown in Figure 8. These values were determined through trial-and-error tuning, and took into consideration the vibration characteristics of the press wheel system and the noise level observed in the force sensor signal. The selected Q/R combination provided a good balance between noise suppression and signal responsiveness, and was therefore adopted in this study.
Table 2 reports the prediction performance for each target compaction force segment. The overall model achieved an R2 of 0.74, MAE of 43.75, and RMSE of 58.70 on the test set (shown by grey dots) (Figure 9A). Although the performance on the test set was close to that on the training set (blue dots), the overall predictive accuracy remained limited, as the model did not adequately capture the nonlinear variations in the relationship between the dynamic response parameters and the compaction force across different target force levels. The segmented modelling approach achieved R2 values of 0.73-0.80, MAE values of 17.29-42.73, and RMSE values of 24.77-64.93. The segmented models exhibited distinct performance across different force levels: the 150 N segment showed excellent prediction accuracy, with the lowest MAE and RMSE (Figure 9B), while the 380 and 480 N segments yielded stable and consistent performance (Figure 9C and D). In contrast, the 600 and 680 N segments gave a lower accuracy, an effect that can be attributed to increased variability in the soil response at higher compaction forces (Figures 9E and F). The prediction performance improved again at the 760 N level, indicating that segmentation remained effective in capturing localised relationships under conditions of high forces (Figure 9G). In summary, the segmented modelling method enhanced both the fitting accuracy and generalisation ability, thus demonstrating its suitability for predicting soil compaction force under varying operating conditions. After segmentation by target compaction force, the sample distribution within each segment became more balanced, and the variance in the compaction force was substantially reduced compared with the overall dataset. This reduction in data heterogeneity enabled the model to learn more localised nonlinear relationships, thereby improving the prediction accuracy.
Prediction performance of the overall and segmented modelling methods on the test set for the DNN
Comparison of prediction results using overall and segmented DNN models: (A) overall DNN model; (B) segmented DNN model for 150 N (green dots represent the training set and pink dots the test set); (C) segmented DNN model for 380 N; (D) segmented DNN model for 480 N; (E) segmented DNN model for 600 N; (F) segmented DNN model for 680 N; (G) segmented DNN model for 760 N
Table 3 reports the prediction performance of the segmented DNN-Attention model on the test set. The results were consistently better than for DNN, with values for R2 of 0.80-0.86, MAE of 14.34-28.49, and RMSE of 20.77-50.77. As shown in Figures 10A, B and C, the results indicated stable prediction performance at low and medium levels of compaction force. From Figures 10D and E, it can be seen that the DNN-Attention model maintained improved fitting accuracy compared with the DNN, while Figure 10F shows that the model again yielded enhanced prediction accuracy and reduced dispersion. This improvement can be attributed to the ability of the attention mechanism to adaptively assign higher weights to the most relevant input features, while suppressing redundant or noisy information in less influential features. By emphasising informative signals, the model was better able to capture the nonlinear interactions among the dynamic response parameters and the compaction force, particularly under conditions of increased mechanical vibration or soil stiffness variation. The segmented modelling approach and the attention mechanism therefore work synergistically, which improves both the feature representation and the generalisation ability. The model also gave more stable performance on the training set (shown by blue dots) and high predictive accuracy on the test set (red dots), confirming its robustness and reliability in compaction force prediction.
Prediction performance of segmented modelling methods with the proposed deep neural network (DNN-Attention) on the test set
Prediction results for the DNN-Attention models under forces of (A) 150 N; (B) 380 N; (C) 480 N; (D) 600 N; (E) 680 N; (F) 760 N
Table 4 reports the prediction performance for the segmented LOOCV-DNN-Attention model on the test set. It can be seen that it achieves better prediction performance than the DNN-Attention model, with values for R2 of 0.78-0.92, MAE of 11.94-23.08, and RMSE of 17.07-38.10. The model exhibits reliable performance at 150 and 380 N (Figures 11A and B), although a lower accuracy is observed at 480 N (Figure 11C), which may be related to the increased variability in soil response within this force range. At higher compaction forces (600 and 680 N), the prediction accuracy improves again (Figures 11D and E), and the model achieves the best overall performance for the 760 N segment (Figure 11F). These results indicate that the LOOCV algorithm accurately assesses the impacts of the samples on the prediction performance by validating them one by one, ensuring the reliability of data points, and eliminating samples with low predictive accuracy.
Prediction performance of segmented modelling methods with LOOCV-DNN-Attention on the test set
Prediction results for the LOOCV-DNN-Attention model at forces of (A) 150 N; (B) 380 N; (C) 480 N; (D) 600 N; (E) 680 N; (F) 760 N
In summary, the LOOCV-DNN-Attention model achieves a better fit across the different target compaction forces, particularly at medium-low and high target compaction forces. Although the distribution at 150 N appears slightly more dispersed due to its narrower measurement range, the model still achieved a high R2 of 0.89, indicating reliable prediction under low-load conditions. This visual effect should not be interpreted as reduced performance but rather as a consequence of the limited variation in the measured compaction force at this level. The model demonstrates more stable performance on the training set (pink dots) and high predictive ability on the test set (yellow dots).
The multi-sensor data collected during the field experiment were input into the LOOCV-DNN-Attention model, and the prediction results are shown in Figure 12, with values of R2 = 0.90, MAE = 16.98, and RMSE= 23.07. These results indicate that the LOOCV-DNN-Attention model can accurately fit the relationship between the sensor output and the compaction force of the press wheel. This high level of accuracy can be explained by the combined effect of attention-based feature weighting, data segmentation, and LOOCV, which together improve noise suppression and model generalisation. The proposed model achieved high prediction reliability under field conditions, meaning that it offers a feasible basis for non-destructive prediction and intelligent control of compaction force in no-till planters.
In practical implementations, the trained model could be integrated into a real-time control framework through LabVIEW; however, in this study, the focus was on validating the prediction accuracy rather than the full closed-loop control performance. Future work will involve comprehensive closed-loop validation (including tracking error, stability, and dynamic response characteristics), where the predicted compaction force is continuously compared with the target value and the deviation is converted into a voltage signal that is transmitted to a microcontroller to adjust the pneumatic pressure, thereby forming a closed-loop control system. The lightweight computational burden of this model means that its use can also be extended to multi-row planters, where only the relevant segment model is activated during inference. This design minimises the additional computational cost and ensures that requirements for real-time control are satisfied.
It should be clarified that the force sensor is used only during the model training and calibration phase to provide ground-truth compaction force measurements. Once the model has been trained, indirect prediction of the compaction force can be achieved without requiring a force sensor during field operation, thereby preserving the non-destructive nature of the proposed method. We note that the current model was trained and validated on brown loam soil in the central Shandong region within a single field environment, variations in soil texture, moisture content, and that surface residue conditions may alter the dynamic response of the press wheel and reduce the prediction accuracy. Future work will focus on improving the generalisation ability of the model through multi-soil training datasets, domain adaptation strategies, and lightweight recalibration protocols using limited representative samples from new field conditions.
CONCLUSIONS
-
1. The segmented DNN model outperformed the overall modelling approach, achieving higher prediction accuracy (R2 = 0.73-0.80, MAE = 17.29-42.73, RMSE = 24.77-64.93), indicating that the segmentation approach improved the prediction performance and generalisation within the target compaction force segments and the experimental conditions of the study.
-
2. Incorporation of the attention mechanism and application of LOOCV further improved the robustness and precision of the model, giving values of R2 = 0.78-0.92, MAE = 11.94-23.08, and RMSE = 17.07-38.10.
-
3. Field experiments confirmed that the LOOCV-DNN-Attention model could accurately predict the compaction force (R2 = 0.90, MAE = 16.98, RMSE = 23.07), thus demonstrating its feasibility for indirect and non-destructive prediction of compaction force (where the term “non-destructive” refers to avoiding structural modification of the planter, rather than eliminating the use of sensors during model development). The predicted compaction force can serve as an alternative to direct force sensing, meaning that the compaction force can be obtained without the need to install force sensors on load-bearing components.
-
4. It should be noted that the proposed method was trained and validated under a single type of soil and a single field environment. Within these limitations, the proposed approach can be integrated into intelligent compaction force control systems by enabling reliable indirect prediction of compaction force in no-till planters.
1
Financing statement:
Acknowledgement:
This work was supported by the National Key Research and Development Program of China (2024YFD2000404-03), Natural Science Foundation of China (52405280); Natural Science Foundation of Shandong Province (ZR2024QE004, ZR2023QF143, ZR2023QE198), High-quality Development Project for the Ministry of Industry and Information (2023ZY02009), Youth Innovation Team Development Plan for Higher Education Institutions in Shandong Province (2022KJ225).
Data Availability Statement:
The data are not publicly available due to the containing information that could compromise the privacy of research participants.
LITERATURE CITED
-
Afzalinia, S.; Zabihi, J. Soil compaction variation during corn growing season under conservation tillage. Soil and Tillage Research, v.137, p.1-6, 2014. https://doi.org/10.1016/j.still.2013.11.003
» https://doi.org/10.1016/j.still.2013.11.003 -
An, X.; Zhou, Y.; Li, L.; Qin, W.; Meng, Z.; Yin, Y.; Cong, Y. Design and experiment of precision control system for compaction pressure force of corn no-tillage planter. Transactions of the Chinese Society for Agricultural Machinery, v.56, p.72-80, 2025. https://doi.org/10.6041/j.issn.1000-1298.2025.04.006
» https://doi.org/10.6041/j.issn.1000-1298.2025.04.006 -
Bai, H.; Fang, X.; Wang, D.; Yuan, Y.; Zhou, L.; Niu, K. Design and test of control system for seeding depth and compaction of corn precision planter. Transactions of the Chinese Society for Agricultural Machinery, v.51, p.61-72, 2020. https://doi.org/10.6041/j.issn.1000-1298.2020.09.008
» https://doi.org/10.6041/j.issn.1000-1298.2020.09.008 -
Brune, P. F.; Ryan, B. J.; Technow, F.; Myers, D. B. Relating planter downforce and soil strength. Soil and Tillage Research, v.184, p.243-252, 2018. https://doi.org/10.1016/j.still.2018.08.003
» https://doi.org/10.1016/j.still.2018.08.003 -
Challener, R. C.; Welbanks, L.; McGill, P. Bringing 2D eclipse mapping out of the shadows with leave-one-out cross validation. The Astronomical Journal, v.166, e251, 2023.https://doi.org/10.3847/1538-3881/ad0366
» https://doi.org/10.3847/1538-3881/ad0366 -
Fu, Z.; Gong, Z.; Chu, Q.; Li, H.; Zhang, M.; Huang, Y. Design and test of active control system for soil compaction of high speed no-tillage maize planter. Transactions of the Chinese Society for Agricultural Machinery, v.55, p.273-284, 2024. https://doi.org/10.6041/j.issn.1000-1298.2024.11.028
» https://doi.org/10.6041/j.issn.1000-1298.2024.11.028 -
Guang, Y.; Wang, W.; Song, H.; Mi, H.; Tang, J.; Zhao, Z. Prediction of external corrosion rate for buried oil and gas pipelines: A novel deep learning method with DNN and attention mechanism. International Journal of Pressure Vessels and Piping, v.209, p.105218, 2024. https://doi.org/10.1016/j.ijpvp.2024.105218
» https://doi.org/10.1016/j.ijpvp.2024.105218 -
Guo, F.; Wu, X.; Liu, L.; Ye, J.; Wang, T.; Fu, L.; Wu, Y. Prediction of remaining useful life and state of health of lithium batteries based on time series feature and Savitzky-Golay filter combined with gated recurrent unit neural network. Energy, v.270, e126880, 2023. https://doi.org/10.1016/j.energy.2023.126880
» https://doi.org/10.1016/j.energy.2023.126880 -
Jia, H. L.; Wang, W. P.; Chen, Z.; Zhuang, J.; Wang, W. J.; Liu, H. L. Real-time pressure measurement of profiling elastic press roller based on soil cone index. Journal of Jilin University (Engineering and Technology Edition), v.48, p.1169-1175, 2018. https://doi.org/10.13229/j.cnki.jdxbgxb20170351
» https://doi.org/10.13229/j.cnki.jdxbgxb20170351 -
Li, Y.; Meng, P.; Geng, D.; He, K.; Meng, F.; Jiang, M. Intelligent system for adjusting and controlling corn seeding depth. Nongye Jixie Xuebao/Transactions of the Chinese Society for Agricultural Machinery, v.47, p.62-68, 2016. https://doi.org/10.6041/j.issn.1000-1298.2016.S0.010
» https://doi.org/10.6041/j.issn.1000-1298.2016.S0.010 -
Li, Z.; Wang, M.; Xu, R.; Jiang, J.; Li, J.; Zhang, Z.; Yang, A. Prediction of viscosity of blast furnace slag based on NRBO-DNN model. Alexandria Engineering Journal, v.119, p.124-137, 2025. https://doi.org/10.1016/j.aej.2025.01.126
» https://doi.org/10.1016/j.aej.2025.01.126 -
Pan, H.; Yang, J.; Shi, Y.; Li, T. BP neural network application model of predicting the apple hardness. Journal of Computational and Theoretical Nanoscience, v.12, p.2802-2807, 2015. https://doi.org/10.1166/jctn.2015.4180
» https://doi.org/10.1166/jctn.2015.4180 -
Prakash, C.; Singh, L.P.; Gupta, A.; Singh, A. Prediction of hand-arm vibration among tractor operators in different soil tillage operations using artificial neural network-based model. Computers and Electronics in Agriculture, v.230, e109858, 2025. https://doi.org/10.1016/j.compag.2024.109858
» https://doi.org/10.1016/j.compag.2024.109858 -
Schmidhuber, J. Deep learning in neural networks: An overview. Neural Networks, v.61, p.85-117, 2015. https://doi.org/10.1016/j.neunet.2014.09.003
» https://doi.org/10.1016/j.neunet.2014.09.003 -
Sivarajan, S.; Maharlooei, M.; Bajwa, S.G.; Nowatzki, J. Impact of soil compaction due to wheel traffic on corn and soybean growth, development and yield. Soil and Tillage Research, v.175, p.234-243, 2018. https://doi.org/10.1016/j.still.2017.09.001
» https://doi.org/10.1016/j.still.2017.09.001 -
So, S.; George, A.E.; Ghosh, R.; Paliwal, K.K. Kalman filter with sensitivity tuning for improved noise reduction in speech. Circuits, Systems, and Signal Processing, v.36, p.1476-1492, 2017. https://doi.org/10.1007/s00034-016-0363-y
» https://doi.org/10.1007/s00034-016-0363-y -
Soni, P.; Kumar, R.; Mishra, S.; Swain, S.; Mishra, P.; Kumar, S.S. Optimized neural network for soil moisture prediction in precision agriculture. Measurement, v.252, e117380, 2025. https://doi.org/10.1016/j.measurement.2025.117380
» https://doi.org/10.1016/j.measurement.2025.117380 -
Spencer, M.; Eickholt, J.; Cheng, J. A deep learning network approach to ab initio protein secondary structure prediction. IEEE/ACM transactions on computational biology and bioinformatics, v.12, p.103-112, 2014. https://doi.org/10.1109/TCBB.2014.2343960
» https://doi.org/10.1109/TCBB.2014.2343960 -
Tang, Q.; Wu, J.; Jiang, L.; Wu, C.; Xiao, T.; Jiang, T. Design and Test of Hydraulic Profiling System for Rape Seedling Combined Transplanter. Transactions of the Chinese Society for Agricultural Machinery, v.52, p.95-102, 2021. https://doi.org/10.6041/j.issn.1000-1298.2021.11.010
» https://doi.org/10.6041/j.issn.1000-1298.2021.11.010 -
Tian, H.; Wang, P.; Tansey, K.; Wang, J.; Quan, W.; Liu, J. Attention mechanism-based deep learning approach for wheat yield estimation and uncertainty analysis from remotely sensed variables. Agricultural and Forest Meteorology, v.356, e110183, 2024. https://doi.org/10.1016/j.agrformet.2024.110183
» https://doi.org/10.1016/j.agrformet.2024.110183 -
Wang, Z.; Xie, R.; Chen, J.; Kang, T.; Zhang, M. A Flexible winding identification method utilizing self-attention and DNN for the double-suction centrifugal pump. IEEE Transactions on Instrumentation and Measurement, v.23, e3525511, 2025. https://doi.org/10.1109/TIM.2025.3554291
» https://doi.org/10.1109/TIM.2025.3554291 -
Xuezhen, D.; Li, Y.; Wu, Y.; Shuangmin, D.; Zhuoxuan, L.; Yanxin, Y.; Lindong, P. A reduction method for magnetic disturbance caused by DC railway system. Earth, Planets and Space, v.73, 2021. https://doi.org/10.1186/s40623-021-01428-x
» https://doi.org/10.1186/s40623-021-01428-x -
Zhang, Y.; Liu, C.; Liu, M.; Liu, T.; Lin, H.; Huang, C.-B.; Ning, L. Attention is all you need: utilizing attention in AI-enabled drug discovery. Briefings in bioinformatics, v.25, e467, 2024. https://doi.org/10.1093/bib/bbad467
» https://doi.org/10.1093/bib/bbad467 -
Zhao, L.; Um, D.; Nowka, K.; Landivar-Scott, J.L.; Landivar, J.; Bhandari, M. Cotton yield prediction utilizing unmanned aerial vehicles (UAV) and Bayesian neural networks. Computers and Electronics in Agriculture, v.226, e109415, 2024. https://doi.org/10.1016/j.compag.2024.109415
» https://doi.org/10.1016/j.compag.2024.109415 -
Zhou, Y.; Zhang, L.; Yi, Z. Predicting movie box-office revenues using deep neural networks. Neural Computing and Applications, v.31, p.1855-1865, 2019. https://doi.org/10.1007/s00521-017-3162-x
» https://doi.org/10.1007/s00521-017-3162-x















IMU - Inertial Measurement Unit





MAE - Mean absolute error; RMSE - Root mean square error
MAE - Mean Absolute Error; RMSE - Root Mean Square Error
MAE - Mean absolute error; RMSE - Root mean square error
R2 - Coefficient of determination; MAE - Mean absolute error; RMSE - Root mean square error