Foundations to Frontier
Tests
K. Time Series and Sensor Data › K3 Anomaly and Change Detection

Spacecraft telemetry anomaly detection

Spacecraft send back thousands of telemetry channels: temperatures, currents, voltages, attitude rates and command logs. Operators cannot watch them all, so detectors must flag the few events that matter without flooding the team with false alarms. This page builds a Telemanom-style pipeline: a forecaster per channel that uses orbit phase and commands, smoothed forecast errors, and the nonparametric dynamic threshold with pruning. It then compares fixed and dynamic thresholds on 80 simulated channels, with stable and with changing sensor noise.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Thousands of channels, few people

A satellite’s battery temperature rises and falls every orbit as it moves between sunlight and Earth’s shadow, and jumps when a heater is switched on. A detector has to know these normal rhythms so it is not surprised by them. It must also keep quiet most of the time: if it raises ten false alarms a day, operators learn to ignore it, and then they miss the real one.

Anomaly lab
A temperature channel with a 95-sample orbit and a commanded heater; from sample 300 the sensor noise is ×1, and a freeze starts at 600. The forecaster knows the orbit and heater response plus AR(1) noise. Smoothed errors (bottom) against a fixed 6 sd threshold from samples 50–300 (0.20) and the dynamic threshold (1.08): events flagged with the fixed threshold 1 (anomaly found: yes), with the dynamic one 1 (found: yes).
Why engineers care

NASA’s Telemanom was tested on telemetry from the SMAP satellite and the Curiosity rover, with anomalies labelled from real incident reports.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Normal telemetry often follows…
  2. 2. Too many false alarms make operators…
  3. 3. A command log tells the detector…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

By hand

  • Per-channel forecasting: an LSTM (in Telemanom) or another model predicts each channel from its recent values plus commands and context such as orbit phase.
  • Smoothed errors: absolute one-step errors smoothed by an EWMA, so isolated noise does not trigger alarms.
  • Nonparametric dynamic threshold: for each window of errors, try ε = mean + z·sd for z from 2 to 10 and pick the one that most reduces the mean and sd of the remaining errors relative to the number of flagged points and (squared) events. No distribution is assumed and the threshold adapts to each channel’s current noise.
  • Pruning: sort flagged events by peak error and drop those whose peak is within a fraction p (13% in the paper) of the next one or of the largest normal error.
  • Event-level evaluation: a detected event counts if it overlaps a labelled anomaly; precision matters greatly because operator attention is scarce.
  • Spacecraft anomaly kinds: frozen sensors, offsets, noise bursts, drifts, commands not executed, and space-weather effects such as single-event upsets.
📝 Quick check (Level 1)
0/3 answered
  1. 1. The dynamic threshold is chosen…
  2. 2. Pruning removes events whose peak error is…
  3. 3. Telemanom's forecaster is…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

A Telemanom-style pipeline

Exercise 1.

  • A simulated temperature channel: an orbital cycle of 95 samples, a heater switched on and off at random with a first-order response, and AR(1) sensor noise.
  • A ridge forecaster from the last 5 values, the filtered heater command and the orbit phase.
  • Smoothed errors and the dynamic threshold on a test segment where the sensor freezes for 150 samples.

Practice.

  • Feed the forecaster what the spacecraft was told to do: commands and modes explain many large but normal changes.
  • Set thresholds per channel and per window, because noise levels differ between channels and drift over the mission.
  • Tune for precision first, then recover recall by adding channels or kinds of checks.
  • Group alarms across channels into incidents so one fault does not produce dozens of messages.
  • Tools: Telemanom (open source), the SMAP/MSL labelled data set, Merlion, Orion (MIT).
import numpy as np

def dynamic_threshold(e, zs=np.arange(2, 10.5, 0.5)):
    mu, sd = e.mean(), e.std()
    best, eps_best = -np.inf, mu + zs[-1] * sd
    for z in zs:
        eps = mu + z * sd
        below, above = e[e < eps], e >= eps
        if above.any():
            gain = (mu - below.mean()) / mu + (sd - below.std()) / sd
            score = gain / above.sum()  # the full criterion adds (number of events)² here
            if score > best: best, eps_best = score, eps
    return eps_best
🐍 Exercise 1: forecasting a telemetry channel
Simulate a channel with an orbital cycle and a commanded heater, fit a forecaster from lags, command and orbit phase, and detect a frozen sensor with the dynamic threshold.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Thresholds should be set…
  2. 2. Alarms from many channels for one fault should be…
  3. 3. A labelled spacecraft telemetry data set:

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

What the threshold criterion rewards. Removing the errors above ε lowers the mean and sd of what is left. A real anomaly is a block of large errors, so removing it lowers both a lot while flagging few points and one event. Spreading flags over many small noise peaks lowers them little and costs many events, which the squared event count penalises. In p3 a single block of 50 large errors was separated exactly.

