Introduction

Neural networks have rapidly emerged as a powerful tool in the field of control systems, revolutionizing the way we approach various control problems. These approximation-based adaptive control have proven to be highly effective in sliding model control1,2,3, optimizing control4,5, adaptive control6,7,8. Among them, the strict-feedback nonlinear system, some effective control strategies have been provided9,10,11. The control of non-affine pure-feedback nonlinear systems subject to state constraints has been a formidable challenge in the field of control engineering12,13,14. Such systems, characterized by non-affine dynamics and a lack of direct input-state relationships, have presented significant hurdles for traditional control techniques. The incorporation of neural networks into control strategies has proven to be a promising approach for approximating the complex, often unknown nonlinearities inherent in these systems. For the non-affine pure-feedback nonlinear systems, MVT can be used to change the complex structure to strict-feedback form15,16, and12 proposed MVT based backstepping control which use intermediate virtual control law instead of intermediate states. In the control process, MVT is an efficient principle in calculus that can be used to transform non-affine systems into affine systems. Transforming the control challenge of a pure-feedback system into a strict feedback framework simplifies the controller design process, markedly reducing the associated control complexity.

In system control application, it is often necessary to take into account the convergence time for close-loop system17. Therefore, finite time stable shows the significant advantage over exponential stable of linear feedback control, which the convergence time tends to infinity18,19,20. Especially for UAVs21 and mechanical systems22, the convergence time of the control process is even more important. The convergence time of finite time stable is heavily dependent on the control parameters and initial condition of the system23, furthermore, when the initial state is not available, fixed-time stable proposed a highly effective way which only dependent on known parameters24,25. The advantage of fixed-time stability is that convergence time is guaranteed bound of setting time, but it cannot be predefined or adjusted. For PT control, the convergence time can be predefined as needed through control parameters26,27,28. The predefined time control makes it easy to design a controller with a desired bound of setting time. The key advantage of PT stability is the flexibility to choose the convergence time through a tuning parameter. Therefore, PT control enables explicitly setting the desired convergence speed when designing the controller29,30,31. Combine predefine-time control and adaptive control, a novel convergence theorem is proposed and a state feedback controller for uncertain nonlinear systems is designed which guarantee all states converge to zero32,33. However, the convergence performance of neural network-based controllers and the satisfaction of state constraints within a predefined time have remained critical issues.

This paper addresses these challenges by introducing a novel control methodology that combines PT control, adaptive neural networks, and backstepping technology to design a controller capable of achieving PT convergence and ensuring that state constraints are strictly adhered to. The integration of PT control enhances the convergence guarantees beyond traditional fixed-time control methods, while the use of adaptive neural networks allows the controller to adapt to the uncertainties and complexities of non-affine pure-feedback nonlinear systems. The state constraints are an essential consideration in many practical applications, where overshooting or violating the limits of system variables can have critical consequences. Therefore, our approach maintains a primary focus on the rigorous enforcement of state constraints.

Motivated by the above-mentioned issue, in this context, the main objectives of this paper are to develop a systematic control framework that not only ensures PT convergence but also provides robust control performance and guarantees the satisfaction of state constraints for non-affine pure-feedback nonlinear systems. The main contributions are summarized as following.

  1. 1.

    Pure feedback system converted to strict feedback system based on MVT, and unmodeled dynamics approximated by neural networks. Neural networks backstepping control is designed for pure feedback nonlinear systems, and the proposed control strategy guarantees that the PT stable of the systems.

  2. 2.

    Based on PT adjustment function and Lyapunov theory, the close-loop system can be proved PT stable. The proposed the neural networks adaptive law is simple and easy to realize.

  3. 3.

    Compared to traditional exponential stability or practical stability approaches, as well as finite-time and fixed-time stability methods, this technique introduces PT control mechanisms. Notably, it ensures that the tracking error is zero, and the convergence time is a predetermined parameter that remains unaffected by initial conditions.

The rest of the paper consists of the following parts. In Section II, pure feedback non-affine nonlinear system mathematical description of the problem and some basic definitions are presented. In Section III, the PT adaptive neural network control scheme for constrained nonlinear systems is presented. In Section IV, theoretical results are illustrated by simulation examples. In Section V, a conclusion is summarized.

Problem statement and preliminaries

Consider the pure-feedback non-affine nonlinear systems described by the equations as:

