Next Article in Journal
Reconfiguration for UAV Formation: A Novel Method Based on Modified Artificial Bee Colony Algorithm
Next Article in Special Issue
Analysis of the Impact of Structural Parameter Changes on the Overall Aerodynamic Characteristics of Ducted UAVs
Previous Article in Journal
Cooperative Standoff Target Tracking using Multiple Fixed-Wing UAVs with Input Constraints in Unknown Wind
Previous Article in Special Issue
A Modified Model-Free Adaptive Control Method for Large-Scale Morphing Unmanned Vehicles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Time-Domain Identification Method Based on Data-Driven Intelligent Correction of Aerodynamic Parameters of Fixed-Wing UAV

1
Department of Aeronautics and Astronautics, Fudan University, Shanghai 200433, China
2
Shenyang Aircraft Design & Research Institute, Shenyang 110035, China
3
School of Aeronautics and Astronautics, Dalian University of Technology, Dalian 116024, China
*
Author to whom correspondence should be addressed.
Drones 2023, 7(9), 594; https://doi.org/10.3390/drones7090594
Submission received: 14 August 2023 / Revised: 13 September 2023 / Accepted: 16 September 2023 / Published: 21 September 2023

Abstract

:
In order to overcome the influence of complex environmental disturbance factors such as nonlinear time-varying characteristics on the dynamic control performance of small fixed-wing UAVs, the nonlinear expression relationship of neural networks (NNs) is combined with the recursive least squares (RLSs) identification algorithm. This paper proposes a hybrid aerodynamic parameter identification method based on NN-RLS offline network training and online learning correction. The simulation results show that compared with the real value of the identification value obtained by this algorithm, the residual error of the moment coefficient is reduced by 69%, and the residual error of the force coefficient is reduced by 89%. Under the same identification accuracy, the identification time is shortened from the original 0.1 s to 0.01 s. Compared with traditional identification algorithms, better estimation results can be obtained. By using this algorithm to continuously update the NN model and iterate repeatedly, iterative learning for complex dynamic models can be realized, providing support for the optimization of UAV control schemes.

1. Introduction

During high altitude and low-speed flight, small fixed-wing UAVs may face a greater measurement noise environment than large aircraft because their smaller weight and size lead to faster response dynamics and are more sensitive to environmental factors such as wind field interference. Moreover, practical factors such as sensor cost control can also easily introduce additional measurement noise. These responses change as disturbances cause changes in the dynamic parameters of the UAV system, increasing the difficulty of controller design [1,2,3]. Therefore, in the process of flight, if the aerodynamic characteristics and parameters of the UAV can be identified in real time, not only can the robustness and adaptability of the system be enhanced, but also the control accuracy can be effectively improved [4,5].
Traditional identification algorithms are mostly used for models with strong linearization. When the model is highly nonlinear or time-varying quickly, it is necessary to add high-order nonlinear terms. Since the model order of aerodynamic parameters is higher, the curves drawn by it may be more complex or have severe fluctuations and jumps, which will seriously affect the identification results of aerodynamic parameters. In this paper, the neural network can be used to fit any nonlinear function, and the NN-RLS combination identification algorithm is proposed. NN-RLS can not only train the network model offline but also use historical flight data to correct the model. It is also possible to directly use the trained network to quickly adjust the parameters when online so as to ensure the speed of parameter estimation while ensuring the accuracy of parameter estimation. In recent years, some scholars have conducted research on the identification algorithm.
In the literature [6], Jiang’s method is only suitable for simple linear models and cannot be directly used for complex nonlinear motion models. However, the intelligent identification algorithm based on NN can fit nonlinear functions with arbitrary accuracy. In the literature [7,8], Yang and Zhang combined the arbitrary approximation characteristics of the backpropagation NN to conduct offline training of aerodynamic parameters. They used the results of NN training to identify the aircraft rudder effect parameters in real-time. However, compared with the research method of this article, without the process of correcting the original NN with real flight test data, the goal of lifelong learning cannot be achieved. In the literature [9], Li proposed to use the least squares support vector machine (LS-SVM) to identify the nonlinear dynamical system when the aircraft is flying at a high angle of attack and use the method of network search and cross-validation to select the parameters of the support vector machine. The dynamic reference model of aircraft with a high angle of attack is established. However, compared with the research method of this article, the LS-SVM network takes a long time to learn. Additionally, it is difficult to realize online real-time identification due to the low speed of the support vector machine. In the literature [10], the NN model based on the Gauss-based function is established by Wang to determine the structure and the input and output relations of the network. Then, the K-means algorithm is used to train the RBF to obtain the parameters of the network model, which is used to replace the dynamic model of the aircraft. Compared with the research method of this article, Wang’s method focuses on using an RBF neural network to replace the aircraft dynamics model and does not extend to fitting aerodynamic parameters. In the literature [11], a sample expansion combined with a support vector machine and the online fast correction method for NN parameters is proposed by Pu. However, his method needs to use the SVM method for data expansion during the simulation process to reach an order of magnitude suitable for neural network training, which introduces data errors to a certain extent. In the literature [12], the selection of the lateral–directional excitation signal and the design method of its parameters are established by Tai based on the requirements for the identifiability of the aerodynamic derivatives. Moreover, a step-by-step method for the identification of aerodynamic force and moment derivatives is established. This method simplifies the solution method for aerodynamic force and aerodynamic moment step by step. It is only suitable for offline simulation and does not have the characteristics of online identification. The algorithmic identification takes a long time.
The intelligent identification algorithm of nonlinear aerodynamic parameters is based on the data-driven multi-level deep learning network proposed in this paper. This approach uses the characteristics of the deep learning network to fit the nonlinear function with arbitrary precision and realizes the modeling of the nonlinear aerodynamic parameter model, which has stronger nonlinearity. The modeling ability can also learn the potential laws and characteristics in the input data and has better generalization ability [13,14]. In addition, the deep learning network performs model training based on the optimization algorithm of gradient descent, which can improve computational efficiency through batch calculation [15]. Furthermore, this approach accounts for the deviation between the real aerodynamic data and the nominal aerodynamic data. The multi-level deep learning network is used to identify the deviation incremental compensation of the aerodynamic parameters so as to realize the accurate correction of the original aerodynamic parameters [16]. The multi-level deep network can realize the weight matrix update iteration of the offline network driven by historical flight test data, which can adapt to different dataset characteristics and changes, better adapt to complex systems, and realize lifelong learning.

