{'fraction_non_alphanumeric': 0.0272338283413038, 'fraction_numerical': 0.011880191291215706, 'mean_word_length': 4.5321637426900585, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Modeling and neural sliding mode control of mems triaxial gyroscope

In this paper, a neural sliding mode control approach is developed to adjust the sliding gain using a radial basis function (RBF) neural network (NN) for the tracking control of Microelectromechanical Systems (MEMS) triaxial vibratory gyroscope. First a sliding mode control with a fixed sliding gain is proposed to assure the asymptotic stability of the closed loop system. Then a RBF neural network is derived to adjust the sliding gain using a gradient method in a switching control law. With the adaptive sliding gain using the learning function of RBF neural network, the chattering phenomenon is eliminated. Numerical simulation is investigated to verify the effectiveness of the proposed neural sliding mode control scheme.


Introduction
As an important measuring element and inertial navigation instrument, micro gyroscope is commonly used to measure angular velocity in navigation system, automobile, etc. Because of the design and manufacture errors and the influence of temperature and operating environment, the resonant frequency of micro gyroscope will change and the vibration amplitude of micro gyroscope will be unstable. The difference between the original characteristics and design will decrease the quality of the gyroscope. The measurement of angular speed and the compensation of manufacturing error have become the main control problem in the micro gyroscope. However, the traditional control method mainly solves the stability control of oscillation amplitude and frequency of driving shaft and the matching problem of two-axis frequency. It cannot effectively solve the shortcomings and defects of micro gyroscopes. Many advanced intelligent control scheme have been applied to the control of micro gyroscopes for improving the accuracy and sensitivity. Recently, researchers developed advanced control approaches to control the MEMS gyroscopes. [1][2][3][4][5] Sliding mode controller (SMC) is a nonlinear control strategy with strong robustness. [6][7][8] Terminal sliding mode controllers and super-twisting sliding mode controller have developed for PMSM drives and microgyrosocpe. [9][10][11] Recently, intelligent control approaches such as neural network and fuzzy control have been investigated. [12][13][14] The universal approximation theorem indicates that the fuzzy system is a new universal approximator in addition to polynomial function approximators and neural network approximators.
Because the universal approximation theory of fuzzy system and neural network can approximate any nonlinear model and realize arbitrary nonlinear control law, they are widely used in the control systems. An adaptive fuzzy sliding mode control scheme was developed for robot manipulator. 15 Lewis et al. 16 developed a neural network approach for a robot manipulator. Lin and Wai 17 proposed a sliding-mode-controlled slider-crank mechanism with a fuzzy neural network controller. Lin et al. 18 employed a neural network based robust nonlinear control for a magnetic levitation system. Some neural network sliding mode control approaches have been developed for robot manipulators. [19][20][21] Baric´et al. 22 presented a neural networkbased sliding mode controller for an electronic throttle. Javadi Moghaddam et al. 23 developed a neural network-based sliding-mode control for rotating stall and surge in axial compressors. Duwaish and Hamou 24 proposed a neural network based adaptive sliding mode controller for a power system stabilizer. Neural controller and fuzzy controller have been widely used in identification and control for several dynamic systems. [25][26][27][28][29] In the sliding mode control (SMC), the bound of uncertainties must be available in advance. Lin et al. 18 proposed an adaptive fuzzy sliding mode control to estimate the upper bound of uncertainties for a permanentmagnet synchronous motor drive. This paper proposed a sliding mode controller whose sliding gain can be updated online using a RBF neural network scheme.
The contribution of this paper can be highlighted as: 1. The requirement of the upper bound of model uncertainties and external disturbances must be known is relaxed by RBF sliding gain adjustment, therefore the information of such upper bound does not need to be known in advance. A RBF neural network is used to adaptively learn such unknown upper bound, thereby effectively eliminating the chattering phenomenon. A key property of this scheme is that the prior knowledge of the upper bound of the system uncertainties is not required but estimated using a RBF neural estimator. 2. The control scheme integrates the sliding mode control and the nonlinear mapping of neural network. The adaptive neural network control with gradient method is proposed to adjust the sliding gain to attenuate the chattering. The sliding mode technique has been combined with adaptive control algorithm and neural network approximation method to achieve the desired attenuation of chattering and maintain good tracking in the presence of model uncertainties and external disturbances.
The paper is organized as follows. In Section 2, dynamics of triaxial MEMS gyroscope is introduced. In Section 3, a sliding mode control with a fixed sliding gain is proposed to guarantee the asymptotic stability of the closed loop system. In Section 4, a neural network sliding mode control is developed to adjust the sliding gain in a switching control law. Simulation results are presented in Section 5 to verify the effectiveness of the proposed control. Conclusions are provided in Section 6.

Dynamics of MEMS triaxial gyroscope
A MEMS vibratory gyroscope mainly contains three parts: one is the sensitive element of single mass suspended by spring beams, another is electrostatic actuations and sensing mechanisms for forcing an oscillatory motion and sensing the position and velocity of the sensitive element, the other is the rigid frame which is rotated along the rotation axis. A schematic diagram of a MEMS triaxial gyroscope in x-y plane is shown in Figure 1.
Dynamics of a MEMS gyroscope is derived from Newton's law in the rotating frame.
As we know, Newton's law in the rotating frame becomes where F r is the total applied force to the proof mass in the gyro frame, F phy the total physical force to the proof mass in the inertial frame, F centri the centrifugal force, F Coriolis the Coriolis force, F Euler the Euler force, a r the acceleration of the proof mass with respect to the gyro frame. F phy , F Coriolis , F Euler are inertial forces caused by the rotation of the gyro frame.
With the definition of r r ,v r as the position and velocity vectors relative to the rotating gyroscope frame, and O as the angular velocity vector of the gyroscope frame, the expressions for the inertial forces reduce to then where F phy contains spring, damping, and control forces applied to the proof mass.
In a z-axis MEMS gyroscope, by supposing the stiffness of spring in z direction much larger than that in the x, y directions, the motion of the proof is constrained to only along the x-y plane. Referring to Park et al., 3 assuming that the gyroscope is almost rotating at a constant angular velocity O z over a sufficiently long time interval, the dynamics of gyroscope based on equation (3) is simplified as where x and y are the coordinates of the proof mass with respect to the gyro frame in a Cartesian coordinate system; d x , d y , k x , k y are damping and spring coefficients in the x and y directions; O x, , O y , O z are the angular rate components along each axis of the gyro frame, u x , u y are the control forces in the x and y directions. In this design, the control forces are the electrostatic forces in parallel plate actuator which can be expressed as the gradient of the potential energy stored on the capacitor. The last two terms in equation (4), 2mO z _ y, 2mO z _ x are the Coriolis forces used to reconstruct the unknown input angular rate O z . Under typical assumptions O x ' O y ' 0, only the component of the angular rate O z causes a dynamic coupling between the x and y axes. Now we extends the discussion above from x-y plane to triaxial system. Assume that the gyroscope is moving with a constant linear speed; the gyroscope is rotating at a constant angular velocity; centrifugal forces are assumed negligible; the gyroscope undergoes rotations along x, y, and z axis. 3 The dynamics of triaxial gyroscope system can be derived as where m is the mass of proof mass. Fabrication imperfections contribute mainly to asymmetric spring terms k xy , k xz , and k yz and asymmetric damping terms d xy ,d yz , and d xz ; k xx , k yy , and k zz are spring terms; d xx , d yy , and d zz are damping terms in the x, y, and z directions; O x , O y , and O z are angular velocities; u x , u y , and u z are control forces in the x, y, and z directions.
Because of the non-dimensional time t Ã = w 0 t, dividing both sides of equation by reference frequency w 2 0 , reference length q 0 , and reference mass, then rewriting the dynamics in vector forms as Define new parameters as: For the convenience of notation, ignoring the superscript, then the final form of the non-dimensional motion equation of gyroscope can be obtained where K b = w x 2 w xy w xz w xy w y 2 w yz w xz w yz w z 2 2 4 3 5 .
The control target for MEMS gyroscope is to find a control law so that the proof mass position can track the desired trajectory. In addition, in the presence of model uncertainties and external disturbance, a robust control design is required to improve the robustness and tracking resolution of the control system.

Design of sliding mode control
Sliding mode control has many attractive features such as robustness to parameter variations and insensitivity to disturbances. In this section, a sliding mode control with fixed sliding gain is proposed to guarantee the asymptotic stability of the closed loop system.
The control objective for MEMS gyroscope is to keep the proof mass oscillating in x, y, and z direction at given frequencies v i and amplitudes A i , i = 1, 2, 3 as: Therefore the reference model can be written as: where q m = ½x m , y m , z m T , K m = diagfv 1 2 , v 2 2 , v 3 2 g. Considering the parametric uncertainties and external disturbance, the dynamics of MEMS gyroscope (7) can be expressed as where DD is unknown parameter uncertainties of matrix D + 2O, DK b is unknown parameter uncertainties of matrix K b , d is an uncertain external disturbances in the gyroscope. Rewriting equation (9) as Defining the right side of equation (10) as Then equation (10) can be expressed as Define where f N = (À D À 2O) _ q À K b q is nominal part of the system, Df =À DD _ q À DK b q + d is the model uncertainties and external disturbances.
Assuming system satisfies f À f N k kł F and d k k ł M, where F and M are positive constants.
Defining tracking error e and sliding surface s as e = q À q m ð14Þ where C.0 is a constant matrix. The derivative of sliding surface becomes Setting _ s = 0 and assuming Df = 0, equivalent control u eq can be solved as Based on (17), considering a robust compensator, then a comprehensive controller is designed as where u n =À Ksgn(s), and the sliding gain K satisfying where € q m j jł W , a ø 1, h is a positive constant.
Theorem 1. The controller (18), applied to the system (9) guarantees that all closed-loop signals are bounded, if K ø a(F + M + W + h) + (a À 1)u eq , the tracking error and sliding surface go to zero asymptotically.
Proof: Define a Lyapunov function candidate Differentiating V with respect to time yields From (17), the following can be obtained Substituting (22) into (21) yields Since K ø a(F + M + W + h) + (a À 1)u eq , choose a = 1, _ V is negative definite implies that s, converge to zero. _ V is negative semi-definite ensures that V , s are all bounded. From (16) it is concluded that _ s is also bounded, equation (20) implies that s is integrable as

) is bounded and V (t) is nonincreasing and bounded, it can be concluded that lim
Ð t 0 s k kdt is bounded and _ s is also bounded, according to Barbalat lemma, s(t) will asymptotically converge to zero, lim t!' s(t) = 0, then, e(t) will asymptotically converge to zero, lim

