Paper commentary
Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholding
LSTM networks flag spacecraft telemetry anomalies that fixed limits miss
- Problem Fixed limit checks miss spacecraft telemetry anomalies that only show up in a signal's temporal pattern, and expert-built monitoring is costly to maintain.
- Method The authors give each telemetry channel its own LSTM, which predicts the next value. Smoothed errors are thresholded without labels, and weak anomalous sequences are pruned.
- Results Over labeled SMAP and MSL anomalies, the pruned version reached 87.5% precision and 80.0% recall.
Why fixed limits fall short for telemetry
Spacecraft carry thousands of telemetry channels covering temperature, radiation, power and computing activity, so monitoring them is a core part of operations. Most operational monitoring relies on tiered alarms against predefined limits, plus manual inspection of plots and aggregate channel statistics. Expert systems and nearest-neighbor methods have been applied to a small number of spacecraft, but they require substantial expert effort to define and maintain nominal ranges.
Limit-based and density-based detectors can miss anomalies whose values stay within the defined limits, or anomalies that are only visible through their temporal pattern. The authors separate point anomalies, which are single values in low-density regions, from contextual anomalies, which are single values that look normal in isolation but are anomalous relative to their local neighbors.
Under these conditions, detectors that are both more accurate and more scalable are needed to use limited engineering time well.
One LSTM per telemetry channel
Each telemetry channel gets its own LSTM, because LSTMs struggle to predict high-dimensional outputs when all channels share one model. Separate models keep each anomaly traceable to one channel, so channel-level results can later be grouped into subsystems and engineers can see where an issue starts. Per-channel models also give finer control: training can be stopped early for a channel whose validation error stops falling, and a channel with high-variance predictions can be adjusted without touching the rest of the system.
The prediction length is one step and only one dimension is predicted, so each step yields a single scalar prediction of the next telemetry value. Each model has two hidden layers with 80 units each, a sequence length of 250, dropout of 0.3, a batch size of 64, and the Adam optimizer, trained for up to 35 iterations with early stopping. The input dimension is 25 for SMAP and 55 for MSL, because the two missions have different sets of command modules.
The one-step-ahead predictions have an average normalized absolute error of 5.9% in total, which is 5.5% on SMAP and 6.8% on MSL. These errors are the raw material for the thresholding stage, so the threshold method is only as informative as the predictions behind it.
Turning prediction errors into anomalies
The absolute difference between the true value and the prediction at each step forms an error, and these errors are collected over a history of h values. Because LSTM predictions produce sharp error spikes even when behavior is nominal, the errors are passed through an exponentially-weighted average before any threshold is applied.
The threshold is taken from a family of candidates of the form \(\epsilon = \mu(e_s) + z\sigma(e_s)\), where \(z\) is a positive multiplier of the standard deviation of the smoothed errors. In the experiments \(z\) ranges over 2.5 to 10.0, and values below two were found to produce too many false positives in the development work. Smoothed errors above the chosen threshold form contiguous anomalous sequences, which are the units later scored and pruned.
That gain is penalized by the number of anomalous values and the number of anomalous sequences, which keeps the rule from flagging too much. Each anomalous sequence then gets a score based on the highest smoothed error inside it and its distance from the selected threshold, so that more severe sequences rank higher.
Pruning weak anomalous sequences
The maximum smoothed error of each anomalous sequence is collected and sorted in descending order, and the largest non-anomalous smoothed error is appended to the end of the list. The list is then walked step by step, and at each step the percent decrease between consecutive maxima is computed as follows.
\[ d(i) = \frac{e^{max}_{(i-1)} - e^{max}_{(i)}}{e^{max}_{(i-1)}} \] If the decrease at some step exceeds the minimum decrease p, the sequences with larger maxima before that step stay anomalous. If the decrease never exceeds p from that point on, the remaining sequences are reclassified as nominal.
In the worked example of the pruning figure, the drop from the top sequence to the next is 0.23 and stays above p = 0.1, so that sequence remains anomalous. The idea is that a sequence whose maximum barely separates from ordinary noise should not be reported, and that testing only a few maxima is cheaper than comparing every value.
Minimum scores per channel
The second mitigation rests on the assumption that anomalies of similar magnitude do not keep recurring on the same channel. A minimum score s_min is therefore set for a channel, and future anomalies scoring below it are reclassified as nominal. This is applied only to channels whose anomaly rate has been high, and s_min is set separately for each such channel.
Past anomaly scores on a channel can guide the choice of s_min, depending on how much precision is wanted relative to recall. If users label anomalies, confirmed false positives can set s_min near the top of their score range, which accounts for normal behavior that appears regularly.
How predictions are scored against ISA labels
Labeled anomalies come from Incident Surprise, Anomaly reports, where specific telemetry channels and time ranges were checked and labeled by hand. The labeled set has 105 anomaly sequences in total, 69 from SMAP and 36 from MSL, drawn from 82 unique telemetry channels and 47 unique ISAs. Of these sequences, 62 are point anomalies (59%) and 43 are contextual anomalies (41%), and the evaluation covers 496,444 telemetry values.
For each stream, the evaluation window runs from three days before the primary anomaly to two days after it, and the model is trained on the two days that precede that window's start.
A true positive is recorded when any part of a predicted sequence falls inside a labeled sequence, and only one true positive is counted per labeled sequence. A labeled sequence with no overlapping prediction is a false negative, and each predicted sequence that overlaps no labeled region is a false positive. Scoring does not adjust for how early a detection was made or how far a false positive lies from a labeled region.
Non-parametric thresholding against the Gaussian tail
With LSTM predictions, the non-parametric approach with pruning (p = 0.13) reaches a total precision of 87.5%, a total recall of 80.0% and a total F0.5 score of 0.71. By SMAP and MSL, the same setting gives 85.5% precision and 85.5% recall on SMAP, and 92.6% precision and 69.4% recall on MSL.
Without pruning (p = 0), the same thresholds give a total precision of 48.9%, a total recall of 84.8% and a total F0.5 score of 0.47. Pruning therefore lowers total recall by 4.8 percentage points, from 84.8% to 80.0%, and raises total precision by 38.6 percentage points, from 48.9% to 87.5%. The authors read the 84.8% recall of the unpruned version as an approximate upper bound for recall, since the thresholds cannot find anomalies the predictions do not expose.
Its best total F0.5 score is 0.66, with pruning at \(\epsilon_{norm} = 0.01\) and p = 0.13, which is below the 0.71 of the non-parametric approach with pruning. Its total recall with pruning is 62.9%, against 80.0% for the non-parametric approach with pruning.
Using D'Agostino and Pearson's normality test, normality is rejected for all sets of smoothed errors at alpha = 0.005. The authors attribute part of the gap to this violation, since the information lost by fitting Gaussian parameters cannot be recovered by pruning.
Point and contextual anomalies
Across both missions, recall with non-parametric thresholding and pruning is 90.3% for point anomalies and 69.0% for contextual anomalies. By mission, recall for point anomalies is 78.9% on MSL and 95.3% on SMAP, and for contextual anomalies it is 58.8% on MSL and 76.0% on SMAP.
Contextual anomalies make up 41% of the labeled set, and the authors argue that only the subset lying in low-density regions could be caught by limit-based or density-based methods. On this reading, the LSTM-based approach is needed for the contextual share, and the recall on contextual anomalies, while lower, is still a majority.
Why MSL is harder than SMAP
SMAP operations are routine, so its telemetry is easier to predict with less training data. MSL shows a wider range of behaviors with uneven regularity, and some of them occurred during rover activities absent from the limited training data.
The one-step prediction error is 5.5% on SMAP and 6.8% on MSL, so the prediction gap matches the detection gap between the two missions. The authors read the lower precision and recall on MSL as a consequence of this more varied behavior.
SMAP pilot deployment
Models are retrained offline every three days with early stopping, and several confirmed anomalies have been identified since deployment in October 2017.
The main obstacle to making the system a central part of telemetry review is the false positive rate, because engineers are reluctant to change working procedures. With over a million telemetry values processed per day, the authors consider high precision essential for adoption, since even a few false positives can discourage users.
Limitations
The reported precision is probably optimistic, because the experiment assumes anomalies occur once every five days and does not process streams that show no anomaly during a window. The authors state that tuning favored precision, and that the operational system is offset by minimum anomaly scores rather than by the experimental setting.
Command information is one-hot encoded only at the module level, so the nature of each command is not given to the models. The authors expect this to limit prediction on missions without routine operations, such as MSL, and name more granular command and event data as future work.
Experiments cover only SMAP and MSL, and no comparison is made between the LSTM approach and other predictive models. The p and z parameters were tuned to balance precision and recall, so the reported thresholds are not an independent test of the method.
Paper info
- Authors
- Kyle Hundman, Valentino Constantinou, Christopher Laporte, Ian Colwell, Tom Soderstrom
- Venue
- arXiv · Preprint
- First published
- 2018-2-13
- Added
- 2026-11-12
- Updated
- 2018-6-6
- Version
- v3
- arXiv
- 1802.04431
- DOI
- 10.1145/3219819.3219845
- Category
- cs.LG · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Kyle Hundman, Valentino Constantinou, Christopher Laporte, Ian Colwell, Tom Soderstrom (2018). Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholding. arXiv:1802.04431v3. https://doi.org/10.1145/3219819.3219845
BibTeX
@article{hundman2018detecting,
title = {{Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholding}},
author = {Kyle Hundman and Valentino Constantinou and Christopher Laporte and Ian Colwell and Tom Soderstrom},
year = {2018},
eprint = {1802.04431},
archivePrefix = {arXiv},
doi = {10.1145/3219819.3219845},
url = {https://arxiv.org/abs/1802.04431v3}
}