Abstract

In this study, a fuzzy wavelet neural network with the improved Levenberg–Marquardt algorithm (FWNN-LM) is proposed to conquer nonlinearity and uncertain disturbance problems in the AC servo system. First of all, use the particle swarm optimization algorithm based on Levenberg–Marquardt (LM) to optimize parameters in the FWNN controller. Second, the potentiality of fuzzy rules (PFR) method is developed to optimize the structure of the FWNN by error reduction ratio (ERR). Furthermore, stability of FWNN-LM is proved by the Lyapunov method. Finally, simulation and prototype test results show that this method can improve the accuracy and robustness of the system in presence of load disturbances and parameter perturbations.

1. Introduction

In recent years, varies studies show that the AC servo system exhibits good dynamical property [1, 2], but the stability still needs to improve. For the AC servo system, the dynamic mathematical model is a complex system with characteristics of large load, which can lead to nonlinearity and uncertain disturbance. In practical applications, an AC servo system performance may be affected due to unmodeled dynamics changed [3, 4].

After referring to many references, a lot of studies have shown the neural network is an important component of a complicated nonlinear system control policy under the circumstance of the lack of full model details [58]. The most prominent advantage of the neural network is approximate capability, and it can approximate function with any precision. However, it is hard to avoid local minimization for the BP neural network. If we use a sigmoid function as the stimulation function, it also causes slow convergence speed. Moreover, it cannot realize the mapping rules in time [9]. Fuzzy logic has become a hot topic research of neural networks in many studies. Dong et al. [10, 11] provide theoretical basis to modelling and controlling the nonlinear system. Consider there are many uncertainties existing in the fuzzy control process. Wang [12] provides a fuzzy neural network along with utilization to improve system robustness without accurate control; however, the parametric learning algorithm is presupposed for the topology of fuzzy systems.

As an alternative, multiple research studies concentrate on the use of the wavelet neural network (WNN) [1316]. Compared with the usual sigmoid function neural network, the wavelet function possesses a better learning capacity in aspects of system identification. In recent years, Zekri et al. [1719] studied the combination of wavelet theory and the fuzzy neural network (FNN). In the FWNN, fuzzy rules are corresponding to the sub-WNN, respectively, and the wavelet and fuzzy sets parameters learning can improve the FWNN approximation accuracy [2023]. However, the main drawback of the WNN is that due to its feed-forward network structure, its application area is limited to static issues. The Levenberg–Marquardt (LM) method has a remarkable characteristic of local learning and a fast convergence performance at the same time [24]. However, the LM algorithm increases memory demands with the method of calculating some problems that come from the error function with the Jacobian matrix [25]. Moreover, another disadvantage is that the LM algorithm is still a local optimization method.

The particle swarm algorithm (PSO) is a global optimization algorithm, through collaboration and competition between individuals to find the optimal solution, and the particle swarm optimization search process is started from the entire group, with the implicit parallel search features to improve the performance of the algorithm [22]. However, the PSO algorithm has some disadvantages such as slow convergence speed.

Based on the above analysis, in this study, an adaptive fuzzy wavelet neural network controller with LM is proposed to control the rotor position of the AC servo system for tracing reference trajectory with robustness. In the proposed control structure, the FWNN is a controller, and the LMPSO algorithm is employed for the online training of all weights of the FWNN. Moreover, potentiality of fuzzy rules (PFR) with using error reduction ratio (ERR) is developed to adjust the parameters and organize the structure of the FWNN. The stability of the system can be proved by using Lyapunov theory [26]. Finally, studies demonstrate promising results of a prototype AC servo system that can verify the feasibility and effectiveness by using the proposed algorithm.

The contents of this study can be listed as follows: the second section analyzes the servo system. After briefly introducing the FWNN in the third section, the following section four develops the FWNN-LM which has been proposed at great length. Afterwards, the convergence of the algorithm is analyzed in section five. And then, the simulation outcomes are discussed in section six. Last, a conclusion has been mentioned in the last section.

2. AC Servo System Analysis

The AC servo system control structure is shown in Figure 1.

In the stationary (d-q) frame of reference, the mathematical models of the permanent magnet synchronous motor can be expressed as follows:where , , , , and , represent the electric currents, voltages, and inductance coefficient of the motor d and q axes, respectively; is the motor stator resistor (Ohm), represents the motor permanent magnet flux, represents the motor pair of poles, represents the motor inertia constant, represents the viscous friction coefficient, stands for the motor angular velocity, stands for motor electromagnetic torque, and stands for the load torque.

