Abstract
Precise curvilinear path tracking remains a persistent challenge for autonomous agricultural machines, where conventional Model Predictive Control (MPC) suffers from poor adaptability to varying curvatures and high computational overhead in unstructured farmland environments. This paper proposes a soft-constrained MPC framework enhanced by a two-layer fuzzy architecture and Recursive Least Squares filtering to address these limitations simultaneously. The first fuzzy layer dynamically adjusts the MPC prediction horizon in response to real-time path curvature, enabling proactive steering on complex curved trajectories. The second fuzzy layer tunes the state weighting matrix online based on lateral and heading deviations, improving transient tracking accuracy without increasing computational cost. Recursive Least Squares filtering is further integrated to suppress sensor noise and compensate for tire slip dynamics inherent to farmland operation. The proposed framework is validated using MATLAB simulations on both constant-curvature semicircular paths and variable-curvature S-curve trajectories at operational speeds of 2.0 and 2.5 m/s, followed by outdoor field trials on a scaled autonomous robot platform. Simulation results demonstrate average tracking error reductions of 52.7–55.9% on constant-curvature paths and 10.8–18.2% on variable-curvature paths compared to fixed-parameter soft-constrained MPC. Field experiments confirm practical viability, achieving an RMS lateral error of 0.131 m over a 50 m curved route on natural terrain. These results demonstrate that the hierarchical decomposition of adaptation objectives yields substantial accuracy gains while preserving real-time feasibility on resource-constrained embedded platforms.
1. Introduction
Autonomous navigation in agricultural fields demands precise path tracking under challenging conditions: unstructured terrain, variable soil properties, and the need to follow both straight furrows and curved headland turns. While straight-line tracking has been extensively studied, curvilinear path navigation remains problematic due to the dynamic coupling between vehicle kinematics, tire-terrain interaction, and control authority limits. Model Predictive Control (MPC) has emerged as a promising framework for path tracking due to its ability to handle constraints and optimize multi-step predictions [1,2]. However, standard MPC formulations face a fundamental trade-off: accurate tracking of curved paths requires long prediction horizons and frequent re-optimization, leading to computational burdens that prevent real-time deployment on resource-constrained agricultural platforms [3,4].
Traditional MPC faces challenges such as insufficient tracking accuracy and poor control stability [5]. Based on the issues identified in traditional MPC, many researchers have worked to optimize the algorithm by incorporating other methods. Beal et al. [6] developed a path tracking controller using a model prediction algorithm, defining stability boundaries based on the maximum available tire force to ensure driving stability. Zhang et al. [7] applied the kinematic model and state lattice method within the MPC framework to achieve path tracking control and improve control accuracy. Similarly, Zhang et al. [8] incorporated the preview heading angle as an input for steering control, which reduced heading and lateral errors. Liu et al. [9] integrated real-time feedback and roll adjustment strategies into the MPC controller, resulting in minimized lateral and longitudinal errors. Zhou et al. [10] employed genetic algorithms to optimize vehicle speed, vehicle attitude, and MPC time-domain parameters online, achieving adaptive MPC for various environments and improving accuracy and stability. Choi et al. [11] dynamically adjusted the sampling time based on lateral speed and front wheel angle, creating hybrid scenarios of straight and curved lanes to fulfill realistic vehicle path tracking requirements. Chu et al. [12] applied the artificial potential field method to derive the target trajectory and combined PID with MPC algorithms for path tracking, which improved tracking accuracy and provided smoother steering. Xing et al. [13] proposed a joint Cartesian-Fretter MPC planning method based on local linear mediator connections, which ensured smooth operations in real-world scenarios and enhanced stability. Meng et al. [14] designed an MPC controller based on preview distance, and simulation tests demonstrated improved accuracy and stability in path tracking compared to traditional MPC.
Although these studies successfully improved the control accuracy and stability of MPC controllers, they did not address the challenges associated with large operational volumes and long response times in practical MPC applications. While integrating multiple algorithms with MPC enhanced control accuracy, it also significantly increased computational demands. To overcome this, Zuo et al. [15] proposed a progressive model prediction scheme combined with the particle swarm algorithm, which reduced the computational workload of MPC while optimizing output to improve controller accuracy. Wabersich et al. [16] proposed a soft-constrained MPC formulation that softened traditional constraint problems, reducing the computational workload and increasing speed, while also moderately improving controller accuracy. Nie et al. [17] applied soft-constraint MPC to vehicle path tracking, achieving improved control accuracy and notably reducing computational effort.
Recent advances have further explored the balance between tracking accuracy and real-time feasibility on resource-constrained platforms. He et al. [18] developed an adaptive time-horizon MPC controller for an autonomous mowing robot, in which path curvature and its rate of change are fed into a fuzzy inference engine to dynamically extend the prediction horizon on curves, demonstrating that curvature-aware horizon adaptation can yield measurable accuracy gains without violating embedded platform timing budgets. Sun et al. [19] proposed a longitudinal-lateral coupling MPC path tracking system incorporating tire sideslip constraints, achieving lateral error reductions of approximately 19% over conventional fixed-parameter MPC while maintaining real-time execution on standard onboard hardware. Xu et al. [20] addressed the challenge of complex orchard terrain by combining a linear time-varying MPC formulation with particle swarm optimization of the weight matrix, substantially improving trajectory tracking accuracy for articulated tractors under variable operating conditions. Sun et al. [21] introduced a parameter-adaptive MPC framework that synergizes fuzzy logic with PSO-based weight tuning, demonstrating improved adaptability across diverse path geometries in agricultural field validation. Despite these advances, a common limitation persists: existing methods typically optimize either the prediction horizon or the state weight matrix in isolation, and few works simultaneously address curvature-adaptive horizon scheduling, online weight adjustment, and sensor noise compensation within a single computationally efficient architecture suitable for unstructured farmland curve tracking.
In the control process of the soft-constrained MPC controller, softening the MPC constraints has been shown to reduce the computational burden and improve control accuracy [22]. However, previous research overlooked several critical issues. For instance, the controller exhibited insufficient accuracy and experienced significant oscillations under noise interference [23]. Additionally, the adjustment weight coefficients for the controller’s state variables could not be modified in real time based on the vehicle’s state, resulting in low control accuracy [24]. Agricultural machines operating in farmland often encountered unstructured paths, such as straight-line operation routes and curved steering paths. Compared to straight-line tracking, curve path tracking posed greater challenges, including poor tracking accuracy, strong oscillations induced by steering, and complex road conditions, posing significant control challenges for autonomous agricultural machines on curved paths [25,26].
To address these issues and reduce the computational burden of MPC, this study optimized the soft-constrained MPC by designing two sets of expected curved paths: one with constant curvature and the other with variable curvature. Path tracking experiments were conducted under two different speed conditions (2 m/s and 2.5 m/s) using virtual simulations in MATLAB. The unimproved soft-constrained MPC was also tested as a control group for comparison, through which the comprehensive advantages of the proposed algorithm in tracking accuracy, stability and real-time performance are verified.
The main contributions of this article are as follows:
- (1)
- This study addresses the challenge of poor curve path tracking accuracy in agricultural machines operating in farmland. To improve accuracy, a two-layer fuzzy-enhanced model predictive control method is proposed. Specifically, a fuzzy controller is designed to optimize the state adjustment weight matrix of the MPC in real time, based on the current lateral deviation and heading deviation. Additionally, another fuzzy controller is implemented to adjust the MPC step size dynamically, depending on the current path curvature.
- (2)
- To tackle the issue of noise interference arising from the complex farmland environment, the Recursive Least Squares (RLS) algorithm is employed to compensate and optimize the MPC.
- (3)
- In the context of steering agricultural machines on farmland curves, tire offset is induced by the complexity of the path [27]. To mitigate this error, the paper introduces a compensation algorithm that provides effective error correction.
2. Vehicle Kinematic Model
2.1. Ackermann Steering Mode
The vehicle kinematics model describes the position and velocity of the vehicle over time and serves as the basis for path tracking in agricultural machines. The Ackermann steering model for the agricultural machine is depicted in Figure 1. In this model, an inertial coordinate system, X-O-Y, is established, within which the agricultural machine operates. Point A denotes the center of the rear wheel of the agricultural machine, Point B1 represents the center of the front axle, and Point C is the center of the circle around which the machine turns. The variables φ, v, δf, R and L represent the current heading angle, forward speed, front wheel steering angle, turn radius, and wheelbase, respectively. Additionally, Point G1 marks the center of mass of the agricultural machine.
Figure 1.
Ackermann steering model for agricultural machine.
Based on the geometric relationships illustrated in Figure 1, the kinematic model of the agricultural machine can be formulated as shown in Equation (1):
where denotes the forward speed of the agricultural machine along the X-axis, represents the forward speed along the Y-axis, and is the angular velocity of the heading angle.
Based on the geometric relationships within the Vehicle Kinematic Model illustrated in Figure 1, the front wheel steering angle of the vehicle is given by:
2.2. Compensate for Model Errors
When an agricultural machine navigates curved paths in farmland, lateral tire deviation can cause the machine to drift sideways, compromising its stability and control performance. To address this issue, kinematic tire compensation is applied. This approach accounts for the effect of tire lateral deviation on the machine’s motion by measuring the heading angle and lateral deviation angle. These measurements are then integrated into the machine’s kinematic model to calculate the necessary compensation [28]. The compensation mechanism is depicted by the blue dotted line in Figure 1. In this diagram, Point G2 represents the center of mass of the agricultural machine after the offset, and Point B2 denotes the center of the front axle after the offset. Lr refers to the distance from the rear axle to the center of mass, while Lf indicates the distance from the front axle to the center of mass.
From the geometric relationships in Figure 1, a kinematic model of the vehicle after offset can be derived:
Here, is the expression for the sideslip angle of the vehicle, which can be calculated using the formula derived from the vehicle dynamics model:
where is the distance from the rear axle to the center of mass; is the distance from the front axle to the center of mass; is the longitudinal velocity; is the longitudinal acceleration.
3. Two-Layer Fuzzy Control Optimization Model Predictive Control
3.1. Working Principle of Two-Layer Fuzzy Control Optimization MPC
This section addresses the challenge of low tracking accuracy in curved steering paths for agricultural machines. To overcome this, the proposed controller dynamically adjusts the weight matrix and control time domain to enable effective tracking of complex curved paths. Compared to the conventional soft-constrained MPC algorithm, this study introduces an enhanced version by integrating a two-layer fuzzy logic approach. The working principle of the algorithm is illustrated in Figure 2.
Figure 2.
MPC based on two-layer fuzzy control.
3.2. Linear Discretization of the System
The kinematic model of the agricultural machine is utilized, as shown in Figure 1. The compensation kinematic equation under the ground-fixed coordinate system X-O-Y is presented in Equation (5). By analyzing this equation, the path tracking controller can be modeled as a control system with control inputs and state variables . Its form can be expressed as
where is the expression for the agricultural machine path tracking control system function.
It is expected that Equation (5) is expressed at any point on the path, and assuming that the subscript of each parameter denotes the reference quantity at the reference position, Equation (6) can be expressed as
Based on the kinematic equations, it is evident that the control system discussed in this study is nonlinear and, therefore, cannot be directly applied to the MPC system. As a result, it is necessary to approximate the linearization of the control system function. In this study, feedback linearization is employed, as it effectively linearizes the system. The Taylor expansion of Equation (7) at any given point, while neglecting higher-order terms, is used to achieve this linearization.
Subtracting Equation (6) from Equation (7) yields a linear expression for the path tracking error of the autonomous agricultural machine as
where subscript denotes the reference value evaluated along the desired trajectory; and are the reference heading angle and longitudinal speed, respectively.
Since the kinematic model of the agricultural machine is continuous, it needs to be discretized. In this study, forward Euler discretization is used, with set as the sampling time, and and as linear time-varying matrices.
where
where is any time instant, and is the sampling time.
3.3. Model Prediction
After obtaining the discretized linear equations of motion, the objective function needs to be designed based on the error to predict the future output of the agricultural machine. The state quantity at the -th moment is given by Equation (10).
where is expressed as the new state quantity at moment .
Equation (11), the expression for the next moment is expressed as
By combining Equations (9)–(12), the new spatial expression is expressed as
where , ; is the control increment at moment , is the state quantity dimension, is the control volume dimension, is the time parameter, is the identity matrix, and is the zero matrix.
3.4. RLS Algorithm for Noise Reduction Processing
In order to reduce controller oscillations caused by noise, Equation (13) will be noise-reduced using the RLS algorithm. The RLS algorithm is a least squares-based adaptive filtering algorithm used for estimating the coefficients of the filter [29]. The basic principle of the RLS algorithm is to optimize the filtering effect by gradually updating the filter coefficients using current observations, with the aim of minimizing the mean square error of the prediction error [30]. The resulting spatial expression after noise reduction is expressed as follows:
where is the Kalman gain vector; is the covariance matrix initialized as is the regression vector; is the estimated parameter vector; is the observation matrix; is the forgetting factor set to , corresponding to an effective memory window of approximately sampling steps, selected empirically to balance noise suppression and tracking responsiveness); and is the identity matrix.
Assuming that is the system prediction step and is the system control step, the expression for the state of the system at a future time is expressed as:
It should be noted that, in practical deployments, delays in control signal transmission can degrade closed-loop performance if not properly managed [31]. In the present framework, the sampling period is set to = 0.05 s. The end-to-end computation time per control cycle on the Jetson Orin Nano embedded platform was empirically verified to remain well within this interval during field trials, ensuring that the total loop delay is sub-sampling-period and does not induce additional phase lag in the closed-loop response. The RLS coefficient update is executed inline within the same control cycle, contributing negligible additional latency. Although a formal delay-margin analysis lies beyond the scope of the current work, the field validation results confirm that the control architecture operates without observable delay-induced degradation under the tested conditions.
When an agricultural machine is traveling on a curved road, significant changes in path curvature can occur. In such cases, the Model Predictive Controller may struggle to accurately predict and adapt to these changes, especially if it has a short and fixed control step length [32]. To address this issue, one approach is to increase the control step length , which can improve the controller’s ability to predict future states of the agricultural machine and adjust the steering accordingly, enabling more effective navigation of the curved road [33]. However, it is important to note that excessively long control step lengths can increase the computational demands of the MPC and potentially affect the controller’s real-time performance. In this study, a fuzzy controller is proposed to determine and output the appropriate control step by considering the steering paths of agricultural machinery with varying curvatures, thereby ensuring the required accuracy.
3.5. Fuzzy Control Output of Control Steps
While the prediction horizon = 50 sampling steps (corresponding to a prediction window of 2.5 s at T = 0.05 s) remains fixed to provide sufficient look-ahead coverage of the curved trajectory, the control horizon ∈ {25, 30, 35, 40} sampling steps is adaptively tuned by the fuzzy controller according to path curvature.
A fuzzy control output control steps schematic is shown in Figure 3.
Figure 3.
Schematic diagram of fuzzy control output control steps.
The path curvature kc can have both positive and negative values. In designing the fuzzy controller for agricultural machines, it is important to consider the range of turning radius and path curvature.
Path curvature : The basic domain is [−0.5, 0.5], with quantization levels defined as {−0.5, −0.4, −0.3, 0, 0.3, 0.4, 0.5} corresponding to {NL, NM, NS, Z, PS, PM, PL}. The quantization factor is set to 1.
Control step : The basic domain is [25, 40], with quantization levels defined as {25, 30, 35, 40} corresponding to {Z, S, M, L}. The quantization factor is set to 1.
The design of fuzzy control rules for determining the value of the control step is described as follows: When the lateral deviation d is large, it significantly affects the tracking performance, necessitating a quick response from the agricultural machine. As a result, the emphasis on lateral deviation increases, and the weight coefficient should be adjusted upward. Conversely, when the lateral deviation is small, the weight coefficient should be reduced.
Seven control rules can be derived based on the different states of the agricultural machine, as shown in Table 1.
Table 1.
Fuzzy rules for .
In this study, the center of gravity method is used to defuzzify the control step . The resulting is then applied to the MPC controller by multiplying it with the identity matrix.
By deriving Equation (17) using the recursive formula, we obtain the expression of the prediction model as Equation (18). In Equation (18), represents the system prediction output matrix, denotes the system state quantity prediction parameter matrix, and is the control increment sequence parameter. Additionally, the control increment sequence is represented by a matrix, serves as the parameter matrix for the noise sampling sequence, denotes the noise sampling sequence matrix, and represents the error coefficient sequence.
where , ,
3.6. Rolling Optimization
To enhance the agricultural machine’s ability to track the reference path efficiently and seamlessly, while ensuring a viable solution to the optimization problem within the given constraints, this study employs a performance index function that integrates soft constraints:
where is the relaxation factor used to prevent the system from having no solution. and are the weight matrices for prediction, and represents the weight coefficient. Both and indicate the number of iterations.
The weight matrix is an integral part of the cost function that defines the system’s state. By adjusting the elements of , the importance assigned to different aspects of the system state can be regulated [34,35]. Typically, if a state is more critical to the system’s performance, the corresponding elements of are set to higher values to emphasize that state’s significance. Therefore, this study introduces a fuzzy control approach to dynamically adjust in real time based on the lateral and heading deviations.
In this study, the lateral deviation and heading deviation of the agricultural machine are considered key factors for determining the magnitude of . Using a fuzzy controller, an appropriate weight matrix is generated. This matrix is designed as a weight coefficient multiplied by a positive definite matrix, enabling the fuzzy control system to output only the weight coefficient .
3.7. Fuzzy Control Output of Weight Coefficient B
A flowchart of the fuzzy control output weight coefficients is shown in Figure 4.
Figure 4.
Schematic diagram of fuzzy control output weight coefficients.
In the following, the basic domain of the fuzzy controller is designed based on the lateral and heading deviations.
Lateral deviation : The basic domain is [−10 cm, 10 cm], with quantization levels defined as {−10 cm, −6 cm, −3 cm, 0 cm, 3 cm, 6 cm, 10 cm} corresponding to {NL, NM, NS, Z, PS, PM, PL}. The quantization factor is set to 1.
Heading deviation : The basic domain is [−15°, 15°], with quantization levels defined as {−15°, −10°, −5°, 0°, 5°, 10°, 15°} corresponding to {NL, NM, NS, Z, PS, PM, PL}. The quantization factor is set to 1.
Weighting factor : The basic domain is [101, 104], with quantization levels defined as {101, 102, 103, 104} corresponding to {Z, S, M, L}. The quantization factor is set to 1.
In this study, triangular membership functions are chosen for both the input and output quantities.
The design of the weight coefficient based on fuzzy control rules is described as follows: When the lateral deviation is large, it has a greater impact on the tracking performance, requiring a quick response from the agricultural machine. Therefore, the lateral deviation is given more emphasis, and the weight coefficient should be larger. Conversely, when the lateral deviation is small, the weight coefficient should be reduced.
Based on the different states of the agricultural machine, 49 control rules can be derived, as shown in Table 2.
Table 2.
Fuzzy rules for the weight matrix B.
In this study, the center of gravity method is used for the defuzzification of the weight coefficients . The defuzzified weight coefficients are then multiplied by the unit matrix and applied to the MPC controller.
Converting Equation (20) into a vector expression:
where , , denotes the Crowe inner product operation.
The constraints on the control quantity and control increment are also incorporated as penalty terms. Let umin and umax represent the minimum and maximum values of the control constraints, respectively. Similarly, Δumin and Δumax denote the minimum and maximum values of the control increment constraints. Both the control quantity and control increment must not exceed their respective constraints:
The interior point method is used to solve for the control quantity and control increment. The next stage of the model is predicted based on the current state quantity, control quantity, and control increment.
4. Simulation and Experimental Validation
4.1. Simulation Setup
Simulations were conducted in MATLAB R2022b on a workstation with Intel® Core™ i5−9400H CPU and 8 GB RAM running Windows 10. The vehicle model parameters are based on the Kubota B2440 tractor, with specifications detailed in Table 3.
Table 3.
Kubota B2440 tractor parameters.
Control parameters are configured as shown in Table 4. The two-layer fuzzy system dynamically adjusts the weight matrix Q and control horizon MA online based on path curvature and tracking errors, while other parameters remain fixed [36]. For comparison, an unimproved soft-constrained MPC controller with fixed parameters (Q = diag(100, 100), MA = 30) serves as the baseline.
Table 4.
Two-layer fuzzy MPC parameter setting.
Two test scenarios were designed to evaluate tracking performance: Constant curvature path: 180° semicircular arc with radius R = 10 m. Variable curvature path: S-curve trajectory with curvature varying from 0 to 0.3 m−1 Each scenario was tested at two operational speeds: = 2.0 m/s and = 2.5 m/s, representing typical agricultural operation ranges. Initial conditions were set with the vehicle starting at (X = −30 m, Y = 0 m) with zero heading angle ( = 0°), placing it 30 m upstream of the path entry point, to evaluate path-acquisition behavior.
4.2. Constant Curvature Path Results
Figure 5a,b shows trajectory tracking performance on the semicircular path at speeds of 2 m/s and 2.5 m/s, respectively. The proposed algorithm demonstrates markedly stronger initial convergence toward the desired path compared to the baseline controller, then maintains stable tracking with minimal oscillation once the path is reached. This behavior reflects the adaptive horizon mechanism at work: as the vehicle approaches the curve entry, the fuzzy layer detects increasing curvature and extends the prediction horizon accordingly, enabling the controller to anticipate the circular trajectory and begin steering proactively. The baseline controller with fixed horizon MA = 30, in contrast, suffers from insufficient look-ahead distance, resulting in delayed steering initiation and noticeable overshoot as the vehicle enters the curve. At the higher speed of 2.5 m/s shown in Figure 5b, this difference becomes even more pronounced: the adaptive horizon extension provided by the curvature-based fuzzy layer proves critical for maintaining tracking accuracy despite reduced reaction time, effectively preventing the substantial overshoot that would otherwise occur with fixed-horizon control at elevated speeds.
Figure 5.
Constant curvature path tracking effect.
Figure 6 presents detailed error analysis, displaying lateral deviation in the top subplot and front wheel steering angle in the bottom subplot as functions of time. The RLS-enhanced algorithm exhibits notably smoother control output compared to the baseline throughout the tracking trajectory, characterized by reduced peak errors and substantially smaller fluctuation ranges in both lateral position and steering command. Quantitative analysis of the 2 m/s results reveals that the proposed algorithm achieves a maximum lateral error of only 3.23 cm, a minimum error of 0.12 cm, and an average error of 1.64 cm across the entire path. These figures contrast sharply with the baseline algorithm’s performance: maximum error of 7.52 cm, minimum error of 1.74 cm, and average error of 3.72 cm. The improvement translates to a 55.9% reduction in average tracking error, demonstrating the substantial benefit of combining adaptive parameter tuning with RLS-based noise suppression. Performance at the elevated speed of 2.5 m/s remains robust despite the increased challenge: the proposed algorithm maintains a maximum error not exceeding 4.0 cm and achieves an average error of only 2.07 cm, while the baseline algorithm’s performance degrades significantly with maximum error reaching 11.10 cm and average error climbing to 4.38 cm. This represents a 52.7% reduction in average error at the higher speed, confirming that the adaptive framework scales effectively with operational velocity. The front wheel angle plots in the bottom subplot of Figure 6 provide further insight into the control quality: the RLS algorithm effectively suppresses noise-induced oscillations in the steering commands, producing noticeably smoother and more stable actuation signals that not only improve tracking accuracy but also reduce mechanical wear on the steering system and enhance operator comfort by eliminating erratic steering behavior.
Figure 6.
Constant curvature path tracking lateral deviation and front wheel angle data.
4.3. Variable Curvature Path Results
Variable curvature testing specifically evaluates the adaptive control horizon mechanism’s ability to respond to continuously changing path geometry. Figure 7a,b illustrates tracking performance at speeds of 2 m/s and 2.5 m/s on the S-curve trajectory, where curvature transitions smoothly from zero through positive values back to zero and then to negative values. The zoomed regions in these figures highlight critical performance differences between the proposed and baseline algorithms: the proposed approach responds more rapidly to curvature changes by dynamically extending the prediction horizon as local curvature increases, whereas the fixed-horizon baseline exhibits delayed reaction and larger transient tracking errors during curvature transitions. This difference stems directly from the first-layer fuzzy controller’s ability to sense upcoming curvature changes and preemptively adjust the look-ahead distance, a capability entirely absent in the fixed-parameter baseline.
Figure 7.
Variable curvature path tracking plot.
Figure 8 provides a quantitative assessment of this performance difference through detailed lateral deviation and steering angle analysis across the variable curvature path. At 2 m/s, the proposed algorithm achieves a maximum lateral error of 10.70 cm, a minimum error of 0.90 cm, and an average error of 3.80 cm, while the baseline algorithm yields corresponding values of 11.06 cm maximum, 0.24 cm minimum, and 4.26 cm average error. The resulting 10.8% reduction in average error, though less dramatic than the 55.9% improvement observed on constant curvature paths, nonetheless represents meaningful performance enhancement. At the elevated speed of 2.5 m/s, the proposed algorithm exhibits maximum error of 10.91 cm, minimum error of 0.06 cm, and average error of 4.53 cm, compared to the baseline’s 11.40 cm maximum, 0.13 cm minimum, and 5.54 cm average, yielding an 18.2% reduction in average tracking error. The more modest improvements on variable curvature paths compared to constant curvature paths—10.8–18.2% versus 52.7–55.9%—warrant careful interpretation. This difference does not indicate framework limitations but rather reflects the inherent challenge that continuously changing geometry poses for any predictive controller. The MPC optimization fundamentally assumes quasi-constant system dynamics over the prediction horizon, an assumption that holds reasonably well on constant curvature arcs but is repeatedly violated on variable curvature trajectories where path geometry evolves continuously. Nevertheless, the consistent improvement across both speed conditions and the absence of performance degradation relative to constant curvature results confirm that the adaptive horizon mechanism effectively manages curvature variations, even when those variations occur more rapidly than the prediction time scale can fully accommodate.
Figure 8.
Variable curvature path tracking lateral deviation and front wheel angle data.
The comparatively modest improvement margins observed on variable curvature paths relative to constant curvature paths warrant explicit mechanistic explanation. The MPC optimization framework fundamentally relies on the assumption that system dynamics remain approximately constant over the prediction horizon, an assumption that holds reasonably well on constant curvature arcs but is repeatedly violated on variable curvature trajectories where path geometry evolves continuously. At each curvature transition along the S-curve, the mismatch between the linearized prediction model and the true nonlinear path geometry accumulates, constraining the attainable optimization benefit regardless of horizon length. Furthermore, the fuzzy inference layer introduces a finite computational latency in horizon extension: the prediction horizon adaptation responds to the curvature measured at the current sampling instant rather than anticipating future curvature evolution, meaning that the horizon adjustment inevitably lags behind the actual rate of geometric change during rapid transitions. This lag produces residual transient tracking errors in the transition segments that cannot be fully suppressed by the weight-tuning layer alone. It should also be noted that the baseline fixed-parameter MPC already exhibits comparatively large absolute errors on variable curvature paths, which compresses the absolute margin available for improvement and reduces the observable percentage gain even when the proposed method achieves meaningful absolute error reductions in physical terms.
Several modeling assumptions underlying the proposed framework further bound its achievable performance. The kinematic model adopted in this study assumes rigid-body motion and neglects suspension dynamics, body roll, and longitudinal load transfer, all of which become non-negligible at higher speeds or on uneven terrain. The Taylor-expansion-based linearization discards higher-order terms, introducing approximation errors that grow with increasing lateral and heading deviation magnitudes. The RLS forgetting factor = 0.98 is determined empirically to balance noise suppression and tracking responsiveness; however, when the noise characteristics of the farmland environment change abruptly, the adaptive filter may exhibit a transient lag before converging to the new noise statistics. Finally, the fuzzy rule base is designed under the assumption of smoothly varying path curvature, and its responsiveness to abrupt geometric transitions or obstacle-induced emergency maneuvers remains limited within the current rule structure.
4.4. Field Experimental Validation
To validate the framework’s practical deployment readiness beyond controlled simulation environments, field trials were conducted using an autonomous agricultural robot platform. Although the proposed framework targets full-scale autonomous agricultural machines, field validation employs a scaled Ackermann-steered robot platform. The control-theoretic properties under evaluation—adaptive horizon adjustment, fuzzy weight tuning, and RLS-based noise suppression—are scale-independent: the underlying kinematic model depends on normalized quantities such as the lateral deviation-to-wheelbase ratio and curvature-wheelbase product rather than absolute dimensions, such that a geometrically similar platform at proportionally scaled speeds preserves equivalent closed-loop dynamics. The Wheeltec platform shares identical Ackermann steering geometry with the simulated Kubota B2440 and operates on natural grass terrain, ensuring exposure to physically representative disturbances including tire slip, ground irregularity, and GNSS multipath noise. Scaled robot platforms are moreover an established validation methodology for agricultural path-tracking research prior to full-scale deployment [37], balancing experimental fidelity against cost and operational risk.
As show in Figure 9, the experimental vehicle is a Wheeltec senior-akm-robot featuring a four-wheel Ackermann steering configuration scaled to laboratory dimensions: wheelbase of 318 mm, overall length of 444 mm, width of 360 mm, and tire diameter of 125 mm. The navigation system integrates multiple sensors to provide robust localization and perception: RTK-GPS from Shanghai Yuanji with 2.5 mm positioning accuracy for absolute position reference, a Leishen M10 Plus-net single-line LiDAR for obstacle detection and local mapping, and a Wheeltec N100 inertial measurement unit for attitude estimation and sensor fusion. This sensor suite represents a typical configuration for outdoor agricultural automation, balancing accuracy requirements against cost constraints.
Figure 9.
Robot platform.
Field experiments were performed on the sports field at Xihua University in Chengdu, China, providing a controlled yet realistic outdoor environment with natural grass surface, ambient GPS multipath effects, and typical outdoor lighting and weather variations. A curved reference path was pre-planned to cover approximately 50 m total distance while incorporating varying curvature sections analogous to the simulation test scenarios. The path included both gentle curves and sharper turns to exercise the adaptive control mechanisms across a representative range of geometric conditions. The robot operated at 1.0 m/s, a speed appropriately scaled relative to the platform dimensions and comparable to the 2.0–2.5 m/s simulation speeds when accounting for the vehicle size ratio. Initial positioning was established at GPS coordinates 31.118721° N latitude and 104.480488° E longitude with zero heading angle, and the trial proceeded autonomously without human intervention.
Figure 10 illustrates the trajectory tracking performance by comparing the reference path, the Optimized Model Predictive Control (MPC), and the Original MPC in terms of their actual operating trajectories. The reference path is shown in black, while the trajectories generated by the Optimized MPC and the Original MPC are represented in blue and red, respectively. It can be observed that both controllers are capable of following the overall shape of the planned trajectory; however, the Optimized MPC maintains a significantly closer alignment with the reference path throughout the entire test route. In contrast, the Original MPC exhibits visibly larger deviations, particularly in curved segments and turning regions where tracking errors accumulate, which is partially related to the actual terrain disturbances (such as uneven ground and tire slip) on the natural grass surface of the sports field.
Figure 10.
Robot tracking trajectory and path planning.
Quantitative analysis further highlights this difference. The Optimized MPC achieves a mean absolute lateral error of 0.0858 m with a standard deviation of 0.1082 m, whereas the Original MPC shows a substantially higher mean absolute lateral error of 0.2146 m and a larger standard deviation of 0.2829 m. This indicates that the proposed method reduces the average lateral deviation by approximately 60% while also significantly improving tracking consistency. These results demonstrate that the optimization strategy effectively enhances both accuracy and robustness under practical operating conditions.
Figure 11 presents the heading error variation during the tracking process for both the Optimized MPC and the Original MPC. The Optimized MPC maintains the heading error within a relatively narrow range around zero, with smaller fluctuations and fewer extreme deviations. In contrast, the Original MPC exhibits more frequent and larger oscillations, indicating reduced stability, especially during rapid changes in path curvature.
Figure 11.
Heading Angle Variation.
From a quantitative perspective, the Optimized MPC achieves a mean absolute heading error of 5.4665° with a standard deviation of 8.0199°, while the Original MPC records a significantly higher mean absolute heading error of 11.2064° and a standard deviation of 17.3489°. This corresponds to an improvement of approximately 50% in average heading accuracy, along with a substantial reduction in variability. The reduced fluctuation in heading error suggests smoother steering behavior and more stable control performance, which are critical for maintaining precise trajectory tracking and reducing mechanical stress in real-world agricultural applications.
The field validation results confirm several critical findings that bridge the gap between simulation predictions and practical deployment. First, sub-decimeter tracking accuracy is indeed achievable in realistic outdoor environments despite the numerous unmodeled disturbances present: GPS multipath effects causing position uncertainty even with RTK correction, tire-terrain interaction variations on natural grass surfaces that violate the rigid kinematic assumptions, communication latencies between sensors and controller, actuator response delays and potential backlash in the steering mechanism, and environmental factors such as wind and ground slope that perturb vehicle motion. Second, the hierarchical fuzzy-RLS framework operates reliably on standard embedded computing hardware without requiring specialized real-time operating systems or high-performance processors, confirming the computational efficiency claims and establishing feasibility for cost-constrained agricultural platforms. Third, while the maximum tracking error of 0.567 m substantially exceeds simulation predictions of 3–11 cm, this magnitude remains entirely acceptable for agricultural operations: typical row crop spacing exceeds 0.75 m, providing adequate safety margin for autonomous navigation even accounting for worst-case tracking errors.
5. Conclusions
This study addresses a fundamental challenge in MPC-based agricultural path tracking: achieving real-time parameter adaptation without the computational burden of online optimization. The proposed hierarchical fuzzy framework demonstrates that systematic decomposition of adaptation objectives—separating curvature-driven prediction adjustments from error-driven weight tuning—enables robust performance across diverse path geometries. Experimental validation shows 52.7–55.9% tracking error reduction on constant-curvature paths and 10.8–18.2% improvement on variable-curvature trajectories compared to fixed-parameter MPC, while field trials confirm practical viability with 0.131 m RMS lateral error at speeds up to 2.5 m/s. The integration of RLS-based model adaptation further enhances robustness by compensating for tire slip dynamics and filtering sensor noise, critical factors in unstructured farmland environments.
The methodological contribution extends beyond agricultural applications. This work demonstrates that hierarchical decomposition of adaptation sources—separating geometric path information from tracking error feedback and model uncertainty—outperforms monolithic optimization approaches in both accuracy and computational efficiency. When distinct operational regimes exist, such as straight furrows versus curved headlands, independent adaptation layers can respond to their respective driving inputs without mutual interference. This decoupling provides practical advantages: each layer can be tuned and validated independently, control logic remains transparent for safety certification, and computational demands stay within embedded platform capabilities. The same design pattern applies to warehouse robots transitioning between narrow aisles and open spaces, construction vehicles moving from highways to work sites, or autonomous cars shifting from cruising to parking maneuvers.
While the proposed framework demonstrates strong performance across the tested scenarios, several aspects offer promising directions for future research. The kinematic model adopted in this study employs linearization and simplifies certain vehicle dynamics to ensure computational efficiency suitable for embedded deployment, and extending the modeling foundation to incorporate higher-fidelity dynamic representations or online model identification schemes would further enhance tracking robustness under more demanding operating conditions. The RLS forgetting factor is currently configured as a fixed value selected to achieve a practical balance between noise suppression and tracking responsiveness, and future investigations could explore adaptive forgetting factor mechanisms that respond to real-time estimates of environmental noise characteristics, thereby improving generalizability across more diverse farmland conditions. The fuzzy rule base is designed for smoothly evolving path geometries, and enriching the rule structure to accommodate more complex navigation scenarios would broaden the operational applicability of the framework. Regarding localization, the current reliance on GNSS-based positioning motivates future integration of complementary sensing modalities such as vision or LiDAR odometry to extend reliable operation to environments with signal occlusion. Field validation was conducted on natural grass terrain under representative operating conditions, and future work will progressively extend experimental coverage to more challenging terrain types and a wider range of operational speeds. Finally, exploring lightweight solver approximations or learned control law representations could enable deployment on even more resource-constrained embedded platforms, further reducing system cost for large-scale agricultural automation and opening new possibilities for broad practical adoption.
Author Contributions
Conceptualization, B.Z., C.Y. and D.Z.; methodology, B.Z. and D.Z.; software, B.Z. and C.Y.; validation, B.B., M.M. and D.Z.; formal analysis, G.Z. and B.B.; investigation, C.Y., M.M. and S.J.; resources, G.Z. and S.J.; data curation, B.Z. and C.Y.; writing—original draft, B.Z. and C.Y.; writing—review and editing, B.Z., B.B. and M.M.; visualization, C.Y. and M.M.; supervision, C.Y. and D.Z. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The original contributions presented in the study are included in the article.
Acknowledgments
The authors would like to express their sincere gratitude to Jiacheng Tang and Hao Yu for their support in this study. Their valuable suggestions have greatly improved the quality of this research. We also thank Xihua University for providing the experimental site and project support, and the Shenyang Talent Innovation Institute Federation for their valuable advice and financial support. Finally, we are grateful to the editors and reviewers for their work and constructive comments.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Bai, G.; Meng, Y.; Liu, L.; Luo, W.; Gu, Q.; Li, K. A New Path Tracking Method Based on Multilayer Model Predictive Control. Appl. Sci. 2019, 9, 2649. [Google Scholar] [CrossRef] [Scilit]
- Qin, S.J.; Badgwell, T.A. A Survey of Industrial Model Predictive Control Technology. Control Eng. Pract. 2003, 11, 733–764. [Google Scholar] [CrossRef] [Scilit]
- Raffo, G.V.; Gomes, G.K.; Normey-Rico, J.E.; Kelber, C.R.; Becker, L.B. A Predictive Controller for Autonomous Vehicle Path Tracking. IEEE Trans. Intell. Transp. Syst. 2009, 10, 92–102. [Google Scholar] [CrossRef] [Scilit]
- Xi, Y.-G.; Li, D.-W.; Lin, S. Model Predictive Control—Status and Challenges. Acta Autom. Sin. 2013, 39, 222–236. [Google Scholar] [CrossRef] [Scilit]
- Liu, H.; Sun, J.; Cheng, K.W.E. A Two-Layer Model Predictive Path-Tracking Control with Curvature Adaptive Method for High-Speed Autonomous Driving. IEEE Access 2023, 11, 89228–89239. [Google Scholar] [CrossRef] [Scilit]
- Beal, C.E.; Gerdes, J.C. Model Predictive Control for Vehicle Stabilization at the Limits of Handling. IEEE Trans. Control Syst. Technol. 2013, 21, 1258–1269. [Google Scholar] [CrossRef] [Scilit]
- Zhang, C.; Chu, D.; Liu, S.; Deng, Z.; Wu, C.; Su, X. Trajectory planning and tracking for autonomous vehicle based on state lattice and model predictive control. IEEE Intell. Transp. Syst. Mag. 2019, 11, 29–40. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Li, Y.; Wang, Y.; Zhang, X.; Li, J. Path Tracking of Autonomous Tractor Based on Model-Free Adaptive Control. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2024, 238, 749–759. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.D.; Zheng, W.X.; Wang, N.; Lyu, Z.Q.; Zhang, W.Z. Trajectory Tracking Control of Agricultural Vehicles Based on Disturbance Test. Int. J. Agric. Biol. Eng. 2020, 13, 138–145. [Google Scholar] [CrossRef] [Scilit]
- Zhou, B.; Su, X.; Yu, H.; Guo, W.; Zhang, Q. Research on Path Tracking of Articulated Steering Tractor Based on Modified Model Predictive Control. Agriculture 2023, 13, 871. [Google Scholar] [CrossRef] [Scilit]
- Choi, Y.; Lee, W.; Kim, J.; Yoo, J. A Variable-Sampling Time Model Predictive Control Algorithm for Improving Path-Tracking Performance of a Vehicle. Sensors 2021, 21, 6845. [Google Scholar] [CrossRef] [Scilit]
- Chu, D.; Li, H.; Zhao, C.; Zhou, T. Trajectory Tracking of Autonomous Vehicle Based on Model Predictive Control with PID Feedback. IEEE Trans. Intell. Transp. Syst. 2024, 24, 2239–2250. [Google Scholar] [CrossRef] [Scilit]
- Xing, X.; Zhao, B.; Han, C.; Ren, D.; Xia, H. Vehicle Motion Planning with Joint Cartesian-Frenét MPC. IEEE Robot. Autom. Lett. 2022, 7, 10738–10745. [Google Scholar] [CrossRef] [Scilit]
- Meng, Y.; Gan, X.; Bai, G.X. Path Following Control of Underground Mining Articulated Vehicle Based on the Preview Control Method. Chin. J. Eng. 2019, 41, 662–671. [Google Scholar] [CrossRef]
- Zuo, Z.; Yang, X.; Li, Z.; Wang, Y.; Han, Q.; Wang, L.; Luo, X. MPC-Based Cooperative Control Strategy of Path Planning and Trajectory Tracking for Intelligent Vehicles. IEEE Trans. Intell. Veh. 2021, 6, 513–522. [Google Scholar] [CrossRef] [Scilit]
- Wabersich, K.P.; Krishnadas, R.; Zeilinger, M.N. A Soft Constrained MPC Formulation Enabling Learning from Trajectories with Constraint Violations. IEEE Control Syst. Lett. 2022, 6, 980–985. [Google Scholar] [CrossRef] [Scilit]
- Nie, Y.; Hua, Y.; Zhang, M.; Zhang, X. Intelligent Vehicle Trajectory Tracking Control Based on VFF-RLS Road Friction Coefficient Estimation. Electronics 2022, 11, 3119. [Google Scholar] [CrossRef] [Scilit]
- He, Q.; Ji, J.; Feng, W.; Zhao, L.; Zhang, B. Adaptive Time Horizon MPC Path Tracking Control Method for Mowing Robot. Smart Agric. 2024, 6, 82–93. [Google Scholar] [CrossRef]
- Sun, Z.; Wang, R.; Meng, X.; Yang, Y.; Wei, Z.; Ye, Q. A Novel Path Tracking System for Autonomous Vehicle Based on Model Predictive Control. J. Mech. Sci. Technol. 2024, 38, 365–378. [Google Scholar] [CrossRef] [Scilit]
- Xu, N.; Wang, L.; Ning, X.; Li, A.; Liu, F.; Song, Y.; Li, Z.; Guo, N. PSO-Optimized MPC for Trajectory Tracking of Articulated Tractors in Agricultural Environments. Adv. Mech. Eng. 2025, 17. [Google Scholar] [CrossRef] [Scilit]
- Sun, C.; Sun, J.; Ding, S.; Li, Q.; Ma, L. Path Tracking Control in Autonomous Agricultural Vehicles: A Systematic Survey of Models, Methods, and Challenges. Agriculture 2025, 15, 2522. [Google Scholar] [CrossRef] [Scilit]
- Ye, H.; Jiang, H.; Ma, S.; Tang, B.; Wahab, L. Linear Model Predictive Control of Automatic Parking Path Tracking with Soft Constraints. Int. J. Adv. Robot. Syst. 2019, 16, 1–13. [Google Scholar] [CrossRef] [Scilit]
- Kim, J.; Jeong, Y. Design of Robust Path Tracking Controller Using Model Predictive Control Based on Steady State Input. J. Mech. Sci. Technol. 2023, 37, 3877–3886. [Google Scholar] [CrossRef] [Scilit]
- Taherian, S.; Halder, K.; Dixit, S.; Fallah, S. Autonomous Collision Avoidance Using MPC with LQR-Based Weight Transformation. Sensors 2021, 21, 4296. [Google Scholar] [CrossRef] [Scilit]
- Ji, X.; Ding, S.; Wei, X.; Cui, B. Path Tracking of Unmanned Agricultural Tractors Based on a Novel Adaptive Second-Order Sliding Mode Control. J. Frankl. Inst. 2023, 360, 5811–5831. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.; Zhou, X.; Wang, J. Extremum-Seeking-Based Adaptive Model-Free Control and Its Application to Automated Vehicle Path Tracking. IEEE/ASME Trans. Mechatron. 2022, 27, 3874–3884. [Google Scholar] [CrossRef] [Scilit]
- Manikandan, S.; Kaliyaperumal, G.; Hakak, S.; Gadekallu, T.R. Curve-Aware Model Predictive Control (C-MPC) Trajectory Tracking for Automated Guided Vehicle (AGV) over On-Road, In-Door, and Agricultural-Land. Sustainability 2022, 14, 12021. [Google Scholar] [CrossRef] [Scilit]
- Tang, L.; Yan, F.; Zou, B.; Wang, K.; Lv, C. An Improved Kinematic Model Predictive Control for High-Speed Path Tracking of Autonomous Vehicles. IEEE Access 2020, 8, 51400–51413. [Google Scholar] [CrossRef] [Scilit]
- Elisei-Iliescu, C.; Paleologu, C.; Benesty, J.; Stanciu, C.; Anghel, C.; Ciochină, S. Recursive Least-Squares Algorithms for the Identification of Low-Rank Systems. IEEE/ACM Trans. Audio Speech Lang. Process. 2019, 27, 1015–1025. [Google Scholar] [CrossRef] [Scilit]
- Kim, S.; Oh, K. A Sliding Mode Approach-Based Adaptive Steering Control Algorithm for Path Tracking of Autonomous Mobility with Weighted Injection. Machines 2023, 11, 972. [Google Scholar] [CrossRef] [Scilit]
- Dong, Z.; Bai, D.; Zhang, P.; Yao, J. Prescribed performance adaptive neural network tracking control of electro-hydraulic servo system with input delay. Appl. Math. Model. 2026, 152, 116591. [Google Scholar] [CrossRef] [Scilit]
- Zhao, B.; Zheng, D.; Yang, C.; Wang, S.; Mansurova, M.; Jomartova, S.; Kunicina, N.; Zabasta, A.; Beliaev, V.; Caiko, J.; et al. Design and Optimization of an Internet of Things-Based Cloud Platform for Autonomous Agricultural Machinery Using Narrowband Internet of Things and 5G Dual-Channel Communication. Electronics 2025, 14, 1672. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Fan, J.; Liu, Y.; Wang, X. Path Planning and Path Tracking for Autonomous Vehicle Based on MPC with Adaptive Dual-Horizon-Parameters. Int. J. Automot. Technol. 2022, 23, 1239–1253. [Google Scholar] [CrossRef] [Scilit]
- Tang, B.; Hu, Z.; Jiang, H.; Yin, Y.; Yang, Z. Dynamic Lane Tracking Control of the Commercial Vehicle Based on RMPC Algorithm Considering the State of Preceding Vehicle. Machines 2022, 10, 534. [Google Scholar] [CrossRef] [Scilit]
- Zhao, R.C.; Wong, P.K.; Xie, Z.C.; Zhao, J. Real-Time Weighted Multi-Objective Model Predictive Controller for Adaptive Cruise Control Systems. Int. J. Automot. Technol. 2017, 18, 279–292. [Google Scholar] [CrossRef] [Scilit]
- Xuan, L.; Zhao, B.; Zheng, D.; Mansurova, M.; Belgibaev, B.; Amirkhanova, G.; Amirkhanov, A.; Yang, C. Multi-Objective Optimization and Federated Learning for Agri-Food Supply Chains via Dynamic Heterogeneous Graph Neural Networks. Sustainability 2026, 18, 1426. [Google Scholar] [CrossRef] [Scilit]
- Yang, C.; Zheng, D.; Chen, S.; Mansurova, M.; Belgibaev, B.; Zhao, B. AgriPath: A Robust Multi-Objective Path Planning Framework for Agricultural Robots in Dynamic Field Environments. Front. Plant Sci. 2025, 16, 1687747. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.














