A fully connected neural network aeromagnetic interference compensation method based on encoder optimization
By using encoder-optimized fully connected neural networks in aeromagnetic survey, extracting the characteristics of the 16-item coefficient matrix and performing magnetic interference fitting, the problem of variable correlation and noise influence is solved, and the compensation accuracy and accuracy of aeromagnetic data are improved. Anti-interference ability.
Patent Information
- Application Number
- CN202210462301.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing aeromagnetic exploration technology, the 16-term coefficient equation has variable correlation and multicollinearity problems, resulting in low fitting accuracy. Especially when the UAV is flying, it is greatly affected by noise, making it difficult to give full play to the fitting ability of the neural network. .
A fully connected neural network based on encoder optimization is used to extract the characteristics of the 16-item coefficient matrix through the encoder and pass it into the fully connected neural network for magnetic interference fitting. Multi-layer structures and nonlinear activation functions are used to reduce variable correlation. and noise effects, forming an end-to-end model to improve anti-interference capabilities.
It effectively reduces the correlation of variables, improves the fitting accuracy and anti-noise ability of magnetic interference signals, achieves higher aeromagnetic data compensation accuracy, and reduces the influence of human factors.
Smart Images

Figure CN114781617B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of aeromagnetic exploration, and in particular to a fully connected neural network aeromagnetic interference compensation method based on encoder optimization. Background Art
[0002] Aeromagnetic exploration is an efficient geophysical exploration method. During its operation, the magnetic field signals recorded by the airborne magnetometer include not only the geomagnetic field signals, but also the magnetic interference signals generated by the aeromagnetic exploration platform. The magnetic interference is generated by the platform itself and the maneuvering. Before interpreting the aeromagnetic data, it is necessary to compensate the aeromagnetic data and remove the magnetic interference to improve the credibility of the aeromagnetic data.
[0003] The 16-coefficient equation derived from the TL equation is widely used. The direction cosine of the 16-coefficient equation can be calculated by the three-axis angle of the fluxgate in the aircraft coordinate system after approximation, and each coefficient of the model is composed of a combination of sine and cosine functions and their derivatives, so there is a certain correlation. In addition, compared with large manned aircraft, UAVs have poor flight stability and are easily affected by factors such as weather and operators, which will cause more noise in the sensor data, and the presence of noise will reduce the fitting accuracy.
[0004] At present, there are two fitting methods for 16-coefficient equations: based on linear regression and neural network. For example, linear regression methods such as ridge regression, recursive least squares, principal component analysis, and neural network methods such as generalized regression neural network and BP neural network.
[0005] The 16-item coefficient equation data has multicollinearity, so the coefficient equation needs to be processed. Ridge regression improves the problem of the coefficient matrix approaching singularity when the coefficient matrix is inverted by regularization parameter k; principal component analysis reduces the data dimension by linear transformation of the coefficient matrix to extract data features, and then regresses the features. It has been proven that the linear regression method has a lower fitting ability than the neural network. The generalized regression neural network uses the probability density function to predict the interval probability of the current matrix parameter to match the data. The BP neural network fits the parameters through the gradient descent optimization algorithm. These neural network methods have shown performance that exceeds the linear regression method, but the performance of the neural network is greatly affected by the noise of the data.
[0006] Large aircraft fly at high altitudes and are less affected by air currents. They are also heavier and have better flight stability than small drones. Small drones operate at altitudes ranging from tens to hundreds of meters, and are greatly affected by the atmosphere and the operation of the flight controller. The data contains a lot of noise. Principal component analysis reduces the dimension of the data through linear transformation to extract features. However, when the data has high-dimensional nonlinear features, the linear extraction method has limited feature acquisition capabilities.
[0007] Most existing neural network compensation methods directly fit the 16-item coefficient equation, but the 16-item coefficient equation has a multicollinearity problem, which means that the fitting ability of the neural network cannot be fully utilized. Summary of the invention
[0008] The technical problem to be solved by the present invention is to provide an aeromagnetic interference compensation method based on a fully connected neural network optimized by an encoder, so as to solve the variable correlation problem and the aeromagnetic compensation model fitting problem.
[0009] The present invention is achieved in this way.
[0010] A fully connected neural network aeromagnetic interference compensation method based on encoder optimization, the method comprises: converting a 16-item coefficient matrix X n×16 As the input data of the deep neural network; the deep neural network includes an encoder and a fully connected neural network connected in series with the encoder, and the encoder is used to extract the features of the data to obtain the feature matrix F n×12 ; The feature matrix F n×12 The fully connected neural network is used to fit the features to the magnetic interference to obtain the predicted magnetic interference. The compensated standard deviation is calculated based on the predicted magnetic interference.
[0011] Further,
[0012] The encoder includes multiple layers, the number of nodes decreases layer by layer, and the data is extracted layer by layer through the features of 16 coefficient matrices.
[0013] Further,
[0014] The original input data format is X n×16 , the encoder is set to three layers, the number of nodes in the second layer of the encoder is set to p, the number of nodes in the third layer is set to q, and the relationship between each layer is 16>p>q, p=14, q=12.
[0015] The value of the second layer is represented by the activation function:
[0016]
[0017] Where f represents the tanh activation function, which is a nonlinear activation function with good performance;
[0018] The tanh activation function is as follows:
[0019]
[0020] The values of layer 3 are expressed as:
[0021]
[0022] Represents the features extracted by the third layer;
[0023] The formulas of each node in the fully connected neural network layer are obtained by reasoning from the second and third layers:
[0024]
[0025] Where l>2.
[0026] Furthermore, the fully connected neural network includes nodes receiving output features of the editor whose number is greater than the number of features, and the number of nodes in each layer first increases and then decreases.
[0027] Furthermore, the first few layers of the fully connected neural network use a nonlinear activation function tanh to express the nonlinear relationship between the feature and the magnetic interference, and the last layer uses a linear activation function Purelin: The Purelin activation function is as follows:
[0028] f(P)=P,
[0029] The loss function uses the minimum mean square error (MSE) loss function
[0030]
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] The present invention provides a fully connected neural network aeromagnetic interference compensation method based on encoder optimization. The TL equation is a linear regression model composed of 16 coefficients, and the correlation between variables will make the linear regression solution of the TL equation unstable and reduce the anti-interference ability of the neural network; in addition, the linear regression method is not as good as the fitting accuracy of the neural network. The proposed deep neural network consists of two parts. The front end of the deep neural network is an encoder that extracts features from the coefficient matrix, and the back end is a fully connected neural network directly connected to the encoding network to achieve aeromagnetic interference fitting. The encoder uses the structure that the number of deep network neuron nodes is less than the number of input layer neuron nodes to compress and represent the data, and represents the original data with features to reduce the correlation of variables, effectively improving the anti-interference ability of the model; the fully connected neural network improves the fitting ability of magnetic interference by increasing the network depth and the number of nodes. Compared with first training the feature extraction network and then training the fully connected fitting network according to the features, the deep neural network forms an end-to-end model with only one objective function (single training), which reduces the influence of human factors.
[0033] The present invention designs an encoder with a decreasing number of nodes layer by layer to extract data features, reduce the correlation between variables, and improve the ability to suppress aliased noise signals;
[0034] The fully connected neural network in series with the encoder is used for function fitting. The fully connected network has a network structure in which the number of nodes increases first and then decreases, which can effectively fit the magnetic interference signal. The use of a linear activation function in the last layer can improve the fitting accuracy. The series structure allows the entire deep neural network to approximate only one objective function, which enables end-to-end network training, which means that only one network needs to be trained to achieve aeromagnetic compensation. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is the structural diagram of the deep neural network;
[0036] Figure 2 This is the aeromagnetic compensation result of the deep neural network. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0038] The 16-item coefficient model of the flight detection platform is derived from the TL equation: it includes 3 items of constant magnetic field generated by the ferromagnetic material of the fuselage, 5 items of induced magnetic field generated by the ferromagnetic material of the fuselage affected by the geomagnetic field, and 8 items of eddy current magnetic field generated by the ferromagnetic material cutting the geomagnetic field. These interferences can be expressed as:
[0039] Constant magnetic field:
[0040] M p =c1u1+c2u2+c3u3
[0041] Induced magnetic field:
[0042]
[0043] Eddy current magnetic field:
[0044] M ec =T(c9u1u′1+c 10 u1u′2+c 11 u1u′3+c 12 u2u′1+c 13 u2u′3+c 14 u3u′1+c 15 u3u′2+c 16 u3u′2)
[0045] where c i ,i=1,2,…,16 is the compensation coefficient, u i (i=1,2,3) are the direction cosines of the three-axis fluxgate magnetometer, u i′ is the derivative of the direction cosines, and T is the geomagnetic field. i The calculation formula is as follows:
[0046]
[0047]
[0048] Total interfering magnetic field (M t ) can be expressed as:
[0049] M t =M p +M i +M ec
[0050] It can be seen from the above formula that the magnetic interference model M t The variables of u i and its derivatives, which leads to serious correlation between variables, such as The term can be obtained by simply inner product of the term c1u1 and multiplying it by a constant. The term c1u1 and the term c2u2 can be multiplied to get c5u1u2, and so on. However, each term of the 16-term coefficient equation has its inherent magnetic interference meaning and cannot be simply replaced. Therefore, the traditional principal component analysis method is to obtain a new matrix by linear transformation of the coefficient matrix, and the number of variables in the new matrix is less than 16 to solve multicollinearity.
[0051] The classical least squares solution is C = (X T X) -1 X T M t , C is the coefficient to be solved, and X is the coefficient matrix. Multicollinearity will lead to (X T X) -1 The calculation will be singular and the solution will be unstable. Least squares method uses the minimum fitting deviation of each variable to solve the coefficients. n is the number of sampling points. This best square approximation method is less accurate than the neural network method using gradient descent optimization. The presence of more irrelevant noise in the training data of the neural network will reduce the fitting accuracy of the network.
[0052] The present invention provides a method for compensating aeromagnetic interference of a fully connected neural network based on encoder optimization, comprising: converting a 16-item coefficient matrix X n×16 As the input data of the deep neural network; the deep neural network includes an encoder and a fully connected neural network connected in series with the encoder, and the encoder is used to extract the features of the data to obtain the feature matrix F n×12 ; The feature matrix F n×12The fully connected neural network is used to fit the features to the magnetic interference to obtain the predicted magnetic interference. The compensated standard deviation is calculated based on the predicted magnetic interference.
[0053] The encoder extracts the features of the 16 coefficient matrices layer by layer through a structure where the number of nodes decreases layer by layer ( Figure 1 ), if the encoder contains only one layer, it may lead to insufficient feature extraction. The data features extracted by the shallow neural network are closer to the original data and contain rich detail information, while the deep neural network contains more global features and nonlinear combination relationships between variables. Therefore, only one layer cannot fully represent the features. The encoder has a structure in which the number of neurons decreases layer by layer.
[0054] The fully connected neural network first improves the ability to express features by increasing the dimension, that is, by using more nodes than the number of features to improve the network's ability to fit various feature data (generalization ability), and then slightly reduces the number of nodes in the deep layer to better approximate the target M. t If the number of nodes in the last layer (layer 6) is too large, it will make it difficult for the deep neural network to converge, and reduce the fitting accuracy of the model.
[0055] use Figure 1 The encoder in the deep neural network shown is used to extract the features of the 16-item coefficient matrix and fit the features with a fully connected neural network to achieve magnetic interference prediction.
[0056] The encoder is implemented as follows:
[0057] The original input data format is X n×16 The encoder is set to three layers (including the input layer), the number of nodes in the second layer of the encoder is set to p, the number of nodes in the third layer is set to q, and the relationship between each layer is 16>p>q, p=14, q=12. Figure 1 The value of the second layer can be represented by the activation function:
[0058]
[0059] where x i Represents the input result of the previous layer, represents the weight of the first layer, Represents the bias of the first layer, and f represents the tanh activation function. Tanh is a nonlinear activation function with good performance and is more effective in extracting nonlinear features in the data.
[0060] The tanh activation function is as follows:
[0061]
[0062] The value of layer 3 can be expressed as:
[0063]
[0064] Represents the features extracted by the third layer.
[0065] The formulas for each node in the fully connected layer are obtained by reasoning from the second and third layers:
[0066]
[0067] Where l>2.
[0068] The fully connected neural network starts from the 4th layer, which has 24 nodes, the 5th layer has 64 nodes, the 6th layer has 32 nodes, and finally the output layer M t .
[0069] Since the fully connected neural network needs to perform function fitting, the first few layers use the nonlinear activation function tanh to express the nonlinear relationship between the features and the magnetic interference. The last layer uses the linear activation function Purelin to improve the model's fitting performance for magnetic interference and help convergence.
[0070] The Purelin activation function is as follows:
[0071] f(P)=P,
[0072] Where P represents the input parameter of the previous layer of neurons
[0073] The loss function uses the minimum mean square error (MSE) loss function
[0074]
[0075] where y i represents the true value, f(x i ) represents the predicted value.
[0076] The optimization method uses the Adam algorithm.
[0077] The prediction results are evaluated using the standard deviation (Std), which is the standard deviation of the residual interference after compensation. In order to test the performance of the deep neural network, ablation experiments were performed on the various parts of the deep neural network (Table 1), see Figure 2 , which is the result of aeromagnetic compensation of deep neural network. The results show that the encoder structure can improve the performance of the network. At the same time, the use of Purelin function in the last layer can also improve the fitting ability of the network. The standard deviation of the deep neural network after compensation is 0.173, and the compensation result of the traditional linear regression method (ridge regression) is given (the standard deviation is 0.241).
[0078] Table 1 Performance of different network structures and parameters.
[0079] Encoder The last layer activation function is tanh The last layer activation function Purelin Std have yes - 0.179 have - yes 0.173 none yes - 0.195 none - yes 0.187
[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A fully connected neural network aeromagnetic interference compensation method based on encoder optimization, characterized in that: The method comprises: converting a 16-item coefficient matrix X n×16 As the input data of the deep neural network; the deep neural network includes an encoder and a fully connected neural network connected in series with the encoder, and the encoder is used to extract the features of the data to obtain the feature matrix F n×12 ; The feature matrix F n×12 The fully connected neural network is used to fit the features to the magnetic interference to obtain the predicted magnetic interference; and the compensated standard deviation is calculated according to the predicted magnetic interference; The fully connected neural network includes nodes receiving output features of the encoder that are greater than the number of features, and the number of nodes in each layer first increases and then decreases; The first few layers of the fully connected neural network use the nonlinear activation function tanh to express the nonlinear relationship between the features and the magnetic interference, and the last layer uses the linear activation function Purelin: The Purelin activation function is as follows: f(P)=P, The loss function uses the minimum mean square error (MSE) loss function Among them, the 16-item coefficient matrix X n×16 It includes 3 constant magnetic fields generated by the ferromagnetic materials of the fuselage, 5 induced magnetic fields generated by the ferromagnetic materials of the fuselage affected by the geomagnetic field, and 8 eddy current magnetic fields generated by the ferromagnetic materials cutting the geomagnetic field.
2. The method for compensating aeromagnetic interference using a fully connected neural network based on encoder optimization according to claim 1, characterized in that: The encoder includes multiple layers, the number of nodes decreases layer by layer, and the data is extracted layer by layer through the features of 16 coefficient matrices.
3. The method for compensating aeromagnetic interference using a fully connected neural network based on encoder optimization according to claim 1, characterized in that: The original input data format is X n×16 , the encoder is set to three layers, the number of nodes in the second layer of the encoder is set to p, the number of nodes in the third layer is set to q, and the relationship between each layer is 16>p>q, p=14, q=12; The value of the second layer is represented by the activation function: Where f represents the tanh activation function, which is a nonlinear activation function with good performance; The tanh activation function is as follows: The values of layer 3 are expressed as: a i (3) Represents the features extracted by the third layer; The formulas of each node in the fully connected neural network layer are obtained by reasoning from the second and third layers: Where l>2.