Fixed versus dynamic thresholds. A fixed threshold from training errors is right only if the test errors have the same distribution. If the sensor becomes noisier, the smoothed errors rise everywhere and a fixed threshold fires constantly. The dynamic threshold is computed on the current errors, so it scales with them. The price is that every window gets judged on its own, so in a window with an anomaly the threshold may land above a moderate one.

Pruning. With one event, pruning compares its peak with the largest error below the threshold. Because the errors are smoothed, that largest normal error is often just under the threshold, so a modest anomaly falls within 13% of it and is dropped. Pruning therefore raises precision but can cost much recall.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The squared event count in the criterion penalises…
  2. 2. Fixed thresholds fail when…
  3. 3. Pruning mainly trades…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

On 80 simulated channels with five kinds of anomaly, how do fixed thresholds (3 or 6 sd of training errors), the dynamic threshold and the dynamic threshold with pruning compare, when the test noise matches training and when it changes?

History.

  • Early spacecraft monitoring relied on fixed limit checks and expert rules.
  • K. Hundman et al. (2018, NASA JPL) introduced Telemanom: LSTM forecasts, error smoothing, the nonparametric dynamic threshold and pruning, evaluated on labelled SMAP and MSL anomalies.
  • Later work (OmniAnomaly 2019, USAD 2020, TranAD 2022) proposed multivariate deep detectors; ESA released a large benchmark of satellite telemetry anomalies (ESA-ADB, 2024).

Exercise 2.

  • 80 channels per scenario; each is fitted on 4000 normal samples and tested on 2000 samples.
  • 80% of test segments contain one anomaly: freeze (150 samples), offset of 0.5–1 (150), noise burst (150), drift up to 0.6–1.2 (300), or a heater command logged but not executed (300). The rest contain none.
  • Scenario 2: the sensor noise in the test segment is 0.7–2 times the training noise.
  • An event counts if it overlaps a true anomaly within 50 samples; precision is over flagged events, recall over anomalies.

Seed 0:

threshold precision, same noise recall, same noise precision, noise changes recall, noise changes
fixed, mean + 3 sd 0.24 1.00 0.10 1.00
fixed, mean + 6 sd 0.61 1.00 0.09 0.98
dynamic 0.59 0.81 0.51 0.70
dynamic + pruning 0.75 0.52 0.71 0.41
  • With stable noise, a fixed 6 sd threshold from training data was best: all anomalies found, precision 0.61.
  • When the noise changed, both fixed thresholds collapsed to precision 0.09–0.10, about 9 false alarms for every true one. The dynamic threshold kept precision 0.51.
  • The dynamic threshold missed mostly the subtle kinds: with stable noise it found every freeze, noise burst and unexecuted command, but only 60% of offsets and 57% of drifts.
  • Pruning raised precision but cut recall sharply.
  • Seeds 1 and 2: with changing noise, fixed 6 sd precision 0.07 and 0.08, dynamic 0.58 and 0.60 (recall 0.79 and 0.76). With pruning precision was 0.68 and 0.53, not always higher.
🐍 Exercise 2 (research): on 80 simulated channels with five kinds of anomaly, how do fixed thresholds (3 or 6 sd of training errors), the dynamic threshold and the dynamic threshold with pruning compare, when the test noise matches training and when it changes?
Simulate 80 telemetry channels with five anomaly kinds, detect with fixed, dynamic and pruned dynamic thresholds on smoothed forecast errors, and compare event-level precision and recall with stable and with changing sensor noise.

Telemetry monitoring in practice

  • Operations: detectors run per channel and per subsystem; flagged events go to engineers with plots of the channel, the forecast and related channels.
  • Context: eclipses, manoeuvres, safe mode and instrument modes change normal behaviour; including them as inputs avoids false alarms.
  • Space weather: radiation and geomagnetic storms cause bit flips and sensor glitches, linking telemetry anomalies to the space-weather topic earlier in the course.
  • Benchmarks: evaluations on SMAP/MSL have been criticised for trivial anomalies and label issues; ESA-ADB offers a larger, carefully labelled alternative.

References

  1. K. Hundman, V. Constantinou, C. Laporte, I. Colwell and T. Soderstrom (2018). “Detecting spacecraft anomalies using LSTMs and nonparametric dynamic thresholding.” KDD.
  2. Y. Su et al. (2019). “Robust anomaly detection for multivariate time series through stochastic recurrent neural network.” KDD.
  3. J. Audibert, P. Michiardi, F. Guyard, S. Marti and M. A. Zuluaga (2020). “USAD: unsupervised anomalies detection on multivariate time series.” KDD.
  4. K. Kotowski et al. (2024). “European Space Agency benchmark for anomaly detection in satellite telemetry.” arXiv.
  5. R. Wu and E. Keogh (2021). “Current time series anomaly detection benchmarks are flawed and are creating the illusion of progress.” IEEE Transactions on Knowledge and Data Engineering.