Spacecraft anomaly detection method based on telemetry data feature prediction

Through the feature extraction and prediction model fusion of LSTM neural network, the complexity and resource occupation of model in spacecraft telemetry data anomaly detection is solved, efficient anomaly detection is achieved, and training time and memory usage is significantly reduced.

CN118965228APending Publication Date: 2024-11-15CHONGQING UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411113341.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The prior art faces the problems of complex model calculation, large scale, large memory occupancy and long training time in spacecraft telemetry data anomaly detection, and lacks lightweight anomaly detection methods.

Method used

Using the LSTM neural network-based feature extraction and prediction model fusion method, normalized processing, dimensionality reduction and time window division of spacecraft telemetry data, feature extraction and prediction of the first LSTM neural network, and calculation The error is smoothed with a Savitzky-Golay filter to evaluate the runtime, memory size and precision values ​​of the model.

Benefits of technology

With high anomaly detection accuracy, the model training time and memory usage are significantly reduced, the abnormal detection efficiency is improved, and the lighter model training and detection is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965228A_ABST
    Figure CN118965228A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of spacecraft fault detection, in particular to a spacecraft anomaly detection method based on telemetry data feature prediction. Comprising the following steps: normalizing the telemetry data of the spacecraft; extracting telemetry data features by using a first LSTM neural network to realize data dimension reduction; dividing the dimension-reduced spaceflight telemetry data by a time window; training a second LSTM neural network; calculating an error between a predicted feature value and an original feature value of the second LSTM neural network, and classifying data with the error greater than a threshold value as abnormal data; and evaluating the second LSTM neural network model. According to the method, the feature extraction model and the prediction model of the neural network are fused, so that the problem of time series telemetry data anomaly detection under high-dimensional and nonlinear problems is solved, the model training time and the model memory can be reduced under relatively high anomaly detection precision, and the anomaly detection efficiency is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of spacecraft fault detection, and in particular to a spacecraft anomaly detection method based on telemetry data feature prediction. Background Art

[0002] Spacecraft is an important equipment for human space activities. With the development of space technology and the complexity of space activities, the safety risk of spacecraft operation is increasing day by day. The safety of its operation is receiving more and more attention. Anomaly detection of its telemetry data is a key technology to ensure the safe and stable operation of spacecraft. Abnormalities in spacecraft telemetry data are usually caused by factors such as spacecraft sensor failure, communication failure, and changes in the operating environment. Anomaly detection is the most direct and effective means to understand and grasp its operating status, and has always been an important task in spacecraft operation assurance.

[0003] Spacecraft telemetry data is key information indicating the operating status of spacecraft. Unlike general industrial equipment data, telemetry data records the status of the spacecraft's power system, communication and data link information, system health and fault diagnosis information, etc. Among them, anomaly detection on telemetry data can better reflect the data anomaly status during spacecraft communication. Compared with general data, telemetry data is much higher in data dimension and nonlinearity than general industrial equipment data. These characteristics make spacecraft anomaly detection based on telemetry data always challenging. Deep learning technology has achieved great success in telemetry data anomaly detection due to its advantages in prediction and feature extraction, and has become the current mainstream method. However, due to the complexity of data in the deep learning training process, it usually faces problems such as complex model calculation process, large scale, large memory usage, and long training time. Existing research lacks lightweight anomaly detection methods for telemetry data. Summary of the invention

[0004] The present invention discloses a method for detecting anomalies of a spacecraft based on prediction of telemetry data characteristics. The specific method is as follows:

[0005] Normalize spacecraft telemetry data;

[0006] The first LSTM neural network is used to process the normalized spacecraft telemetry data to achieve data dimensionality reduction;

[0007] Divide the space telemetry data after dimension reduction into time windows to obtain training sets and test sets;

[0008] Train the second LSTM neural network with the training set and the test set;

[0009] Calculate the error between the predicted eigenvalue and the original eigenvalue of the second LSTM neural network. Data with an error greater than the threshold is classified as abnormal.

[0010] Evaluate the second LSTM neural network model based on its running time, memory size, and accuracy values.

[0011] Furthermore, the first LSTM neural network includes an input layer, an LSTM layer, a fully connected layer, and an output layer, wherein the input layer and the output layer are respectively set with 90 neurons and 10 neurons according to the time sliding window size, and Dropout and L2 regularization are set in the fully connected layer.

[0012] Furthermore, the first LSTM neural network processes the normalized spacecraft telemetry data in the following specific method:

