1. Introduction
As marine resource development progresses, the performance requirements for unmanned underwater vehicles (UUVs) also continuously increases. UUVs are crucial for tasks including marine environmental monitoring and maritime defense [
1,
2,
3], serving as capable assistants for humanity in exploring the ocean world. Especially when executing complex tasks, such as three-dimensional spiral maneuvers, navigating through narrow and obstacle-filled waters, or conducting underwater pipeline inspections, AUVs must be capable of performing more complex three-dimensional movements [
4]. For underactuated AUVs, path following poses a foundational challenge for 3D maneuvering control. Having excellent path following capability is essential to ensure mission success. However, the impact of varying ocean currents and unanticipated disturbances complicates the AUV’s spatial motion model, introducing nonlinear coupling and uncertainties in parameter values that directly affect the AUV and deteriorate its tracking control performance.
Over the past few years, considerable advancements have been achieved in the research dealing with these problems. Faced with the challenge of sea currents, some researchers have chosen to assume that the currents are known or to treat the currents as external disturbances [
5,
6]. This approach avoids loss of control of the navigator when the currents are weak, but in reality, the currents tend to be unpredictable and challenging to directly assess. Consequently, researchers have proposed a variety of enhanced line-of-sight (LOS) guidance methods, including the integral LOS (ILOS) [
7,
8,
9], the adaptive integral LOS (AILOS) [
10,
11,
12], and the adaptive LOS (ALOS) [
4,
13,
14], to eliminate the effect of currents on path following by introducing a compensation mechanism into the guidance law. These methods are more effective when the sideslip angle is constant or varies. ILOS guidance integrates a traditional LOS guidance approach by incorporating an integral term, designed to mitigate the impact of unknown drift forces on navigation. AILOS guidance assumes a constant parameter for the unknown sideslip angle, which is dynamically adjusted via an adaptive law that incorporates compensation within the inverse tangent function. Fossen et al. introduced a new ALOS guidance law [
13]. Unlike the previous ones, the ALOS guidance law introduces an angle estimation on the outside of the inverse tangent function. Simulation results confirm that the approach demonstrates superior tracking performance in response to the change in sideslip angle. However, when confronted with rapidly changing ocean currents and significant sideslip angles, these methods may struggle to meet the stringent requirements for tracking accuracy. In addition, the use of observation techniques has also been proposed to cope with the difficulties posed by currents, such as identifying the sideslip induced by disturbances such as currents by expanding the state observer [
15,
16]. Effective path following for AUVs is achieved through precise estimation and compensation of the unknown sideslip angle in the guidance law. This approach has good estimation accuracy for larger sideslip angles, but the tracking error may be larger in terms of the overshoot phenomenon [
12]. Moreover, these methods often require precise a priori knowledge of ocean current models, and there may be errors in parameter estimation. Jiang et al. simultaneously estimated the sideslip angle, the current velocity, and the unknown relative velocity by means of an observer [
17]. In response to the issues of trajectory tracking and path following for AUV, some research has also designed an ocean current observer to directly estimate the ocean currents [
18,
19]. Inspired by the above references, for the 3D path following problem, a current observer is developed to gauge the three-dimensional current vectors utilizing the kinematic equations of the AUV, and a forward-looking distance that can be flexibly adjusted is designed as a way to reduce the bias brought by the current factor to the AUV sailing trajectory.
For other disturbances and model uncertainties, a variety of advanced control methods have been developed, including, but not limited to, sliding mode control, neural network estimation, adaptive methods, and observer estimation techniques. Reference [
20] designed a new adaptive backstepping sliding mode control algorithm aimed at neutralizing the impact of unknown disturbances, thereby enhancing control performance. Xiang et al. proposed an adaptive sliding mode control method that effectively enhances the system’s robustness against unknown actuator hysteresis and external ocean disturbances by integrating a nonlinear disturbance observer and Nussbaum gain technology [
21]. Xia et al. developed an adaptive terminal sliding mode control strategy for underactuated AUVs facing ocean currents and input saturation. This strategy extends the disturbance observer to assess and counteract the dynamic uncertainties induced by ocean currents [
22]. Peng et al. proposed a control strategy integrating anti-jamming constraint control and neural network-based optimization to cope with the uncertainty and constraints of the underwater environment, and they verified its effectiveness through simulation tests [
23]. Wang et al. developed a control strategy that leverages a radial basis function neural network to mitigate ocean current disturbances and model uncertainties. This strategy optimizes the control law using a sliding mode control method, thereby enhancing the system’s robustness [
24]. Rong et al. proposed a path-following method that incorporates a fractional-order sliding mode disturbance observer along with an adaptive control strategy for stochastic disturbances. They verified its control performance and robustness through simulation [
25]. Gao et al. introduced a backstepping control strategy that employs a disturbance observer for trajectory tracking under conditions of external disturbances and parameter uncertainty, and they verified its effectiveness [
26]. Some scholars have proposed methods that combine deep learning [
27,
28,
29] with fuzzy control to enhance the system’s ability to handle uncertainties. Xiang and others proposed a fuzzy 3D path-following control method, which is based on an adaptive fuzzy PID controller of heuristic fuzzy logic [
30], but the quality of fuzzy rules affects the approximation error. Patre and others established a fuzzy terminal sliding mode controller and integrated fuzzy logic into the control system, which allows for the compensation of external disturbances, unmodeled dynamics, and varying parameters, thereby enhancing the robustness of the control strategy [
31]. Nevertheless, the intricacy of parameter tuning continues to limit the utilization of fuzzy control techniques in motion control applications. We develop a nonlinear disturbance observer and incorporate the concept of sliding mode control to boost the precision and stability of the AUV’s control system. Considering that external disturbances can negatively impact system dynamics, we integrate an adaptive mechanism into the disturbance observer. This mechanism estimates the bounds of the observation error in real time, allowing for more flexible responses to external environmental fluctuations.
Based on existing research, a backstepping sliding mode control strategy with integrated current observer is proposed to enhance the system’s resistance to uncertainty and external disturbances by incorporating multiple control strategies and optimization estimation techniques. With the implementation of a nonlinear disturbance observer, the system can react flexibly to the ever-changing dynamics of the marine environment. Further, the deployment of an integral sliding mode control method for the dynamics controller enhances the system’s strength against disturbances, ensuring that the underactuated AUV can accurately track 3D paths under the influence of currents and other unknown disturbances. The essential contributions are distilled into the following points:
- (1)
A mathematical model for 3D path following of an underactuated AUV is derived to account for the influence of currents. Based on this model, a current observer is designed, which is capable of directly estimating the unknown currents and provides key current information for the control algorithm.
- (2)
A nonlinear disturbance observer is crafted to address various disturbances and uncertainties, while an adaptive mechanism is implemented for real-time, online estimation of observation error margins, enhancing the system’s flexibility in responding to external environmental variations and thereby boosting its tracking performance and robustness.
- (3)
An integral sliding mode control-based dynamic controller is developed to enhance the system’s robustness and ensure asymptotic convergence. Utilizing the Lyapunov stability theory, we demonstrate the asymptotic stability of the closed-loop cascade system, and the effectiveness of our approach is confirmed through numerical simulations.
The remaining sections are structured as follows:
Section 2 details the mathematical modeling for an underactuated AUV in a current environment. The main symbols used for easy understanding and their meanings have been listed in
Table 1. The methodology for developing the kinematic and dynamic control systems, as well as the design of the current observer and the system’s stability evaluation, are elaborated in
Section 3.
Section 4 presents and discusses the outcomes of the numerical simulations. Finally,
Section 5 is the conclusion section.
3. Three-Dimensional Path Following Controller Design
The controller’s design is segmented into two key steps: initially, a line-of-sight and backstepping methodology is employed to craft the kinematic controller, which involves the development of a control law and desired angular velocity for a virtual reference point. This step addresses the uncertainty of the currents by specifically designing a current observer to estimate the current velocity in real time, which establishes the foundation for the ensuing control law design. In the second step, the desired forward velocity is introduced, and the integral sliding mode control method is utilized to incorporate the estimation of the compounded uncertain disturbances by a nonlinear disturbance observer, thereby formulating the control laws for force and moment. This further enhances the stability of the control system and ensures the performance of the AUV in the face of unknown environmental disturbances.
Figure 2 depicts the schematic diagram of the entire control system, outlining the comprehensive control strategy that spans from current observation to dynamic control.
3.1. Kinematic Controller Design
For underactuated AUVs, due to the lack of lateral and vertical thrusters, the reduction in tracking error is commonly achieved by incorporating the navigation angle through the LOS method:
where
and
represent the compensation factors introduced to account for the effects of ocean currents.
and
are the forward-looking distances, which are considered as a constant in the LOS method. This method is suitable for simple straight-line path following. However, when faced with complex curved path following in an unknown environment, the performance of this method may be less than optimal because it cannot adapt to the curvature change in the path. To solve this problem, a saturation function
is introduced to describe the forward-looking distance as a function of the deflection and curvature, thereby better adapting to path variations. Specifically, this function is defined as follows:
where
and
are the scale factors,
is the length of the AUV, so the range of change in the forward-looking distance is
.
Let
,
. By substituting Equation (9) into Equation (7), we can obtain:
With the error variables defined as
and
, the Lyapunov function is constructed as
, and the derivation of
yields:
The velocity control law for designing the virtual reference point and the virtual angular velocity control law are:
where
,
,
are scale factors, all greater than zero.
Bringing Equation (13) into Equation (12) yields:
3.2. Current Observer Design
Current estimates are critical for AUV mathematical model construction and controller design, and accurate current estimates can significantly improve the performance and robustness of AUV control systems. The kinematic information of the AUV is utilized to monitor and estimate the currents in real time by constructing an observer that depends on the dynamics of the AUV [
19,
32,
33]. The development of this observer incorporates the dynamics of the AUV’s interaction with currents, enabling it to offer precise assessments of current conditions. The position estimate is first defined as:
Given that
and
and
, combining Equation (15) with Equation (2) yields the following result:
The Lyapunov function is constructed as
, and the derivation of
can be obtained:
An adaptive law is designed for:
Bringing the adaptive law into Equation (17) yields:
The defined energy function is positive definite, and its derivative is negative semidefinite. By applying Barbalat’s Lemma, we can deduce that . Consequently, the observation error is globally asymptotically stable.
3.3. Dynamics Controller Design
According to reference [
34,
35,
36], the design of the nonlinear disturbance observer is aimed at estimating the composite disturbance, denoted as
, which can be expressed in the following form:
where
is the gain,
is the vector of nonlinear functions to be designed and satisfies
,
is the internal variable, and
is the output of the nonlinear disturbance observer. The observation error is defined as
. The composite disturbance exhibits gradual changes in comparison with the observer’s dynamic characteristics, i.e.,
. The dynamic equation of the error is:
The energy function is defined as . Its derivative yields . The stability of the nonlinear interference observer is ensured. The solution to the differential equation is found to be . Consequently, the observation error exponent converges to zero.
The velocity error variables are:
derived as:
where
,
,
.
,
and
are compound uncertain disturbances estimated using a nonlinear disturbance observer.
3.3.1. Stabilizing
The integral sliding mode surface is designed as
, and the above equation is derived as
. A nonlinear disturbance observer is designed in the following form:
where
is the estimated value of
. Define
as the observation error, so,
. To facilitate the controller design process, it is assumed that the observation error satisfies
,
, where
is an unknown bounded positive number.
represents the estimated value of the upper bound of the observation error. It is also assumed that
changes slowly with respect to the dynamics of the control system, i.e.,
. This assumption is made to design and introduce the adaptive control. The Lyapunov function is constructed as
, and the derivation of
can be obtained:
Control laws and adaptive laws are designed for:
where
and
are adjustment factors, both greater than zero. Bringing the control law into Equation (25) yields:
Incorporating the adaptive law into Equation (25) results in:
3.3.2. Stabilizing
The integral sliding mode surface is designed as
. A nonlinear disturbance observer is designed in the following form:
where
is the estimated value of
. Define
as the observation error. The Lyapunov function is constructed as
, and the derivation of
can be obtained:
Control laws and adaptive laws are designed for:
where
and
are adjustment factors, both greater than zero. Bringing the control law into Equation (30) yields:
Incorporating the adaptive law into Equation (30) results in:
3.3.3. Stabilizing
The integral sliding mode surface is designed as
. A nonlinear disturbance observer is designed in the following form:
where
is the estimated value of
. Define
as the observation error. The Lyapunov function is constructed as
, and the derivation of
can be obtained:
Control laws and adaptive laws are designed for:
where
and
are adjustment factors, both greater than zero. Bringing the control law into Equation (35) yields:
Incorporating the adaptive law into Equation (35) results in:
3.4. Stabilization Analysis
To facilitate the stability analysis for the entire closed-loop system of the underactuated AUV, the system’s error vector is defined as
. The error state of the tracking controller is
, and the error state of the current observer is
. The closed-loop system’s structure can be expressed as the subsequent cascade system:
The global asymptotic stabilization condition for the system is that the subsystem
exhibits global asymptotic stability, the subsystem
is globally asymptotically stable, and the correlation function
satisfies
, where
is a continuous function [
32,
37].
First, it is proven that the subsystem
satisfies the conditions. By substituting
into Equation (40), we obtain
, the following definition is derived:
Therefore, , . According to the lasalle invariance principle, it is established that . Consequently, the error , and the subsystem is globally asymptotically stable. For the subsystem , it is globally asymptotically stable as indicated by Equation (16).
Given that , , and are bounded, the correlation function satisfies . Therefore, the entire underactuated AUV closed-loop system is stabilized.
4. Numerical Simulation and Analysis of Results
In order to comprehensively assess the tracking performance, disturbance estimation capability, and robustness of the proposed control strategy, simulation experiments have been carried out through two cases, and the parameter settings of these simulations are based on the AUV prototype model constructed by our team, which is shown in
Figure 3.
Table 2 shows partial parameters of the prototype—specific parameters of the prototype can be found in references [
4,
38]. In the simulations, four different control methods have been compared:
Method 1: The current observer is integrated, but the NDO is not employed. The LOS guidance law with inverse sliding mode control is applied for dynamic control.
Method 2: The current observer is not integrated, but the NDO is employed, and the same LOS guidance law is used with inverse sliding mode dynamic control based on the NDO.
Method 3: Combined AILOS guidance law and NDO, using AILOS for motion control and enhanced inverse sliding mode control by NDO.
Method 4: The ALOS guidance law is used without NDO and the inverse sliding mode control is applied directly.
The proposed control method integrates the current observer and nonlinear disturbance observer and uses the LOS guidance law with the inverse sliding mode control technique for dynamic control.
To visually evaluate the system’s tracking performance, two key metrics are utilized: mean absolute error (MAE) and root mean square error (RMSE). MAE measures the accuracy of the tracking, whereas RMSE is indicative of the tracking stability [
39].
4.1. Case 1: Analysis of Path Following Under Controlled Currents and Environmental Disturbances
In this case, the performance of an AUV in terms of path following within a controlled current environment is simulated. A controlled current environment is one in which the velocity and direction of the currents remain constant for a certain period of time, but there may be some environmental disturbances. The purpose of this case is to evaluate the tracking accuracy and stability of the control system under oceanic conditions that are relatively stable yet subject to environmental influences. We selected the spatial spiral curve as the simulation path for several reasons: it can simulate the complex three-dimensional movements of an AUV during missions, such as the combined diving and horizontal movement required for seabed mapping. This curve provides a continuously varying nonlinear testing environment that thoroughly tests the AUV’s response capabilities under changing path and depth conditions. Moreover, the spatial spiral curve helps assess the impact of ocean currents on the AUV’s trajectory and the effectiveness of control strategies. Through this path, we can accurately evaluate the AUV’s three-dimensional path-following accuracy, especially in areas of path curvature and directional changes. Finally, as a standardized test path, the spatial spiral curve facilitates the comparison of the performance of different AUV control strategies. The desired path, a spatial spiral curve, is parameterized as follows:
The AUV’s starting position and attitude are denoted by
, with the initial velocity being
. The desired forward velocity is given as
, while the constant current is represented by
. For this simulation scenario, the control parameters are set to
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
, and the environmental disturbance is:
The simulation results from Case 1 reveal the effectiveness of different control methods for path following in constant current and simple disturbance environments.
Figure 4a illustrates the 3D trajectory of the AUV, which clearly showcases the capability of each control method in steering the AUV along a predetermined path. Further,
Figure 4b and
Figure 4c provide a more detailed view from two different projection planes, respectively. The positional tracking errors depicted in
Figure 5 demonstrate the superior error control of the proposed method. Method 2, which does not account for current compensation, results in a larger error. This underscores the performance limitations that arise when neglecting the impact of currents. And although Method 3 also exhibits a smaller error, there is still a slight gap compared to the proposed method. The comparative analysis of angular and linear velocities further confirms the advantages of our method, as shown in
Figure 6 and
Figure 7, the proposed method demonstrates a quicker response and achieves the target velocity with commendable stability.
Figure 8 illustrates the force and moment variations, highlighting the superior performance of the proposed method. Unlike Method 2, it smoothly adjusts control inputs, which reduces system fluctuations and enhances the AUV’s tracking performance.
The error quantization results in
Figure 9 show that the proposed method performs the best, while Method 2 has the worst tracking accuracy and stability due to its lack of compensation for the currents, and Method 3 performs closer to the proposed method. Method 4 employs the ALOS guidance law without NDO and lacks sufficient robustness in the face of external disturbances to the model; nevertheless, Method 4 provides acceptable tracking performance in the case of Case 1. Notably, Method 1’s current observer and Method 4’s ALOS technique yield comparable tracking performance, particularly in compensating for currents, with similar stability and accuracy levels.
Figure 10 and
Figure 11 further demonstrate the estimation of the currents and disturbances. The proposed observer method efficiently estimates currents and disturbances, and quickly stabilizes to the actual values even when the initial observations are biased by the initial position error. This is confirmed by the accuracy and reliability of the observer design in our method, which can be quickly adjusted and provides accurate estimates even when the initial conditions are not ideal.
Based on the preceding analysis, we can derive the following conclusions: compared with Method 1, the proposed method fuses the current observer and NDO to achieve better tracking control accuracy and robustness; due to the lack of current compensation in Method 2, it performs poorly in terms of tracking accuracy and stability; and both Method 1 and Method 4 demonstrate the effectiveness in terms of current compensation. Method 1 utilizes a current observer, while Method 4 adopts an ALOS method, and both are capable of reducing the negative impact of currents on the AUV’s tracking performance to some degree. Under the simulation conditions in this case, our proposed method is almost equivalent to Method 3 (adaptive integral line-of-sight method combined with NDO) in terms of compensation effectiveness, but considering the comprehensiveness, the proposed method is slightly better in terms of comprehensive tracking and control performance, and also the comparison results between Method 1 and Method 4 further confirm that the effects of the current observer and sight angle adaptive compensation are approximate. Overall, all methods achieve good tracking performance in an environment with relatively stable currents and low disturbance. However, the proposed method demonstrates more adaptability and robustness, leading to a more comprehensive performance improvement.
4.2. Case 2: Challenges of Path Following Under Complex Dynamic Currents and Unknown Disturbances
Case 2 aimed to evaluate how well an AUV could follow a path in a difficult maritime environment. The ocean current conditions in this case not only change dynamically but also involve large unknown disturbances. The purpose of this case is to test whether the proposed control scheme can adapt to this dynamic and uncertain ocean environment and maintain its robustness. Maintaining the same desired path and initial conditions as Case 1, we aim to ensure the consistency and validity of our comparative analysis. The control parameters in this simulation are selected as
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
. Specifically, we consider time-varying, segmented currents and perturbations, which are:
As shown in
Figure 12,
Figure 13,
Figure 14,
Figure 15 and
Figure 16, the proposed method demonstrates superior performance in tracking accuracy and stability, markedly outperforming the other four methods. Facing time-varying currents and disturbances, the proposed method exhibits smaller fluctuations in position tracking error, while the other methods, especially Method 2, show more pronounced oscillations due to the lack of current compensation. This is particularly evident in the comparison of angular changes illustrated in
Figure 14, where Methods 3 and 4 are still deficient in maintaining angular stability and fluctuations, despite the fact that they utilize an improved line-of-sight method to attempt to compensate for the effects caused by the currents. When rapid changes in the currents occur, this leads to increased fluctuations in the angular control, which in turn affects the overall tracking performance. With further analysis of the data shown in
Figure 15 and
Figure 16, it can be observed that Methods 1, 2, 3, and 4 exhibit varying degrees of sustained oscillations when the frequency of the currents increases. In contrast, the proposed method shows smaller fluctuations in the control inputs of force and moment, although there are large momentary fluctuations when the currents and disturbances undergo abrupt changes; but overall it shows smaller fluctuation amplitude, demonstrating a strong control capability, thus maintaining the AUV’s stability and precision in tracking.
As shown in
Figure 17, the quantitative results provide further validation of the proposed method’s superiority. Under the influence of time-varying currents and disturbances, the increase in error for the proposed method is notably less than that of the other four methods. Method 2 suffers the most severe degradation in tracking stability and accuracy due to the lack of compensation for the currents. Comparing Method 1 and Method 4, under time-varying environments, the adaptive line-of-sight method of Method 4 provides a certain degree of compensation, but its tracking is still not as effective as the current observer of Method 1. In addition, Method 3, although combining the adaptive integral line-of-sight method and NDO, still has a larger error than the proposed method, which further illustrates the adaptability and robustness of the current observer in complex environments.
Figure 18 and
Figure 19 provide the estimation results on time-varying disturbances and currents. Relative to Case 1, it is evident that the proposed observer maintains robust estimation capabilities in the face of more complex marine conditions. In
Figure 18, which shows the perturbation estimation results, it is evident that NDO is able to track the uncertainty accurately, and even when the actual values of the perturbations show large abrupt changes at 100 and 200 s, the estimates are quickly adjusted and continue to track the actual values closely. This demonstrates NDO’s ability to respond and recover quickly in the face of sudden changes. As shown in
Figure 19, the observer effectively stabilizes and accurately assesses the evolving currents.
In summary, the control method under consideration demonstrates satisfactory tracking capabilities and robustness in different environments, as validated by Case 1 and Case 2. Relative to Method 1, the proposed method shows enhanced tracking stability, which is attributed to the NDO that makes the controller more adaptive and resistant to external disturbances. Compared with Method 2, the proposed method not only improves the tracking accuracy, but also significantly improves the stability. Method 2 utilizes the LOS guidance law, which has certain limitations. These limitations might cause the navigator to stray from the intended path, and the method is susceptible to the influence of the drift angle, which remains uncompensated over time. Although Method 3 is similar in performance to the proposed method in the stable environment of Case 1, in Case 2, the performance of Method 3 deteriorates in the face of rapidly changing currents and disturbances, and its tracking error and accuracy are not as good as those of our proposed method. In addition, the comparison results of Methods 1 and 4 further confirm the effectiveness of the current observer in time-varying and complex environments. By fusing the current observer and NDO, the proposed method not only improves the responsiveness to current variations, but also enhances the resistance to unknown disturbances, thus maintaining stable tracking of AUVs in different environments.
5. Conclusions
This study introduces a new control strategy aimed at addressing the 3D path-following challenge for an underactuated AUV amidst unknown disturbances such as ocean currents. The strategy integrates a current observer and a nonlinear disturbance observer and employs a backstepping sliding mode control method. The error equations are formulated within the Frenet–Serret coordinate system, and a kinematic controller integrating LOS and backstepping methodologies is devised. A nonlinear disturbance observer is utilized to estimate disturbances, enabling the derivation of an accurate control law through sliding mode control techniques. The proposed current observer is capable of estimating unknown currents, and theoretical analysis confirms the global asymptotic stability of the closed-loop system. Numerical simulation results demonstrate the superiority of the proposed method in terms of tracking performance and robustness.
Our study’s results are particularly relevant to marine exploration and resource extraction. The control strategy we propose boosts the capacity of AUVs to navigate through challenging ocean conditions, which is vital for tasks like underwater surveys, seafloor mapping, and pipeline inspections. The applications of our method could be broadened to include scientific research, environmental monitoring, and defense, where accurate underwater vehicles play a critical role. While our study has demonstrated promising results through numerical simulations, the next critical step is to validate these findings through physical experiments in open waters.
Looking ahead, we plan to adapt our control strategy to handle more variable and unpredictable ocean conditions by incorporating real-time oceanographic data. We also intend to explore the use of AI and machine learning to forecast ocean currents and enhance AUVs’ autonomous navigation capabilities. We hope that these research outcomes will bring innovative solutions to the fields of marine exploration and resource development and will promote the development and application of related technologies.