Aggregate Metrics Conceal Bimodal Competence: A Per-Mechanism Diagnosis of Reconstruction-Based Anomaly Detection in IoT Sensor Streams
Autoencoders are routinely recommended for unsupervised anomaly detection in Internet of Things sensor streams, and their performance is almost always reported as a single aggregate figure. We show that this practice hides a qualitative distinction that matters operationally. On a five-channel synthetic stream of 20 000 minute-resolution observations containing 1 000 injected anomalies of three kinds, a deep autoencoder thresholded at the ninety-ninth percentile of its training reconstruction error attains an area under the receiver operating characteristic curve of 0.771 and an anomaly-class F1 of 0.242, recovering 32 of 200 test anomalies. Decomposed by failure mechanism, the same score separates transient spikes at 0.898 and gradual drifts at 0.865 while sitting at 0.520 on stuck-sensor flatlines, which is indistinguishable from random guessing; a recurrent variant raises the first two to 0.970 and 0.925 and leaves the third at 0.485. The detector is therefore not uniformly mediocre but capable on two mechanisms and blind to a third, because a sensor stuck inside its normal operating range is not an outlier in the marginal distribution a reconstruction model learns. Three further results support the same conclusion that the pipeline, not the architecture, governs the outcome: six classical detectors evaluated under an identical protocol span only 0.638 to 0.781; moving the decision threshold from the ninety-ninth to the ninety-fifth percentile improves F1 from 0.242 to 0.354, a larger gain than any change of model; and for one trained recurrent network, averaging reconstruction error across a thirty-step window rather than reading its final step changes the area under the curve by 0.162, an unreported implementation choice that exceeds the margin separating many published architectures. We also audit the benchmark and find that 5 213 rows are perturbed while only 1 000 are labelled, so 21.1 per cent of the data is corrupted yet marked normal. A training-free variance-collapse statistic detects flatlines at 0.753 where every reconstruction score fails, and combining the two widens mechanism coverage at a fixed alert budget. We recommend that per-mechanism detectability, label-span alignment and score aggregation be reported as standard.
Authors
- 1st Rajnish Kumar, 2nd Dr. Amit Kumar Sahu, 3rd Dr. Vivek Sharma
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24691301
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00