[0013] LSTM layer processes data:

[0014] f t =σ(w f [h t-1 ,x t ]+b f );

[0015] i t =σ(W i [h t-1 ,x t ]+b i )

[0016]

[0017] O t =σ(W o [h t-1 ,x t ]+b o )

[0018] h t =O t tanh(C t )

[0019] Where: h(t-1) is the output of the previous LSTM unit, f t represents the output of the forget gate, i t represents the output of the input gate, Represents the cell state of the previous LSTM unit, C t represents the cell state at time t, O t represents the output of the output gate, h t represents the output of the LSTM unit at time t, σ represents the Sigmoid function, W and b are the weight and bias terms respectively;

[0020] The encoder encodes the data processed by the LSTM layer:

[0021] Z=Wz *h(t)+b z

[0022] Where W z represents the weight matrix between the hidden layer and the LSTM layer, b z represents the bias term, and h(t) represents the output of the LSTM layer;

[0023] The decoder reconstructs and decodes the output of the encoder:

[0024] y=W d *h(t)+b d

[0025] Where W d represents the weight matrix between the hidden layer and the LSTM layer, b d represents the bias term, and h(t) represents the output of the LSTM layer;

[0026] Calculate the mean square error between the decoder output and the original data. If converged, the model training ends, otherwise repeat until convergence.

[0027] Furthermore, when the error between the predicted eigenvalue and the original eigenvalue of the second LSTM neural network is calculated and the threshold value is compared, the error value is smoothed using a Savitzky-Golay filter.

[0028] Furthermore, the error between the predicted eigenvalue and the original eigenvalue of the second LSTM neural network is calculated. The specific method is as follows:

[0029] The two-dimensional data after feature extraction is converted into coordinates and calculated using the distance formula.

[0030] Furthermore, when recording the accuracy value, the second LSTM neural network calculates the accuracy, precision, recall and F1 score of the anomaly detection result by statistically analyzing the confusion matrix.

[0031] Due to the adoption of the above technical solution, the present invention has the following beneficial effects:

[0032] The present invention solves the problem of anomaly detection of time series telemetry data under high-dimensional and nonlinear problems by fusing the feature extraction model and the prediction model of the neural network. It can reduce the model training time and model memory with higher anomaly detection accuracy and significantly improve the efficiency of anomaly detection.

[0033] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be achieved and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings of the present invention are as follows.

[0035] Figure 1 The figure is an overall flow chart of the method of the present invention.

[0036] Figure 2 Schematic diagram of the structure of the autoencoder feature extraction model of the present invention.

[0037] Figure 3 This is a schematic diagram of the LSTM structure of the present invention.

[0038] Figure 4 Schematic diagram of the prediction model structure of the present invention.

[0039] Figure 5 It is a curve diagram of the feature extraction model training loss value in the embodiment.

[0040] Figure 6 It is a curve diagram of the prediction model training loss value in the embodiment.

[0041] Figure 7 This is a schematic diagram of the first dimension result of the test set feature extraction in the embodiment.

[0042] Figure 8 This is a schematic diagram of the second dimension result of test set feature extraction in the embodiment.

[0043] Fig. 9 Schematic diagram of the relationship between the test set distance error and the threshold in the embodiment. DETAILED DESCRIPTION

[0044] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0045] A spacecraft anomaly detection method based on telemetry data feature prediction, such as Figure 1 As shown, the specific steps are as follows:

[0046] S1, data preprocessing, normalizing the telemetry values ​​in the spacecraft telemetry data;

[0047] In this embodiment, the Mars rover MSL data set from NASA is used. The abnormal conditions and basic information of the data set are shown in Table 1. The telemetry values ​​in the spacecraft telemetry data are normalized, and the processed results are shown in Table 2.

[0048] Table 1 Basic information of the dataset

[0049]

[0050]

[0051] Table 2 Telemetry data processing results

[0052]

[0053] S2. Feature extraction model construction: adding LSTM neural network layer on the basis of autoencoder structure to build a model that can extract the time series features of telemetry data to achieve the purpose of dimensionality reduction;

[0054] Its structure is as Figure 3 As shown, the model structure is as follows Figure 2 As shown, the model output layer is set to 2 layers, the structure of the encoder in the model includes an LSTM layer, a fully connected layer, and an output layer connected in sequence; the structure of the decoder in the model includes an input layer, a fully connected layer, and an LSTM layer connected in sequence.

