Control of the Electric Load Simulator Using Fuzzy Multiresolution Wavelet Neural Network with Dynamic Compensation

. A fuzzy multiresolution wavelet neural network (FMWNN) controller with dynamic compensation (DC) is proposed to address the complexities of the electric load simulator (ELS). The FMWNN acts as a main torque tracking controller, which takes full advantage of the merits of an ideal sliding mode, fuzzy rules, and multiresolution WNN. The fuzzy algorithm is used to dynamically adjust the weights of the WNN and effectively accelerate the convergence rate. In addition, the DC controller is designed to greatly decrease the effect of the approximation error and guarantee the system stability in the sense of the Lyapunov theory. Finally, the proposed algorithms are carried out on the semiphysical simulation platform, the precision and superiority of which are comparatively verified based on the simulation results.


Introduction
During the past few years, load simulators are widely applied to the guns, aircrafts, ships, and so forth, which provide great help for simulating the real-time variable loads.On the basis of different load types, the load simulators can be mainly divided into electrohydraulic load simulators [1][2][3][4][5][6][7] and electrical load simulators (ELS) [5][6][7].The former are usually used in the heavy load systems and the latter with the merits of high reliability, low noise and pollution, and easy maintenance are applied to the light load systems.However, the complexities of the ELS are significant, like friction, backlash, and self-coupling, which lead to the nonlinearity and uncertainty and being difficult to guarantee the control precision and stability.Easy and simple control algorithms (such as PID [5]) usually cannot meet the control requirements.In order to solve this problem, intelligent controllers are becoming important tools to achieve predominant control performance and robust fault-tolerant ability [8][9][10][11][12].
Neural networks (NN) have the advantages of parallel computation, approximation, self-learning, and fault tolerance [13,14], which have been considerable interests in the nonlinear and uncertain control system [15][16][17][18].However, the learning algorithms of the NN belong to an integraltype form, which can be trapped into the local minimum easily and make the low convergence rate of the network parameters.The excitation functions and weights of the networks play crucial roles in the approximation performance and adaptive neurons [14] and variable structures [18] are usually carried out to optimize the networks.As a common adaptive method, the wavelet neural networks (WNN) are mainly divided into the wavelet, scaling, and orthogonal wavelet function with different excitation functions [19][20][21].The latter also called multiresolution WNN (MWNN) has the advantages of multiresolution analysis in time and frequency domain [21][22][23].Since the real signals are represented by different resolution intervals, some features of the subseries can be more clearly reflected than the single resolution.Moreover, the weights of MWNN must be self-adaptive for improving the convergence rate, and the adjustments of weights follow the fuzzy rules proposed by many scholars [24][25][26][27].Therefore, the fuzzy WNN emerges at the right moment and becomes a hot research topic [26,27].However, the adjustment of the range and convergence rate in [26,27] 2 Shock and Vibration is less than the fuzzy MWNN (FMWNN) comparatively.In order to further guarantee the stability and robustness, the sliding mode control (SMC) is used as an effective approach for nonlinear and uncertain control systems [28,29], whereas the chattering problem in the SMC and the dead zone existing in the ELS lead to a finite steady state error [30,31].Many scholars adopt different kinds of compensation schemes, such as the mechanical structure adjustment [9], the friction and backlash disturbance model compensation [4,31,32], and the intelligent compensation algorithm [18,33,34].However, the first two schemes only theoretically meet the control requirements.The intelligent compensation algorithm in accordance with the characteristics of the control system shows great superiority, which takes advantages of the input sliding mode and is introduced to dynamically decrease the effect of approximation error without exact models.In addition, the control system stability is guaranteed in the sense of the Lyapunov theory [18].
With the above-mentioned motivations, this paper proposes a fuzzy multiresolution wavelet neural network controller with dynamic compensation (DCFMWNN) to address the complexities of the ELS.Section 1 briefly introduces the background of the ELS and some control strategies.In Section 2, the thorny problem existing in the ELS is put forward, and an ideal controller is designed.In Section 3, the description of the proposed controller is clarified in combination with the ideal controller in detail.To verify the precision and superiority of the proposed algorithms, comparative simulation results are given out in Section 4. Finally, Section 5 concludes the paper.

