#### Abstract

This paper studies the target-tracking problem of underactuated surface vessels with model uncertainties and external unknown disturbances. A composite robust adaptive self-structuring neural-network-bounded controller is proposed to improve system performance and avoid input saturation. An extended state observer is proposed to estimate the uncertain nonlinear term, including the unknown velocity of the tracking target, when only the measurement values of the line-of-sight range and angle can be obtained. An adaptive self-structuring neural network is developed to approximate model uncertainties and external unknown disturbances, which can effectively optimize the structure of the neural network to reduce the computational burden by adjusting the number of neurons online. The input-to-state stability of the total closed-loop system is analyzed by the cascade stability theorem. The simulation results verify the effectiveness of the proposed method.

#### 1. Introduction

In recent years, the tracking control problem of underactuated surface vessels (USVs) has attracted the attention of many researchers. The design of motion controllers for USVs is extremely important due to their applications in target search, resource exploration, oceanographic mapping, and ocean dynamic surveillance [1, 2]. The primary difficulty of USV tracking control is that it cannot satisfy various degrees of freedom to achieve independent power. Additionally, in the case of model uncertainties and unknown low-frequency time-varying external disturbances, the design of the USV nonlinear tracking controller is particularly difficult [3–5]. The challenges of controller design are as follows:(1)At present, general surface vessels can provide two degrees of freedom: control input surge and yaw. These vessels are underactuated systems in which the number of independent actuators (input) is less than the controlled degrees of freedom (output) [6–11].(2)It is difficult or impossible to design an accurate vessel model. For example, the Coriolis and centripetal terms and hydrodynamic damping forces in the model cannot be accurately determined [12–14].(3)The external unknown disturbances caused by waves, wind, and ocean currents seriously affect the stability and robustness of the USV control system [15].

Model uncertainties have a serious impact on the performance and stability of the control system. When external unknown disturbances are added, the robustness of the system worsens. Many model-based USV tracking control methods have been proposed. The tracking control method was based on the Lyapunov theorem and backstepping technique in [16]. In [17], the controller was designed through the nonlinear coordinate transformation of the vessel model to obtain global uniformity and final boundedness. To address the unknown nonlinear components caused by the uncertainty of the model parameters, the adaptive control method was proposed to solve the tracking control problem and improve the system’s robustness [18, 19]. In [18], by updating the adaptive law, a parameter compression algorithm was developed to address the problems of model uncertainty and unknown disturbances in a more concise way. Fuzzy control combined with minimum learning parameters and a fuzzy adaptive control method with state feedback was proposed to address model uncertainties in [19]. Recently, in USV tracking control, a variety of NN adaptive technologies were designed to compensate for model uncertainties [20–25]. Under the conditions of uncertain model parameters and unknown nonlinearity, an adaptive observer based on NNs was developed to estimate USV speed with uncertain terms [20]. In [21], a robust controller based on the traditional RBFNN was proposed to compensate for the dynamic uncertainty. To ensure performance, an adaptive NN controller was developed to compensate for model uncertainties in [22, 23].

In motion control, target control has attracted more attention [26–28]. In [26], a measuring target velocity observer was developed to assist in tracking the upper target under the constraints of position, angle, and speed. In [27], the range and angle of the underwater robot relative to the tracking target were transformed into a dynamic second-order model with open-loop error. Multilayer NN and robust controller with adaptive parameters were used to achieve target-tracking control. In [28], based on the line-of-sight (LOS) measurements of angle and range, a target-tracking controller was proposed. Fuzzy control [29, 30] has been validated in various practical applications such as the control of USVs. In [31], an adaptive output-feedback fuzzy control was proposed by using a fuzzy logic system (FLS) to approximate the model uncertainties. In particular, during the target-tracking process, only the target’s instantaneous movement information is available. The above trajectory control strategy can obtain the required tracking information, including position and velocity, but without considering the unknown target velocity. When addressing model uncertainties and disturbances, disturbance observations were used to estimate disturbances to complete robust tracking control [32], and the NN was used to process unknown nonlinear functions, which were combined with model uncertainties and unknown external disturbances [20–23]. When the NN approximates a nonlinear function, the number of neurons has a huge impact on the error of the NN approximation function. In [33, 34], the number of neurons was very large, and the more neurons there were, the better the approximations of the nonlinear function. However, this change also led to an increase in the number of geometric series in the calculation and a drastic reduction in the calculation speed. In [35], the adaptive NN compensated for the uncertainty of the model, which used the proposed self-structure mechanism to optimize the approximation performance and reduce the computational burden. In [36], a flexible NN structure was proposed to solve the unknown nonlinear function for each neuron of multiple agents. The NN with better performance obtained by optimizing the structure was more suitable for practical application scenarios.