The system is applied to a three-closed-loop control system. It uses the magnetic field-oriented control technology to complete the motor position and achieve high performance. Additionally, the simplification of the motor control system uses the vector control approach. When , the motor mechanical equation can be expressed aswhere is the mechanical angular velocity, and can be written aswhere is a moment constant that needs to be adjusted.

Generally, compared with the mechanical time constant, the motor current time constant has a much smaller numerical value; thus, the delay time of the current responding can be neglected. The state variables can be set as and ; substitute equation (2) into equation (3), and the AC servo system can be rewritten aswhere , , and represent the nonlinear dynamic equations and the external disturbance, respectively.

3. Fuzzy Wavelet Neural Network

3.1. Wavelet Neural Network Structure

The structure of wavelet neural network is shown in Figure 2. As Figure 2 illustrates, K is the master nodes of the input layer, the hidden layer number is is the connection weighing between node of the input layer and node of the hidden layer, is the connection weighing between node and the output layer, is the translation parameter of wavelet function, and is the scale variable of the wavelet function. The output can be written as [21]where . Choose the Morlet wavelet function as the generating function .

3.2. Fuzzy Wavelet Neural Network Structure

In the fuzzy wavelet network, each fuzzy rule corresponds to a given wavelet scale values of the wavelet neural network [27]. In order to describe FWNN-LMPSO clearly, a simple structure of the FWNN is shown in Figure 3.

The fuzzy IF-THEN rules can be expressed as follows:

: if is , is , ..., and is , thenwhere is the fuzzy rule ; is the membership function for the fuzzy set of Gaussian function, which can be expressed aswhere is the input of , represents the number of input neurons; . The canter and width can be used to define as a subordinate function.

The output of the entire FWNN structure by using product rules and defuzzification is shown aswhere , , and .

The output mean square error of the online learning iswhere is the expected output of the training data. According to the descent algorithm, the FWNN parameters adjustment formulas are shown aswhere is the learning rate, and the arguments of the FWNN controller can be expressed as

4. FWNN with LM Algorithm-Based PSO

In the neural network, a sigmoid function is used as the activation function of the BP neural network, which leads to the result that the BP neural network is easy to get into a local minimum, slow convergence speed. Thus, to improve the performance of FWNN, the training process is required to adjust both the structure size and the parameters. An LMPSO method is used for adjusting the parameters; and a PFR is developed to design the structure of FWNNs. In the following, the LMPSO method and PFR method are described in detail.

4.1. LM Algorithm-Modified FWNN

The LM algorithm is an approximate Newton algorithm, which proves that the LM-based BPNN algorithm converges quick and accurate performance [28]. In this study, the total mean square error of is given as

The LM algorithm is written aswhere the Jacobian matrix is

The structure of the fuzzy wavelet neural network (FWNN) based on the LMPSO controller is shown in Figure 4.

4.2. LM Algorithm-Based PSO

PSO is a population-based heuristic global optimization technique. In this algorithm, the population is called a swarm, and the trajectory of each particle in the search space is adjusted by dynamically altering its velocity, according to its own flying experience and swarm experience in the search space. In the PSO algorithm, a group of particles represent a candidate solution. The velocity and position updating formulas of the PSO are illustrated aswhere represents the current rate of particle during the iteration ; represents the current position of the particle; is on behalf of the optimum position of the particle previously appeared; denotes the best previous position among all the particles; and are on behalf of the acceleration factors; and uniformed random number in the interval ; stands for the inertia weight in the interval . An appropriate fitness function to calculate the appropriate value iswhere is the fitness value; represents the mean absolute error, is the maximum absolute error, and connected with LM-based FWNN, there is

In this study, the PSO-LM algorithm is used to make adjustments of FWNN which can make and more appropriate in actual conditions. A few particulars about the PSO procedure are shown as follows:(1)Initialize the PSO parameters(2)Determine and (3)Refresh the particle speed as well as the position by taking advantage of equation (29)(4)Get the current fitness value FT and update, ; if , .(5)If, set and then go to step (3); otherwise, proceed to the next step.(6)If , set and then go to step (2) or output to LM-based FWNN.

