Piezoelectric ceramic actuator control method fusing LSTM prediction and Kalman filtering

By combining the method of LSTM prediction and Kalman filtering, the accuracy and delay problems caused by time lag and creep characteristics in the control of piezoelectric ceramic actuators are solved, the processing and robustness of nonlinear characteristics are improved, and a better Efficient control effect.

CN118739899APending Publication Date: 2024-10-01XIAN TECH UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410698446.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When controlling piezoelectric ceramic actuators, the existing technology has problems with control accuracy and control delay due to the inherent time lag and creep characteristics of the material. The traditional linear model is difficult to capture the nonlinear dynamic characteristics, and the traditional control method is in trouble. Prediction accuracy and adaptability are insufficient when there is noise and uncertainty.

Method used

Combining the methods of LSTM prediction and Kalman filtering, the LSTM neural network predicts the next moment value of the feedback signal and inputs it into the Kalman filter for correction to obtain more accurate feedback values, reduce measurement errors, and improve the accuracy of state estimation. sex.

Benefits of technology

It improves the system's ability to process complex nonlinear characteristics and time series data, enhances robustness, optimizes response speed and control accuracy, and achieves higher energy efficiency and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118739899A_ABST
    Figure CN118739899A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of control, and relates to a piezoelectric ceramic actuator control method fusing LSTM prediction and Kalman filtering. The invention aims to solve the problems of control precision and control delay caused by inherent time lag and creep characteristics of materials when the piezoelectric ceramic actuator is controlled in the prior art. According to the method adopted by the invention, LSTM prediction and Kalman filtering are combined, a value of a feedback signal at a next moment is predicted by using an LSTM neural network, then the value and the feedback signal form input of Kalman filtering, and a more accurate feedback value is obtained after prediction and correction of Kalman filtering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of control technology and relates to a piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering. Background Art

[0002] Piezoelectric ceramics are materials that can be mechanically deformed by applying an electric field. They are widely used in actuators and sensors because they can achieve small, controllable deformations in response to electric fields.

[0003] Controlling piezoelectric ceramic actuators involves precise electrical signal processing and feedback control to achieve the desired mechanical motion or deformation. The behavior of piezoelectric ceramic actuators often has complex nonlinear dynamic characteristics. Traditional linear models have difficulty capturing these nonlinear relationships.

[0004] By using LSTM for data-driven modeling, the system can better adapt to nonlinear, time-varying dynamic characteristics and improve the accuracy of modeling. Moreover, the behavior of piezoelectric ceramics may be time-dependent, and some effects may require long-term memory. LSTM is a neural network structure specifically designed to capture timing dependencies and long-term memory, which can better handle these characteristics and improve the ability to predict the dynamic behavior of piezoelectric ceramics. In practical systems, sensor measurements are often affected by noise and uncertainty. Kalman filtering can effectively fuse sensor measurements and model predictions, reduce the impact of measurement errors, and improve the accuracy of system state estimation. For control applications, especially in real-time systems that require fast response, traditional control methods may be affected by delays.

[0005] Invention patent CN110398995A discloses a model-free tracking control method for piezoelectric ceramic actuators. This method can use robust regression for prediction and has a certain anti-interference ability for outliers. However, its prediction accuracy and adaptability are not as good as the LSTM (Long Short-Term Memory Network) model, resulting in reduced accuracy and control delay. Summary of the invention

[0006] The present invention provides a piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering to solve the problems of control accuracy and control delay caused by the inherent time lag and creep characteristics of the material when controlling the piezoelectric ceramic actuator in the existing method.

[0007] In order to solve the problems existing in the prior art, the technical solution adopted by the present invention is: a piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering, the steps are:

[0008] The LSTM prediction is combined with the Kalman filter. The LSTM neural network is used to predict the value of the feedback signal at the next moment, which then forms the input of the Kalman filter with the feedback signal. After the prediction and correction of the Kalman filter, a more accurate feedback value is obtained.

[0009] The specific steps are as follows:

[0010] Step S1: The input signal r(t) generates an output y(t) after passing through the PID controller, and the feedback signal g(t) generated by y(t) is predicted by LSTM to obtain the feedback prediction value G(t) at the next moment;

[0011] Step S2: The current feedback signal g(t) and the current feedback prediction value G(t) are used as inputs of the Kalman filter. After prediction and correction by the Kalman filter, a more accurate feedback value U(t) is obtained.

[0012] Step S3: Subtract the input signal r(t) from the accurate feedback value U(t) to obtain the error e, which is used as the input of the PID controller at the next moment.