Inspired by the above observations and research, this paper proposes a robust target-tracking control method and a self-structuring NN strategy to solve the problems of model uncertainties and unmeasurable tracking target velocity while ensuring satisfactory USV system performance. Compared with the previous studies described in [27, 28, 37], the proposed control method is based on the fact that the speed of the tracking target cannot be obtained. In addition, for the target tracker differential explosion problem, a second-order linear differentiator is added to generate a smooth motion profile curve. In [38], the problem of input saturation is solved by introducing a Gaussian error function to avoid the output fault of the actuator. In this paper, another method is proposed to design a predefined bounded control law to guarantee that the system is ISS, to achieve input boundedness, and to guarantee that the controller is not complex. In [21, 33, 34], the use of an adaptive NN to approximate unknown model parameters required a large number of neurons to ensure the approximation effect. Then, a self-structuring neural network (SNN) optimization strategy was proposed to require fewer neurons to obtain the optimized NN structure and reduce the computational burden. In our previous work on fully actuated surface vessels [35], the SNN was first proposed to approximate the model uncertainties. However, SNNs can complete the approximation process only by adding neurons because the controller design of fully actuated surface vessels is simpler. In this paper, since the control design of underactuated surface vessels is more complex, a neural network is required to achieve higher approximation performance. Therefore, in this paper, SNNs not only can increase the number of neurons but also can delete neurons with low activation to reduce the amount of neural network training calculation on the premise of ensuring approximation performance.

The primary contributions of this paper are summarized as follows:(1)An expanded state observer is employed to estimate the nonlinear term including the target speed information so that the designed controller does not require the direct target’s speed, which is very difficult to obtain in practice. In addition, the designed controller only requires the measurements of the LOS range and angle, which can receive data through some simple sensors. This ability is desirable in practice.(2)An adaptive self-structuring NN is proposed to approximate the vessel’s unknown nonlinear terms, including the model uncertainties and external unknown disturbances. Compared with the RBF neural network, which has a fixed number of neurons [33, 34, 39], a self-structure strategy is developed to adjust the NN structure. This approach can optimize the NN approximation performance by adjusting the number of effective neurons, effectively reducing the computational burden.(3)Compared with other adaptive control algorithms [18], the proposed control laws are predefined as bounded and with an a priori bound, which effectively avoids input saturation of the controller.

The organizational structure of this paper is as follows. Section 2 introduces the preparation of the USV problem formula, NN, and neuron optimization strategy. Section 3 shows the design of the USV robust target-tracking controller and the stability analysis. Section 4 analyses the effectiveness of the control method through simulation. Finally, Section 5 provides conclusions and future research.

#### 2. Preliminaries and Problem Formulations

##### 2.1. Preliminaries

Notation: and represent the largest and smallest eigenvalues of the square matrix , denotes the absolute value of a scalar, stands for the Euclidean norm, denotes a block-diagonal matrix, and is a sign function.

*Assumption 1. *(see [40]). The matrix of the ideal NN weights is always bounded, where and are unknown positive constants that satisfy and . and are the approximate errors, which are bounded by , , and is an unknown and small positive constant.

*Assumption 2. *The external disturbance is unmeasurable and time-varying but bounded, and its first derivative is also bounded, such that and , where and are unknown positive constants.

##### 2.2. Neural Network

Faced with the unknown dynamic model, an SNN is proposed. Suppose that is an unknown smooth and bounded nonlinear function and that it can be approximately expressed as follows [41]:where *N* is the number of neurons in the NN. denotes the ideal weight vector:where is the estimation of . denotes the NN vector, and the activation function is a Gaussian function.where represents the center vector and represents the width of the Gaussian function. is the bounded approximation error of the NN, namely, , and is an unknown and small constant.

In the traditional RBFNN, additional neurons in the NN result in a more accurate approximation [33, 34]. However, in actual function approximation, not all neurons are valid NN neurons. More NN neurons mean more valid as well as invalid neurons, but the former is more frequent than the latter. The SNN has the ability to increase and decrease the number of NN neurons online to achieve the best NN structure. By increasing the number of effective active neurons and deleting neurons with lower activation degrees, better function approximation performance is obtained.

The SNN neuron strategy has two principal operations: split and delete. Splitting of neurons is achieved by judging whether the neuron with the highest activation function among the existing neurons is greater than a given activation value. The maximum degree among is defined as follows:

