← Projects Machine learning Personal project · 2026
Where random noise scores 0.954
I reimplemented NASA JPL's LSTM telemetry anomaly detector, matched the authors' reference run exactly, and compared it with simple baselines on SMAP and Curiosity rover data. The bigger finding was about scoring: under point-adjusted F1, random scores reach 0.954.
- 0.954
- Point-adjusted F1 of random scores
- 82 / 82 rows
- Reference run reproduced
- 0.781 vs 0.747
- Event F0.5, small LSTM vs persistence
- 14 → 126
- SMAP false alarms without pruning
Architecture
- 01 SMAP + MSL telemetry 81 labelled channels
- 02 Scores LSTM forecast error + 5 baselines
- 03 Dynamic threshold nonparametric ε search
- 04 Pruning drops minor sequences
- 05 Event scoring F0.5, channel bootstrap
The problem
An operations team watching thousands of telemetry signals has a small alarm budget. Every false alarm costs attention. NASA JPL published a detector for exactly this job (Hundman et al., KDD 2018): an LSTM forecasts each channel, and a nonparametric dynamic threshold decides when the forecast error is anomalous.
I wanted to know two things. Does that detector beat simple baselines? And how much does the way detectors are scored change the answer?
The constraint
Because false alarms are expensive, results are reported as event-level precision, recall and F0.5, which weights precision twice as much as recall. Every comparison gets a channel bootstrap and a paired test. Every detector is also compared with a null that keeps its own detections but places them at random.
Before comparing anything, I checked that my reimplementation was faithful. The dataset archive ships the authors’ 2018 reference run. Re-thresholding its saved error series with my NumPy code gave the same anomalous sequences on all 82 label rows. SMAP precision and recall (both 0.855) match the published numbers exactly.
What I built
On 81 labelled channels from the SMAP satellite and the Curiosity rover (MSL), I ran the same dynamic thresholding over seven scores:
- The 2018 LSTM, using the predictions shipped with the data.
- A smaller LSTM trained here: one PyTorch model per channel, 2 layers of 32 units, about 5x fewer parameters, about 2 GPU-minutes for all 81.
- Baselines: a persistence residual |y(t) − y(t−1)|, a rolling z-score, Isolation Forest,
matrix profile (via
stumpy), and uniform random scores.
Results
LSTM plus dynamic thresholding was the best combination tested. The 2018 model led on both spacecraft, with pooled F0.5 0.865. My smaller LSTM trailed it by 0.083.
Much of the edge comes from the thresholding, not the forecaster. The one-line persistence residual through the same detector was statistically level with my small LSTM (0.747 vs 0.781), and had the highest precision of all, 0.90, at under half the recall.
Pruning is what controls false alarms. Removing it raised SMAP false alarms from 14 to 126 and dropped F0.5 from 0.777 to 0.347.
The ranking depends on the threshold. Under an oracle static rule (top x% of each channel, with x picked on the test labels), the z-normalised matrix profile and rolling z-score beat both LSTMs on SMAP. The dynamic threshold suits prediction errors and suits the other scores worse.
Point-adjusted F1 can’t tell a detector from noise
Many papers on SMAP and MSL report F1 after point adjustment: if any point inside a labelled window is flagged, every point in that window counts as found. Labelled windows here are long (median 121 steps), so one lucky point is worth hundreds of true positives.
With the threshold picked on the test labels, uniform random scores reached a point-adjusted F1 of 0.954, level with my LSTM (0.962) and the 2018 LSTM (0.973). Event-level F0.5 puts the same random scores at 0.094, last, where they belong.
Benchmark quirks
- Channel P-2 is listed twice with overlapping windows, and the published counts include both.
- T-10 has data but no labels.
- 16 channels have a constant training value, so Isolation Forest flags nothing on them.
- 88% of SMAP windows start in the second half of their test series, a positional bias a detector could exploit.
Limits
- Small benchmark. 104 labelled windows make every interval wide. Rankings between neighbouring methods are mostly not significant.
- Generous labels. Some windows run to 4,218 steps, so “overlaps a window” is a loose criterion. Values were scaled by the authors using test-set minima and maxima.
- One LSTM configuration, trained once. No hyperparameter search and one seed. On flat channels the chronological validation split stopped training early.
- One adaptation for non-error scores. A detector tuned for each score could rank them differently, as the oracle rule suggests.
- Oracle numbers are upper bounds. They are chosen on test labels and only serve to separate score quality from threshold quality.