[0013] The specific method of LSTM prediction in step S1 is:

[0014] The input of the LSTM unit consists of three parts:

[0015] The current input information x t , the output information y of the LSTM unit at the previous moment t-1 The state information S of the LSTM unit t-1 ;

[0016] g t =σ(W g [y t-1 ,x t ]+b g ) (6)

[0017] In the formula, g t , W g and b g are the output, weight coefficient and bias of the forget gate respectively, and σ is the Logistic function; g t The value range of is [0,1]. The state of the LSTM unit at the previous moment, the part of the information transmitted to the current moment is:

[0018] ΔS t =g t S t-1 (7)

[0019] The input gate is based on x t and t-1Determine the updated part of the LSTM unit state information at the current moment, determine the proportion of the updated information through the Logistic function channel; and then determine the specific content of the updated information through the tanh function channel.

[0020] h t =σ(W h ·[y t-1 ,x t ]+b h ) (8)

[0021] S′ t =tanh(W S [y t-1 ,x t ]+b S ) (9)

[0022] Where W h and W S are the weight coefficients of the input gate; b S 、b h is the bias of the input gate; h t is the proportion of updated information; S′ t is the content of the updated information, then the updated part of the LSTM unit state information at the current moment is:

[0023] ΔS′ t =h t S′ t (10)

[0024] The current LSTM unit state information is:

[0025] S t =ΔS t +ΔS′ t =g t S t-1 +h t S′ t (11)

[0026] The output gate is based on x t and t-1 With S t Determine the output information of the LSTM unit, and determine the proportion of the output information through the Logistic function channel. At the same time, use the tanh function channel to determine the content of the output information. The formulas for calculating the proportion and content of the output information are:

[0027] q t =σ(W q ·[y t-1 ,x t ]+b q ) (12)

[0028] o t =tanh(S t ) (13)

[0029] In the formula, q t 、b q are the weight coefficient and bias of the output gate, q t , o t The above two formulas determine the output information of the LSTM unit at the current moment as follows:

[0030] y t =q t o t (14).

[0031] The PID control algorithm formula used in the PID controller in steps S2 and S3 is:

[0032]

[0033] The PID controller transfer function formula is:

[0034]

[0035] Compared with the prior art, the technical effects brought by the present invention are as follows:

[0036] 1) This method realizes data-driven dynamic modeling through LSTM, and the system can more accurately adapt to complex nonlinear characteristics and better handle long-term dependencies in time series data.

[0037] 2) The Kalman filter of the present invention fuses sensor measurement and LSTM prediction to reduce measurement errors and improve the accuracy of state estimation. It has significant advantages in dealing with sensor noise, uncertainty and improving real-time performance. At the same time, through data-driven learning, this method does not need to rely on an accurate system model, which improves the robustness of the system. Ultimately, the control scheme that integrates LSTM and Kalman filtering has achieved significant results in improving energy efficiency, optimizing response speed and achieving precise control, bringing a new control paradigm to the application of piezoelectric ceramic actuators. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 Flowchart of the piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering;

[0039] Figure 2 This is the Kalman filter flow chart;

[0040] Figure 3 It is the LSTM structure diagram;

[0041] Figure 4 This is the PID control principle diagram. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] The present invention discloses a piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering. LSTM is a variant of a recurrent neural network (RNN) specially designed to process long-term dependencies of sequence data. In the control of piezoelectric ceramics, LSTM can be used to learn and predict the dynamic behavior of piezoelectric ceramics, especially in the presence of complex nonlinear relationships and timing dependencies. The long short-term memory unit of LSTM can effectively capture the long-term dependencies in the sequence, making it a powerful tool for modeling time-varying behaviors. Kalman filtering is a recursive filter for estimating the state of a dynamic system. In the control of piezoelectric ceramics, Kalman filtering can be used to fuse sensor measurements and model predictions to improve the accuracy of state estimation. By dynamically adjusting the weights, the Kalman filter can adapt to different noise levels and provide real-time estimation of the system state. The idea of ​​combining LSTM prediction with Kalman filtering is to learn the nonlinear dynamic characteristics of the system by making full use of the ability of deep learning, and use Kalman filtering to fuse actual measurement data and deep learning predictions, thereby obtaining a more accurate and stable state estimate. This fusion method makes up for the limitations of deep learning when data is insufficient or the noise is large.

