A dynamic helicopter vibration reduction method based on intelligent parameter self-adjustment
Through the method of intelligent parameter self-adjustment, combined with LSTM neural network and reinforcement learning algorithm, the problem of vibration reduction control of helicopters in a maneuvering environment is solved, achieving stable and decoupled vibration control effects, strong adaptability, and simplifying the debugging process.
Patent Information
- Application Number
- CN202410333553.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-03-22
AI Technical Summary
Existing helicopter vibration reduction control methods are not applicable in maneuvering flight environments, and traditional methods are difficult to effectively adjust control parameters, resulting in poor vibration control effects, especially in nonlinear systems and high-dimensional parameter spaces.
A dynamic helicopter vibration reduction method based on intelligent parameter self-adjustment is adopted. By establishing a helicopter vibration model with trailing edge flaps, a parameter intelligent optimization method based on immersion and invariant robust controllers and reinforcement learning is designed. The LSTM neural network is used to simulate The combined vibration model combines the finite time expansion state observer and the immersion and invariant control laws to achieve decoupled control, and the controller parameters are automatically adjusted through the A-SAC algorithm.
It achieves stable, decoupled, and autonomous vibration reduction control in a maneuverable environment, improves the robustness and adaptability of the system, simplifies the controller design process, and significantly improves the vibration control effect and parameter debugging efficiency.
Smart Images