[0055] S3, telemetry data feature extraction, input the normalized telemetry data into the constructed feature extraction model to obtain the feature data after dimensionality reduction;

[0056] The training steps of the feature extraction model are:

[0057] S31, LSTM layer processes data:

[0058] f t =σ(w f [h t-1 ,x t ]+b f );

[0059] i t =σ(W i [h t-1 ,x t ]+b i )

[0060]

[0061] O t =σ(W o [h t-1 ,x t ]+b o )

[0062] h t =O t tanh(C t)

[0063] In the above formula: h(t-1) is the output of the previous LSTM unit, f t represents the output of the forget gate, i t represents the output of the input gate, Represents the cell state of the previous LSTM unit, C t represents the cell state at time t, O t represents the output of the output gate, h t represents the output of the LSTM unit at time t, σ represents the Sigmoid function, W and b are the weight and bias terms respectively.

[0064] S32. The encoder encodes the data processed by the LSTM layer:

[0065] Z=W z *h(t)+b z

[0066] Where W z represents the weight matrix between the hidden layer and the LSTM layer, b z represents the bias term, and h(t) represents the output of the LSTM layer.

[0067] S33, the decoder reconstructs and decodes the output of the encoder:

[0068] y=W d *h(t)+b d

[0069] Where W d represents the weight matrix between the hidden layer and the LSTM layer, b d represents the bias term, and h(t) represents the output of the LSTM layer.

[0070] S34, calculate the mean square error between the decoder output and the original data. If converged, the model training is completed, otherwise repeat S31 to S34 until convergence.

[0071] The normalized data is input into the constructed feature extraction model for training. The loss value curve during model training is as follows: Figure 5 As shown, the first dimension of the feature data after dimensionality reduction is Figure 7 As shown, the second dimension is Figure 8 shown.

[0072] S4, time window division, take the feature values ​​of the first 90 timestamps as input, and the feature values ​​of the last 10 timestamps as output, divide them in a sliding window manner to obtain the training set and the test set.

[0073] S5. Prediction model construction: LSTM layer and fully connected layer are used to build the prediction model. The prediction model structure includes input layer, LSTM layer, fully connected layer, and output layer in sequence.

[0074] In step S5, the parameters of the feature extraction model and the prediction model are shown in Table 3. According to the division of the time window, the input layer and output layer of the prediction model are set with 90 neurons and 10 neurons respectively according to the time sliding window size. At the same time, Dropout regularization and L2 regularization are set in the fully connected layer and LSTM layer. The model structure is as follows: Figure 4 As shown;

[0075] Table 3 Model parameter setting table

[0076]

[0077] S6. Prediction of telemetry data features. Input the divided data into the prediction model to obtain the predicted feature value. The training loss value curve during the training process is as follows: Figure 6 As shown;

[0078] S7, anomaly detection, calculate the error between the predicted feature value and the original feature data, and the data with an error greater than the threshold will be classified as anomaly.

[0079] In step S7, the predicted feature value and the original feature data are coordinate-converted, and the error is calculated using the distance formula. After the error between the predicted value and the true value is obtained, the error value is firstly calculated using the Savitzky-Golay filter Perform smoothing and set a reasonable threshold. Data with an error greater than the threshold will be classified as abnormal. The relationship between the error and the threshold is shown in the figure below. Fig. 9 As shown;

[0080] S8, model evaluation, record the running time, memory size, and accuracy value of the method, and evaluate the model with specific quantitative indicators;

[0081] In step S8, when recording the accuracy value, the accuracy, precision, recall rate, and F1 score of the model anomaly detection result are calculated by statistically analyzing the confusion matrix. The confusion matrix is ​​shown in Table 4:

[0082] Table 4 Confusion matrix

[0083]

[0084] The accuracy index is calculated as follows:

[0085] Accuracy:

[0086]

[0087] Accuracy:

[0088]

[0089] Recall:

[0090]

[0091] F1 score:

[0092]

[0093] The final statistical model training time, memory size, and accuracy indicators are shown in Table 5:

[0094] Table 5 Model indicators

[0095]

[0096] In order to highlight the lightweight characteristics of the present invention, the anomaly detection method using feature extraction and prediction alone is reproduced under the same hardware experimental environment, and the training time, memory size, and accuracy index are also recorded, as shown in Table 6;

[0097] Table 6 Individual feature extraction and prediction method model indicators

[0098]