Design of neural network sliding mode control
Neural network has the capability of approximating any nonlinear continuous function over the compact input space. Therefore neural network's learning ability to approximate arbitrary nonlinear continuous function makes it a useful tool for adaptive application. RBF NN has the universal approximation property which states that any sufficiently smooth function can be approximated by a suitable large network for all inputs in a compact set and the resulting function reconstruction error is bounded. RBF NN has a faster convergence property and a simpler architecture than BP (back propagation) NN. The RBF NN structure employed in our work is shown as Figure 2.
We will address the design of RBF network based sliding mode control problem. Because of the great advantages of neural networks in dealing with the nonlinear system, neural sliding mode controller is designed and analyzed in this section. Since sliding mode has some limitation such as chattering or high frequency oscillation in practical applications, neural network sliding mode control is adopted to facilitate adaptive gain adjustment and reduce the chattering. The block diagram of sliding mode control using RBF neural network is shown in Figure 3. Replacing K by K N yields the new controller 17 as If the upper bound value K N is unknown and can not be measured properly, RBF neural network can be used to adaptively learn the upper bound K N .The structure of RBF neural network is a three-layer feedforward network shown as in Figure 3. The input layer is a set of source nodes. The second layer is a hidden layer of high dimension. The output layer gives the response of the network to the activation patterns applied to the input layer.
The estimate of the upper bound K N is The key part of the learning algorithm is how to obtain a gradient vector using the chain rule. 10 Theorem 2. The neural network controller (26), applied to the system (4) guarantees that weight learning is Proof: The performance index of energy function is defined as where e is a position tracking error. The tracking error e ! 0 as t ! ' implies s ! 0 and _ s ! 0 as t ! '.
The learning algorithm of network weight is derived as Since the value of ∂q ∂u can be adjusted by parameter h 1 , therefore the sign determines its value. Therefore the weight is updated by the amount The weight learning algorithm is expressed as where h 1 is learning rate of the weight, h 1 2 (0, 1), a 1 2 (0, 1). The mean and standard deviation of the hidden layer are updated in the similar ways.
The learning law of ith center vector m i is obtained as where: Then the updating algorithm of m i becomes Therefore the learning algorithm of m i becomes m i (t) = m i (t À 1) + Dm i (t) + a(m i (t) À m i (t À 1)) ð36Þ The learning law of the ith standard deviation s i is obtained as where Then its updating algorithm is derived as The learning algorithm of s i is expressed as Remark 1. The weight error not only has relationship with current time, but also depends on previous time. a 1 is the forgetting factor establishing the previous weight error with current weight error. Selection of learning rate has a significant effect on the network performance. The effectiveness of the online training of neural network to adjust the control gain will be demonstrated by the following simulation results.