[0044] The present invention provides a piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering, combining LSTM prediction with Kalman filtering, using LSTM neural network to predict the value of the feedback signal at the next moment, and then forming the input of Kalman filtering with the feedback signal. After prediction and correction by Kalman filtering, a more accurate feedback value is obtained, such as Figure 1 shown.

[0045] The specific method is:

[0046] 1. The input signal r(t) generates the output y(t) after passing through the PID controller. The feedback signal g(t) generated by y(t) is predicted by LSTM to obtain the feedback value G(t) at the next moment.

[0047] 2. The current feedback value g(t) and the predicted value G(t) of the current feedback value are used as the input of the Kalman filter. After prediction and correction by the Kalman filter, a more accurate feedback value U(t) is obtained.

[0048] 3. Subtract the input signal r(t) from the precise feedback value U(t), and the error e obtained will be used as the input of the PID controller at the next moment.

[0049] Kalman filter principle and flow chart as follows Figure 2 As shown:

[0050] 1. Establish a system model, set parameters, and predict the state x(k|k-1) at the kth moment based on the state at the k-1th moment:

[0051] x(k|k-1)=Ax(k-1|k-1)+Bkuk (1)

[0052] In the formula, k represents the discrete time of the system; x(k-1|k-1) represents the optimal estimate of the state at time k-1; A is the state matrix; x(k|k-1) represents the predicted value at time k; B k for u k The control matrix of k To control the amount.

[0053] 2. Estimate the system prediction error P(k|k-1) at the kth moment based on the system prediction error at the k-1 moment:

[0054] P(k|k-1)=AP(k-1|k-1)A T +Q(k) (2)

[0055] Where: P(k-1|k-1) represents the covariance of the optimal estimate of the state at time k-1; P(k|k-1) represents the covariance of the state prediction at time k based on time k-1; Q(k) represents the process noise covariance.

[0056] 3. Calculate Kalman gain Kg

[0057]

[0058] 4. Calculate the optimal estimate of the system:

[0059] x(k|k)=x(k|k-1)+K(k)[z(k)-Hx(k|k-1)] (4)

[0060] In the formula, x(k|k-1) represents the optimal estimate at time k; z(k) represents the measured value at time k; H represents the observation matrix; K(k) represents the Kalman gain at time k:

[0061] 5. Calculate the system prediction error P(k|k) at the current moment:

[0062] P(k|k)=[IK(k)H]P(k|k-1) (5)

[0063] Where P(k|k) represents the covariance estimate at time k; I represents the identity matrix.

[0064] The specific structure diagram of LSTM prediction is as follows Figure 3 As shown, the description is as follows:

[0065] 1. The input of the LSTM unit consists of three parts: the input information x at the current moment t , the output information y of the LSTM unit at the previous moment t-1 The state information S of the LSTM unit t-1 .

[0066] g t =σ(W g [y t-1 ,x t ]+b g ) (6)

[0067] In the formula, g t , W g and b g are the output, weight coefficient and bias of the forget gate respectively, and σ is the Logistic function. t The value range of is [0,1], the LSTM unit state at the previous moment. The part of information transmitted to the current moment is:

[0068] ΔS t =g t S t-1 (7)

[0069] The input gate is based on x t and t-1 Determine the update part of the LSTM unit state information at the current moment. On the one hand, the proportion of the update information is determined through the Logistic function channel; on the other hand, the specific content of the update information is determined through the tanh function channel.

[0070] h t =σ(W h ·[y t-1 ,x t ]+b h ) (8)

[0071] S′ t =tanh(W S [y t-1 ,x t ]+bS ) (9)

[0072] Where W h and W S are the weight coefficients of the input gate; b S 、b h is the bias of the input gate; h t is the proportion of updated information; S′ t is the content of the updated information. Then the updated part of the LSTM unit state information at the current moment is:

[0073] ΔS′ t =h t S′ t (10)

[0074] The current LSTM unit state information is:

[0075] S t =ΔS t +ΔS′ t =g t S t-1 +h t S′ t (11)

[0076] The output gate is based on x t and t-1 With S t Determine the output information of the LSTM unit, and determine the proportion of the output information through the Logistic function channel, and also use the tanh function channel to determine the content of the output information. The formulas for calculating the proportion and content of the output information can be expressed as:

[0077] q t =σ(W q ·[y t-1 ,x t ]+b q ) (12)

[0078] o t =tanh(S t ) (13)

[0079] In the formula, q t 、b q are the weight coefficient and bias of the output gate, q t , o t The above two formulas can be used to determine the output information of the LSTM unit at the current moment:

[0080] y t =q t o t (14)

[0081] PID control principle:

[0082] 1.PID control algorithm formula:

[0083]

[0084] 2.PID controller transfer function formula:

[0085]

[0086] PID control principle Figure 4 As shown, the description is as follows:

[0087] 1. The system input e(t) represents the error signal, which is the difference between the expected value and the actual value. This is the target that the controller needs to adjust.

[0088] 2. Proportional regulator kp, multiplies the error signal e(t) by the proportional coefficient Kp, and the output determines the system's immediate response to the current error.

[0089] 3. The integral regulator ki integrates the error signal e(t) and then multiplies it by the integral coefficient Ki to eliminate the long-term static error of the system and adjust the control amount by accumulating the error.

[0090] 4. The differential regulator kd differentiates the error signal e(t) and then multiplies it by the differential coefficient kd. It predicts the changing trend of the error and thus plays a suppressive role when the error changes rapidly.

[0091] 5. Signal superposition: The output signals of the proportional, integral and differential regulators are combined and superimposed to form the control signal u(t).

[0092] 6. The control signal u(t) is transmitted to the actuator, such as a linear motor. The linear motor adjusts its motion according to the control signal u(t) to make the system output y(t) as close to the expected value as possible.

[0093] 7. The system output y(t) is the result of PID control, reflecting the actual state after control. The system output is also fed back to the input to form a closed-loop control system, which keeps the system stable by continuously adjusting the error.

[0094] In the above description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed above.

[0095] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering, characterized in that: The steps are: The LSTM prediction is combined with the Kalman filter. The LSTM neural network is used to predict the value of the feedback signal at the next moment, which then forms the input of the Kalman filter with the feedback signal. After the prediction and correction of the Kalman filter, a more accurate feedback value is obtained.

2. According to claim 1, a piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering is characterized in that: The specific steps are as follows: Step S1: The input signal r(t) generates an output y(t) after passing through the PID controller, and the feedback signal g(t) generated by y(t) is predicted by LSTM to obtain the feedback prediction value G(t) at the next moment; Step S2: The current feedback signal g(t) and the current feedback prediction value G(t) are used as inputs of the Kalman filter. After prediction and correction by the Kalman filter, a more accurate feedback value U(t) is obtained. Step S3: Subtract the input signal r(t) from the accurate feedback value U(t) to obtain the error e, which is used as the input of the PID controller at the next moment.

3. The piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering according to claim 1 is characterized in that: The specific method of LSTM prediction in step S1 is: The input of the LSTM unit consists of three parts: The current input information x t , the output information y of the LSTM unit at the previous moment t-1 The state information S of the LSTM unit t-1 ; g t =σ(W g [y t-1 ,x t ]+b g ) (6) In the formula, g t , W g and b g are the output, weight coefficient and bias of the forget gate respectively, and σ is the Logistic function; g t The value range of is [0,1]. The state of the LSTM unit at the previous moment, the part of the information transmitted to the current moment is: ΔS t =g t S t-1 (7) The input gate is based on x t and t-1 Determine the updated part of the LSTM unit state information at the current moment, determine the proportion of the updated information through the Logistic function channel; and then determine the specific content of the updated information through the tanh function channel. h t =σ(W h ·[y t-1 ,x t ]+b h ) (8) S' t =tanh(W S [y t-1 ,x t ]+b S ) (9) Where W h and W S are the weight coefficients of the input gate; b S , b h is the bias of the input gate; h t is the proportion of updated information; S t ′ is the content of the update information, then the updated part of the LSTM unit state information at the current moment is: ΔS′ t =h t S′ t (10) The current LSTM unit state information is: S t =ΔS t +ΔS′ t =g t S t-1 +h t S′ t (11) The output gate is based on x t and t-1 With S t Determine the output information of the LSTM unit, and determine the proportion of the output information through the Logistic function channel. At the same time, use the tanh function channel to determine the content of the output information. The formulas for calculating the proportion and content of the output information are: q t =σ(W q ·[y t-1 ,x t ]+b q ) (12) o t =tanh(S t ) (13) In the formula, q t , b q are the weight coefficient and bias of the output gate, q t , o t The above two formulas determine the output information of the LSTM unit at the current moment as follows: and t =q t either t (14)。 4. The piezoelectric ceramic actuator control method integrating LSTM prediction and Kalman filtering according to claim 2 is characterized in that: The PID control algorithm formula used in the PID controller in steps S2 and S3 is: The PID controller transfer function formula is:

Citation Information

Patent Citations

  • Model-free tracking control method for piezoelectric ceramic actuators and medium

    CN110398995A