The activation strength obtained from (1) is used as the degree measure, and is defined as the maximum degree among . If where is a preset threshold, the incoming data are not ideal. In other words, the activation degree is insufficient. Therefore, a new neuron with a strong degree of activation should be split. The weight vector W and the center vector *c* corresponding to the activation function of the new neuron are the same as the parameters corresponding to the *S* neuron. This relationship ensures that the activation strength of the new split neuron is better.

The newly divided neuron is labeled as . The new neuron weight parameters are as follows:where , , and are the parameters of the largest activated neuron , is the initial weight value of the new neuron, and is the flag value used in (6).

If the number of neurons continues to increase, a myriad of computational pressures will be caused; therefore, the strategy of neuron deletion is proposed. When the activation strength is smaller than a threshold , neuron *r* is not strongly associated with the input. Then, when satisfies our setting strategy of continuous neuron deletion, the value of the reference index gradually decreases. The referring index is as follows:where is the reference index of the neuron, and its initial value is 1. is the critical value for deletion, and is a positive constant. denotes that the final value of . is a predefined value. If it satisfies , the neuron is pruned. Moreover, the amount of calculation is also reduced. In summary, a neuron adjustment schematic diagram is shown in Figure 1. If , a new neuron with a strong degree of activation should be split. If inequality (6) is satisfied, the neuron is deleted. The SNN neuron algorithm strategy flowchart is shown in Figure 2.

*Remark 1. *The difference between RBFNN and SNN is that the former requires more neurons but introduces more low-effect neurons, which introduces a large number of invalid calculations; the latter can increase the number of effective neurons and delete inefficient neurons by judging the neurons’ activation degree.

*Remark 2. *If the nonlinear function approximated by the SNN is more complicated, more neurons are split to obtain better approximation performance. Then, by choosing a larger value, more neurons are generated, and at the same time, by slightly increasing the value, activation neurons with lower degrees can be removed.

##### 2.3. Problem Formulation

The kinematics and dynamics model of USVs with disturbances are expressed as follows [42]:

represents the vessel position and orientation in the earth-fixed frame. denotes the corresponding velocities in surge, sway, and yaw. and are the control inputs. , , and are the mass of the ship. is an external unknown disturbance vector caused by wind, waves, and ocean currents. () are the nonlinear function component of the ship’s model, including the centripetal force and force of the Coriolis as well as the hydrodynamic damping effects and unknown dynamic model.

The target model is as follows:

A system composed of the structural relationship between the target, and the follower is shown in Figure 3.

The LOS range and angle between the target and the followers are expressed as follows:where , , and the formation tracking errors are defined bywhere is the desired LOS range and is the sideslip angle.

The control objective of this paper is to construct a robust controller for USVs (dynamics (7) and (8)) to track the desired leader trajectory so that the signals , , , and are uniformly ultimately bounded (UUB).

#### 3. Main Results

##### 3.1. Kinematic Controller Design

The time derivatives of (11) along (9) and (7) are given bywhere

*Remark 3. *To facilitate the derivation of the control law, coordinate transformation (11) is used, and the kinematics model of USV is rewritten as in (12). Similar error transformations are used in [42, 43].

We make the following assumptions.

*Assumption 3. *For the function and , and are two positive constants, such that and .

The kinematic controller is designed according to the error dynamics in (12). Since and are unknown, and are unavailable. Two ESOs are used to estimate and as follows:where , and are parameters that need to be designed.

The observation errors can be expressed as follows:where , , , and . Let and , where and is a positive constant. Formula (15) is expressed as follows:where is a Hurwitz matrix, which is expressed as follows:There is a matrix P with a unique positive definite that causes the following equation to be true.Two types of virtual control laws are proposed to stabilize and as follows:where and . and are positive parameters. and are control gain parameters. and are the error estimations of the tracking trajectory and angle, respectively.

Let and pass by the second-order linear TD to obtain and , which are the expected values of and , respectively.where and . and are defined as estimation errors. is the design parameter. The convergence of the error is analyzed in [44]; it can summarize that there exist two small positive numbers and that satisfy and for bounded virtual control signals and , respectively. Then exist positive small numbers and , such that and .

Substituting (20) into (15), the target-tracking errors can be rewritten as follows:where , , , and .

##### 3.2. Dynamic Controller Design

