#### Abstract

A new neural network sliding mode control (NNSMC) is proposed for backlash-like hysteresis nonlinear system in this paper. Firstly, only one neural network is designed to estimate the unknown system states and hysteresis section instead of multiscale neural network at former researches since that can save computation and simplify the controller design. Secondly, a new NNSMC is proposed for the hysteresis nonlinearity where it does not need tracking error transformation. Finally, the Lyapunov functions are adopted to guarantee the stabilities of the identification and control strategies semiglobally uniformly ultimately bounded (UUB). Two cases simulations are proved the effectiveness of the presented identification approach and the performance of the NNSMC.

#### 1. Introduction

Many systems make hysteresis nonlinearities such as power systems, motor systems, and intelligent material systems*.* In some systems, the hysteresis can be applied to solve some problem. For example, some waveform generator systems utilized hysteresis to produce the designed waveform. But in most systems, the existence of the hysteresis nonlinearities will degrade the performance of the system and even lead to unstabilized in severe case. Therefore, the hysteresis investigations attract attention and also have many results for either system.

Due to the conflict of the fast development of economic and fossil energy lacking and pollution, it is inevitable to develop clean reproducible energy. Then, the new energy systems become more important and attract more attention than before. For example, the new energy vehicles will become the mainstream of the vehicle investigation and will occupy large scale market. But in most new energy systems, the existence of the hysteresis hinders the research progress and affects the improvement of the new energy application. Therefore, to investigate the hysteresis nonlinearity has important significance for new energy systems.

The hysteresis models have been investigated for many years. There are four familiar hysteresis models which are Preisach model, Prandtl-Ishlinskii (P-I) model, Bouc-Wen model, and backlash-like model. These hysteresis models are all mathematical models that have more extensive application compared with the physical models such as Jiles-Atherton’s (J-A) model. The Preisach model is the premier mathematical hysteresis model to deal with the magnetic systems firstly, but now it has a broader application for most hysteresis systems. We [1] proposed a novel identification to estimate the discrete Preisach model, where the new approach utilized the lower triangular matrix calculating the Preisach density function. The proposed identification could save computation and deduce complexity contrasting with the classic identification. We also investigated the Bouc-Wen hysteresis model of motor systems in [2]. The hysteresis motor servo system with Bouc-Wen model firstly was transformed into a canonical state space form, then, a high-order neural network observer (HONN) was proposed and a filter for the tracking errors was adopted to simplify the controller design. Different from [2], we researched a backlash-like hysteresis system in [3]. A new Multiscale Chebyshev Neural Network (MCNN) was proposed to estimate the unknown system parameters and hysteresis section. Then the vector error was transformed into scalar error simplifying the controller and the stability of the closed system was guaranteed by Lyapunov function. In [3], two Chebyshev NN were applied to estimate the unknown states and hysteresis sections, respectively, and the tracking error was transformed to simplify the adaptive controller design. Nevertheless, we continue to investigate the backlash-like hysteresis model in this paper since it is fewer parameters and has analytical solution, but we will propose new NN and no longer use adaptive controller designing the controller for hysteresis systems.

Neural network is an important intelligent approach for identification and control systems [4–8]. Different NN structure was proposed and applied for different systems. A high-order neural network (HONN) was utilized to identification and control nonlinear system in [9, 10]. A multitime-scale recurrent high-order neural networks (MSRHONN) was proposed in [10] for singularly perturbed systems by the optimal bounded ellipsoid algorithm. The new approach could achieve faster convergence and the controller structure was simplified. In [3], the Multiscale Chebyshev Neural Network (MCNN) was presented to identification the hysteresis nonlinear systems. As an important intelligent method, The NN will be attended broader.