Problem Statement
The AC permanent magnet synchronous motor (PMSM) is applied to the ELS for the gun control system.Though there are many merits in the PMSM, like the high ratio of the torque and inertia, the rapid and precise response, the uncertainties, and self-coupling disturbance result in negative impacts.In addition, the relationship between the control current and the output torque in PMSM is also not simple linear, which is different from the direct loading style.In combination with the working principle and practical working conditions of the ELS, the time-varying nonlinear system of the ELS can be simply described [35]: where x = [(), ẋ ()] and () are the state vector and the input of the control system, respectively; (x, ) and  0 are the dynamic variables, (x, ) = −(  /  +     /    ) ẋ (),  0 =     /    > 0;   is the viscous frication coefficient of the motor;   is the inertia constant of the motor;   is the stator resistance of the motor;   is the coefficient of the electromagnetic torque;   is the coefficient of the counter electromotive force;   is the amplifier gain; and () mainly includes the system external disturbance, which guarantees that |()| is less than  0 , where  0 is a positive constant.
According to the existing problem, the control objective is to find a control law so that the state trajectory () can track a desired reference command   (); thus, a tracking error is defined as And a sliding surface is defined as follows: where  1 is a positive constant.Consider the candidate Lyapunov function in the following form: In combination with (2) and (3), differentiating (4) with respect to time obtains If the system parameters in (1) are known, an ideal controller can be designed as [18] where  2 is a positive constant.The following equation is obtained when () in ( 5) is replaced by Since V 1 () is negative semidefinite,  1 () ≤  1 (0).It implies that  1 () → 0 and () → 0 are realized as  → ∞, which are bounded [36].Finally, the stability of the ideal controller can be guaranteed in the sense of the Lyapunov theory.

Design of Fuzzy Multiresolution WNN with Dynamic Compensation
The ideal controller  * IC () can asymptomatically stabilize the system.However, some nonlinear variables in  * IC () can not be obtained exactly, and the external disturbance () is uncertain in particular.In order to address this problem, the proposed DCFMWNN controller shown in Figure 1 is designed as where  FMW is the FMWNN controller and  DC is a DC controller.The former is a main controller to mimic the ideal controller, and the latter based on a sliding surface compensates for the difference between the ideal controller and the former.The inputs of MWNN controller are torque errors and the derivation of torque errors and sliding surfaces.
The input torque error is the difference between the reference command and torque sensor value.
where   0 , () is the scaling function;  , () is the mother wavelet function;   0 , and  , are the expansion coefficients at the scaling levels  0 and , respectively.A higher or finer resolution function including more complete information of () is achieved with the addition of the scaling level .The choice of the scaling and mother wavelet is application dependent; a popular mother wavelet is the Daubechies wavelet family defined as db, where  represents the order.db is orthogonal with regularity and compact support, which has been widely applied to various applications of wavelets.

Takagi-Sugeno-Kang Fuzzy System.
With the advantages of easy computation and analysis, the fuzzy controllers with many adaptive and intelligent rules have been widely applied to complex nonlinear systems.Considering the multi-input single output (MISO) system, Takagi and Sugeno provide that the output of fuzzy rules is obtained by the linear combination of the inputs [37].The following rules can be achieved [27]: where   is the th fuzzy rule; ℎ  is the link weight; ℎ 0 is a constant;   and    represent the input torque error and fuzzy sets.Then, the system output with  rules is where   () denotes the basis function and usually is chosen as   ()/ ∑  =1   () and  is the number of the fuzzy rules.And   () = exp(−(( −   ) 2 /  ) 2 ) is the Gaussian membership function and   and   are the center and variance of the membership function related to the th fuzzy rule, which are adjusted based on the gradient descent method.

Fuzzy Wavelet Multiresolution Analysis.
The orthogonal wavelet function is usually used as the excitation function of neurons in the neural network, and the wavelet decomposition is used to analyse the data.The networks are trained step by step on the basis of multiresolution analysis.The output of FMWNN controller can be represented as where  = 1, 2, . . ., , and  =  0 ,  1 , . . ., .  and  are the number of the inputs and locations on the grid at the resolution , respectively [26];  and  are the dilation and translation parameters, respectively;  , and  , are the  Gaussian scaling and wavelet functions, respectively.The coefficients   0 , and  , are derived based on a gradient descent algorithm and aim to minimize () ṡ () for achieving fast convergence [18], and the number of fuzzy rules depends on the summation bounds of   0 and   that can be determined from the time supports of both the output of FMWNN controller and the Gaussian scaling and wavelet functions.The higher level  that adds finer resolution to the signal can be chosen as larger than  0 as possible provided that the computational effort is not a concern, and several other criteria for the determination of  are given in [22].In combination with the characteristics of db wavelets and simulation results, the lower level  0 is defined as −int(log 2   ) and  is set to be 2, where int(⋅) is the round-up integer with 2 − 0 ≥   > 2 − 0 −1 and   is the length of sampled data [23].The MRA scaling can be set as  0 = −14 and  = −8, and  0 ,   0 , and   in (12) are chosen as  0 = 2 − 2,   0 = 4, and   = int(2    ) − 1.The proposed FMWNN is shown in Figure 2.