[0099] The experimental results show that the present invention greatly reduces the anomaly detection time in the anomaly detection task of high-dimensional and nonlinear telemetry data, while obtaining the accuracy index equivalent to that of the complex model. It only takes 241 seconds, which is 98% less than the method using prediction alone and 30% less than the method using feature extraction alone. At the same time, in terms of model size, the model of the present invention only occupies 1071KB of memory, which is 92% less than the method using prediction alone and 79% less than the method using feature extraction alone. It is explained that the present invention retains the information that can indicate anomalies after the telemetry data is reduced in dimension, and at the same time greatly reduces the difficulty of fitting the prediction model to the data, reduces the amount of calculation of neurons, and thus can complete the training with fewer network layers and neurons, and the memory of the model is thus reduced. At the same time, due to the simplification of the internal structure of the network and the reduction of the amount of calculation of neurons, the model converges faster and the anomaly detection consumes less time. The present invention can obtain good anomaly detection effects while having a shorter detection time and a lighter model.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A spacecraft anomaly detection method based on telemetry data feature prediction, characterized in that: The specific method is as follows: Normalize spacecraft telemetry data; The first LSTM neural network is used to process the normalized spacecraft telemetry data to achieve data dimensionality reduction; Divide the space telemetry data after dimension reduction into time windows to obtain training sets and test sets; Train the second LSTM neural network with the training set and the test set; Calculate the error between the predicted eigenvalue and the original eigenvalue of the second LSTM neural network. Data with an error greater than the threshold is classified as abnormal. Evaluate the second LSTM neural network model based on its running time, memory size, and accuracy values.

2. The spacecraft anomaly detection method based on telemetry data feature prediction according to claim 1, characterized in that: The first LSTM neural network includes an input layer, an LSTM layer, a fully connected layer, and an output layer, wherein the input layer and the output layer are respectively set with 90 neurons and 10 neurons according to the time sliding window size, and Dropout and L2 regularization are set in the fully connected layer.

3. The spacecraft anomaly detection method based on telemetry data feature prediction according to claim 2, characterized in that: The first LSTM neural network processes the normalized spacecraft telemetry data as follows: LSTM layer processes data: f t =σ(w f [h t-1 ,x t ]+b f ); i t =σ(W i [h t-1 ,x t ]+b i ) The t =σ(W o [h t-1 ,x t ]+b o ) h t =O t fishy(C) t ) Where: h(t-1) is the output of the previous LSTM unit, f t represents the output of the forget gate, i t represents the output of the input gate, Represents the cell state of the previous LSTM unit, C t represents the cell state at time t, O t represents the output of the output gate, h t represents the output of the LSTM unit at time t, σ represents the Sigmoid function, W and b are the weight and bias terms respectively; The encoder encodes the data processed by the LSTM layer: Z=W z *h(t)+b z Where W z represents the weight matrix between the hidden layer and the LSTM layer, b z represents the bias term, and h(t) represents the output of the LSTM layer; The decoder reconstructs and decodes the output of the encoder: y=W d *h(t)+b d Where W d represents the weight matrix between the hidden layer and the LSTM layer, b d represents the bias term, and h(t) represents the output of the LSTM layer; Calculate the mean square error between the decoder output and the original data. If converged, the model training ends, otherwise repeat until convergence.

4. The method for detecting anomalies of a spacecraft based on prediction of telemetry data characteristics according to claim 1, characterized in that: When the error between the predicted eigenvalue and the original eigenvalue of the second LSTM neural network is calculated and the threshold is compared, the error value is smoothed using a Savitzky-Golay filter.

5. The method for detecting anomalies of a spacecraft based on prediction of telemetry data characteristics according to claim 4, characterized in that: Calculate the error between the predicted eigenvalue and the original eigenvalue of the second LSTM neural network. The specific method is as follows: The two-dimensional data after feature extraction is converted into coordinates and calculated using the distance formula.

6. The method for detecting anomalies of a spacecraft based on prediction of telemetry data characteristics according to claim 1, characterized in that: When the second LSTM neural network records the accuracy value, it calculates the accuracy, precision, recall and F1 score of the anomaly detection result by statistically analyzing the confusion matrix.

Citation Information

Patent Citations

  • Spacecraft telemetry data exception detection method based on integrated LSTM

    CN109934337A

  • Power data anomaly detection and prediction method and system based on PCA-LSTM

    CN116245212A

  • Satellite data detection method by using preprocessed data to establish LSTM (Long Short Term Memory) network

    CN116680647A