Different from adaptive control [11, 12], sliding mode control (SMC) [13] draws more attention in recent years. In some circuit, the hysteresis was utilized by the overshoot of the output voltage response. Literature [13] took advantage of the inherently variable-structure of the DC-DC system to design a modified sliding mode control regulating the DC hysteresis circuit system. The fuzzy adaptive Proportional-Integral-Derivative (PID) SMC was proposed for hysteresis piezoactuated nanopositioning stage in [14]. Meanwhile, we also proposed SMC to control the hysteresis motor servo system with discrete Preisach model in [1]. A composite control consisting of discrete inverse model-based controller (DIMBC) and discrete adaptive sliding mode controller (DASMC) was presented for discrete hysteresis systems which could accelerate the reaching time and enhance the robustness of the controller. In this paper, we further utilize the SMC to deal with a continuous hysteresis system with Baclash-Like system. Since the existing of the chattering in SMC, the control performance will be degraded. If not handling it, when the chattering is serious, that will damage the equipment in real system. Several approaches can restrain the chattering. We have investigated the influence and the restrained method of the chattering in [1]. Then, in this paper, we adopt function replacing the function; for the function is a continuous function, and it can well restrain the chattering of the SMC.

This research is a further investigation based on [3]. But it has three points different from [3]. First is one new NN designed to estimate the unknown states and hysteresis sections in this research which is different from two Multiscale Chebyshev Neural Networks (MSCNN) in [3] since the new design will simplify the controller and reduce the computation. We adopt one NN in this research because almost new energy systems only have one time scale, it does not need multiscale NN structure. But beyond that, the investigations of new energy system with NN controller are not common yet, one scale NN controller is researching, and multiscale NN will be investigate as well as other systems. Second is no tracking error transformation in this paper since the tracking error transformation in [3] could lead to the decline control performance. In this research, we transform the system into canonical form to avoid the complicated computation of controller design such as back-stepping. Since the system is converted, the tracking error transformation is not necessary to simplify the computation. After all, the tracking error transformation is exactly save the calculation but can degrade the control precision. Finally, in this paper, we design a sliding mode control (SMC) instead of the adaptive control in [3]. The SMC controller has more strong robustness which can preferably compensate the error and disturbance result from the NN and other external causes.

The rest of the paper is organised as follows: Section 2 states the problem formulation. The NN identification design is proposed in Section 3 and Section 4 shows SMC controller design. The simulations are given in Section 5. Section 6 concludes the papers. Data availability statement, conflicts of interest and acknowledgments are at the end of the paper.

#### 2. Preliminaries

Considering a hysteresis nonlinear system is described aswith and , where are the states and intermediate input, respectively, is the control input, denote unknown general nonlinear smooth functions, respectively, and represents hysteresis nonlinearity. In this paper, we discuss the hysteresis nonlinearity that is described by backlash-like model. The backlash-like hysteresis can be expressed as follows [15]:where are positive constants and .

The figure of backlash-like hysteresis is illustrated in Figure 1, where , , , and the input , , , and .

To address the unknown system state function , , system (1) are rewritten as follows:where is Hurwitz matrix, , are controllable, and , .

Considering the Hurwitz state matrix , given a positive definite matrix , there exists positive definite matrix such that the inequalityholds.

According to [3, 16], the equation can be solved aswhere are the initial values of .

Then, substituting the backlash-like model (2) into system (3), we haveDefine a smooth function as follows:then system (6) can be deduced as

#### 3. NN Identification Design

Neural network (NN) can commendably approximate the nonlinearity systems. But different NN structure has different characteristics. In this paper, we adopt high-order neural network (HONN) to estimate the unknown general nonlinear smooth functions and hysteresis nonlinearity. The HONN is an excellent NN for nonlinear systems, where the big advantage is that only needs less neurons and computational costs. Thus the HONN developed high-order basis function connections so that it can easily approximate the high-order nonlinearities.

Considering system (8), the unknown function and the hysteresis nonlinearity + will be approximated by NN. Hence there exists unknown bounded NN weight matrix and which can be identified by the following model:where the activation function is defined aswhere represent the collections of node ordered subsets, are designed parameters, and is designed nonnegative integer.