Simulation study
In this section, we will evaluate the proposed neural network sliding mode approach on the lumped MEMS gyroscope sensor model 1,4,5 by using MATLAB/ SIMULINK. Parameters of the MEMS gyroscope sensor are as follows: m = 0:57e À 8kg, v 0 = 3kHz, q 0 = 10 À6 m, d xx = 0:429e À 6Ns=m, d yy = 0:0429e À 6Ns=m, d zz = 0:895e À 6Ns=m, d xy = 0:0429e À 6Ns=m, d xz = 0:0687e À 6Ns=m, d yz = 0:0895e À 6Ns=m, k xx = 80:98N=m, k xy = 5N =m, k yy = 71:62N =m, k zz = 60:97N=m, k xz = 6N =m, k yz = 7N =m: In order to make the numerical simulation more easily realized and simplify the design of the controller, the dimensionless procedure for the micro gyroscope is implemented, Since the general displacement range of the micro gyroscope sensor in each axis is submicrometer level, it is reasonable to choose 1 mm as the reference length q 0 . Given that the usual natural frequency of a vibratory MEMS gyroscope sensor is in the KHz range, v 0 is chosen as 1kHz. For example, the dimensionless parameters of the micro gyroscope system in x-y axis are listed as in Table 1: The unknown angular velocity is assumed O z = 5:0rad=s, O x = 3:0rad=s.  Figure 4 is the position tracking in the x, y, and z direction using the sliding mode control with fixed sliding gain. Figure 5 is the position tracking using the neural sliding mode control with RBF sliding gain adjustment. It can be observed from Figures 4 and 5 that the position trajectory can track that of reference model in very short time. Figures 6 and 7 depict the convergence of the tracking errors. It can be seen that tracking errors converge to zero asymptotically. The MEMS gyroscope can maintain the proof mass oscillating in the x, y, and z direction at given frequency and amplitude both with sliding mode control and with neural sliding mode control. Figure 8 depicts the control inputs using the sliding mode control with fixed sliding gain, Figure 9 draws the control inputs using the neural sliding mode control with RBF sliding gain adjustment. The performance of neural sliding mode control is better than that of sliding mode control using fixed sliding gain because RBF neural network can adjust the sliding gain to eliminate the chattering phenomenon. Figure 10 shows the adaptation of the sliding gain adjustment using neural sliding mode control.
It it noted that the dimensionless procedure for the micro gyroscope system is carried out, there are no unit of magnitude from Figures 4 to 10.
It is concluded that the system response is as expected, and the simulation results demonstrated that both neural sliding mode control and sliding mode control have good tracking performance and tracking errors converge to zero asymptotically. Neural network-based adaptive sliding mode controller with adaptive sliding gain has better performance in eliminating the chattering than sliding mode control using fixed switching gain.
A universal standard is adopted to quantify tracking error by calculating root mean square error (RMSE) to observe the tracking performance under different controller. The RMSE reflects how much the measured value deviates from its true value and the smaller the RMSE is, the higher the measurement accuracy is. Meanwhile, based on the statistics of RMSE, we carry out quantitative comparison between the SMC with fixed sliding gain and SMC with NN sliding gain under the same reference signal excitation. It is evident from the Table 2 that the performance of the proposed control scheme is remarkably superior to that of the standard SMC in tracking accuracy since the corresponding steady-state errors of the proposed method are significantly smaller than those of the standard SMC.

Conclusion
A neural network based sliding mode control is proposed for a triaxial angular velocity sensor. Neural network compensator is used to approximate the upper bound of model uncertainties and external disturbances and adjust the sliding gain, making the system react to the changes of the model uncertainties and external disturbances with better adaptability. Simulation results show that neural network-based adaptive sliding mode controller has satisfactory performance in reducing the chattering.