From equation (8), the derivatives of and are expressed as follows:where and . and are the unknown nonlinear function components of the ship’s model and the unknown external disturbances. In the process of deriving the control law, it is necessary to solve the nonlinear function, which is composed of unknown disturbances and uncertainties from the model. Inspired by the SNN, a parameter adaptive method is proposed to approximate nonlinear functions and .where is the input vector and and are the RBF vectors. and are the approximate errors, which are bounded. and denote the ideal weights. and are the estimation values of and , respectively. , , , and are unknown positive constants that satisfy , , , and , respectively.

Error estimation models are designed based on the SNN as follows:where , , , and are the positive constant parameters.

Then, the control laws based on the SNN models (24) are designed as follows:where , , and and are two positive constants. Design the following adaptive update laws for and as follows:where , , , and are the design parameters.

*Remark 4. *The estimation errors are used to replace the errors , which effectively improves the transient performance of the control system [45].

The designed control laws (25) are bounded, and the bound are a priori, which effectively avoids saturation of the controller. The upper bound of the control laws can be expressed as follows:

*Remark 5. *The SNN weights and are trained and self-learned online according to (26). *L* is the number of neurons in the SNN, which can be updated according to the self-structuring strategy.

Substituting (25) into (24) yieldsThe derivatives of , , , and along (26) and (24) are as follows:where and are the estimation errors. The control scheme flow is shown in Figure 4.

##### 3.3. Stability Analysis

The closed-loop error system is a cascade system composed of two estimation error subsystems ((16) and (29)) and a target-tracking error subsystem ((21) and (28)). Three lemmas are used to prove its stability. The first is the stability of the ESOs observation error system.

Lemma 1. *There is a matrix with a positive definite that satisfies (18), and the error system in (16) is a system for which the state is and the input is . Then, the error system (16) is input-to-state stable (ISS) under Assumption 3.*

*Proof. *Define the Lyapunov function concerned with ESOs error as follows:The time derivative of along (18) becomesSincerenderswhere , it follows that the observer error system is ISS, andwhere is a function andThen, the stability of the error subsystem (24) is given by Lemma 2.

Lemma 2. *The error subsystem (24), considered as a system with the inputs being , , , and and the states being , , , and , is ISS under Assumption 1.*

*Proof. *Assign the Lyapunov function as follows:With (29), the derivative of (36) is as follows:where , , and .

Sincerenderswhere . Consequently, the error subsystem (24) is ISS, andwhere is a function andwhere .

The last is the stability of the target-tracking error subsystems (21) and (28).

Lemma 3. *Subsystems (21) and (28), considered as a system with the inputs being , , , , and and the states being , , , and , are ISS.*

*Proof. *Define the Lyapunov function as follows:Substituting (21) and (28) into the derivative of (42), the following is obtained:where , , , and .

Sincerenderswhere , it shows that subsystems (21) and (28) are ISS, andwhere is a function andwith and .

Therefore, the stability of the cascade of ESO error subsystem (16), subsystem (29), and target-tracking error subsystems (21) and (28) is given by the following theorem.

Theorem 1. *The cascade system composed of ESO error subsystem (16), subsystem (29), and target-tracking error subsystems (21) and (28) is ISS under Assumptions 1, 2, and 3. And all errors of the closed-loop system are uniformly ultimately bounded.*

*Proof. *Lemmas 1–3 prove that observer error subsystems (16) with input and state ; subsystems (29) with inputs , , , and and states , , , and ; and target-tracking error subsystems (21) and (28) with inputs , , , , and and states , , , and are ISS, respectively. According to cascade stability theory (Lemma 4.6 in [46]), the closed-loop error system composed of (16), (29), and (21) and (28) is ISS with states , , , , and ; , , , and ; and inputs , , , , , , , , and . In conclusion, when *t* > 0 is satisfied, satisfies the inequality as follows:where . , and are bounded by , , and Assumptions 1 and 2.

As a consequence, the errors , , , , , , , , and are all bounded.

Theorem 2. *Since , , , , , and are both bounded, it means that the tracking errors , , , and are all bounded.*

*Remark 6. *Figure 5 represents the tracking relationship between leader and follower in target tracking. A formation has multiple leaders and followers, and a formation can be decomposed into many subsystems of one leader and one follower. A similar formation control structure is also available in [43]. Followers in each subsystem maintain the desired location of the target, then the desired formation is established.

#### 4. Simulation Results

In this section, to verify the effectiveness of the control method, a simulation model is established. Consider a USV team with two levels of control, which consists of a tracking target and two followers. USV1 follows the target vessel, and USV2 follows USV1. The USV model parameters are shown in [10].

The unknown nonlinear function in the USV model is expressed as follows:where the unknown model uncertainties are assumed to be