Assuming an ideal NN can be approximated system (1) aswhere means the ideal NN weight matrix, the NN completely substitutes the unknown function and the hysteresis nonlinearity, is a bounded approximation error, , , and is a known positive constant vector.

Define the identification error asThen, the derivative of the error can be deduced by (9) and (11):where .

The identification structure of HONN can be illustrated in Figure 2.

Considering references [9, 17], the following assumption is proposed.

*Assumption 1. *The error norm of NN weight matrix is bounded by , and the basis function of NN is bounded, , .

Theorem 2. *Considering system (1) which is approximated by the NN of (11), if the identification error is defined as (12), based on the Assumption 1, the identification is semiglobally uniformly ultimately bounded (UUB) and it converges to a small compact set around zero as , where are defined in (17).*

*Proof. *Define the Lyapunov function asFrom (13), the derivative of can be deduced asInvoking Young's inequality on the term , we havethen considering Assumption 1 and (16), the derivative of in (15) yieldswhere ; .

According to the Lyapunov theorem, is UUB and the identification error is bounded. Moreover, integrating both sides of (17) over the time , the inequality can be solved asThen, by applying (14), the bound of the identification error can be solved assuch that it hasThat means the identification error can be converged to a small compact set around zero.

The proof is completed.

#### 4. Controller Design

Considering system (1), if the system is a pure feedback system, in order to avoid the complicated computation of the back-stepping controller, new state variables are defined to transform the state variables into canonical form based on reference [9]. Therefore, the new alternative states can be defined asand the transformed canonical system iswhere the definition of , can be obtained by the method of the reference [9].

For the existing of the hysteresis nonlinearity, we also can adopt the approach of reference [9] to avoid the complicated controller design. Considering is Hurwitz matrix and are controllable, without loss of generality, we can transform the system (8) into a normalized form. Then, assume the matrixes areAccording to the fact that + + + + + , it has the following:Then, we also can obtain

By parity of reasoning, we apply the method of reference [9], the canonical form of system (8) can be obtained as (22).

According to the preceding discuss, without loss of generality, the coefficient matrixes can be adopted as

Then, the system is described by NN in (11) which can be rewritten aswhere is a transformed vector parameters for the NN in (11).

*Remark 3. *For the existing of the hysteresis nonlinearity and the nonlinear smooth functions , we cannot use the linear system method to transform the coefficient matrixes (23) into normalized form (26). But under some conditions, we also use the linear system method to transform the coefficient matrixes, that can be simplify the computation and is convenient for the controller design.

#### 5. Define the Sliding Mode Manifold as Follows

where the error is defined aswhere is the reference input signals.

Design the sliding mode controller input as follows:where , , , and .

The NN update law is selected aswhere is designed parameter.

Define the errors as

Then, the following theorem holds.

Theorem 4. *Considering system (27), the sliding mode manifold is defined in (28), the controller is chosen as in (30), the NN update law is chosen as in (31), and then, the control system is semiglobally uniformly ultimately bounded (UUB).*

*Proof. *Define the Lyapunov function asAccording to (28), (29), and (30), we havewhere .

Define , according to Young's inequality, (34) can be deduced asTo solve inequality (35), we havewhere .

Let the parameter , and one can obtainTherefore, based on the Lyapunov theory, the controlled system is semiglobally uniformly ultimately bounded (UUB).

The proof is completed.

*Remark 5. *Based on Theorem 4, all the closed loop signals are bounded. But on the structure of the NNSMC, we obviously known that the NN identification is a part of the closed loop and the update law of NN is deduced by the closed loop. Therefore, the identification connected with the control design, it is online estimating the nonlinear functions and online adjusting by the tracking errors.

#### 6. Simulations

Considering a hysteresis system as follows:

##### 6.1. Controller Design