2. Offline Training of Aerodynamic Force and Moment NN Model

Since the NN was proposed, it has achieved great development and application in pattern recognition, perceptual learning, model building, and intelligent control. NN can approximate the input and output characteristics of nonlinear dynamical systems with arbitrary precision and is an effective tool for the identification and modeling of nonlinear dynamical systems. Using it as a nonlinear dynamical system identification model can better solve the identification modeling and problems of complex nonlinear dynamical systems. At present, the most widely used and relatively mature NN is the backpropagation NN, which is a typical feed-forward network in the NN. This is especially suitable for dealing with the nonlinearity, uncertainty, and approximation of the system or structural characteristics of the system, identifying functions, etc.
As shown in Figure 1, the whole algorithm is divided into three stages. In the offline network training stage, the flight state data set of the fixed-wing UAV is obtained through the CFD simulation experiment. The multivariate orthogonal time-domain identification method is used to optimize the reference configuration. The offline NN is trained on the basis of the benchmark dynamic model. The mapping expression of the flight state data to the force coefficient and moment coefficient is established through the NN. The network takes the real-time flight status data as the input and the force and moment coefficients as the output. In the online compensation stage, online learning captures the time-varying deviation of the network model through the nonlinear recursive orthogonal time-domain identification method. In the offline correction stage, combined with historical flight data, a data-driven iterative correction method for offline learning network weights is carried out. With the accumulation of UAV flight test data, the mapping value of the flight state data to the force coefficient and moment coefficient in the offline NN is closer to the real value.
ANSYS Fluent in Pointwise V18.3 R1 software is used to obtain the aerodynamic data of the UAV model. The main operation process is as follows: First, the geometric model of the fixed-wing UAV is established using CATIA software and imported into the CFD software, and the body parameters are shown in Table 1. Second, generate a computational mesh that matches the geometric model. Then, determine the boundary conditions of the simulation area and choose an appropriate flow model. In this paper, a single-component complete gas is selected. The Euler equation is used for the fluid properties. The specific heat ratio is 1.4, the molecular weight of the gas is 2.89 × 10−2, and the initial partition number of the flow field is 5. CFD software is used to simulate the flow. Additionally, the CFD software solved the velocity, pressure, temperature, and other parameters of the flow field according to the selected flow model, grid, and boundary conditions. We extracted the required aerodynamic data, such as lift coefficient and pitching moment coefficient, from the simulation results. The UAV model established by CATIA software is shown in Figure 2, and the CFD simulation process is shown in Figure 3.
The process of training the deep learning network is a process of continuously correcting the network output and the expected output. This adjustment is achieved by backpropagating the error signal from the output end and continuously correcting the weighting coefficients during the propagation process until the output at the output end and the expected value approach to a certain extent. After the adjustment of the network weight coefficients is completed for the sample, it is sent to another sample mode for similar learning until the training and learning of all samples are completed. Finally, the dynamic NN model is obtained [17].
The NN model is shown in the figure, and the given training set x = [ x 1 , x 2 , , x n ] T is the input value of the NN; z = [ z 1 , z 2 , , z n ] T is the output value of the NN. The NN can be regarded as a nonlinear function, and its input value and predicted value can be regarded as the independent variable and dependent variable of the function, respectively. When the number of input nodes is n and the number of output nodes is l , the NN is equivalent to the functional mapping relationship from n independent variables to l dependent variables.
For the output layer, its expression is:
z = g ( W T y + B 0 )
In the formula, g is the activation function; y is the neuron in the hidden layer, y = [ y 1 , y 2 , , y m ] T ; W is the weight matrix from the hidden layer to the output layer; W j k represents the connection weight between the j neuron in the hidden layer and the k neuron in the input layer, then W can be written as:
W = [ w 11 w 12 w 1 l w 21 w 22 w 2 l w m 1 w m 2 w m l ]
The threshold B 0 expression is:
B 0 = [ b w 1 b w 2 b w l ] T
The output layer y can be written as:
y = f ( V T x + B 1 )
where f is the activation function; x is the neuron in the input layer, x = [ x 1 , x 2 , , x n ] T ; V is the weight matrix from the input layer to the hidden layer; and v i j represents the connection weight between the i neuron in the input layer and the j neuron in the hidden layer, can be written as:
V = [ v 11 v 12 v 1 m v 21 v 22 v 2 m v n 1 v n 2 v n m ]
The threshold B 1 expression is:
B 1 = [ b v 1 b v 2 b v m ] T
The above feed-forward NN’s expression is:
z = g ( W T f ( V T x + B 1 ) + B 0 )
The activation functions f and g are selected as tanh function and linear function respectively. f can be expressed as:
f ( x ) = 1 e x 1 + e x
The backpropagation of the error is to first calculate the output error of each layer of neurons from the output layer by layer. After calculating these errors, the weight and threshold of each layer are adjusted according to the error of the objective function so that the final output of the modified network can be close to the expected value. In this section, the objective function of the NN is proposed to be measured by the sum of mean square errors [18].
For a training example, ( x k , z k ) , the mean square error is:
E k = 1 2 j = 1 l ( z ^ j k z j k ) 2
Then the total error for all training examples is:
M S E = 1 2 p k = 1 p j = 1 l ( z ^ j k z j k ) 2
where p is the number of training samples.
The training method of the NN in this project intends to adopt the L–M training method. The L–M algorithm is an improved Gauss–Newton method, and its form is as follows:
Δ x = H 1 ( x ) g ( x )
In the formula, H ( x ) is the Hessian matrix of the function; g ( x ) is the gradient. At this point, the Hessian matrix of the gradient and function can be expressed as:
{ g ( x ) = J T ( x ) e ( x ) H ( x ) = J T ( x ) J ( x ) + S ( x )
J ( x ) is the Jacobian matrix of the function:
J ( x ) = [ e 1 ( x ) x 1 e 1 ( x ) x 2 e 1 ( x ) x n e 2 ( x ) x 1 e 2 ( x ) x 2 e 2 ( x ) x n e N ( x ) x 1 e N ( x ) x 2 e N ( x ) x n ]
Through the above calculation, the L–M algorithm calculates Δ x to update x at each step by approximating the Hessian matrix [19], where Δ x is:
Δ x = [ J T ( x ) J ( x ) + μ I ] 1 J T ( x ) e ( x )
We applied this method to repeat the reverse error propagation algorithm for all data, adjust the weights and thresholds of each layer, and complete the training of the NN.

3. Dynamic Model Configuration Optimization Based on Multivariate Orthogonal Function

The multivariate orthogonal function nonlinear aerodynamic coefficient modeling based on real-time flight data needs to solve two problems: First, the structure of the model needs to be determined. This requires removing items that have little influence on the model fitting effect from a large number of nonlinear items in the candidate function pool. The minimum prediction mean square error PSE criterion can meet the above requirements. Second, structural parameters need to be identified based on real-time data. The traditional method of parameter estimation based on least squares regression will lead to an ill-conditioned regression matrix due to the linear correlation between variables, resulting in inaccurate parameter estimation.
The coefficient C j to be identified is used as the dependent variable, and the independent variables are m n-dimensional independent variables such as Mach number, angle of attack, rudder deflection angle, and flap deflection angle. A set of ordered positive integer sequences { k 1 , k 2 , , k m } is specified to obtain the candidate monomial set of independent variables, also known as regression factors:
w i = x 1 k 1 · x 2 k 2 · · x m k m , i = 1 , 2 , , n
In order to meet the conditions of the subsequent matrix orthogonal decomposition, the dimension of the initialization data here depends on the number of monomials n .
We define φ ( k ) = k 1 + k 2 + + k m as the order of the monomial [20].
k ˜ { k 1 , k 2 , , k μ 1 , k μ , k μ + 1 , , k m } k { k 1 , k 2 , , k μ 1 , k μ + 1 , k μ + 1 , , k m }
where k represents the new sequence obtained by updating the k ˜ base sequence. All the index sequences are obtained through the above process, which can be inserted into the above formula to obtain the candidate monomial W 0 = [ w 1 , w 2 , , w n ] .
Decompose W 0 to obtain the initialized orthogonal function matrix Q and coefficient matrix R :
W 0 = Q R
The model to be identified can be represented by a linear combination of w i :
C ^ j = θ 1 w 1 + θ 2 w 2 + + θ n w n + e = W 0 θ + e = Q R θ + e = Q a + e
In the formula, θ = [ θ 1 , θ 2 , , θ n ] T and a = R θ .
The ultimate goal of orthogonal modeling is to obtain a set of optimal θ values so that the least squares cost function J of the model is minimized [21], where
J = 1 2 ( C j W 0 θ ) T ( C j W 0 θ ) = 1 2 ( C j Q a ) T ( C j Q a ) = 1 2 [ C j T C j j = 1 n ( q j T C j ) 2 ]
Calculate the derivative of the cost function in the above formula with respect to θ and solve the equation to obtain the optimal estimate of the unknown parameter θ :
W 0 T W 0 θ ^ = W 0 T C j R θ ^ = Q T C j
By transforming it into a matrix, we have:
[ r 11 r 12 r 1 n 0 r 22 r 2 n 0 0 r n n ] [ θ ^ 1 θ ^ 2 θ ^ n ] = [ q 1 T C j q 2 T C j q n T C j ]
The second part of the rapid modeling of aerodynamic coefficients is to iteratively update the orthogonal function pool based on real-time data. At the same time, update the influencing factors on the right side of the above formula. After acquiring the new data [ ξ 1 , ξ 2 , , ξ n ] , the new data are added to the last line of the above formula [22]:
[ r 11 r 12 r 1 n 0 r 22 r 2 n 0 0 r n n ξ 1 ξ 2 ξ n ] [ θ ^ 1 θ ^ 2 θ ^ n ] = [ q 1 T C j q 2 T C j q n T C j ζ ]
where ζ is the new dependent variable data. In order to ensure that the subsequent decomposition conditions are satisfied, the parameter matrix R must be transformed so that the last row is all zeros. The Givens transformation method is used to triangulate R , and the Givens matrix is defined as follows:
G i = [ 1 0 0 0 0 c i 0 s i 0 0 1 0 0 s i 0 c i ]
In the formula, c i = r i i r i i 2 + ξ i 2 , s i = ξ i r i i 2 + ξ i 2 , by multiplying all the Givens matrices into the formula [23], we have
G n G 2 G 1 R θ ^ = G n G 2 G 1 [ q 1 T C j q 2 T C j q n T C j ζ ]
[ r 11 r 12 r 1 n 0 r 22 r 2 n 0 0 r n n 0 0 0 ] [ θ ^ 1 θ ^ 2 θ ^ n ] = [ q 1 T C j q 2 T C j q n T C j ε ]
The above formula is the result of completing a dataset update, in which the symbol with a superscript indicates that it contains information on new data. ε indicates the residual of the new data, which is the residual information that the new data cannot be projected onto an orthogonal basis. In further iterations, it is necessary to replace the last row of the matrix with new data and repeat the above iterative process to update the orthogonal function pool. The whole iterative process only needs to perform simple matrix multiplication and does not need to repeat the orthogonal function generation process, which greatly improves the iterative efficiency. The multivariate orthogonal model screening flow chart is shown in Figure 4.
When applied to data not used in the model identification process, the PSE criterion can be used to quantify the squared prediction error of the identified model. The PSE standard is as follows [24]:
P S E = 1 N ( C j Q a ^ ) T ( C j Q a ^ ) + σ max 2 n N = J ^ N + σ max 2 n N
The previous term of PSE is the Mean Squared Fit Error (MSFE)
M S F E = J ^ N
MSEF decreases monotonically with increasing orthogonal functions.
The second item is the Overfitting Principle (OFP), as follows:
O F P = σ max 2 n N
OFP increases monotonically with the increase in the orthogonal function, which can prevent over-parameterization of the model and help improve the accuracy of the model prediction.
Since MSFE decreases monotonically and OFP increases monotonically, each time an orthogonal function is introduced, MSFE decreases and OFP increases. If each orthogonal function is sorted according to its degree of importance and the orthogonal functions are introduced in order, the PSE must have a global minimum. Selecting this point can determine the selected n orthogonal model functions, taking into account the minimum average square error and good predictive power [25].

4. Online Incremental Compensation Dynamics Identification Method Based on Recursive Least Squares

As shown in Figure 5, during the online identification process, the observation model is used to calculate the pitching moment coefficient and lift coefficient, and the difference between the online observation value and the offline network mapping value is calculated as the input value of the recursive least squares to identify the error increment.
For parameter estimation, the relationship between the measured output and the model parameters is more important. The model is called a linear parametric model if the output is given by the following equation:
z = H θ + v
For a given z and θ , the best estimate is obtained by minimizing the weighted sum of the squared errors between the measured output and the model output.
J ( θ ) = 1 2 ( z H θ ) T ( z H θ )
Assuming B ( k ) = H T ( k ) H ( k ) , the estimated parameters at the k moments are:
θ ( k ) = B 1 ( k ) H T ( k ) Y ( k )
The recursive process starts at time k + 1 . In the process of actual use, with the increase in information, the positive definiteness of the information matrix is continuously reduced, and the improvement effect on new information is gradually equal to zero. This phenomenon is called the dataset saturation phenomenon. To solve this problem, a recursive algorithm that introduces the forgetting factor [26] is proposed:
{ P ( k + 1 ) = 1 ρ 2 [ P ( k ) K ( k ) H ( k + 1 ) P ( k ) ] θ ^ ( k + 1 ) = θ ^ ( k ) + K ( k ) [ z ( k + 1 ) H ( k + 1 ) θ ^ ( k ) ] K ( k ) = P ( k ) H T ( k + 1 ) [ ρ 2 I + H ( k + 1 ) P ( k ) H T ( k + 1 ) ] 1
In the real flight process, the force and moment coefficients cannot be directly measured by sensors. However, they are calculated based on other observable parameters, so it is necessary to establish an observation model of observable parameters and force and moment coefficients.
{ C m observation = 1 q ¯ S c ¯ [ J y ω ˙ z + ( J x J z ) ω x ω y + J x z ( ω x 2 ω y 2 ) ] C Lobservation = m a y q ¯ S
where C m is the pitching moment coefficient, c ¯ is the effective length, and b is the chord length. ω ˙ z is the pitch angular acceleration, J x , J x z , J y is the moment of inertia, ω x is the roll angular rate, and ω y is the yaw angular rate. C L is the lift coefficient, q ¯ is the dynamic pressure, S is the reference area, and a y is the acceleration in the y axial direction.
In the online real-time identification process, the sensor collects the flight state data in real-time to calculate the observed value of the pitch moment coefficient. It makes a difference with the offline NN mapping value to obtain the error increment of the pitch moment coefficient. According to the recursive least squares identification algorithm, the incremental identification value of each derivative item of the pitching moment coefficient is calculated:
Δ θ = [ Δ C m a , Δ C m δ y , Δ C m δ f ]
We add the error incremental identification value of the derivative term to the reference value to obtain the identification incremental compensation pitching moment coefficient:
z = z N N + Δ z = z N N + H Δ θ + v
where z N N is the fitted value of the offline NN based on the flight status data.

5. Data-Driven NN Model Iterative Modification Method

This section is based on the intelligent identification of NN to realize the iterative correction of data-driven offline network weights. With the accumulation of flight test data, the mapping model of flight state data to force coefficient and moment coefficient in the offline learning network is continuously revised, and lifelong learning is finally realized.
Input layer [27]: x Io ( k ) = x Ii ( k ) .
Hidden layer: { x Hi ( k ) = W HI ( k ) x Io ( k ) x Ho ( k ) = [ x Hi ( k ) ] .
In the formula, x Ho ( k ) is the output of the hidden layer of the k step, x Hi ( k ) is the input of the hidden layer of the k step, W HI ( k ) is the weight matrix for converting the output of the input layer into the input of the hidden layer, and ( · ) is the activation function of the hidden layer. is the hyperbolic tangent sigmoid function Tanh, and its expression is this:
{ ( x ) = ( e x e x ) / ( e x + e x ) ( x ) = 1 2 ( x )
Output layer: { x Oi ( k ) = W OH ( k ) x Ho ( k ) x Oo ( k ) = φ [ x Oi ( k ) ] .
In the formula, φ ( · ) is the activation function of the output layer, which is specified as a sigmoid function, and the expression is:
{ φ ( x ) = 1 / ( 1 + e x ) φ ( x ) = φ ( x ) ( 1 φ ( x ) )

5.1. Establish Loss Function

The update of the weight matrix of the NN should be guided by the minimum loss function J so that the error between the pitching moment coefficient/lift coefficient and the nominal pitching moment coefficient/lift coefficient of the offline mapping of the NN is minimized.
J = 1 2 [ C m O f f l i n e C m N o m i n a l ] 2 , J = 1 2 [ C L O f f l i n e C L N o m i n a l ] 2

5.2. The Weight Matrix W OH Update Algorithm from the Hidden Layer to the Output Layer of NN

The BP update algorithm of the weight matrix is reversed, so the weight matrix W OH from the hidden layer to the output layer needs to be updated first [28]:
W OH ( k + 1 ) = W OH ( k ) η J W OH ( k ) + α Δ W OH ( k )
In the formula, we take the negative gradient direction, that is, J / W OH ( k ) , to seek the minimum value of the loss function J ; η is the learning rate; the last momentum item is added here: α is the inertia coefficient; Δ W OH ( k ) is the weight matrix correction amount of the k step.
The weight matrix correction amount of the k + 1 step is:
Δ W OH ( k + 1 ) = W OH ( k + 1 ) W OH ( k ) = η J W OH ( k ) + α Δ W OH ( k )
The above formula J / W OH ( k ) is unknown; the following uses the chain rule to derive the expression of J / W OH ( k ) :
J W OH ( k ) = J y ( k + 1 ) y ( k + 1 ) u ( k ) u ( k ) x Oo ( k ) x Oo ( k ) x Oi ( k ) x Oi ( k ) W OH ( k )
where
J y ( k + 1 ) = e ( k + 1 ) ,   e ( k + 1 ) = y ( k + 1 ) r ( k + 1 ) = m z n o m i n a l ( k + 1 ) m z O f f l i n e ( k + 1 )
For y ( k + 1 ) / u ( k ) , the symbolic function is used to simplify the expression:
y ( k + 1 ) u ( k ) sign ( y ( k + 1 ) u ( k ) )
The bias produced by the sign function substitution is compensated by the learning rate and inertia coefficient [29]. If the controlled quantity is torque, u ( k ) x Oo ( k ) = 1 .
According to the output layer activation function
x Oo ( k ) x Oi ( k ) = φ [ x Oi ( k ) ] x Oi ( k ) = φ [ x Oi ( k ) ]
and { x Oi ( k ) = W OH ( k ) x Ho ( k ) x Oo ( k ) = φ [ x Oi ( k ) ] and after approximation and substitution, it can be simplified [30]:
J W OH ( k ) = { e ( k + 1 ) sign ( y ( k + 1 ) u ( k ) ) u ( k ) x Oo ( k ) φ [ x Oi ( k ) ] } [ x Ho ( k ) ] T = δ O [ x Ho ( k ) ] T
The above formula x Ho ( k ) is the output of the first hidden layer.
The final result J / W OH ( k ) is a 3 × n h dimensional matrix, where n h is the number of neurons in the hidden layer.
Then, the weight matrix correction amount Δ W OH can be rewritten as:
Δ W OH ( k + 1 ) = η δ O [ x Ho ( k ) ] T + α Δ W OH ( k )

5.3. Update the Algorithm of the Weight Matrix W HI ( k ) from the Input Layer to the Hidden Layer of NN

J W OH ( k ) = J x Oi ( k ) x Oi ( k ) W OH ( k ) = J x Oi ( k ) W OH ( k ) x Ho ( k ) W OH ( k ) = J x Oi ( k ) [ x Ho ( k ) ] T
Comparing formula Δ W OH ( k + 1 ) = η δ O [ x Ho ( k ) ] T + α Δ W OH ( k ) , it is found that the following relational formula exists [31]:
ξ O = J x Oi ( k ) = δ O , J W HI ( k ) = ξ H [ x Io ( k ) ] T
Therefore, the weight matrix correction value Δ W HI from the input layer to the hidden layer of the k + 1 step can be written as:
Δ W HI ( k + 1 ) = η ξ H [ x Io ( k ) ] T + α Δ W HI ( k ) = η δ H [ x Io ( k ) ] T + α Δ W HI ( k )
where
ξ H = J x Hi ( k ) = [ x Hi ( k ) ] [ ( ξ O ) T W OH ( k ) ] T

6. Simulation Example

In order to verify the effectiveness of the method proposed in this paper, this section obtains aerodynamic data based on the aerodynamic function of a fixed-wing UAV and trains an offline NN, which reflects the mapping relationship between the flight state and the force and moment coefficients.
The form of the high-dimensional identification model established offline is as follows [32]:
C m = C m 0 + C m α α + C m q q c 2 V 0 + C m δ y δ y + C m δ f δ f + C m α 2 α 2 + C m δ y 2 δ y 2 + C m α δ y α δ y + C m α 3 α 3 + C m δ y 3 δ y 3 C L = C L 0 + C L α α + C L q q c 2 V 0 + C L δ y δ y + C L δ f δ f + C L α 2 α 2 + C L δ y 2 δ y 2 + C L α δ y α δ y + C L α 3 α 3 + C L δ y 3 δ y 3
The form of the low-dimensional identification model after screening by the orthogonal model is as follows:
C m = C m α α + C m δ y δ y + C m δ f δ f C L = C L α α + C L δ y δ y + C L δ f δ f
Based on the flight state data, an offline NN is built. Moreover, the NN is trained to map the pitching moment coefficient to the flight state data, such as angle of attack and rudder deflection. The fitting effect of the offline NN is measured by the fitting degree R 2 and the mean square error MSE, and the closer the fitting degree R 2 is to 1, the better the fitting effect is.

6.1. Simulation and Analysis of Offline Training of Aerodynamic Force and Aerodynamic Moment NN Model

Using Pointwise V18.3 R1 software from ANSYS Fluent to calculate the aerodynamic data set of the UAV, a total of 20,000 sets of data are used to build an offline deep learning network. The NN is trained to map the pitching moment coefficient to the flight state data, such as angle of attack and rudder deflection. An offline neural network is a feed-forward network composed of nonlinearly changing units. It is generally composed of five layers of neurons: one input layer, three hidden layers, and one output layer. The neurons in each layer form weighted interconnections, while the neurons located in the same layer have no connections and do not influence each other. Therefore, the neurons in each layer are only sensitive to the input of the neurons in the previous layer. The output of the neurons in each layer only affects the output of the next layer. The BP neural network structure is determined based on the characteristics of the fitted nonlinear function. This paper studies the nonlinear functions of the lift coefficient and pitching moment coefficient. It has five input parameters: angle of attack, full-motion tail, flap deflection angle, speed, and altitude, and two output parameters: lift coefficient and pitching moment coefficient. In this section, the nonlinear link of the hidden layer of the BP neural network uses the “sigmoid” nonlinear function, and the neuron type of the output layer is a linear output neuron. This algorithm selects 70% of the training data as the training set, and the verification set and the test set each account for 15% of the data. The fitting effect of the offline NN is measured by the fitting degree R2 and the mean square error MSE, and the closer the fitting degree R2 is to 1, the better the fitting effect is, as shown in Figure 6.
The offline deep learning network was built according to the CFD flight status data. As shown as Table 2, the fitting degree R2 was 0.99948, and the mean square error of the training data was 10−7, which indicated that the NN built offline had a good fitting mapping effect on the parameters to be estimated.

6.2. Simulation and Analysis of Dynamic Identification Based on Offline Network Learning and Online Compensation

Based on the benchmark NN model of aerodynamic force and aerodynamic moment established in the offline stage and the response data of the online process, the deviation data of the benchmark NN model is calculated and obtained. The increment in aerodynamic force and aerodynamic moment is obtained using the time domain recursive least squares identification method. In this section, we conduct an identification simulation analysis of the pitching moment coefficient and lift coefficient. This analysis is based on the dynamic identification method of offline network learning and online compensation. We evaluate the aspects of identification accuracy and identification efficiency, respectively.
It can be seen from Figure 7 and Figure 8 that, under the same conditions of identification accuracy, the force coefficient and moment coefficient identified by the hybrid intelligent method converge faster than the force coefficient and moment coefficient obtained by the traditional identification method.The residual and relative error curves of the pitching moment coefficient and lift coefficient are shown in Figure 9 and Figure 10.
In the offline process, the research method in this paper uses the QR decomposition matrix according to the multivariate orthogonal function. It uses the Givens matrix to iterate the data to determine the identification reference configuration. Compared with the traditional online iterative identification configuration, the time consumed by the online iterative process is greatly reduced. Moreover, online learning captures the time-varying deviation of the network model through the nonlinear recursive orthogonal time-domain identification method. These deviations are then integrated with the force coefficient and moment coefficient fitted by the NN, which improves the identification accuracy of the force coefficient and moment coefficient. As shown in Table 3, it can be seen from the table that under the same identification conditions, the time-consuming task of identifying the moment coefficient is reduced from the original 0.438 s to 0.0674 s. Comparing the incremental compensation identification and the recursive least squares identification methods, the identification time-consuming of the force coefficient is reduced from the original 0.576 s to 0.0753 s.

6.3. Simulation and Analysis of an Iterative Learning Correction Method Based on a Data-Driven NN Model

This section considers using the flight test data of a real fixed-wing UAV to modify the weight matrix of the original NN offline so as to realize the iterative learning of the offline network. By updating and iterating the weight matrix of the NN, the fitting accuracy of the NN to the force coefficient and moment coefficient is greatly improved, thereby realizing lifelong learning for complex dynamic models. Figure 11 and Figure 12 are respectively the identification results of the pitching moment coefficient and lift coefficient after correction by the neural network.
The training data of the original NN were obtained through CFD tests, and there is a big difference with the real flight data. Therefore, it is necessary to correct the original NN weight matrix established offline through the network weight iterative correction algorithm based on the real flight test data. This adjustment ensures that the NN model established by it can better reflect the real dynamic model. According to the simulation results as shown in Table 4, compared with the original NN, the variance of the mapping value of the modified network to the moment coefficient is reduced by 83.68%, and the residual error is reduced by 69.23%. After the correction, the variance of the mapping value of the network to the force coefficient is reduced by 39.63%, and the residual error is reduced by 89.89%.

7. Conclusions

In this paper, an intelligent identification method of aerodynamic parameters based on deep learning network correction and compensation is used to identify the pitching moment coefficient and lift coefficient. The CFD simulation data of fixed-wing UAVs are used to train the deep learning network offline. The network training dataset pair consists of flight state data, force coefficients, and moment coefficients. Secondly, based on the recursive orthogonal time-domain algorithm, the recursive least squares incremental identification compensation is performed according to the offline trained network mapping force coefficient, moment coefficient, and coefficients. Finally, the method of establishing a loss function is used to correct the output layer to the hidden layer and the weights from the hidden layer to the input layer. The deep learning networks are corrected offline according to the data collected in the real flight state so that the corrected NN mapping force coefficient and torque coefficient are closer to the real values.
Since the model established based on ground simulation data has errors and it is difficult to simulate uncertain factors such as complex real-world environments, this method improves the control performance of the UAV. It improves the fitting accuracy of network mapping force coefficients and torque coefficients. At the same time, the problem of reduced control accuracy caused by the existence of time-varying coupling is solved. In addition, flight tests have accumulated a large number of test flight data. It is of great significance to use test flight data to achieve model correction in real flight environments, laying the foundation for obtaining more accurate complex control models.

Author Contributions

Conceptualization, D.Y. and J.Z.; methodology, J.Z.; software, J.Z.; validation, K.L.; formal analysis, D.Y., J.Z. and K.L.; investigation, D.Y. and J.Z.; resources, D.Y. and J.Z.; data curation, J.Z. and K.L.; writing—original draft preparation, J.Z.; writing—review and editing, J.Z., K.L. and J.L.; visualization, J.Z.; supervision, D.Y.; project administration, J.Z.; funding acquisition, K.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China, grant number U2141229 and foundation under grant JCJQ, grant number 2019-JCJQ-DA-001-131.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Silvestrini, S.; Lavagna, M. Deep Learning and Artificial NNs for Spacecraft Dynamics, Navigation and Control. Drones 2022, 6, 270. [Google Scholar] [CrossRef]
  2. Dou, L.; Du, M.; Zhang, X.; Wang, Y. Aerodynamic parameter identification of the RLV reentry process based on the EM-EKF algorithm. J. Tianjin Univ. 2019, 52, 1285–1292. [Google Scholar]
  3. Snyder, S.; Bacon, B.; Morelli, E.A.; Frost, S.; Teubert, C.; Okolo, W. Online control design for learn-to-fly. In Proceedings of the 2018 Atmospheric Flight Mechanics Conference, Kissimmee, FL, USA, 8–12 January 2018; pp. 1–27. [Google Scholar]
  4. Morelli, E.A. Determining Aircraft Moments of Inertia from Flight Test Data. AIAA SciTech 2021 Forum 2021, 45, 4–14. [Google Scholar]
  5. Jafari, S.; Ioannou, P.; Rudd, L.E. What is L1 adaptive control. In Proceedings of the AIAA Guidance, Navigation, and Control (GNC) Conference, Portland, Oregon, 10–15 August 2013; p. 4513. [Google Scholar]
  6. Jiang, Y.M.; Wang, C.Q.; Xu, C. Online Identification of Aircraft Model Parameters Based on Recursive Least Squares Method. Control Inf. Technol. 2019, 4, 58–64. [Google Scholar]
  7. Yang, G.H.; Du, L.F.; Li, H.; Liu, X.D. Parameter Identification and Adaptive Control of Aircraft Based on BP NN. Aerosp. Control 2021, 39, 3–7. [Google Scholar]
  8. Zhang, Y.; Tang, J.; Huang, H. An Intelligent Correction Method of Aerodynamic Parameters Based on Machine Learning. Aerosp. Control 2021, 39, 49–51. [Google Scholar]
  9. Li, Z.Q. A High Angle of Attack Dynamical System Identification Algorithm Based on LS-SVM. Comput. Simul. 2019, 1, 28–30. [Google Scholar]
  10. Wang, J.; Liang, H.Z.; Wang, J.C.; Li, Q.; Wang, L.L. Online Intelligent Identification Method of Hypersonic Vehicles Dynamic System. Tactical Missile Technol. 2019, 5, 19–22. [Google Scholar]
  11. Pu, J.L.; Han, Y.P.; Zhang, L. Research on Intelligent Online Identification Technology for Aerodynamic Parameters of Aircraft. Astronaut. Syst. Eng. Technol. 2018, 2, 1–9. [Google Scholar]
  12. Tai, S.; Wang, L.; Wang, Y.; Lu, S.; Bu, C.; Yue, T. Identification of Lateral-Directional Aerodynamic Parameters for Aircraft Based on a Wind Tunnel Virtual Flight Test. Aerospace 2023, 10, 350. [Google Scholar] [CrossRef]
  13. Wang, L.; Zhao, R.; Xu, K.; Zhang, Y.; Yue, T. Identification and Modeling Method of Longitudinal Stall Aerodynamic Parameters of Civil Aircraft Based on Improved Kirchhoff Stall Aerodynamic Model. Aerospace 2023, 10, 333. [Google Scholar] [CrossRef]
  14. Xue, J.; Yang, Y.J.; Liu, Y.; Li, L.T. Lateral Control of UAV Based on L1 Adaptive Control. J. Northwest Poly Tech. Univ. 2015, 33, 40–44. [Google Scholar]
  15. Zaheer, S.; Anjum, N.; Hussain, S.; Algarni, A.D.; Iqbal, J.; Bourouis, S.; Ullah, S.S. A Multi Parameter Forecasting for Stock Time Series Data Using LSTM and Deep Learning Model. Mathematics 2023, 11, 590. [Google Scholar] [CrossRef]
  16. Sieberling, S.; Chu, Q.P.; Mulder, J.A. Robust Flight Control Using Incremental Nonlinear Dynamic Inversion and Angular Acceleration Prediction. J. Guid. Control Dyn. 2010, 33, 1732–1742. [Google Scholar] [CrossRef]
  17. Li, Q.; Liu, X. Simulation research on system parameter identification of improved Kalman filtering algorithm. Comput. Simul. 2012, 29, 172–175. [Google Scholar]
  18. Su, Z.Y. Development and Application of Aerodynamic Parameter Identification Technology for Aircraft. Sci. Technol. Innov. 2018, 29, 64–65. [Google Scholar]
  19. Snyder, S. Autopilot Design with Learn-to-Fly. AIAA SciTech 2020 Forum 2020, 1, 25–29. [Google Scholar]
  20. Murphy, P.C.; Hatke, D.B.; Aubuchon, V. Preliminary Steps in Developing Rapid Aero Modeling Technology. AIAA SciTech Forum 2020, 6–10. [Google Scholar]
  21. Gong, X.Y.; Fu, W.; Bian, X.A.; Fei, J.T. Adaptive Backstepping Terminal Sliding Mode Control of Nonlinear System Using Fuzzy Neural Structure. Mathematics 2023, 11, 1094. [Google Scholar] [CrossRef]
  22. Cao, Y.H.; Tan, W.Y. The Effects of Icing on Aircraft Longitudinal Aerodynamic Characteristics. Mathematics 2020, 8, 1171. [Google Scholar] [CrossRef]
  23. Wang, L.; Zhang, Z.; Zhu, Q. Automatic Flight Control Design Considering Objective and Subjective Risks During Carrier Landing. The Institution of Mechanical Engineers, Part I: J. Syst. Control Eng. 2020, 234, 446–461. [Google Scholar] [CrossRef]
  24. Lee, B.; Saj, V.; Benedict, M. Machine Learning Vision and Nonlinear Control Approach for Autonomous Ship Landing of Vertical Flight Aircraft. In Proceedings of the 77th Annual National Forum of the Vertical Flight Society, Online, 10–14 May 2021. [Google Scholar]
  25. Leshikar, C.; Gosnell, S.; Gomez, E. System Identification Flight Testing of Inverted V-Tail Small Unmanned Air System. In Proceedings of the AIAA SciTech 2022 Forum, San Diego, CA, USA, 3–7 January 2022. [Google Scholar]
  26. Ingen, J.V.; Visser, C.C.; Pool, D.M. Stall Model Identification of a Cessna Citation II from Flight Test Data Using Orthogonal Model Structure Selection. In Proceedings of the AIAA Scitech 2021 Forum, Online, 11–15 & 19–21 January 2021. [Google Scholar]
  27. Boschetti, P.J.; Neves, C.; Ramirez, P.J. Nonlinear Aerodynamic Model in Dynamic Ground Effect at High Angles of Attack. In Proceedings of the AIAA SCITECH 2022 Forum, San Diego, CA, USA, 3–7 January 2022. [Google Scholar]
  28. Wang, L.; Zhang, N.; Liu, H.; Yue, T. Stability characteristics and airworthiness requirements of blended wing body aircraft with podded engines. Chin. J. Aeronaut. 2022, 35, 77–86. [Google Scholar] [CrossRef]
  29. Wang, L.; Zuo, X.; Liu, H.; Yue, T.; Jia, X.; You, J. Flying qualities evaluation criteria design for scaled-model aircraft based on similarity theory. Aerosp. Sci. Technol. 2019, 90, 209–221. [Google Scholar] [CrossRef]
  30. Shafi, I.; Mazhar, M.F.; Fatima, A.; Alvarez, R.M.; Miró, Y.; Espinosa, J.C.M.; Ashraf, I. Deep Learning-Based Real Time Defect Detection for Optimization of Aircraft Manufacturing and Control Performance. Drones 2023, 7, 31. [Google Scholar] [CrossRef]
  31. Dai, W.; Liang, K.; Wang, B. State Monitoring Method for Tool Wear in Aerospace Manufacturing Processes Based on a Convolutional Neural Network (CNN). Aerospace 2021, 8, 335. [Google Scholar] [CrossRef]
  32. Zheng, Q.; Yang, M.; Yang, J.; Zhang, Q.; Zhang, X. Improvement of generalization ability of deep CNN via implicit regularization in two-stage training process. IEEE Access 2018, 6, 15844–15869. [Google Scholar] [CrossRef]
Figure 1. Flow chart of an intelligent nonlinear identification algorithm of aircraft aerodynamic parameters based on data-driven multi-layer deep learning network modification.
Figure 1. Flow chart of an intelligent nonlinear identification algorithm of aircraft aerodynamic parameters based on data-driven multi-layer deep learning network modification.
Drones 07 00594 g001
Figure 2. Fixed-wing UAV picture. (a) CATIA software 3D modeling picture; (b) UAV actual flight scene picture.
Figure 2. Fixed-wing UAV picture. (a) CATIA software 3D modeling picture; (b) UAV actual flight scene picture.
Drones 07 00594 g002
Figure 3. CFD simulation to obtain the NN training set.
Figure 3. CFD simulation to obtain the NN training set.
Drones 07 00594 g003
Figure 4. Schematic diagram of the multivariate orthogonal model screening process.
Figure 4. Schematic diagram of the multivariate orthogonal model screening process.
Drones 07 00594 g004
Figure 5. Error increment identification strategy.
Figure 5. Error increment identification strategy.
Drones 07 00594 g005
Figure 6. Offline NN test set mean square error.
Figure 6. Offline NN test set mean square error.
Drones 07 00594 g006
Figure 7. Comparison results of pitching moment coefficients between incremental compensation and network mapping.
Figure 7. Comparison results of pitching moment coefficients between incremental compensation and network mapping.
Drones 07 00594 g007
Figure 8. Comparison results of lift coefficients between incremental compensation and network mapping.
Figure 8. Comparison results of lift coefficients between incremental compensation and network mapping.
Drones 07 00594 g008
Figure 9. Comparison results of incremental compensation and network mapping pitching moment coefficient residual and relative error. (a) Residual curve of incremental compensation and network mapping pitching moment coefficient; (b) relative error curve of incremental compensation and network mapping pitching moment coefficient.
Figure 9. Comparison results of incremental compensation and network mapping pitching moment coefficient residual and relative error. (a) Residual curve of incremental compensation and network mapping pitching moment coefficient; (b) relative error curve of incremental compensation and network mapping pitching moment coefficient.
Drones 07 00594 g009
Figure 10. Comparison results of incremental compensation and network mapping lift coefficient residual and relative error. (a) Residual curve of incremental compensation and network mapping lift coefficient; (b) relative error curve of incremental compensation and network mapping lift coefficient.
Figure 10. Comparison results of incremental compensation and network mapping lift coefficient residual and relative error. (a) Residual curve of incremental compensation and network mapping lift coefficient; (b) relative error curve of incremental compensation and network mapping lift coefficient.
Drones 07 00594 g010
Figure 11. The results of fitting the pitching moment coefficient between the modified network and the original network. (a) Fitting pitching moment coefficient curve between the modified network and the original network; (b) the residual curve of the modified network and the original network fitting value and nominal value.
Figure 11. The results of fitting the pitching moment coefficient between the modified network and the original network. (a) Fitting pitching moment coefficient curve between the modified network and the original network; (b) the residual curve of the modified network and the original network fitting value and nominal value.
Drones 07 00594 g011
Figure 12. The results of fitting the lift coefficient between the modified network and the original network. (a) Fitting lift coefficient curve between the modified network and the original network; (b) the residual curve of the modified network and the original network fitting value and nominal value.
Figure 12. The results of fitting the lift coefficient between the modified network and the original network. (a) Fitting lift coefficient curve between the modified network and the original network; (b) the residual curve of the modified network and the original network fitting value and nominal value.
Drones 07 00594 g012
Table 1. Basic parameters of a fixed-wing UAV.
Table 1. Basic parameters of a fixed-wing UAV.
ParameterValue
span3.606 m
body length2.245 m
body height0.640 m
weight20 kg
load capacity2 kg
Table 2. Goodness of Fit for each set.
Table 2. Goodness of Fit for each set.
Goodness of Fit
TrainingR2 = 0.99946
ValidationR2 = 0.99969
TestR2 = 0.99905
AllR2 = 0.99948
Table 3. Comparison table of identification average time between RLS and RLS + NN.
Table 3. Comparison table of identification average time between RLS and RLS + NN.
Pitching Moment Coefficient (s)Lift Coefficient (s)
RLS0.4380.576
RLS + NN0.06470.0753
Table 4. Comparison of the accuracy of identifying force coefficient and moment coefficient before and after NN correction.
Table 4. Comparison of the accuracy of identifying force coefficient and moment coefficient before and after NN correction.
Serial
Number
Moment CoefficientForce Coefficient
Original Network Corrected Network Original Network Corrected Network
Variance Residual Variance Residual Variance Residual Variance Residual
10.21370.17130.03910.05140.03140.03130.01770.0041
20.23530.17470.03140.05510.03540.04140.02110.0034
30.22000.17040.03710.05410.03050.03510.02040.0035
40.22590.16900.03690.04950.03210.03930.01840.0039
50.23250.18070.03970.05630.03220.04090.01980.0041
Average0.22550.17320.03680.05330.03230.03760.01950.0038
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yang, D.; Zang, J.; Liu, J.; Liu, K. Time-Domain Identification Method Based on Data-Driven Intelligent Correction of Aerodynamic Parameters of Fixed-Wing UAV. Drones 2023, 7, 594. https://doi.org/10.3390/drones7090594

AMA Style

Yang D, Zang J, Liu J, Liu K. Time-Domain Identification Method Based on Data-Driven Intelligent Correction of Aerodynamic Parameters of Fixed-Wing UAV. Drones. 2023; 7(9):594. https://doi.org/10.3390/drones7090594

Chicago/Turabian Style

Yang, Dapeng, Jianwen Zang, Jun Liu, and Kai Liu. 2023. "Time-Domain Identification Method Based on Data-Driven Intelligent Correction of Aerodynamic Parameters of Fixed-Wing UAV" Drones 7, no. 9: 594. https://doi.org/10.3390/drones7090594

Article Metrics

Back to TopTop