The external disturbances are simulated as follows:

The position velocities of the tracking target are considered to be and , and the yaw angle velocity is designed as follows:

The initial positions of the USVs and target are and . The desired LOS tracking position range is expressed as . The control parameters of the SNN are selected as , , , , , , , , , , , , , , , , , , , , and .

The simulation results are shown in Figures 6–11. Figure 6 shows the trajectory of the tracking target and the followers. The two ships move from different initial positions to the desired position. This result shows that the controller designed in this paper completes target-tracking control under uncertain nonlinear terms and unknown external disturbances. When both followers complete target tracking, a specific formation is achieved. The performance of the ESO is shown in Figure 7. Figure 8 shows that the neural network fits nonlinear functions composed of unknown dynamic models and external disturbances. Figure 9 shows the control input and its bounds. Figure 10 shows the trend in the number of neurons in the SNN as well as the number after stabilization. In the beginning, the nonlinear function changes considerably, so the SNN must continuously split neurons and delete invalid neural neurons when approaching it. This leads to greater changes in neurons. When the SNN output approximates the nonlinear function, the number of neurons gradually stabilizes, and when the approximation performance reaches the best, the number of neurons stabilizes. The target-tracking error is shown in Figure 11, and it represents a small neighborhood where the tracking error will converge to zero.

In addition, to verify the performance of the SNN, the performances of the RBFNN and SNN using the same parameters except for the number of neurons are compared. The number of neurons in the RBFNN is The RBFNN control parameters are selected as , , and .

The approximation performance of the RBFNN is shown in Figure 12. The SNN and RBFNN approximation errors are shown in Figure 13. Figures 12 and 13 show that the approximate performance of the RBFNN with 48 neurons is excellent and that the approximation errors are small. In Figure 13, the approximation errors of the SNN are smaller than those of the RBFNN, demonstrating that the approximation performance of the SNN is better. Figure 9 shows that the maximum number of SNN neurons in USV1 exceeds 28 and remains at 24. Consequently, when guaranteeing approximation performance and when the unknown nonlinear component is complicated, more neurons are needed, and when the unknown nonlinear component is simple, only a small number of neurons is needed. By optimizing the number of neurons, the approximation performance of the NN is guaranteed, and the amount of calculation is reduced.

To verify the performance of the proposed controller, a comparison with adaptive output-feedback control [18] is provided. The LOS range error, angle tracking error, and control inputs are shown in Figures 14–17. As seen in Figure 14, the proposed method’s LOS range tracking error is smaller than that in [18]. In Figure 15, the angle tracking errors of the two methods are similar. As seen in Figures 16 and 17, the initial values of the control inputs and in method [18] are much larger than those of the proposed method, exceeding 600 N and 40 N•m, respectively. The control inputs are physically limited by the actuator, and exceeding the limits can cause actuator saturation, which may lead to degraded performance, hysteresis, and instability. In Figure 8, the proposed method’s control inputs and are less than 15 N and 5 N•m, respectively. In conclusion, compared with the method in [18], the proposed method has smaller tracking errors and no input saturation problem.

#### 5. Conclusions

In this paper, a target-tracking controller for USVs with model uncertainties and external low-frequency disturbances is proposed. The speed of the target is unknown, and only the position and angle are measured. An ESO-based motion controller is proposed, and it can estimate the unknown nonlinear function of the target caused by the unavailability of velocities. The proposed NN estimation model can optimize its structure by adjusting the number of neurons through a self-structure strategy, which is used to estimate unknown nonlinear functions caused by unmodeled dynamics, uncertain model parameters, and external unknown environmental disturbances. Based on the SNN error estimation model, the proposed USV dynamic controller has an a priori bound, which effectively avoids the saturation of the controller. The main result analysis shows that the whole closed-loop error system is ISS. The experimental simulation results verify the effectiveness of the control algorithm. Further work will consider the influence of factors such as noise, communication delay, and actuator failure on the controller.

#### Data Availability

The data used to support the findings of this study are included within the article.

#### Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this study.

#### Acknowledgments

This work was supported by the 2019 “Chong First-class” Provincial Financial Special Funds Construction Project (grant no. 231419019), the Natural Science Foundation of Guangdong Province, China (grant no. 2018A0303130076), the Key Project of Department of Education of Guangdong Province (grant no. 2021ZDZX1041), the Science and Technology Planning Project of Zhanjiang City (grant nos. 2020B01267 and 2021E05012), and the Fund of Southern Marine Science and Engineering Guangdong Laboratory (Zhanjiang) (grant no. ZJW-2019-01).