In order to verify the effectiveness of the proposed NNSMC, A PID controller is designed to compare with the proposed NNSMC. The PID controller gains are chosen as . Otherwise, for NNSMC, the sliding mode manifold is defined as in (28), the NNSMC controller is defined as in (30). The parameters are selected as , , , , , , , , and .

We design two different control input signal to test the proposed approaches. Firstly, a square wave signal is selected for the hysteresis system, and then two amplitude sine signals are adopted with NNSMC which will compare with the PID controller.

The two different controllers will test the system (38) with reference input. The proposed NNSMC firstly estimates the unknown states and hysteresis part with NN and uses the sliding mode controller to control the hysteresis system online.

##### 6.2. Control Results

Two different reference input signals are selected to test the proposed NNSMC. The NN identification is adopted estimating the unknown nonlinear functions and then the SMC is applied to control the closed loop. In order to verify the effectiveness of the NN identification and SMC, A square wave signal firstly utilizes tracking the system. Two amplitude sine signals are adopted with NNSMC and PID controller. The details are listed as follows.

###### 6.2.1. Case 1

We chose the reference square wave with amplitude which is , and the duty ratio is . Then the tracking results are illustrated in Figure 3, the errors are shown in Figure 4, and the sliding mode reaching phase process is illustrated in Figure 5. From Figures 3 and 4, it is clear that the proposed NN identification and the NNSMC have a good tracking performance. The dynamic procedures are less than and the errors are shown in the same phenomenon.

In order to restrain chattering of the SMC, we adopt function instead of the function in the simulations. From Figure 5, we can see that the chattering is suppressed and the sliding mode quickly reaches the sliding mode manifold.

###### 6.2.2. Case 2

The reference input is chosen as a sinusoidal signal . The controller results and errors are illustrated in Figures 6 and 7. It is shown that the proposed NNSMC can more precisely track the states than the PID controller with shorter dynamic adjustment time from Figure 6. The adjustment time of NNSMC for is less than , but the PID controller adjustment time is more than . The tracking errors also demonstrate the same conclusion from Figure 7. The mean absolute error (MAE) of NNSMC and PID controllers are listed in Table 1. According to the Table 1, the two approaches’ MAE of are and the MAE of are , respectively. It is obviously shown that the proposed NNSMC has better performance for the hysteresis nonlinear system. The NNSMC controller signal is illustrated in Figure 8. From the controller signal, one also finds that the dynamic adjustment time is less than in this simulation.

###### 6.2.3. Case 3

In order to demonstrate the performance of the proposed NNSMC, the reference input is selected as that has a smaller amplitude than Case 1 and the results are illustrated in Figures 9 and 10. The controller input is shown in Figure 11. It is clearly illustrated that the proposed NNSMC has excellent performance to track the hysteresis nonlinear system. The dynamic adjustment time only has about , then it keeps stable stage and the tracking error holds a neighbourhood of zero. From Figure 10, one can obviously find the same conclusion and the MAE of , , respectively. Compared with the results of Case 1, the control precisions are higher on the small signals, that suit the real conditions. With the increase of the reference input signal, the control performance becomes degradation.

#### 7. Conclusions

A new neural network identification approach and neural network sliding mode control were proposed for hysteresis nonlinear system with backlash-like model. Since classical adaptive control needs to deal with the tracking error (error transformation or back-stepping, ) on the controller design, in this paper a neural network sliding mode controller was designed where it did not need tracking error transformation. Moreover, the unknown system states and the unknown hysteresis section were estimated only by one neural network for saving the computation and simplifying the control design. The stability of the closed loop was guaranteed by Lyapunov theory and the simulation results verified the effectiveness of the presented approaches.

#### Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

#### Conflicts of Interest

The authors declare that there are no conflicts of interest.

#### Acknowledgments

This work is supported by Shandong Natural Science Foundation of China (ZR2017MF048), the National Natural Science Foundation of China (61803216), and Tai’an Science and Technology Development Program (2017GX0017).