Dynamic Compensation Controller.
According to the property of the universal function approximation, it implies that there exists an expansion of (6), which can approximate a nonlinear function  * FMW () as follows [38]: where Δ is the minimum reconstructed error, and a * , b * ,  * , and  * are the ideal values, which can not be obtained precisely.Since these optimized parameters are unobtainable to guarantee best approximation, we adopt the online adaptive methods based on the offline learning.An online evaluation ûFMW is used to estimate the optimized  * FMW (), and (8) can be rewritten as where α and Θ are the estimation values of  * and Θ * , respectively.An estimation error ũ by subtracting ( 16) from ( 15) is defined as [18] ũ where α =  * −α and Θ = Θ * − Θ.Moreover, the linearization technique is employed to transform the wavelet function into a partially linear form.The expansion of Θ in Taylor series can be obtained as [39] Θ where   is the number of nodes in the product layer and  is a vector of higher-order terms. Θ /j and  Θ /m are defined as Substituting ( 18) into ( 17) yields Then, the derivative of () with ( 1) and ( 6) can be expressed as where Δ  = α + α Θ+Δ.In case of the existing Δ  , consider a specified H∞ tracking performance [40] where  1 ,  2 , and  3 are positive learning constants,  is a prescribed attenuation constant.If the system starts with zero, H∞ tracking performance can be rewritten as sup To prove the stability of the DCFMWNN controller, define a Lyapunov function candidate in the following form [18]: Taking the derivative of the Lyapunov function yields In order to further simplify V 2 (), the adaptive learning laws must be guaranteed as follows: where  1 plays a great effect on the coefficients of  , and  , and the value of  1 is set to be too small to enhance the influences of  , and  , , which leads to the low convergence rate of the control system. 2 and  3 are related to the dilation and translation parameters, which are set to be too big or small to achieve the high convergence rate of the control system. is used in the DC controller; the output of DC is too little to reduce the approximation error when the value of  is set to be more than 2.However, the value of  is set to be too small; there exists an obvious overshoot.Thus, substituting ( 26) into ( 25) yields the following: Assume Δ  () ∈  2 [0, ] and ∀ ∈ [0, ∞).Integrating the above equation from  = 0 to  =  yields Since  2 () is positive semidefinite, the above inequality is as follows: In combination with (23), the following inequality can be obtained: As a result, the stability of the control system can be guaranteed.

Semiphysical Simulation
In order to demonstrate the feasibility and effectiveness of the DCFMWNN controller, the designed reference commands, with different algorithms, like the convergence analysis of the MWNN and FMWNN, the step response of the FMWNN and DCFMWNN, and the sinusoidal tracking of the FMWNN and DCFMWNN, are applied to the simulation platform of the ELS shown in Figure 3.The host control computer with the proposed algorithm to achieve torque tracking control of the ELS mainly analyses and calculates the feedback torque of the torque sensor, the compensation torque of inertia disks, and the actual torque required.The signal conditioning center is mainly used for processing signals from the sensors and the configuration settings needed for the hardware switches.According to the output of the host control computer, the output of drive provides the appropriate current to drive the torque motor.The torque sensor is used to collect the output of the torque motor, which is fed back to the host control computer to form the closed-loop control for the loading torque.The function of the resolver is gathering the angle position of the gear reducer, which can be used to calculate the real-time command torque for the torque motor.The function of the angular velocity sensor is gathering the angular velocity of the gear reducer to provide more actual values for the identification methods and the control strategies.The angular acceleration sensor collects the angular acceleration at the end of the gear reducer to compute the inertia moment produced by the inertia disks.
The number of inertia disks depends on the actual demand of the gun control system, which provides various rotational inertia values to simulate the inertia torque.
The following simulations are carried out in an Intel Core i5 CPU with 3.2 GHz rate, 4 GB RAM, and 64-bit operating system.The parameters of the actual gun control system are as follows: the rotary inertia of the turret is 7000 kg⋅m 2 , the total friction torque   is less than 1200 N⋅m, the center position of gravity is located in 0.35 m away from the rotation center of the turret, and the reduction ratio is 360.The controller parameters are selected as  1 = 12,  2 =  3 = 0.1, and  = 0.5.By analysing the simulation results, the control period is 5 ms and the sampling frequency is 10 kHz, and the important torque motor parameters are shown in Table 1.   4, which show that the convergence epochs of the MWNN and FMWNN are 65 and 46 when the absolute error is close to 0.01 N⋅m.In general, a larger absolute error is set, which contributes to the acceleration of the convergence process.However, if a higher precision needs to be guaranteed, the absolute error must be set to be smaller comparatively.Meanwhile, the convergence process will be slower because of the computing load brought.