4.3. Potentiality of Fuzzy Rules (PFR)

The PFR values can be used to calculate the potentiality of fuzzy rules and extract the contributions of the normalized neuron. The FWNN model is expressed as follows:where is the weight between the output layer and normalized layer, and is given by

The matrix can be transformed into a set of orthogonal basis vectors by QR decomposition aswhere is an upper triangular matrix, and have the same dimension as . Then, the ERR is given by [29]

The PFR value of the lth normalized neuron can be expressed as follows:where is the potentiality of fuzzy rule in the lth normalized neuron, andwhere is a constant.

5. Stability Analysis

Lyapunov function is used to assess the system stability, and it can be defined aswhere . is the desired output, and is the actual output.where . Using Taylor’s formula, can be given aswherewhere . Then, can be written as

Substituting equation (28) into equation (25), can be rewritten aswhere

If , that is,

Thus, according to Lyapunov stability theory, when , , and the stability of the system will be guaranteed.

6. Simulation Test and Discussion

In order to test and verify the effectiveness of the FWNN-LMPSO control, it will be compared with FWNN-LM.

6.1. Simulation Experiment

In addition, all simulation programs are conducted in Matlab/Simulink, and a clock rate of 2.6 GHz and 4 GB of RAM on a PC running in a Microsoft 7.0 environment are selected. The main parameters of the AC servo system are given in Table 1. Figures 59 show the simulation results.

As shown in Figure 5, the moment of inertia changes from the initial value to 1.5 times. FWNN-LM generates an overshoot; it takes 4.15 s to reach the stable condition. Using FWNN-LMPSO control, the system responds quickly, and only needs 1.6 s to reach the steady state without overshoot.

Figure 6 shows step response when a 360 nm disturbance added at 3 s.

As Figure 6 shows, when the load added, it gets more deviation results on account of the response of the algorithm of FWNN-LM control. It also has a 5.15° delay in tracking the reference position. However, when using the FWNN-LMIPSO control algorithm, the offset can decrease to 1.25°. It costs 0.35 s to reach the target position. Above all, the system can perform better in the aspect of load disturbance suppressing.

Experimental result of tracking step signal with random disturbances is shown in Figure 7. It can be seen from Figure 7 that when adding random disturbance to the response signal, there is no offset occurring by using FWNN-LMPSO control. Moreover, random disturbance is also added in sinusoidal tracking experiment. The maximum error of FWNN-LM and FWNN-LMPSO is 0.089° and 0.057°, respectively.

The sinusoidal tracking error curves with a frequency of 1.67 rad/s and amplitude of 30 degree is shown in Figure 8.

In Figure 9, the number of FWNN-LM iterations is about 220 steps, the training error is 0.128, and the training error of FWNN-LMPSO is 0.035 when the number of iterations is about 95 steps. Therefore, the convergence rate of FWNN-LMPSO is better than the FWNN-LM method.

6.2. Semiphysical Experiment

The semiphysical experiment platform structure is shown in Figure 10. A step response with FWNN-LM control and FWNN-LMPSO control are conducted on this semiphysical experiment platform to test the system performance.

According to Figures 1114, when the system is under maximum load, its steady state time takes 1.41 s for the FWNN-LM control and the maximum steady state error is 2.63°; however, for FWNN-LMPSO control, the system required steady state time is 1.35 s, and maximum steady state error is 0.749°.

Compared with FWNN-LM control, the FWNN-LMSPSO control has better dynamic and steady state performance. In addition, it performs well in improving system antidisturbance performance.

7. Conclusions

This study offers a new fuzzy wavelet neural network method in the AC servo system. Compared with the FWNN-LM controller, the proposed FWNN-LMPSO controller can be designed more accurately, more meaningful, and simpler. The main advantages of the existing method based on FWNN-LMPSO are as follows: first, in the FWNN-LMPSO based on the PFR method, fuzzy rules can be added to and removed from the structure learning method with the method of using the ERR value. Second, the LM algorithm improves the control accuracy through the adjustment of parameters, and the PSO learning algorithm is used to improve the learning speed. Lyapunov theory is also introduced to analysis system stability. Last, experimental results show the method has strong robustness and better dynamic performance.

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 they have no conflicts of interest.

Acknowledgments

This research was funded by the National Natural Science Foundation of China (51805264).