Anomaly Detection of Spacecraft Telemetry Data Using Temporal Convolution Network
Anomaly Detection of Spacecraft Telemetry Data Using Temporal Convolution Network
and publication.
Abstract—Spacecraft telemetry data is the only basis for the For on-orbit spacecraft, in order to monitor the internal
2021 IEEE International Instrumentation and Measurement Technology Conference (I2MTC) | 978-1-7281-9539-1/21/$31.00 ©2021 IEEE | DOI: 10.1109/I2MTC50364.2021.9459840
ground management and operation system to determine its on- operating status and obtain real-time data, the information is
orbit status. The rapid development of on-orbit spacecraft measured by sensors in the spacecraft telemetry system, which
generates a large amount of telemetry data with high is converted into electrical signals. After the signals are
dimensionality and complex correlation between variables, combined according to a certain rule, the radio
which brings great challenges for current and future ground communication technology is used to transmit signals to the
management and operation for these spacecrafts. As a result, its ground telemetry equipment which includes receivers,
anomaly detection becomes an essential solution for enhancing antennas, and split demodulators [1]. The ground equipment
the operation safely and reliably and realizing intelligent
restores the original variable information of each channel
maintenance. The above issues make it a hot spot research topic
for realization of high detection rate, low false detection rate,
through the signal demodulation technology. Those variables
and strong interpretability of anomaly detection of telemetry obtained in this case is defined as the spacecraft telemetry data
data. In further, timely detection of abnormalities can reduce [2]. With the increasement of society requirements, the
spacecraft unexpected accidents. Recently, Temporal number of spacecrafts increases gradually so that the
Convolution Network (TCN) has arisen much attention for dimension of telemetry data which needs real-time monitoring
telemetry time series data modeling by its good parallel expands extremely. It is a challenge to monitor massive data
processing ability and temporal characterization. Thus, this by humanity and the experience of experts. Therefore,
paper proposes an anomaly detection model for spacecraft analyzing the dataset is of benefit to the transition from
telemetry data based on TCN time series prediction. Firstly, collecting, transmitting, storing data to mine the value of data.
TCN algorithm is used to extract features of telemetry data and Telemetry data are multidimensional time series [3]. The
make a prediction. Then, the potential anomalies are anomaly detection for multivariate telemetry data draws much
determined by the static threshold judgement method. Actual attention on time series prediction methods in recent years.
satellite telemetry data are used to implement performance
evaluation and comparison. The proposed method is compared At present, the time series prediction methods based on the
with Long Short Term Memory (LSTM) algorithm which is also data-driven model [4, 5] are developed rapidly. The earliest
a widely utilized algorithm in recent time series analysis. Four use of data-driven model is Autoregressive (AR) which acts
metrics are adopted for the experiments: the detection accuracy, on linear time series, but there are many parameter restrictions
detection rate, false detection rate and model inference time. for stationary time series. The introduction of the differential
TCN achieves high accuracy, high detection rate and low false process does not require conditional restrictions to detect
detection rate. In addition, TCN save much more model weakly stationary time series data. Box and Jenkins et al. [6]
inference time than LSTM with long timestep. Generally, TCN proposed Autoregressive Moving Average (ARMA) in 1920s.
is superior to LSTM on operating efficiency. In terms of strongly stationary time series, Box and Jenkins et
al. [7] proposed Autoregressive Integrated Moving Average
Keywords—anomaly detection, telemetry data, TCN, LSTM Model (ARIMA) in 1970s. From the evolution of statistical
I. INTRODUCTION models, the AR model makes a great contribution. As the
diversity of data features increases, machine learning occupies
Spacecraft is a complex system which makes great the main position in prediction in recent years. Back-
contributions to meteorological observation, military Propagation (BP) is the classical algorithm in machine
reconnaissance and resource survey, etc. However, with the learning. Zhao et al. [8] predicted toxic activity on different
gradual improvement of the design complexity and datasets based on Support Vector Machine (SVM).
functionality of spacecraft, it is a challenge to process and Rasmussen et al. [9] proposed Gaussian Process Regression
analyze data for safe and reliable operation of spacecrafts only (GPR) which integrated statistics and machine learning. Both
through traditional reliability engineering methods [1]. SVM and GPR can support not only one-dimensional data, but
Therefore, it is necessary to monitor abnormal data which are also multidimensional data. However, the above models do
different from normal data or not in line with the spacecraft not achieve a good performance with large amount of complex
working mode setting. Timely and effectively discover data. Big data increase computation complexity and occupy
abnormal patterns, and repair or troubleshoot in time remote amount of resources. The propose of Recurrent Neural
command repair, transmission link repair, which is important Network (RNN) [10] effectively decreases the requirement of
for improving the quality of ground service, maintaining the computation resources, but traditional RNN often occurs
maturity, safety and reliability on the design and production vanishing gradient or explosion when analyzing long time
of the spacecraft have significant practical meaning. Thus, the series. Long Short Term Memory (LSTM) [11], as a special
main purpose for anomaly detection is to detect the RNN structure, is proposed to solve the above problems. Also,
components failed, evaluate health statues and warn in LSTM reserves advantages of RNN and has the ability of
advance. remembering long-term series. Due to the fact that LSTM
978-1-7281-9539-1/21/$31.00
Authorized ©2021 Technological
licensed use limited to: Visvesvaraya IEEE University Belagavi. Downloaded on March 30,2024 at 08:45:49 UTC from IEEE Xplore. Restrictions apply.
merely parses one batch of data, this model consumes long K
d=2
output
hidden layer
d=1
· · · dot product
input
x1 x2 · · · xT
Authorized licensed use limited to: Visvesvaraya Technological University Belagavi. Downloaded on March 30,2024 at 08:45:49 UTC from IEEE Xplore. Restrictions apply.
Input for next down
residual block H th* =P e z G e (5)
+ Residual block (k,d)
where P e is the mean of e . G e is the standard
Dropout
deviation of e . z is the coefficient to trade off mean and
ReLU standard deviation. Generally, z is the confidence level under
the 99.7% confidence interval which obeys normal
WeightNorm up
Optional 1×1
distribution. If the error exceeds the upper threshold H th*
Dilated Causal Conv Conv down
or below the down threshold H th* , the data at this
Dropout
position is considered as an abnormal value.
ReLU
IV. EXPERIMENTS AND RESULTS ANALYSIS
WeightNorm
A. Data Description and Evaluation Metrics
Dilated Causal Conv A set of real telemetry datasets of solid state power
Output from previous amplifier which are transmitted from two different satellites
residual block are used for experiments to evaluate the performance of TCN.
Fig. 4. The diagram of residual connection The variables of experimented data from the first satellite are
voltages and currents, and the data vary in a periodic trend.
III. ANOMALY DETECTION BASED ON TCN TIME SERIES There are enough samples to show the periodicity in the
PREDICTION training datasets. The variables of experimented data from the
other satellite are currents and temperatures, and the data are
The anomaly detection model of spacecraft telemetry data
in a long-term trending variation. Also, there are enough
based on TCN time series prediction is focused on in this
samples to show the rising or descending trend in the training
section. A framework is given in Fig. 5, and there are two main
datasets. In addition, two common types of anomalies are
units: the prediction unit and the anomaly detection unit. The
injected into the real data respectively to simulate anomalies:
main TCN algorithm is described in Section II. Before training
point anomalies and contextual anomalies. Point anomalies
and testing, the datasets need to be normalized. The proposed
are individual data points which are different from remaining
anomaly detection method is illustrated as follows.
normal data points among whole spacecraft data. The
abnormal data where the associated environment between
Train datasets Prediction Unit
Train TCN/LSTM upper and lower of telemetry data is time are contextual
anomalies. Figure 6 gives an intuitive visualization of points
Training
Telemetry
Datasets
Data
Preprocessing Model and contextual anomalies.
Metrics are important factors to evaluate the performance
Test
Test datasets
TCN/LSTM
of models. Accuracy (ACC), True Positive Ratio (TPR) and
False Positive Ratio (FPR) [14] are the common metrics used
Predicted Data
ŷt
for the anomaly detection. The propose of TCN is to save
Error e=ŷt -yt
Threshold
Anomaly interval
Performance model inference time, so the time consume is also an
caculation evaluation
important indicator. Specifically, time consume is the running
Original Data yt
Anomaly detection Unit time to predict the test data.
Fig. 5. The framework of anomaly detection ACC, TPR and FPR can be expressed as follows:
Authorized licensed use limited to: Visvesvaraya Technological University Belagavi. Downloaded on March 30,2024 at 08:45:49 UTC from IEEE Xplore. Restrictions apply.
LSTM algorithm. Reference [15] introduced its theories
detailly. In the experiment, considering different types of
telemetry data for universality of results, firstly, take
randomly three sets of telemetry data with short previous
timestep. Specifically, the parameter timestep is set to 20, and
take the average (AVG) of metrics of ACC, TPR, FPR and
model time consume. Take the battery voltage as an example,
its visual results of TCN and LSTM are shown as Fig. 6 and
Fig. 7 separately. The red dotted line represents predicted data,
and the blue solid line represents actual data. These two
figures state the ability of TCN to predict the periodicity of
telemetry data is as good as LSTM. Also, the difference of
predicted data and actual data based on TCN is obvious in
terms of anomalies, contextual anomalies in particular.
In order to obtain anomalies directly, the residuals of
predicted data and actual data are calculated. Then, the upper
and lower thresholds are obtained with the formular (5)
through the residual statistics. The residual curve of predicted Fig. 8. Residual of voltage 1 based on TCN and LSTM respectively
and actual values is shown in Fig. 8. The red line represents
the curve of residuals and the black line represents the upper It can be seen from the Table I, TCN has an excellent
threshold and down threshold. Obviously, TCN obtains performance like LSTM in terms of ACC, TPR and FPR.
prominent anomalies. However, it is difficult to observe the These three metrics indicate that the detection performance is
positions and the specific number of detected anomalies from in high accuracy, high detection rate and low false detection.
the pictorial results. The metrics of telemetry data with short In addition, both methods achieve a good performance in
timestep based on TCN and LSTM are shown on Table I, model inference time, neither of which exceeds 1s. However,
which proves the performance of models convincingly. In the parallel ability of TCN is not reflected from the above
addition, metrics can quantify the points which exceed the experiments. There is no verification on high operating
upper and lower boundaries in Fig.8 to determine actual efficiency of TCN. The reason of this occurrence is that the
anomalies and false detection reflected from TPR and FPR of amount of previous data, i.e., timestep, is not as enough to
voltage1 in Table I. TPR of voltage1 based on TCN is higher demonstrate the parallel feature. In order to explore the
than that based on LSTM, and FPR of voltage1 based on TCN parallel function and the learning ability of TCN, two sets of
is lower than that based on LSTM, which demonstrates all experiments with large amount of data are conducted to ensure
actual anomalies and fewer false detected points break the sufficient training in the case of long timestep. The timestep is
boundaries based on TCN. set to 200 in this experiment. This set of data is current
telemetry data of solar panels with a descent trend. Figure 9
and 10 show the predicted data and actual test data as well as
residuals based on LSTM and TCN respectively. By checking
Fig.9, both methods have a good regression with a descend
trend. In Fig.10, it is obvious that both methods detect two
parts of anomalies which exceed the upper and lower
boundaries. The metrics of large telemetry data is given in
Point anomaly Table II.
Authorized licensed use limited to: Visvesvaraya Technological University Belagavi. Downloaded on March 30,2024 at 08:45:49 UTC from IEEE Xplore. Restrictions apply.
Moreover, TCN consumes less model inference time no
matter with short timestep or long timestep due to its parallel
ability. Generally, TCN can be applied to the anomaly
detection of spacecraft telemetry data with good detection
performance even high operating efficiency. Actually, the
proposed method is currently attempted to Beidou satellites
developed by Innovation Academy for Microsatellites of CAS.
More detailed test results will be reported in the next couple
of months to indicates its potential applicable capabilities.
Actual engineering applications generally need online
detection method due to the telemetry data of satellite is
transmitted as a real-time dataflow. The high accuracy and
operating efficiency of TCN are suitable for online detection.
In further, the proposed method will be improved for real
Fig. 9. Anomaly detection of current based on TCN and LSTM respectively satellite online anomaly detection, i.e., multiple variables of
telemetry data, and complex anomaly modes.
REFERENCES
[1] X. Peng, J. Pang, Y. Peng, and D. Liu, "Review on anomaly detection
of spacecraft telemetry data," Chinese Journal of Scientific Instrument,
vol. 37, no. 9, pp. 1929-1945, 2016 (in Chinese).
[2] K. Hundman, V. Constantinou, C. Laporte, I. Colwell, and T.
Soderstrom, "Detecting spacecraft anomalies using lstms and
nonparametric dynamic thresholding," in Proceedings of the 24th ACM
SIGKDD international conference on knowledge discovery & data
mining, 2018, pp. 387-395.
[3] A. Doudkin, Y. Marushko, J. Owsiński, and T. Pawlowski, "Spacecraft
Telemetry Time Series Forecasting With Ensembles of Neural
Networks," in 2019 10th IEEE International Conference on Intelligent
Data Acquisition and Advanced Computing Systems: Technology and
Applications (IDAACS), 2019, vol. 2: IEEE, pp. 752-756.
[4] B. Wang, X. Peng, M. Jiang and D. Liu, "Real-Time Fault Detection
for UAV Based on Model Acceleration Engine," in IEEE Transactions
Fig. 10. Residual of current based on TCN and LSTM respectively
on Instrumentation and Measurement, vol. 69, no. 12, pp. 9505-9516,
Dec. 2020.
TABLE II. METRICS OF ANOMALY DETECTION WITH LONG TIMESTEP
[5] B. Wang, D. Liu, Y. Peng and X. Peng, "Multivariate Regression-
Telemetry data Based Fault Detection and Recovery of UAV Flight Data," in IEEE
Model Metrics Transactions on Instrumentation and Measurement, vol. 69, no. 6, pp.
Current2 Temperature AVG
3527-3537, June 2020.
ACC 99.42% 95.56% 97.49%
[6] G. E. Box, G. M. Jenkins, G. C. Reinsel, and G. M. Ljung, Time series
TPR 99.46% 99.73% 99.60% analysis: forecasting and control. John Wiley & Sons, 2015.
LSTM [7] P. J. Brockwell, R. A. Davis, and M. V. Calder, Introduction to time
FPR 0.58% 4.80% 2.69% series and forecasting. Springer, 2002.
Op.Time 8.198s 1.401s 4.800s [8] C. Zhao, H. Zhang, X. Zhang, M. Liu, Z. Hu, and B. Fan, "Application
of support vector machine (SVM) for prediction toxic activity of
ACC 99.07% 93.82% 96.45% different data sets," Toxicology, vol. 217, no. 2-3, pp. 105-119, 2006.
TPR 97.30% 96.43% 96.865% [9] C. K. Williams and C. E. Rasmussen, Gaussian processes for machine
TCN learning (no. 3). MIT press Cambridge, MA, 2006.
FPR 0.71% 6.40% 3.56% [10] B. Bakker, "Reinforcement learning by backpropagation through an
LSTM model/critic," in 2007 IEEE International Symposium on
Op.Time 0.383s 0.188s 0.571s Approximate Dynamic Programming and Reinforcement Learning,
2007: IEEE, pp. 127-134.
Table II indicates that the average of ACC and TPR based [11] F. Gers, "Long short-term memory in recurrent neural networks," Ph.D.
thesis, Universität Hannover, 2001.
on both models exceed 95% and the average of FPR is below
5%, which remains good performance. The discrepancy of [12] S. Bai, J. Z. Kolter, and V. Koltun, "An empirical evaluation of generic
convolutional and recurrent networks for sequence modeling," arXiv
model inference time between TCN and LSTM is significant. preprint arXiv:1803.01271, 2018.
TCN still keeps excellent property in model inference time, [13] P. Lara-Benítez, M. Carranza-García, J. M. Luna-Romera, and J. C.
but LSTM spends much more time with long previous Riquelme, "Temporal Convolutional Networks Applied to Energy-
timestep than itself in the experiment with short timestep. It Related Time Series Forecasting," Applied Sciences, vol. 10, no. 7, pp.
can be proved that TCN is more significant in saving model 2322, 2020.
processing time and achieve a good detection performance. [14] J. Dong, J. Pang, Y. Peng, and D. Liu, "Spacecraft telemetry data
anomaly detection method based on ensemble LSTM," Chinese Journal
V. CONCLUSION AND FUTURE WORK of Scientific Instrument, vol. 40, no. 7, pp. 22-29, 2019 (in Chinese).
[15] D. Pan, Z. Song, L. Nie, and B. Wang, "Satellite Telemetry Data
This work achieves anomaly detection analysis of Anomaly Detection Using Bi-LSTM Prediction Based Model," in 2020
spacecraft telemetry data transmitted from the on-orbit IEEE International Instrumentation and Measurement Technology
satellite and evaluates the performance of TCN by being Conference (I2MTC), 2020: IEEE, pp. 1-6.
compared with LSTM. Both models perform satisfied
detection performance reflected on ACC, TPR and FPR.
Authorized licensed use limited to: Visvesvaraya Technological University Belagavi. Downloaded on March 30,2024 at 08:45:49 UTC from IEEE Xplore. Restrictions apply.