4.2.
Step Response.The step response with external disturbance is evaluated in Figure 5, which further indicates the rapidity and stability of the FMWNN and DCFMWNN controller in the ELS.From Figure 5, it is clear that the FMWNN controller is 30 ms slower than the DCFMWNN when the step response of the reference command is set to be 8 N⋅m at the initial stage.At the time of 170 ms, an external disturbance −2 N⋅m lasting 5 ms is added to the control system; the latter performs better than the former, which proves that the addition of DC improves the robustness of the control system to some extent.

Sinusoidal Tracking.
In order to compare the superiority of the FMWNN and DCFMWNN, the reference command of the torque motor is usually chosen as  1 () = 5 sin 2 in view of practical working conditions, when the load motor is working in sinusoidal position motion Δdit = sin(5) rad.x 2 (t) x 1 (t) x d1 (t) The outputs of the FMWNN and DCFMWNN controller are  1 () and  2 () shown in Figure 6. Figure 6 once again proves that the performance of the DCFMWNN controller is better than the FMWNN controller from the mean tracking errors of the amplitude and phase.The mean tracking error of the FMWNN even exceeds 9%, which is far greater than the DCFMWNN.
In order to further analyse the stability and precision of the desired outputs with different frequencies and amplitude, the reference commands of the torque motor are selected as  2 () = 5 sin 20,  3 () = 5 sin 10,  4 () = sin 2, and  5 () = 10 sin 2, and the simulation results are presented in  reference command and the real simulation outputs, which show that the smaller the reference command amplitudes and the higher the reference command frequencies (within certain limits), the worse the control performance.However, what we need is to remember that the control effectiveness is relatively poorer when the direction of the torque motor is changed, which plays a negative effect on the overall performance and needs to be delved into in the future.

Conclusion
This paper has successfully investigated the ELS via DCFMWNN controller on the simulation platform of the ELS.The FMWNN controller has salient merits of free model, effective search, and computation ability with few chattering phenomena, and the DC controller is introduced to eliminate the effect of the approximation error and guarantee the system stability in the sense of Lyapunov theory.Furthermore, the simulation results are promising and reveal that the proposed controller is able to successfully damp the interarea nonlinearities and maintain system precision and robustness.

Figure 1 :
Figure 1: The block diagram of the DCFMWNN controller.

3. 1 .
Wavelet Multiresolution Analysis.By virtue of different resolutions, the multiresolution analysis (MRA) can decompose a signal into components spanned by the scaling and wavelet basis functions.Any finite energy function can be represented as[21]

Figure 2 :
Figure 2: The structure of the FMWNN.

Figure 3 :Figure 4 :
Figure 3: The simulation platform of the ELS.

4. 1 .
Convergence Analysis.The superiority between the proposed MWNN and FMWNN controller is illustrated by analysing the convergence epochs, so the absolute error (|  () − ()|) of the training data is adopted to evaluate the MWNN and FMWNN controller.The simulation results are shown in Figure

Figure 5 :
Figure 5: A comparison of step response with external disturbance.
Figures 7-10, respectively.The dynamic simulation results of the sinusoidal tracking are shown in detail in Table 2, in 0.20 0.22 0.24 0.26 0.28 0

Table 1 :
The parameters of the torque motor.

Table 2 :
The dynamic simulation results of the sinusoidal tracking.