Figure CN118244807B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of active vibration reduction control of helicopters, and in particular relates to a dynamic helicopter vibration reduction method based on intelligent parameter self-regulation. Background Art
[0002] Helicopters can flexibly perform a variety of maneuvering flights in a limited space, including hovering, circling and vertical climbing. When performing missions, variable speed forward flight is a common flight state. In this process, the pilot controls the change of the advance ratio through a cyclic pitch change mode. The periodic pitch angle change of the main rotor blades causes the lift distribution of the main rotor to change within a rotation cycle, thereby generating horizontal thrust and tilting the rotor axis. Increasing the advance ratio is one of the key means to adjust the forward flight speed of the helicopter, because it can reduce the resistance of the main rotor in forward flight, thereby improving speed performance. However, the increase in the advance ratio will also cause the main rotor to bear a greater load imbalance, thereby increasing the vibration level during variable speed forward flight;
[0003] As a high-efficiency, low-energy active vibration reduction control device, trailing edge flaps have become an important development direction in this field. At present, the helicopter vibration control method based on trailing edge flaps is mainly designed for the stable flight state with a fixed forward ratio. However, in a maneuvering flight environment, the traditional vibration control method may no longer be applicable. Therefore, the study of helicopter active vibration control methods that adapt to dynamic flight environments and have real-time adjustment capabilities is of vital importance to ensure the safe and stable operation of the helicopter and reduce the cabin vibration level within the entire flight envelope.
[0004] In addition to the influence of the helicopter's variable speed flight, the vibration response model of a helicopter with trailing edge flaps is also affected by the complex time-varying characteristics of unsteady aerodynamics and the nonlinear characteristics of materials, which makes it extremely difficult to establish an accurate aeroelastic coupling model. In addition, since the flight state of the helicopter is unpredictable, maintaining the optimal performance of the vibration controller requires continuous adjustment of the control parameters. In a multi-input multi-output system, due to the large number of control parameters and the existence of inter-channel coupling, the traditional manual adjustment method is difficult to meet the requirements. At present, the Linear Parameter-Varying (LPV)-based method is widely used to address the vibration reduction problem of variable speed helicopters. In the LPV system, the dynamic behavior of the system will change with the change of parameters, but it remains linear overall, which is suitable for systems where processing parameters change with time or operating conditions;
[0005] Nevertheless, the existing theoretical methods have some limitations in designing helicopter vibration reduction controllers, such as:
[0006] The LPV method usually linearly approximates the nonlinear dynamics at multiple operating points, but this approximation may be insufficiently accurate in highly nonlinear systems or in the case of large-scale parameter changes, affecting the vibration reduction effect;
[0007] The mutual influence of parameter changes in the multi-input multi-output vibration reduction control system may lead to more significant coupling effects under different flight conditions, increasing the difficulty of controller design and analysis;
[0008] Traditional vibration reduction methods usually require the design of multiple local controllers at different operating points or parameter regions. As the operating points or parameters increase, the parameter space becomes high-dimensional, making effective regulation more difficult.
[0009] Therefore, there is an urgent need for a new active vibration control method for helicopters suitable for maneuverable flight environments. Summary of the invention
[0010] The purpose of the present invention is to provide a dynamic helicopter vibration reduction method based on intelligent parameter self-adjustment. On the basis of a multi-input and multi-output helicopter nonlinear vibration model, the controller parameters are adaptively adjusted to achieve stable, decoupled and autonomous vibration reduction control, thereby solving the problems of the existing vibration reduction control methods in nonlinear conditions, ignoring coupling effects and difficulty in parameter adjustment.
[0011] The technical solution adopted by the present invention is as follows:
[0012] A dynamic helicopter vibration reduction method based on intelligent parameter self-adjustment includes the following steps:
[0013] Step 1: Establish a vibration model of a helicopter with trailing edge flaps;
[0014] Step 2: Design a robust controller based on immersion and invariance;
[0015] Step 3: Design a parameter intelligent optimization method based on reinforcement learning.
[0016] In the first step, there are coordinate system conversion and hub filtering factors in the transmission process of helicopter vibration, which causes its vibration to present typical harmonic order characteristics;
[0017] Define the speed Ω as 1 / (r·min -1 ), for the N blades of a helicopter, in the rotating coordinate system, the -1 )、N / (r·min -1 ) and N+1 / (r·min -1 )-order trailing edge flap harmonics to generate additional aerodynamic forces and moments to reduce hub vibration loads in a non-rotating coordinate system;
[0018] The steps include:
[0019] The harmonic component U of the trailing edge flap control angle t Perform harmonic modulation to obtain the control angle η t ;
[0020] The hub vibration waveform is fitted by the established neural network model, and the fitted waveform is consistent with the uncontrolled vibration load D t They cancel each other out, and the vibration harmonic components under the current flight state are obtained through harmonic decomposition.
[0021] In the second step, the vibration model of the helicopter with trailing edge flaps is a multi-input and multi-output model, in which coupling effects exist between channels. The original six-input and six-output model is regarded as a model composed of six single-input and single-output combinations to achieve equivalent decoupling control.
[0022] In the third step, the parameter adjustment problem is transformed into a Markov decision process, and an A-SAC algorithm including priority experience fusion, assignment network and gradient reversal is designed to determine and update the Q network.
[0023] Set up a reward function for the vibration control problem of a helicopter.
[0024] The technical effects achieved by the present invention are:
[0025] (1) Aiming at the problem of vibration control of helicopters in maneuvering environments, the present invention designs an LSTM neural network to fit the vibration model of a helicopter with trailing edge flaps. LSTM has a certain generalization ability for vibration data in different environments, which helps to capture the characteristics of different flight states during training. At the same time, due to its nonlinear activation function and gating mechanism, LSTM can more flexibly fit the nonlinear relationship of multiple flight states.
[0026] (2) Aiming at the multi-input and multi-output coupling and internal and external interference problems of the helicopter vibration model, the present invention designs a controller that combines a finite-time extended state observer with an immersion and invariant control law. The finite-time extended state observer can observe the total disturbance of the system including factors such as the mutual influence between channels and the internal and external disturbances of the system, and compensate and offset them through the feedback control law, thereby realizing decoupling control between channels and improving the robustness of the system. The immersion and invariant control law can immerse the complex controlled model into a selected low-dimensional system, and achieve rapid and stable convergence of the entire control system by maintaining the invariance and attractivity of the manifold, thereby simplifying the controller design process and further improving the robustness of the control system.
[0027] (3) The A-SAC algorithm designed by the present invention can intelligently adjust the controller parameters. In addition, the samples are enhanced according to the priority sorting scheme of the experience tuple and the latest online strategy experience. Even without any special data structure, the utilization efficiency of the samples can be guaranteed. At the same time, through continuous interaction with the environment in actual operation, all network weights including the strategy network, online Q network, target Q network, temperature factor and dynamic safety function are included. Compared with the traditional method that requires cumbersome model-specific parameter adjustment process, this method gets rid of the problem of manual parameter adjustment by automatically adjusting the network weights, thereby significantly simplifying the debugging process. In addition, due to the universality of this intelligent parameter adjustment framework, it is not specifically aimed at a specific model, so it can easily adapt to different helicopter models or field environments and has stronger adaptability. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a closed-loop block diagram of the helicopter intelligent vibration reduction method based on intelligent parameter self-adjustment of the present invention;
[0029] Figure 2 It is a cross-validation graph in the present invention;
[0030] Figure 3 It is the average reward sum graph of the three algorithms in the present invention;
[0031] Figure 4 is the vertical force F in the present invention zt Simulation curve graph;
[0032] Figure 5 is the rolling moment M in the present invention xt Simulation curve graph;
[0033] Figure 6 is the pitch moment M in the present invention yt Simulation curve graph. DETAILED DESCRIPTION
[0034] In order to make the purpose and advantages of the present invention more clearly understood, the present invention is specifically described below in conjunction with embodiments. It should be understood that the following text is only used to describe one or several specific embodiments of the present invention, and does not strictly limit the scope of protection of the specific claims of the present invention.
[0035] like Figure 1 -As shown, a dynamic helicopter vibration reduction method based on intelligent parameter self-adjustment includes the following steps:
[0036] A: Establish a vibration model of a helicopter with trailing edge flaps;
[0037] Due to the factors such as coordinate system conversion and hub filtering in the transmission process of helicopter vibration, its vibration presents typical harmonic order characteristics. The speed Ω is defined as 1 / (r·min -1 ), for the N blades of a helicopter, they are usually expressed in a rotating coordinate system by N-1 / (r·min -1 )、N / (r·min -1 ) and N+1 / (r·min -1 )-order trailing edge flap harmonics are reasonably coordinated to generate effective additional aerodynamic forces and moments, thereby reducing the hub vibration load in the non-rotating coordinate system;
[0038] Among them, it also includes:
[0039] A1: Harmonic component U of the trailing edge flap control angle t Perform harmonic modulation to obtain the control angle η t ;
[0040] In A1, under steady-state conditions, the harmonic modulation process is expressed as:
[0041]
[0042] Among them U t =[η (N-1)ct η (N-1)st η Nct η Nst η (N+1)ct η (N+1)st ] represents the trailing edge flap deflection angle N-1 / (r·min -1 )、N / (r·min -1 ) and N+1 / (r·min -1 )-order cos and sin components;
[0043] And the harmonic decomposition process is expressed as:
[0044]
[0045] where F zct 、F zst 、M xct 、M xst 、M yct and M yst Represents the vertical force, rolling moment and pitching moment in N / (r·min -1 )-order cos and sin components;
[0046] Define Y t =[F zct F zst M xct M xstM yct M yst ] T is the output of the vibration model, F z0 、M x0 and M y0 represents the vertical force, rolling moment and pitching moment loads of the foundation, which are generated by the flight control and usually remain unchanged in steady-state conditions and are independent of vibration control;
[0047] A2: The hub vibration waveform is fitted through the established neural network model, and the fitted waveform is consistent with the uncontrolled vibration load D t They cancel each other out, and the vibration harmonic components under the current flight state are obtained through harmonic decomposition;
[0048] Uncontrolled vibration load D t It is the vibration load generated when no trailing edge flap control is applied. The principle of vibration control is to generate a vibration wave with the same amplitude and opposite phase as the uncontrolled vibration load at the hub through the reasonable movement of the trailing edge flap at the trailing edge of the blade, thereby offsetting the uncontrolled vibration load and achieving the vibration reduction target. The vibration load measured in the uncontrolled state of the experimental helicopter is:
[0049] L t = l ct cos(NΩt)+l st sin(NΩt) (3)
[0050] Among them l ct and l st Respectively represent L t The amplitudes of the cosine and sinine components are obtained, and finally the vibration model of the helicopter with trailing edge flaps and the input-output relationship are expressed as follows:
[0051]
[0052] Among them [F zct F zst M xct M xst M yct M yst ] T Represents the vertical force, rolling moment and pitching moment in N / (r·min -1 )-order cosine and sin components, G(s) represents the transfer function form for the control model;
[0053] Where [η (N-1)ct η (N-1)st η Nct η Nst η (N+1)ct η (N+1)st ]T Indicates the trailing edge flap deflection angle N-1 / (r·min -1 )、N / (r·min -1 ) and N+1 / (r·min -1 ) order cosine and sin components, [d zct d zst d xct d xst d yct d yst ] T represents the cosine and sin components of the external disturbance on the vertical force, rolling moment and pitching moment load at the current time t, [l zct l zst l xct l xst l yct l yst ] T represents the cosine and sinine components of the vertical force, rolling moment and pitching moment loads measured in the uncontrolled state of the experimental helicopter;
[0054] Since the vibration data of the helicopter has time series and nonlinear characteristics, it is crucial to select a suitable neural network for fitting. The long short-term memory neural network has the ability to long-term memory, adapt to variable-length input, and process sequence data. Compared with traditional feedback neural networks, long short-term memory neural networks are better at capturing time series patterns, retaining long-term memory, processing variable-length sequence data, and showing strong nonlinear modeling capabilities. Therefore, the long short-term memory neural network is used to calculate the speed Ω, forward ratio μ, and control amount η of the trailing edge flap from the current flight state. t To the vertical force F zt , rolling moment M xt and pitching moment M yt The input-output relationship is fitted. For the long short-term memory neural network, the input is defined as x t =[Ω μ η t ] T , the output is y t =[F zt M xt M yt ] T ;
[0055] Each neuron of the LSTM neural network consists of an input gate, a forget gate, and an output gate. The input gate determines how much of the current update comes from the input x t and the information of the previous hidden state h t-1 To the cell state, the specific expression is:
[0056] i t =σ(Wii x t +b ii +W hi h t-1 +b hi ) (5)
[0057] Among them, i t is the output of the input gate, indicating the degree to which the network updates the cell state. σ is the Sigmoid activation function, which compresses the input value to between 0 and 1. ii ,b ii is the input gate and input x t The associated weights and biases, W hi ,b hi is the input gate and the previous hidden state h t-1 The associated weights and biases;
[0058] The forget gate determines how much cell state information from the previous moment is retained at the current moment. The specific expression is:
[0059] f t =σ(W if x t +b if +W hf h t-1 +b hf ) (6)
[0060] Among them, f t is the output of the forget gate, indicating how many cell states the network retains, W if ,b if is the forget gate and the input x t The relevant weights and biases as well as the forget gate and the previous hidden state h t-1 The associated weights and biases;
[0061] By updating the cell state, calculate the candidate value g at the current moment t , and update the cell state according to the output of the input gate and the forget gate. The specific expression is:
[0062]
[0063] Among them, g t is the candidate value of the cell state at the current moment, c t is the updated cell state, tanh is the hyperbolic tangent activation function, which maps the input value to between -1 and 1, and ⊙ is the element-by-element multiplication;
[0064] Moreover, the output gate determines how much information about the cell state is contained in the implicit state at the current moment. The specific expression is:
[0065]
[0066] in, is the output of the output gate, indicating the fitting result of the neural network, W iy ,b iy is the output gate and input x t The associated weights and biases, W hy ,b hy is the output gate and the implicit state h at the previous moment t-1 The associated weights and biases;
[0067] The mean square error is used as the loss function of the neural network, and its specific expression is:
[0068]
[0069] Where N is the number of samples, is the fitting output of the neural network model of the designed trailing edge flap, y i is the vibration load of the actual data;
[0070] B: Design of robust controller based on immersion and invariance;
[0071] From A1 and A2, we know that the vibration model of a helicopter with trailing edge flaps is a multi-input and multi-output model, and there is coupling between the channels. To facilitate the subsequent controller design, the method proposed in this patent regards the coupling between different channels, the internal uncertainty of the system, and the external disturbance as the overall disturbance of the system, and observes it through a finite time expanded state observer and compensates it through a controller. This approach can regard the original six-input and six-output model as a model of six single-input and single-output combinations, and realize equivalent decoupling control;
[0072] Assume that the input is the trailing edge flap deflection angle N-1 / (r·min -1 )cos amplitude η (N-1)ct The output of the single-input single-output circuit is the hub vertical force load N / (r·min -1 )cos amplitude, the specific expression of the constructed observer system is:
[0073]
[0074] Where y represents the output F zct The actual output value of Indicates the channel output F zct The observed values of and its derivatives, Represents the observed value of the total disturbance in this channel, L = [L1 L2 L3] T represents the observer gain matrix, b0 represents the estimated value of the control input gain in this loop;
[0075] And sgn v (x) is represented by |x| v sign(x), where represents the symbolic function, λ i =1+iλ represents the adjustable gain, i=1,2,3;
[0076] Based on the finite time extended state observer, the immersion and invariance control law is designed to immerse the controlled model into a selected low-dimensional system to keep the manifold invariance and attractivity, achieve fast and stable convergence of the entire control system, and further improve the robustness of the control system.
[0077] Select a low-order stable target system as:
[0078]
[0079] Among them, α(·) is the functional relationship of the selected target, and the target system has an asymptotically stable equilibrium point ξ * ;
[0080] Immerse the original system into the selected target system and design the immersion mapping between the target system and the original system. The specific expression is:
[0081]
[0082] Where π(·) represents the mapping relationship between the state variables of the target system and the original system;
[0083] Select the following formula and substitute it into formula (12):
[0084] π1(ξ)=ξ (13)
[0085] Simplifying the obtained expression, we get the following expression:
[0086]
[0087] In order to maintain the manifold invariance, it is designed as follows:
[0088]
[0089] In order to ensure that the designed manifold is attractive and the trajectory is bounded during the control process, z is defined as an implicit manifold expression, and the control input ψ(x,z) is selected as follows:
[0090]
[0091] Substituting equation (15) into equation (16), we can simplify the equation to obtain the following expression:
[0092]
[0093] Among them, k z is an adjustable parameter. After the above processing, the relationship between the state variables of the original system is expressed as:
[0094]
[0095] Taking coordinate transformation, equation (18) is:
[0096]
[0097] Then, formula (18) is converted to:
[0098]
[0099] Moreover, the comprehensive disturbance observed by the finite-time extended state observer is is a bounded variable. From formula (20), we know that k z When >1, the variables z and γ are convergent and satisfy the following equation:
[0100]
[0101] Therefore, the functional relationship α(·) of the selected target is designed as:
[0102]
[0103] where k l ,k m ,k e are all positive numbers, that is, It is bounded;
[0104] In formula (20), The proof that is bounded is:
[0105] Select the Lyapunov function as:
[0106]
[0107] The following expression is obtained by derivation of formula (23):
[0108]
[0109] The synthetic disturbance observed by the finite-time extended state observer is is a bounded variable, that is h represents a positive constant;
[0110] Then there exists a positive number ε that satisfies the following expression:
[0111]
[0112] Then, formula (24) is simplified to:
[0113]
[0114] Solving equation (26) yields:
[0115]
[0116] Among them, M ≥ h, which means a positive number not less than the upper bound of the comprehensive disturbance, then the selected function V satisfies the Lyapunov stability principle, V is bounded, and the state is obtained γ and z are bounded variables, and the control law design satisfies the immersion and invariance control principles. The control system is closed-loop stable.
[0117] Then the control law u0 is expressed as:
[0118]
[0119] On this basis, the comprehensive disturbance and observer control gain are compensated. Therefore, the expression of the final control law u is:
[0120]
[0121] The final control law is extended to the remaining five equivalent single-input single-output loops to achieve decoupling control of the multi-input multi-output dynamic vibration model. However, the system performance is not very sensitive to the parameter k. l ,k m ,k z The value of is very sensitive, especially for multi-input multi-output models, the adjustment of parameters becomes very challenging;
[0122] C: Design a parameter intelligent optimization method based on reinforcement learning;
[0123] Aiming at the parameter setting problem of the robust controller, this section designs an intelligent optimization method based on A-SAC. Firstly, combined with the vibration control background, the parameter adjustment problem in equation (29) is transformed into a Markov decision process. In order to improve the performance of the SAC algorithm, the stability of the real-time parameter adjustment process and the efficiency of sample learning are considered. The A-SAC algorithm including priority experience fusion, assignment network and gradient reversal is designed. Through the intelligent optimization of sensitive parameters in the robust controller, the vibration control effect of the helicopter during dynamic flight is guaranteed, and the Q network is determined and updated.
[0124] In order to construct the Markov decision process, for the problem of robust controller parameter adjustment, the vector s t It is defined as the state of the Markov decision process at time t. The specific expression is:
[0125]
[0126] Where dY represents the differential of Y, which represents the output change rate of the vibration model, and dU t Indicates U t The differential of represents the rate of change of the trailing edge flap deflection angle;
[0127] For the helicopter rotor vibration model with trailing edge flaps in A, the harmonic components calculated by the controller will act on the rotor system through the harmonic synthesis module to achieve vibration control, and the vector a t It is defined as the action of the Markov decision process at time t. The specific expression is:
[0128]
[0129] Where K l , K m , K z Represents the sensitive parameters of the designed robust controller in B. The above 24 parameters are the intermediate quantities of the robust controller, which can greatly affect the control effect of the robust controller. In order to meet the system stability, K l , K m , K z A certain range of motion must be met;
[0130] For the vibration control problem of the helicopter, a reward function is set. The reward function r(s t ,a t ) is defined as:
[0131] r(s t ,a t )=-|Y t T |Q|Y t |-dY t T Q d dY t -dU t T R d Ud t (32)
[0132] Where Q, Q d and R d are positive definite matrices respectively. The reward function takes into account the vibration output, the rate of change of the vibration output, and the rate of change of the trailing edge flap, and calculates them through Q, Q d and R d Adjust the weight;
[0133] Based on the Markov decision process, the robust controller parameter tuning problem is transformed into a reinforcement learning search problem in a continuous action space, and the A-SAC algorithm is designed.
[0134] By analyzing the vibration problem of the helicopter in the maneuvering state, we can know that there are two characteristics when the helicopter changes speed. The first is that the flight state has a certain continuity, that is, it takes a certain amount of time and is continuous to switch from one flight state to another. This also means that in the process of experience learning, the reinforcement learning algorithm needs to take into account the timing and long-term impact of the task. Although for some continuous state problems, especially in the continuous action space, short-term rewards may not fully capture the long-term impact and effect of the task, therefore, the concept of experience tuple is added, and the e-th experience tuple is defined as:
[0135]
[0136] in, represents the e-th experience tuple, ρ e Represents the total return of the e-th tuple of experience tuples, calculated as:
[0137]
[0138] Therefore, for each tuple ρ e represents the sum of the rewards in the entire tuple, which is obtained by the definition of the total reward of the tuple:
[0139] ρ e The larger it is, the greater the learning value of the current experience tuple is;
[0140] In order to improve the efficiency of experience sample learning, l small batches of samples B1...B are uniformly sampled from the experience sample pool each time. l , where each batch contains k experiences, and the batch similarity ζ is defined as:
[0141]
[0142] where v B1 ={ρ1,...,ρ k}1,v Bl ={ρ1,...,ρ k} l Indicates the total return of experience contained in the current batch, represents the product of the Euclidean norm of the corresponding vectors, which is obtained from the definition of batch similarity ζ:
[0143] When ζ is large and close to 1, the similarity of the selected batch is high, and the sample priority is sorted for sample learning efficiency. When ζ is small, it means that the similarity of the selected batch is low:
[0144] In order to ensure the consistency of batch size, a random sample is selected from l small batches. Specifically, the selected offline sample learning batch C is defined as:
[0145]
[0146] in, Denotes the total return ρ i ≥ρ j C′=B1...∪B l represents the collection of l small batches of samples merged, C″=C′\C prior represents the set after removing the priority samples from C′, ζ th Represents the similarity threshold, which is a constant;
[0147] The above has completed the selection of existing samples in the experience pool. In order to ensure the utilization rate of new samples, when the new sample q t When it appears, a sample y is randomly removed from the existing batch and a new sample q is added t , specifically, the learning batch M after adding new samples is:
[0148] M=(C\{y})∪{q t} (37)
[0149] Through the above formula, the selection of experience samples is determined;
[0150] For the A-SAC algorithm, the online Q network J Q The gradient update method of (θ) is:
[0151]
[0152] in represents the training target J Q (θ) is the direction of gradient descent, Indicates Q θ The gradient of the parameter θ, Q θ (s t ,a t ) means in state s t When taking a t The Q value of γ represents the discount factor as a constant, which is used to measure the importance of future rewards. Indicates that the target Q network is in state s t+1 Take action a t+1The Q value at this time, α is the temperature factor, which is a hyperparameter used to weigh the exploration and utilization, log(π φ (a t+1 ∣s t+1 )) means in state s t+1 Take action a t+1 The logarithmic strategy probability of φ It is a strategic network;
[0153] Parameters of the target Q network By soft updating, we can get from the online Q network θ:
[0154]
[0155] Among them, τ is a constant, is the soft update factor, and the strategy network J π The gradient update method of (φ) is:
[0156]
[0157] in represents the gradient estimate of the policy gradient, indicating that the goal is to maximize the expected reward, Indicates that in the current strategy π φ Next, the gradient of the logarithm of the probability of the currently selected action is, Indicates about action a t The gradient of the Q function, represents the gradient of the neural network transformation parameter φ, is the input noise vector, which is transformed by the neural network to generate actions;
[0158] The gradient update method of setting the temperature factor α is The target entropy value is H, which enables adaptive adjustment. The specific expression is:
[0159]
[0160] in, is the gradient of the temperature factor, -αlogπ t (a t ∣s t ) is the entropy term of the logarithm of the policy probability, is the policy entropy in the penalty objective function.
[0161] For ease of understanding, the pseudo code flow of the A-SAC algorithm is given below:
[0162]
[0163]
[0164] In the above, in the third step, the active vibration control problem of helicopter in dynamic flight environment is designed based on A-SAC algorithm, and the sampling strategy, online Q network, target Q network, strategy network and temperature factor update method as well as the specific network convergence iterative process are given.
[0165] Simulation setting: In order to verify the effectiveness of the dynamic helicopter vibration reduction method with intelligent parameter self-adjustment proposed in this invention, the helicopter vibration reduction system was first integrated and designed in Matlab2019b and python3.6, and a simulation experiment was carried out. The main simulation process is as follows:
[0166] (1) Parameter setting
[0167] Parameter settings of the helicopter vibration model with trailing edge flaps: Number of helicopter rotor blades N = 4, State 1: Ω = 720 / r·min -1 , μ=0.1, number of samples 4500, state 2: Ω=960 / r·min -1 , μ = 0.2, the number of samples is 4500, and the 3-fold cross validation method is used. A total of 9000 samples are divided into 3 groups, each containing 3000 samples.
[0168] 1) The structure and related parameters of the LSTM neural network are:
[0169]
[0170] 2) Robust controller parameter setting:
[0171]
[0172]
[0173] 3) Parameter setting of intelligent optimization method for reinforcement learning, where all networks refer to target Q network, online Q network and policy network. During the initialization process, all values of target Q network, online Q network, policy network and dynamic security function are randomly initialized.
[0174]
[0175] (2) Results Analysis Figure 2 It indicates the result of verifying the performance and stability of the fitted model using the 3-fold cross-validation test method. Figure 2 It can be seen that the test set fitting accuracy is defined as 1-RMS relative error. In the three rounds of training, the test set fitting accuracy is 98.23%, 97.91% and 98.42% respectively, and the average accuracy is 98.10%. This shows that the fitting model can better reflect the vibration conditions of different flight states. Figure 3The difference between the average rewards of TwinDelayedDDPG (TD3), SAC and the A-SAC algorithm proposed in this patent is shown. The average reward of the last 100 trainings before the end of each round is used as the final round average reward value. Among them, the SAC algorithm does not include the sampling strategy, and the TD3 algorithm does not include entropy regularization and the corresponding temperature factor. In addition, other network and hyperparameter settings are the same as the A-SAC algorithm. From Figure 3 It can be seen that in the initial training stage, the reinforcement learning agent faces difficulties in parameter search. As the number of training rounds increases, the three algorithms gradually learn better intelligent parameter adjustment strategies, but they still differ in performance. Specifically, the A-SAC algorithm proposed in this patent converges fastest in terms of the average sum of rewards and eventually stabilizes at a higher value. The SAC algorithm also achieves good performance at about 1000 rounds. In contrast, the TD3 algorithm has a longer convergence time and a lower reward value. In order to verify the superiority of the controller designed in this paper, a simulation experiment is designed to compare H ∞ The control performance of the control method, Active Disturbance Rejection Control (ADRC) control method and intelligent parameter self-adjustment control method is evaluated. The helicopter rotor response model is designed to switch from flight state 1 to state when the running time is 5s. Figure 4-6 represents the vertical force F in the helicopter dynamic vibration model under three different vibration control methods zt , rolling moment M xt and pitch moment M yt The vibration waveform from Figure 4-6 It can be seen that for state 1, the method proposed in this patent has the fastest convergence speed, and the vertical force F can be achieved in about 3.5s. zt , rolling moment M xt and pitch moment M yt The three-way vibration load suppression effect is more than 90%, showing excellent control performance. At the 5th second, the model state switches to state 2, H ∞ The control effect of the method and ADRC method is not good, which is manifested by the continuous oscillation or divergence of the loads in the three directions. This shows that the H ∞ The ADRC method can no longer achieve vibration reduction control for the changed model, and the robustness of the method itself cannot meet the vibration reduction requirements of helicopter dynamic flight. However, after the state is switched, the vertical force F zt Vibration suppression is achieved within 2 seconds after switching, and the hub rolling moment M xt and pitch moment M yt Vibration suppression is also achieved within 5 seconds, achieving a comprehensive vibration reduction effect of more than 80%.
[0176] This application has the following advantages:
[0177] In order to solve the problem of helicopter vibration control in maneuvering environment, an LSTM neural network was designed to fit the vibration model of helicopter with trailing edge flaps. LSTM has a certain generalization ability for vibration data in different environments, which helps to capture the characteristics of different flight states during training. At the same time, due to its nonlinear activation function and gating mechanism, LSTM can more flexibly fit the nonlinear relationship of multiple flight states. In addition, the reinforcement learning algorithm has a certain degree of adaptability and can be adjusted according to the nonlinear characteristics of the environment. By combining with a robust controller, the controller can better adapt to nonlinear changes and improve the adaptability of the system.
[0178] Aiming at the multi-input and multi-output coupling and internal and external interference problems of the helicopter vibration model, a controller combining a finite-time extended state observer with an immersion and invariant control law is designed. The finite-time extended state observer can observe the total disturbance of the system, including the mutual influence between channels and the internal and external disturbances of the system, and compensate for it through the feedback control law, thereby realizing decoupling control between channels and improving the robustness of the system. The immersion and invariant control law can immerse the complex controlled model into a selected low-dimensional system, and achieve rapid and stable convergence of the entire control system by maintaining the invariance and attractivity of the manifold, simplifying the controller design process and further improving the robustness of the control system.
[0179] The designed A-SAC algorithm can intelligently adjust the controller parameters. In addition, the samples are enhanced according to the priority sorting scheme of the experience tuples and the latest online policy experience. Even without any special data structure, the utilization efficiency of the samples can be guaranteed. At the same time, through continuous interaction with the environment in actual operation, all network weights including the policy network, online Q network, target Q network, temperature factor and dynamic safety function are included. Compared with the traditional method that requires cumbersome model-specific parameter adjustment process, this method automatically adjusts the network weights and gets rid of the problem of manual parameter adjustment, thereby significantly simplifying the debugging process. In addition, due to the universality of this intelligent parameter adjustment framework, it is not specifically for a specific model, so it can easily adapt to different helicopter models or field environments and has stronger adaptability.
[0180] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.
Claims
1. A dynamic helicopter vibration reduction method based on intelligent parameter self-adjustment, It is characterized in that The following steps are involved: A: Establish a vibration model of a helicopter with trailing edge flaps; In step A, there are coordinate system conversion and hub filtering factors in the transmission process of helicopter vibration, which causes its vibration to present typical harmonic order characteristics; Define the speed Ω as 1 / (r·min -1 ), for the N blades of a helicopter, in the rotating coordinate system, the -1 )、N / (r·min -1 ) and N+1 / (r·min -1 )-order trailing edge flap harmonics to generate additional aerodynamic forces and moments to reduce hub vibration loads in a non-rotating coordinate system; The steps include: A1: Harmonic component U of the trailing edge flap control angle t Perform harmonic modulation to obtain the control angle η t ; A2: The hub vibration waveform is fitted through the established neural network model, and the fitted waveform is consistent with the uncontrolled vibration load D t They cancel each other out, and the vibration harmonic components under the current flight state are obtained through harmonic decomposition; B: Design of robust controller based on immersion and invariance; From A1 and A2, we know that the vibration model of the helicopter with trailing edge flaps is a multi-input multi-output model, and there is coupling influence between each channel. The original six-input six-output model is regarded as a model of six single-input single-output combinations to achieve equivalent decoupling control. Assume that the input is the trailing edge flap deflection angle N-1 / (r·min -1 )cos amplitude η (N-1)ct The output of the single-input single-output circuit is the hub vertical force load N / (r·min -1 )cos amplitude, the specific expression of the constructed observer system is: Where y represents the output F zct The actual output value of Indicates the channel output F zct The observed values of and its derivatives, represents the observed value of the total disturbance in this channel, [L 1 L 2 L 3 ] T Represents the observer gain matrix, represented by L, b 0 represents the estimated value of the control input gain in this loop, e 1 It represents the difference between the output value observed by the observer and the actual output value. The state quantities The derivative of , u represents the output of the original system; And sgn v (x) is represented by |x| v sign(x), where represents the symbolic function, λ i =1+iλ represents the adjustable gain, Based on the finite time extended state observer, the immersion and invariance control law is designed to immerse the controlled model into a selected low-dimensional system to keep the manifold invariance and attractivity, thus achieving fast and stable convergence of the entire control system. Select a low-order stable target system as: Among them, α(·) is the functional relationship of the selected target, and the target system has an asymptotically stable equilibrium point ξ * , ξ is the state variable of the target system, Then it is the derivative of the state quantity; Immerse the original system into the selected target system and design the immersion mapping between the target system and the original system. The specific expression is: Where π(·) represents the mapping relationship between the state variables of the target system and the original system, π 1 (ξ) represents the target system state variable ξ and the original system state variable The mapping relationship between 2 (ξ) represents the target system state variable ξ and the original system state variable The mapping relationship between them; Select the following formula and substitute it into formula (12): p 1 (ξ)=ξ (13) π 1 (ξ) represents the target system state variable ξ and the original system state variable The mapping relationship between them; Simplifying the obtained expression, we get the following expression: α(ξ) represents the state variable ξ of the target system and its derivative The mapping relationship between them, c(π(ξ)) represents the mapping relationship between the target system state variable ξ and the original system output u, that is, u=c(π(ξ)); In order to maintain the manifold invariance, it is designed as follows: Represents the designed constraint function, that is, the state variables of the original system always satisfy the constraint function expression; In order to ensure that the designed manifold is attractive and the trajectory is bounded during the control process, z is defined as an implicit manifold expression, and the control input ψ(x,z) is selected as follows: Substituting equation (15) into equation (16), we can simplify the equation to obtain the following expression: Among them, k z is an adjustable parameter. After the above processing, the relationship between the state variables of the original system is expressed as: Taking coordinate transformation, equation (18) is: Then, formula (18) is converted to: Moreover, the comprehensive disturbance observed by the finite-time extended state observer is is a bounded variable. From formula (20), we know that k z When >1, the variables z and γ are convergent and satisfy the following equation: Therefore, the functional relationship α(·) of the selected target is designed as: where k l ,k m ,k e are all positive numbers, that is, It is bounded; In the formula (20), The proof that is bounded is: Select the Lyapunov function as: The following expression is obtained by derivation of formula (23): The synthetic disturbance observed by the finite-time extended state observer is is a bounded variable, that is h represents a positive constant; Then there exists a positive number ε that satisfies the following expression: Then, formula (24) is simplified to: Solving equation (26) yields: Among them, M ≥ h, which means a positive number not less than the upper bound of the comprehensive disturbance, then the selected function V satisfies the Lyapunov stability principle, V is bounded, and the state is obtained All are bounded variables, the control law design satisfies the immersion and invariance control principles, and the control system is closed-loop stable; Then the control law u 0 The expression is: On this basis, the comprehensive disturbance and observer control gain are compensated. Therefore, the expression of the final control law u is: The final control law is extended to the remaining five equivalent single-input single-output loops to achieve decoupling control of the multi-input multi-output dynamic vibration model. C: Design a parameter intelligent optimization method based on reinforcement learning; In the step C, the parameter adjustment problem in formula (29) is converted into a Markov decision process, and an A-SAC algorithm including priority experience fusion, assignment network and gradient reversal is designed to determine and update the Q network; In order to construct the Markov decision process, for the problem of robust controller parameter adjustment, the vector s t It is defined as the state of the Markov decision process at time t. The specific expression is: Where dY represents the differential of Y, which represents the output change rate of the vibration model, and dU t Indicates U t The differential of represents the rate of change of the trailing edge flap deflection angle, and defines Y t =[F zct F zst M xct M xst M yct M yst ] T is the output of the vibration model, where F zct 、F zst 、M xct 、M xst 、M yct and M yst Represents the vertical force, rolling moment and pitching moment in N / (r·min -1 )-order cos and sin components; For the helicopter rotor vibration model with trailing edge flaps in A, the harmonic components calculated by the controller will act on the rotor system through the harmonic synthesis module to achieve vibration control, and the vector a t It is defined as the action of the Markov decision process at time t. The specific expression is: Where K l , K m , K z represents the sensitive parameters of the designed robust controller in B. In order to meet the system stability, K l , K m , K z A certain range of motion must be met; For the vibration control problem of the helicopter, a reward function is set, and the reward function r(s t ,a t ) is defined as: r( s t ,a t )=-Y t T QY t |-dY t T Q d of t -dU t T R d dU t (32) Define Y t =[F zct F zst M xct M xst M yct M yst ] T is the output of the vibration model, where F zct 、F zst 、M xct 、M xst 、M yct and M yst Represents the vertical force, rolling moment and pitching moment in N / (r·min -1 ) order cosine and sin components, Y t T Represents Y t The transpose of dU t Indicates U t The differential of represents the rate of change of the trailing edge flap deflection angle, It's U t The transpose of express The differential of Where Q, Q d and R d are positive definite matrices respectively. The reward function takes into account the vibration output, the rate of change of the vibration output, and the rate of change of the trailing edge flap, and calculates them through Q, Q d and R d Adjust the weight; Based on the Markov decision process, the robust controller parameter tuning problem is transformed into a reinforcement learning search problem in a continuous action space, and the A-SAC algorithm is designed. Add the concept of experience tuple and define the e-th experience tuple as: in, represents the e-th experience tuple, ρ e represents the total return of the e-th tuple of experience tuples, represents the state s at time t in the e-th experience tuple, represents the action a at time t in the e-th experience tuple, Represents the state s at time t+1 in the e-th experience tuple, calculated as: Therefore, for each tuple ρ e represents the sum of the rewards in the entire tuple, which is obtained by the definition of the total reward of the tuple: ρ e The larger it is, the greater the learning value of the current experience tuple is; In order to improve the efficiency of experience sample learning, l small batches of samples B are uniformly sampled from the experience sample pool each time. 1 ...B l , where each batch contains k experiences, and the batch similarity ζ is defined as: in Indicates the total return of experience contained in the current batch, represents the product of the Euclidean norm of the corresponding vectors, which is obtained from the definition of batch similarity ζ: When ζ is large and close to 1, the similarity of the selected batch is high, and the sample priority is sorted for sample learning efficiency. When ζ is small, it means that the similarity of the selected batch is low: In order to ensure the consistency of batch size, a random sample is selected from l small batches. Specifically, the selected offline sample learning batch C is defined as: in, Denotes the total return ρ i ≥ρ j C′=B 1 .....∪B l represents the collection of l small batches of samples merged, C″=C′\C prior represents the set after removing the priority samples from C′, ζ th Represents the similarity threshold, which is a constant; The above has completed the selection of existing samples in the experience pool. In order to ensure the utilization rate of new samples, when the new sample q t When it appears, a sample y is randomly removed from the existing batch and a new sample q is added t , specifically, the learning batch M after adding new samples is: M=(C\{y})∪{q t } (37) Through the above formula, the selection of experience samples is determined; For the A-SAC algorithm, the online Q network J Q The gradient update method of (θ) is: in represents the training target J Q (θ) is the direction of gradient descent, Indicates Q θ The gradient of the parameter θ, Q θ (s t ,a t ) means in state s t When taking a t The Q value of γ represents the discount factor as a constant, which is used to measure the importance of future rewards. Indicates that the target Q network is in state s t+1 Take action a t+1 The Q value at this time, α is the temperature factor, which is a hyperparameter used to weigh the exploration and utilization, log(π φ (a t+1 ∣s t+1 )) means in state s t+1 Take action a t+1 The logarithmic strategy probability of φ It is a strategic network; Parameters of the target Q network By soft updating, we can get from the online Q network θ: Among them, τ is a constant, is the soft update factor, and the strategy network J π The gradient update method of (φ) is: in represents the gradient estimate of the policy gradient, indicating that the goal is to maximize the expected reward, Indicates that in the current strategy π φ Next, the gradient of the logarithm of the probability of the currently selected action is, Indicates about action a t The gradient of the Q function, represents the gradient of the neural network transformation parameter φ, is the input noise vector, which is transformed by the neural network to generate actions; The gradient update method of setting the temperature factor α is The target entropy value is To achieve adaptive adjustment, the specific expression is: in, is the gradient of the temperature factor, -αlogπ t (a t ∣s t ) is the entropy term of the logarithm of the policy probability, is the policy entropy in the penalty objective function.
2. A dynamic helicopter vibration reduction method based on intelligent parameter self-adjustment according to claim 1, Features: In step A1, in a steady state, the harmonic modulation process is expressed as: or t =U t ·[cos((N-1)Ωt sin((N-1)Ωt (1) cos(NΩt) sin(NΩt) cos((N+1)Ωt) sin((N+1)Ωt] T Among them U t =[η (N-1)ct η (N-1)st η Nct η Nst η (N+1)ct η (N+1)st ] represents the trailing edge flap deflection angle N-1 / (r·min -1 )、N / (r·min -1 ) and N+1 / (r·min -1 )-order cos and sin components; And the harmonic decomposition process is expressed as: F zt =F zct cos(NΩt)+F zst sin(NΩt)+F z0 (2) M xt =M xct cos(NΩt)+M xst sin(NΩt)+M x0 M yt =M yct cos(NΩt)+M yst sin(NΩt)+M y0 Among them, F zct 、F zst 、M xct 、M xst 、M yct and M yst Represents the vertical force, rolling moment and pitching moment in N / (r·min -1 )-order cos and sin components; Define Y t =[F zct F zst M xct M xst M yct M yst ] T is the output of the vibration model, F z0 、M x0 and M y0 Represents the base vertical force, rolling moment, and pitching moment loads, which are generated by the flight controls and usually remain constant in steady-state conditions and are independent of vibration control.
3. A dynamic helicopter vibration reduction method based on intelligent parameter self-adjustment according to claim 1, Features: In step A2, the uncontrolled vibration load D t The vibration load generated when no trailing edge flap control is applied is: IT t =l ct cos(NΩt)+l st sin(NΩt) (3) Among them l ct and l st Respectively represent L t The amplitudes of the cosine and sinine components are obtained, and finally the vibration model of the helicopter with trailing edge flaps and the input-output relationship are expressed as follows: Among them [F zct F zst M xct M xst M yct M yst ] T Represents the vertical force, rolling moment and pitching moment in N / (r·min -1 )-order cosine and sin components, G(s) represents the transfer function form for the control model, and Wig is the input x t To reset gate g r The weight matrix of ig is the reset gate g r Bias vector for the input side; W hg is the previous hidden state h t-1 To reset gate g r The weight matrix of hg is the reset gate g r The bias vector of , used for the hidden state side; Where [η (N-1)ct η (N-1)st η Nct η Nst η (N+1)ct η (N+1)st ] T Indicates the trailing edge flap deflection angle N-1 / (r·min -1 )、N / (r·min -1 ) and N+1 / (r·min -1 ) order cosine and sin components, [d zct d zst d xct d xst d yct d yst ] T represents the cosine and sin components of the external disturbance on the vertical force, rolling moment and pitching moment load at the current time t, [l zct l zst l xct l xst l yct l yst ] T Represents the cosine and sinine components of the vertical force, rolling moment, and pitching moment loads measured in the uncontrolled state of the experimental helicopter The long short-term memory neural network is used to calculate the speed Ω, advance ratio μ, and control value η of the trailing edge flap from the current flight state. t To the vertical force F zt , rolling moment M xt and pitching moment M yt The input-output relationship is fitted. For the long short-term memory neural network, the input is defined as x t =[Ω μ η t ] T , the output is y t =[F zt M xt M yt ] T ; Each neuron of the LSTM neural network consists of an input gate, a forget gate, and an output gate. The input gate determines how much of the current update comes from the input x t and the information of the previous hidden state h t-1 To the cell state, the specific expression is: i t =σ(W ii x t +b ii +W hi h t-1 +b hi ) (5) Among them, i t is the output of the input gate, indicating the degree to which the network updates the cell state. σ is the Sigmoid activation function, which compresses the input value to between 0 and 1. ii ,b ii is the input gate and input x t The associated weights and biases, W hi ,b hi is the input gate and the previous hidden state h t-1 The associated weights and biases; The forget gate determines how much cell state information from the previous moment is retained at the current moment. The specific expression is: f t =σ(W if x t +b if +W hf h t-1 +b hf ) (6) Among them, f t is the output of the forget gate, indicating how many cell states the network retains, W if ,b if is the forget gate and the input x t The relevant weights and biases as well as the forget gate and the previous hidden state h t-1 The associated weights and biases; By updating the cell state, calculate the candidate value g at the current moment t , and update the cell state according to the output of the input gate and the forget gate. The specific expression is: g t =tanh(W ig x t +b ig +W hg h t-1 +b hg ) (7) c t =f t ⊙c t-1 +i t ⊙g t Among them, g t is the candidate value of the cell state at the current moment, c t is the updated cell state, tanh is the hyperbolic tangent activation function, which maps the input value to between -1 and 1, and ⊙ is the element-by-element multiplication; Moreover, the output gate determines how much information about the cell state is contained in the implicit state at the current moment. The specific expression is: in, is the output of the output gate, indicating the fitting result of the neural network, W iy ,b iy is the output gate and input x t The associated weights and biases, W hy ,b hy is the output gate and the implicit state h at the previous moment t-1 The associated weights and biases; The mean square error is used as the loss function of the neural network, and its specific expression is: Where N is the number of samples, is the fitting output of the neural network model of the designed trailing edge flap, y i is the vibration load of the actual data.