$$\left\{ \begin{gathered} \dot{x}_{i} = h_{i} \left( {\overline{x}_{i} ,x_{i + 1} } \right) + d_{i} \left( t \right),i = 1,2, \ldots ,n - 1 \hfill \\ \dot{x}_{n} = h_{n} \left( {x,u} \right) + d_{n} \left( t \right) \hfill \\ y = x_{1} \hfill \\ \end{gathered} \right.$$
(1)

where \(x = \left[ {x_{1} ,x_{2} , \ldots ,x_{n} } \right]^{T} \in \Re^{n}\) is the system state, \(u \in \Re\) is controller, \(y \in \Re\) is output, respectively, \(\overline{x}_{i} = \left[ {x_{1} ,x_{2} , \ldots ,x_{i} } \right]^{T} \in \Re^{i}\), \(h_{i} :\Re_{ \ge 0} \times \Re^{n} \times \Re \to \Re\) are nonlinear smooth functions, \(y_{d} \in \Re\) is desired trajectory, and \(d_{i} \left( t \right)\) is the unknown external disturbances, \(i = 1,2, \ldots ,n\).

Assumption 1

Let \(g_{i} \left( {x_{i} ,x_{i + 1} } \right) = \frac{{\partial h_{i} }}{{\partial x_{i + 1} }}\left( {\overline{x}_{i} ,x_{i + 1} } \right),i = 1, \ldots ,n - 1\), \(g_{n} \left( {x,u} \right) = \frac{{\partial h_{n} }}{\partial u}\left( {\overline{x}_{n} ,u} \right)\), the sign of the functions \(g_{i} \left( * \right)\) are available, and there exist positive constants \(\underline {g}_{i}\). Without loss of generality, supposed that \(g_{i} \left( * \right) \ge \underline {g}_{i} > 0\). There exist positive constants \(\overline{d}_{i}^{{}}\) such that \(\left| {d_{i} \left( t \right)} \right| \le \overline{d}_{i}^{{}}\).

Based on MVT12, the nonlinear functions are transformed as

$$\begin{gathered} h_{i} \left( {\overline{x}_{i} ,x_{i + 1} } \right) = h_{i} \left( {\overline{x}_{i} ,z_{i + 1} + \alpha_{i} } \right) \\ = f_{i} \left( {\overline{x}_{i} ,z_{i + 1} } \right) + g_{i} \left( {\overline{x}_{i} ,x_{{\lambda_{i} }} } \right)\alpha_{i} \\ \end{gathered}$$
(2)

where \(\lambda_{i} \in \left( {0,1} \right)\), \(x_{{\lambda_{i} }} = \lambda_{i} x_{i + 1} + \left( {1 - \lambda_{i} } \right)z_{i + 1}\), \(g_{i} \left( {\overline{x}_{i} ,x_{{\lambda_{i} }} } \right) = \left. {\frac{{\partial h_{i} }}{{\partial x_{i + 1}^{*} }}} \right|_{{x_{i + 1}^{*} = x_{\lambda i} }}\), and make an assumption \(g_{i} \left( {\overline{x}_{i} ,x_{{\lambda_{i} }} } \right) \ge g_{i0} > 0\), and

$$h_{n} \left( {x,u} \right) = f_{n} \left( {x,0} \right) + g_{n} \left( {x,x_{{\lambda_{n} }} } \right)u$$
(3)

where \(\lambda_{n} \in \left( {0,1} \right)\), \(x_{{\lambda_{n} }} = \lambda_{n} u\), \(g_{n} \left( {x,x_{{\lambda_{n} }} } \right) = \left. {\frac{{\partial h_{n} }}{{\partial u^{*} }}} \right|_{{u^{*} = x_{\lambda n} }}\), and make an assumption \(g_{n} \left( {x,x_{{\lambda_{n} }} } \right) \ge g_{n0} > 0\), then system can be got as

$$\left\{ \begin{gathered} \dot{x}_{i} = f_{i} \left( {\overline{x}_{i} ,z_{i + 1} } \right) + g_{i} \left( {\overline{x}_{i} ,x_{{\lambda_{i} }} } \right)\alpha_{i} + d_{i} \left( t \right),1 \le i \le n - 1 \\ \dot{x}_{n} = f_{n} \left( x \right) + g_{n} \left( {x,x_{{\lambda_{n} }} } \right)u + d_{n} \left( t \right) \\ y = x_{1} \\ \end{gathered} \right.$$
(4)

Definition 1

32: Consider the nonlinear system.

$$\dot{x}\left( t \right) = \psi \left( {t,x\left( t \right)} \right)$$
(5)

where \(x \in \Re^{n}\) is the system state, \(\psi :\Re_{ \ge 0} \times \Re^{n} \to \Re^{n}\) is nonlinear smooth function and satisfied the \(\psi \left( {t,0} \right) = 0\). For any given constant \(T_{p}\), and \(T_{p} > 0\), such the system (5) is asymotically stable, and satisfied \(\lim_{{t \to T_{p}^{ - } }} x\left( t \right) = 0\), \(x\left( t \right) = 0\), \(\forall t \ge T_{p}\), then the equilibrium point \(x\left( t \right) = 0\) is PT stable.

Lemma 1

32: If there were two a continuous functions \(V\left( t \right),\tilde{V}\left( t \right)\) satisfying

$$\dot{V}\left( t \right) \le - k\mu \left( t \right)\tilde{V}\left( t \right) + \delta ,t \in \left[ {0,T_{p} } \right)$$
(6)

where \(V\left( t \right) \ge \tilde{V}\left( t \right) \ge 0\), \(k > 0\), \(\delta\) is constant, \(\mu \left( t \right)\) is PT adjustment function and satisfy

$$\begin{gathered} \mu \left( t \right) > 0,t \in \left[ {0,T_{p} } \right) \hfill \\ \mathop {\lim }\limits_{{t \to T_{p} }} \left( {T_{p} - t} \right)\mu \left( t \right) = \rho \hfill \\ \end{gathered}$$
(7)

where \(\rho\) is a positive constant or \(+ \infty\), then the \(V\left( t \right)\) is bounded for all \(t \in \left[ {0,T_{p} } \right)\) and \(\lim_{{t \to T_{p}^{ - } }} \tilde{V}\left( t \right) = 0\) (Table 1).

Table 1 Propositions on finite-time, fixed-time, predefined-time stability.

Lemma 2

For \(a,b \in \Re\), and satisfy the \(a > b \ge 0\), the following inequality holds:

$$\log \frac{a}{a - b} \le \frac{b}{a - b}$$
(8)

Lemma 3

34: For neural networks approximation, the following radial basis function neural networks is used, the neural networks

$$h_{nn} \left( Z \right) = W^{T} \Psi \left( Z \right)$$
(9)

where the input vector \(Z \in \Xi_{Z} \subset \Re^{n}\), weights vecor \(W = \left[ {W_{1} ,W_{2} , \ldots ,W_{l} } \right] \in \Re^{l}\), the neural networks node number \(l > 1\), \(\Psi \left( Z \right) = \left[ {\Psi_{1} \left( Z \right),\Psi_{2} \left( Z \right), \ldots ,\Psi_{l} \left( Z \right)} \right]^{T}\), and active function is choose as the Gaussian functions, as

$$\Psi_{i} \left( Z \right) = \exp \left( {\frac{{ - \left( {Z - \mu_{i} } \right)^{T} \left( {Z - \mu_{i} } \right)}}{{\eta^{2} }}} \right),\;\;i = 1,2, \ldots ,l$$
(10)

where \(\mu_{i} = \left[ {\mu_{i1} ,\mu_{i2} , \ldots ,\mu_{in} } \right]^{T}\) is the center of the respective field and \(\eta\) is the width of the Gaussian function. Any continuous function \(F\left( Z \right):\Re^{m} \to \Re\) can be approximated by RBFNNs for compact set \(\Xi_{Z} \subset \Re^{m}\) as

$$F\left( Z \right) = W^{ * T} \Psi \left( Z \right) + \varepsilon \left( Z \right)$$
(11)

where \(W^{ * }\) is ideal weight of NNs, \(\Psi \left( Z \right)\) is active function, \(\varepsilon \left( Z \right)\) is approximation error and satisfies \(\left| {\varepsilon \left( Z \right)} \right| < \overline{\varepsilon }\).

Main results

The tracking control of nonlinear system (1) is investigated by employing backstepping technology in conjunction with an adaptive neural network PT control. For strict-feedback affine system (4), combine backstepping control and PT control to design constraint control procedure. Define PT adjustment function

$$\mu \left( t \right) = \left\{ \begin{gathered} \frac{1}{{T_{p} - t}},\;\;\;\;t < T_{p} \hfill \\ \;\;\;1,\;\;\;\;\;\;\;\;t \ge T_{p} \hfill \\ \end{gathered} \right.$$
(12)

In the first step, define the tracking error

$$z_{1} = x_{1} - y_{d}$$
(13)

based on system (4), we have

$$\dot{z}_{1} = f_{1} \left( {x_{1} ,z_{2} } \right) + g_{1} \left( {x_{1} ,x_{{\lambda_{1} }} } \right)\alpha_{1} + d_{1} \left( t \right) - \dot{y}_{d}$$
(14)

Choose NNs to approximate the nonlinear system \(f_{1}\), \(Z_{1} = \left[ {x_{1} ,z_{2} } \right] \in \Omega_{1} \subset \Re^{2}\) and satisfy the \(\Omega_{1}\) is compact set

$$f_{1} \left( {x_{1} ,z_{2} } \right) = W_{1}^{T*} \Psi_{1} \left( {Z_{1} } \right) + \varepsilon_{1}$$
(15)

Choose a Lyapunov candidate functional as

$$V_{1} = \frac{1}{2}\log \frac{{k_{{b_{1} }}^{2} }}{{k_{{b_{1} }}^{2} - z_{1}^{2} }} + \frac{1}{2}g_{10} \tilde{\theta }_{1}^{2}$$
(16)

where \(\tilde{\theta }_{1} = \hat{\theta }_{1} - \theta_{1}\), and \(\hat{\theta }_{1} \left( 0 \right) > 0\), \(\hat{\theta }_{1}\) is estimation of \(\theta_{1} = \left\| {W_{1}^{*} } \right\|^{2}\), take the time derivative (16) along the trajectory of (14), then we have

$$\begin{gathered} \dot{V}_{1} = \frac{{z_{1} \dot{z}_{1} }}{{k_{{b_{1} }}^{2} - z_{1}^{2} }} + g_{10} \tilde{\theta }_{1} \dot{\hat{\theta }}_{1} \\ = \frac{{z_{1} \left( {f_{1} \left( {x_{1} ,z_{2} } \right) + g_{1} \left( {x_{1} ,x_{{\lambda_{1} }} } \right)\alpha_{1} + d_{1} \left( t \right) - \dot{y}_{d} } \right)}}{{k_{{b_{1} }}^{2} - z_{1}^{2} }} + g_{10} \tilde{\theta }_{1} \dot{\hat{\theta }}_{1} \\ \end{gathered}$$
(17)

Based on NNs approximation, we have

$$\dot{V}_{1} = \frac{{z_{1} \left( {W_{1}^{T*} \Psi_{1} + \varepsilon_{1} + g_{1} \left( {x_{1} ,x_{{\lambda_{1} }} } \right)\alpha_{1} + d_{1} \left( t \right) - \dot{y}_{d} } \right)}}{{k_{{b_{1} }}^{2} - z_{1}^{2} }} + g_{10} \tilde{\theta }_{1} \dot{\hat{\theta }}_{1}$$
(18)

Choose the NNs adaptive law as

$$\dot{\hat{\theta }}_{1} { = }\frac{{z_{1}^{2} \left\| {\Psi_{1} \left( {Z_{1} } \right)} \right\|^{2} }}{{2a_{1}^{2} \left( {k_{{b_{1} }}^{2} - z_{1}^{2} } \right)^{2} }},\;\hat{\theta }_{1} \left( 0 \right){ = 0}$$
(19)

Based on inequations

$$\frac{{z_{1} }}{{k_{{b_{1} }}^{2} - z_{1}^{2} }}W_{1}^{T*} \Psi_{1} \le \frac{1}{2}a_{1}^{2} + \frac{{z_{1}^{2} \left\| {W_{1}^{*} } \right\|^{2} \left\| {\Psi_{1} \left( {Z_{1} } \right)} \right\|^{2} }}{{2a_{1}^{2} \left( {k_{{b_{1} }}^{2} - z_{1}^{2} } \right)^{2} }}$$
(20)
$$\frac{{z_{1} \left( {\varepsilon_{1} + d_{1} \left( t \right)} \right)}}{{k_{{b_{1} }}^{2} - z_{1}^{2} }} \le \frac{{g_{10} z_{1}^{2} }}{{k_{{b_{1} }}^{2} - z_{1}^{2} }} + \frac{{\varepsilon_{1}^{2} }}{{2g_{10} }} + \frac{{\overline{d}_{1}^{2} }}{{2g_{10} }}$$
(21)

design the virtual control

$$\alpha_{1} { = } - k_{1} \mu \left( t \right)z_{1} - \frac{{sign\left( {z_{1} } \right)\left| {\dot{y}_{d} } \right|}}{{g_{10} }} - \frac{{z_{1} }}{{2\left( {k_{{b_{1} }}^{2} - z_{1}^{2} } \right)}} - \frac{{z_{1} \hat{\theta }_{1} \left\| {\Psi_{1} \left( {Z_{1} } \right)} \right\|^{2} }}{{2a_{1}^{2} \left( {k_{{b_{1} }}^{2} - z_{1}^{2} } \right)}}$$
(22)

where \(k_{1} > 0\), then

$$\dot{V}_{1} \le \frac{1}{2}a_{1}^{2} - \frac{{g_{10} k_{1} \mu \left( t \right)z_{1}^{2} }}{{k_{{b_{1} }}^{2} - z_{1}^{2} }} + \frac{{\varepsilon_{1}^{2} }}{{2g_{10} }} + \frac{{\overline{d}_{1}^{2} }}{{2g_{10} }}$$
(23)

The \(i\) th step \(2 \le i \le n - 1\), consider the tracking error state

$$z_{i} = x_{i} - \alpha_{i - 1}$$
(24)

then the system can be get

$$\dot{z}_{i} = f_{i} \left( {\overline{x}_{i} } \right) + g_{i} \left( {\overline{x}_{i} ,\lambda_{i} x_{i + 1} } \right)x_{i + 1} - \dot{\alpha }_{i - 1}$$
(25)

Choose NNs to approximate the nonlinear system \(f_{i} \left( {\overline{x}_{i} ,z_{i + 1} } \right) - \dot{\alpha }_{i - 1}\),\(Z_{i} = \left[ {\overline{x}_{i} ,y_{d} , \ldots y_{d}^{{\left( {i - 1} \right)}} ,z_{i + 1} ,\hat{\theta }_{1} , \ldots \hat{\theta }_{i - 1} ,\mu , \ldots \mu^{{\left( {i - 1} \right)}} } \right]^{T} \in \Omega_{i} \subset \Re^{4i - 2}\) and satisfy the \(\Omega_{i}\) is compact set

$$f_{i} \left( {\overline{x}_{i} ,z_{i + 1} } \right) - \dot{\alpha }_{i - 1} = W_{i}^{T*} \Psi_{i} \left( {Z_{i} } \right) + \varepsilon_{i}$$
(26)

Choose a Lyapunov functional candidate as

$$V_{i} = \frac{1}{2}\log \frac{{k_{{b_{i} }}^{2} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} + \frac{1}{2}g_{i0} \tilde{\theta }_{i}^{2}$$
(27)

where \(\tilde{\theta }_{i} = \hat{\theta }_{i} - \theta_{i}\), and \(\hat{\theta }_{i} > 0\), \(\hat{\theta }_{i}\) is estimation of \(\theta_{i} = \left\| {W_{i}^{*} } \right\|^{2}\), take the time derivative (27) along the trajectory of (25), then we have

$$\begin{gathered} \dot{V}_{i} = \frac{{z_{i} \dot{z}_{i} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} + g_{i0} \tilde{\theta }_{i} \dot{\hat{\theta }}_{i} \\ = \frac{{z_{i} \left( {f_{i} \left( {\overline{x}_{i} ,z_{i + 1} } \right) + g_{i} \left( {\overline{x}_{i} ,x_{{\lambda_{i} }} } \right)\alpha_{i} - \dot{\alpha }_{i - 1} } \right)}}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} + g_{i0} \tilde{\theta }_{i} \dot{\hat{\theta }}_{i} \\ \end{gathered}$$
(28)

Based on NNs approximation, we have

$$\dot{V}_{i} = \frac{{z_{i} \left( {W_{i}^{T*} \Psi_{i} \left( {Z_{i} } \right) + \varepsilon_{i} + g_{i} \left( {x_{i} } \right)x_{i + 1} } \right)}}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} + g_{i0} \tilde{\theta }_{i} \dot{\hat{\theta }}_{i}$$
(29)

Choose the NNs adaptive law as

$$\dot{\hat{\theta }}_{i} { = }\frac{{z_{i}^{2} \left\| {\Psi_{i} \left( {Z_{i} } \right)} \right\|^{2} }}{{2a_{i}^{2} \left( {k_{{b_{i} }}^{2} - z_{i}^{2} } \right)^{2} }},\hat{\theta }_{i} \left( 0 \right) = 0$$
(30)

Based on inequations

$$\frac{{z_{i} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }}W_{i}^{T*} \Psi_{i} \left( {Z_{i} } \right) \le \frac{1}{2}a_{i}^{2} + \frac{{z_{i}^{2} \left\| {\overline{W}_{i} } \right\|^{2} \left\| {\Psi_{i} \left( {Z_{i} } \right)} \right\|^{2} }}{{2a_{i}^{2} \left( {k_{{b_{i} }}^{2} - z_{i}^{2} } \right)^{2} }}$$
(31)
$$\frac{{z_{i} \left( {\varepsilon_{i} + d_{i} \left( t \right)} \right)}}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} \le \frac{{g_{i0} z_{i}^{2} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} + \frac{{\varepsilon_{i}^{2} }}{{2g_{i0} }} + \frac{{\overline{d}_{i}^{2} }}{{2g_{i0} }}$$
(32)

design the virtual control

$$\alpha_{i} { = } - k_{i} \mu \left( t \right)z_{i} - \frac{{z_{i} }}{{2\left( {k_{{b_{i} }}^{2} - z_{i}^{2} } \right)}} - \frac{{z_{i} \hat{\theta }_{i} \left\| {\Psi_{i} \left( {Z_{i} } \right)} \right\|^{2} }}{{2a_{i}^{2} \left( {k_{{b_{i} }}^{2} - z_{i}^{2} } \right)}}$$
(33)

where \(k_{i} > 0\), then

$$\dot{V}_{i} = \dot{V}_{i - 1} + \frac{1}{2}a_{i}^{2} - \frac{{g_{i0} k_{i} z_{i}^{2} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} + \frac{{\overline{\varepsilon }_{i}^{2} }}{{2g_{i0} }} + \frac{{z_{i} g_{i} \left( {x_{i} } \right)z_{i + 1} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} + \frac{{\overline{d}_{i}^{2} }}{{2g_{i0} }}$$
(34)

The nth step, consider the tracking error state

$$z_{n} = x_{n} - \alpha_{n - 1}$$
(35)

then the system can be get

$$\begin{gathered} \dot{z}_{n} = \dot{x}_{n} - \dot{\alpha }_{n - 1} \\ = f_{n} \left( {\overline{x}_{n} } \right) + g_{n} \left( {\overline{x}_{n} ,\lambda_{n} u} \right)u - \dot{\alpha }_{n - 1} \\ \end{gathered}$$
(36)

Choose NNs to approximate the nonlinear system \(f_{n} - \dot{\alpha }_{n - 1}\),\(Z_{n} = \left[ {\overline{x}_{n} ,y_{d} , \ldots y_{d}^{{\left( {n - 1} \right)}} ,\hat{\theta }_{1} , \ldots \hat{\theta }_{n - 1} ,\mu , \ldots \mu^{{\left( {n - 1} \right)}} } \right]^{T} \in \Omega_{n} \subset \Re^{4n - 3}\), and satisfy the \(\Omega_{n}\) is compact set

$$f_{n} \left( {\overline{x}_{n} } \right) - \dot{\alpha }_{n - 1} = W_{n}^{T*} \Psi_{n} \left( {Z_{n} } \right) + \varepsilon_{n}$$
(37)

Choose a Lyapunov functional candidate as

$$V_{n} = \frac{1}{2}\log \frac{{k_{{b_{n} }}^{2} }}{{k_{{b_{n} }}^{2} - z_{n}^{2} }} + \frac{1}{2}g_{n0} \tilde{\theta }_{n}^{2}$$
(38)

where \(\tilde{\theta }_{n} = \hat{\theta }_{n} - \theta_{n}\), and \(\hat{\theta }_{n} > 0\), \(\hat{\theta }_{n}\) is estimations of \(\left\| {W_{n}^{*} } \right\|^{2}\), take the time derivative (38) along the trajectory of (36), then we have

$$\begin{gathered} \dot{V}_{n} = \frac{{z_{n} \dot{z}_{n} }}{{k_{{b_{n} }}^{2} - z_{n}^{2} }} + g_{n0} \tilde{\theta }_{n} \dot{\hat{\theta }}_{n} \\ = \frac{{z_{n} \left( {f_{n} \left( {\overline{x}_{n} } \right) + g_{n} \left( {\overline{x}_{n} } \right)u - \dot{\alpha }_{n - 1} } \right)}}{{k_{{b_{n} }}^{2} - z_{n}^{2} }} + g_{n0} \tilde{\theta }_{n} \dot{\hat{\theta }}_{n} \\ \end{gathered}$$
(39)

Based on NNs approximation, we have

$$\dot{V}_{n} = \frac{{z_{n} \left( {W_{n}^{T*} \Psi_{n} \left( {Z_{n} } \right) + \varepsilon_{n} + g_{n} \left( {x_{n} } \right)u} \right)}}{{k_{{b_{n} }}^{2} - z_{n}^{2} }} + g_{n0} \tilde{\theta }_{n} \dot{\hat{\theta }}_{n}$$
(40)

Choose the NNs adaptive law as

$$\dot{\hat{\theta }}_{n} { = }\frac{{z_{n}^{2} \left\| {\Psi_{n} \left( {Z_{n} } \right)} \right\|^{2} }}{{2a_{n}^{2} \left( {k_{{b_{n} }}^{2} - z_{n}^{2} } \right)^{2} }},\hat{\theta }_{n} = 0$$
(41)

based on inequations

$$\frac{{z_{n} }}{{k_{{b_{n} }}^{2} - z_{n}^{2} }}W_{n}^{T*} \Psi_{n} \left( {Z_{n} } \right) \le \frac{1}{2}a_{n}^{2} + \frac{{z_{n}^{2} \left\| {W_{n}^{*} } \right\|^{2} \left\| {\Psi_{n} \left( {Z_{n} } \right)} \right\|^{2} }}{{2a_{n}^{2} \left( {k_{{b_{n} }}^{2} - z_{n}^{2} } \right)^{2} }}$$
(42)
$$\frac{{z_{n} \left( {\varepsilon_{n} + d_{n} \left( t \right)} \right)}}{{k_{{b_{n} }}^{2} - z_{n}^{2} }} \le \frac{{g_{n0} z_{n}^{2} }}{{k_{{b_{n} }}^{2} - z_{n}^{2} }} + \frac{{\varepsilon_{n}^{2} }}{{2g_{n0} }} + \frac{{\overline{d}_{n}^{2} }}{{2g_{n0} }}$$
(43)

design the virtual control

$$u{ = } - k_{n} \mu \left( t \right)z_{n} - \frac{{z_{n} }}{{2\left( {k_{{b_{n} }}^{2} - z_{n}^{2} } \right)}} - \frac{{z_{n} \hat{\theta }_{n} \left\| {\Psi_{n} \left( {Z_{n} } \right)} \right\|^{2} }}{{2a_{n}^{2} \left( {k_{{b_{n} }}^{2} - z_{n}^{2} } \right)}}$$
(44)

where \(k_{n} > 0\), then

$$\dot{V}_{n} = \frac{1}{2}a_{n}^{2} - \frac{{g_{n0} k_{n} z_{n}^{2} }}{{k_{{b_{n} }}^{2} - z_{n}^{2} }} + \frac{{\overline{\varepsilon }_{n}^{2} }}{{2g_{n0} }} + \frac{{\overline{d}_{n}^{2} }}{{2g_{n0} }}$$
(45)

Remark 1

The control signal (44) contain several terms, parameter \(k_{n} > 0\) is designed constant, \(a_{n} > 0\) is positive constant, state \(z_{n}\) is bounded based on Lyapunov theory. Based on Lyapunov candidate functional, \(\frac{1}{{k_{{b_{n} }}^{2} - z_{n}^{2} }}\) is bounded. To realize the PT control, the \(\mu \left( t \right)\) is bounded, therefore, the control signal is bounded.

Theorem 1

Consider the pure-feedback nonlinear system (1), based on MVT system can be changed into strict feedback affine system (4), adaptive neural network PT actual controller (44) is designed with virtual control law (22), (33) and adaptive law (19), (30), (41) for neural networks. The proposed control scheme confirms that closed-loop system is PT stable, and all states of error systems remain within the state constrained interval. The convergence time \(T\) is predefined by control parameter and independent of the initial parameters.

Proof

Choose the following Lyapunov candidate functional as:

$$V = \frac{1}{2}\sum\limits_{i = 1}^{n} {\log \frac{{k_{{b_{i} }}^{2} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }}} + \frac{1}{2}\sum\limits_{i = 1}^{n} {g_{i0} \tilde{\theta }_{i}^{2} }$$
(46)

Based on inequations as

$$\dot{V} = \frac{1}{2}\sum\limits_{i = 1}^{n} {a_{i}^{2} } - \sum\limits_{i = 1}^{n} {\frac{{g_{i0} k_{i} \mu \left( t \right)z_{i}^{2} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }}} + \frac{1}{2}\sum\limits_{i = 1}^{n} {\frac{1}{{g_{i0} }}\overline{\varepsilon }_{i}^{2} } + \frac{1}{2}\sum\limits_{i = 1}^{n} {\frac{{d_{i}^{*2} }}{{g_{i0} }}}$$
(47)

based on

$$- \frac{{\mu \left( t \right)z_{i}^{2} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }} < - \mu \left( t \right)\log \frac{{k_{{b_{i} }}^{2} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }}$$
(48)

and

$$\tilde{V} = \frac{1}{2}\sum\limits_{i = 1}^{n} {\log \frac{{k_{{b_{i} }}^{2} }}{{k_{{b_{i} }}^{2} - z_{i}^{2} }}}$$
(49)

then we have

$$\dot{V} \le - \mu \left( t \right)\tilde{V} + \Delta$$
(50)

where

$$\begin{gathered} k_{i} = \frac{1}{{2g_{i0} }} \hfill \\ \Delta = \frac{1}{2}\sum\limits_{i = 1}^{n} {a_{i}^{2} } + \frac{1}{2}\sum\limits_{i = 1}^{n} {\frac{{\overline{\varepsilon }_{i}^{2} }}{{g_{i0} }}} + \frac{1}{2}\sum\limits_{i = 1}^{n} {\frac{{\overline{d}_{i}^{2} }}{{g_{i0} }}} \hfill \\ \end{gathered}$$
(51)

The adaptive neural networks PT backstepping control structure is shown in Fig. 1.

Fig. 1
figure 1

Overall block diagram of PT control process.

Remark 2

The programming, following the PT-adaptive control algorithm outlined in Eqs. (22), (33) and (44), along with the program block diagram illustrated in Fig. 1, can be summarized as follows:

  • Step 1: Calculate the error between the system’s output and the ideal output.

  • Step 2: Design the virtual control based on the neural networks.

  • Step 3: Formulate PT adaptive laws to facilitate the training of neural network weights.

  • Step 4: Utilize backstepping control to determine the control variables.

In Fig. 1, for pure-feedback nonlinear system, backstepping technique constituted control flow, as a recursive control design technique that involves stabilizing a part of the system at a time, starting from the system output and working backward through the system input. Neural network is used to approximate the unknown nonlinear functions of the system, and adaptive law is constructed to learn the system’s behavior from system input and output data. Virtual control laws are designed based on PT adjustment function and neural network in each step of backstepping control. Then the controller is constructed in the last step of backstepping control.

Simulation examples

This section provides two illustrative examples to demonstrate the effectiveness of the proposed PT control scheme.

Mathematical example

The nonaffine pure-feedback nonlinear dynamics is

$$\left\{ \begin{gathered} \dot{x}_{1} = 2x_{2} \sin \left( {x_{1} } \right){ + }\left( {4{ + }x_{1}^{2} } \right)\left( {x_{2} + x_{2}^{3} } \right) + 0.1\sin \left( t \right) \hfill \\ \dot{x}_{2} = x_{1} x_{2} \left( {\sin \left( {x_{1} } \right) + x_{2}^{2} } \right) + 2x_{3} + \frac{{x_{3}^{3} }}{7} + 0.2\sin \left( t \right) \hfill \\ \dot{x}_{3} = x_{1} + x_{1} x_{2} + 2x_{3} + 2u + 0.3\sin \left( t \right) \hfill \\ y = x_{1} \hfill \\ \end{gathered} \right.$$
(52)

The ideal output is \(y_{d} = \sin \left( t \right)\), and design the state of the error system

$$\begin{gathered} z_{1} = y - y_{d} \hfill \\ z_{2} = x_{2} - \alpha_{1} \hfill \\ z_{3} = x_{3} - \alpha_{2} \hfill \\ \end{gathered}$$
(53)

Choose virtual control

$$\alpha_{1} { = } - k_{1} \mu \left( t \right)z_{1} - \frac{{sign\left( {z_{1} } \right)\left| {\dot{y}_{d} } \right|}}{{g_{10} }} - \frac{{z_{1} }}{{2\left( {k_{{b_{1} }}^{2} - z_{1}^{2} } \right)}} - \frac{{z_{1} \hat{\theta }_{1} \left\| {\Psi_{1} \left( {Z_{1} } \right)} \right\|^{2} }}{{2a_{1}^{2} \left( {k_{{b_{1} }}^{2} - z_{1}^{2} } \right)}}$$
(54)

where \(k_{1} = 5\), and virtual control is

$$\alpha_{2} { = } - k_{2} \mu \left( t \right)z_{2} - \frac{{z_{2} }}{{2\left( {k_{{b_{2} }}^{2} - z_{2}^{2} } \right)}} - \frac{{z_{2} \hat{\theta }_{2} \left\| {\Psi_{2} \left( {Z_{2} } \right)} \right\|^{2} }}{{2a_{2}^{2} \left( {k_{{b_{2} }}^{2} - z_{2}^{2} } \right)}}$$
(55)

where \(k_{2} = 5\) and \(k_{3} = 5\) controller have the following form:

$$u{ = } - k_{3} \mu \left( t \right)z_{3} - \frac{{z_{3} }}{{2\left( {k_{{b_{3} }}^{2} - z_{3}^{2} } \right)}} - \frac{{z_{3} \hat{\theta }_{3} \left\| {\Psi_{3} \left( {Z_{3} } \right)} \right\|^{2} }}{{2a_{3}^{2} \left( {k_{{b_{3} }}^{2} - z_{3}^{2} } \right)}}$$
(56)

The active function is Gaussian function as \(\Psi \left( Z \right) = \left[ {\psi_{1} ,\psi_{2} , \ldots ,\psi_{5} } \right]\), and \(\psi_{i} \left( x \right) = \exp \left( {\frac{{\left\| {x - c_{i} } \right\|^{2} }}{{2b_{i}^{2} }}} \right)\), \(c_{i} = \left[ {\begin{array}{*{20}c} { - 1} & { - 0.5} & 0 & {0.5} & 1 \\ \end{array} } \right]\), \(b_{i} = 5\).

The select the initial parameters as \(x = \left( {1,0,0} \right)^{T}\), and predefine-time \(T_{p} = 5\).

The simulation results are shown in Figs. 2, 3, 4, 5 and 6. The output \(x_{1}\), desired signal \(y_{d}\) and error state \(z_{1}\) are shown in Fig. 2. The state \(x_{2}\), desired virtual signal \(\alpha_{1}\) and error state \(z_{2}\) are shown in Fig. 3. The state \(x_{3}\), desired virtual signal \(\alpha_{2}\) and error state \(z_{3}\) are shown in Fig. 4. From Figs. 2, 3, 4, 5 and 6, the system output is able to track the desired signal in predefine time. All tracking error states are shown in Fig. 5, and trajectories of the controller is shown in Fig. 6.

Fig. 2
figure 2

System state \(x_{1}\), desired signal \(y_{d}\) and error signal \(z_{1}\).

Fig. 3
figure 3

System state \(x_{2}\), virtual signal \(\alpha_{1}\) and error signal \(z_{2}\).

Fig. 4
figure 4

System state \(x_{3}\), virtual signal \(\alpha_{2}\) and error signal \(z_{3}\).

Fig. 5
figure 5

Trajectories of error signals \(z_{1} ,z_{2} ,z_{3}\).

Fig. 6
figure 6

Trajectories of the controller \(u\).

Comparison between the proposed method and fixed-time control in14. In14 the convergence time is guaranteed bound of setting time, but it cannot be predefined or adjusted. In this PT control, the convergence time can be predefined as needed through control parameters.

Robotic exoskeleton22

In order to verify the effectiveness of proposed adaptive neural networks PT control in mechanical system, the exoskeleton robot system is proposed in Fig. 7. Robotic exoskeletons have significant theoretical research value and practical application value. Robotic exoskeletons are wearable devices designed to help or enhance the user’s physical abilities. Exoskeletons can provide support for people whose mobility is limited by injury, disability, or aging. They can help these people regain their ability to walk and improve their overall quality of life. In industries such as construction, warehousing and manufacturing, exoskeletons can reduce physical stress on workers, allowing them to lift heavier loads with less effort and reduce the risk of injury. In physical therapy and rehabilitation process, exoskeletons can be used as part of a training regimen to help patients regain strength and motor function after a stroke, spinal cord injury, or other condition that affects movement. Ongoing research is addressing these challenges through innovations such as soft exoskeletons, which provide greater comfort and greater range of motion, as well as the integration of artificial intelligence and smart sensors to improve the responsiveness and usefulness of devices. The future of robotic exoskeletons looks promising, with the potential for a wider range of applications in various fields as the technology advances, becoming more accessible and affordable.

Fig. 7
figure 7

Robotic exoskeleton control structure.

The mechanical system is described as

$$D\left( q \right)\ddot{q} + C\left( {q,\dot{q}} \right)\dot{q} + G\left( q \right) + f = u$$
(57)

where \(q\) is joint angle. In the first step, define the tracking error \(x_{1} = q - y_{d} ,x_{2} = \dot{q} - \dot{y}_{d}\), where \(y_{d} = \sin \left( t \right)\), then

$$\left\{ \begin{gathered} \dot{x}_{1} = x_{2} \hfill \\ \dot{x}_{2} = F\left( {x_{1} ,x_{2} } \right) + g\left( {x_{1} } \right)u \hfill \\ \end{gathered} \right.$$
(58)

where \(F\left( {x_{1} ,x_{2} } \right) = - D^{ - 1} \left( {x_{1} } \right)\left( {C\left( {x_{1} ,x_{2} } \right)x_{2} + G\left( {x_{1} } \right) + f} \right),g\left( {x_{1} } \right) = D^{ - 1} \left( {x_{1} } \right)\), based on system (58) and adaptive neural networks PT control theory, the initial condition is choose as \(x_{1} \left( 0 \right) = 1,x_{2} \left( 0 \right) = 0\).

The active function is Gaussian function as \(\Psi \left( Z \right) = \left[ {\psi_{1} ,\psi_{2} , \ldots ,\psi_{5} } \right]\), and \(\psi_{i} \left( x \right) = \exp \left( {\frac{{\left\| {x - c_{i} } \right\|^{2} }}{{2b_{i}^{2} }}} \right)\), \(c_{i} = \left[ {\begin{array}{*{20}c} { - 2} & { - 1} & 0 & 1 & 2 \\ \end{array} } \right]\), \(b_{i} = 5\).

The simulation result is shown in Fig. 8 with compared with the result in6. It can be seen from the figure that output of exoskeleton robot system is tracking desired signal at predesign time \(T = 5\), and the trajectory is smooth, which demonstrates remarkable capabilities in terms of PT convergence and state constraints satisfaction. Figure 9 shows the actual and expected outputs, Fig. 10 shows the joint acceleration, and Fig. 11 is the controller of the system.

Fig. 8
figure 8

System error states under different control method.

Fig. 9
figure 9

System state \(q\) and desired signal \(y_{d}\).

Fig. 10
figure 10

System state \(\dot{q}\).

Fig. 11
figure 11

Trajectories of the controller \(u\).

Conclusions

In this research, a novel PT control methodology for controlling non-affine pure-feedback nonlinear systems with state constraints is presented. By combining adaptive neural networks, backstepping technology, and PT control, the controller demonstrates remarkable capabilities in terms of PT convergence and state constraints satisfaction. The PT neural networks control feature is particularly significant for practical applications where predictable and bounded convergence is crucial. The method utilizes neural networks control to ensure predefined-time stability of all signals within the systems, allowing system outputs to track the desired trajectory accurately within a user-specified time. Theoretical analysis and simulation results have provided evidence of the effectiveness and robustness of the proposed control approach. It offers valuable insights for researchers and engineers working in the field of control systems and further research and practical applications.