Introduction
Traditional anomaly detection in time-series data typically relies on reconstruction error: a model attempts to reconstruct an input signal, and significant deviations are flagged as anomalies. However, this approach often fails to account for model uncertainty. High reconstruction error may arise from inherent signal complexity or noise rather than a true anomaly, leading to frequent false positives and "alarm fatigue" in industrial monitoring.
HypAD (Hyperbolic Anomaly Detection) introduces a novel framework to address this by quantifying the model's confidence. By embedding data into a hyperbolic Poincaré ball, the model distinguishes between detectable anomalies—where the model is confident in its understanding but the signal deviates—and instances of high uncertainty where the model simply lacks sufficient information to make a reliable prediction.
Methodology
HypAD extends the state-of-the-art TadGAN baseline, which utilizes Long Short-Term Memory (LSTM) networks and Generative Adversarial Network (GAN) critics. The primary contribution is the integration of Hyperbolic Neural Networks to model uncertainty geometrically.
The system maps both the input signal and its reconstruction into a Poincaré ball. The final anomaly score is calculated as a product of the reconstruction error, the GAN critic's score, and a certainty weight derived from the hyperbolic embedding. If the model is uncertain, the anomaly score is automatically downgraded, effectively filtering out potential false alarms.
The Geometry of Confidence
The use of hyperbolic space provides a principled mathematical foundation for modeling hierarchy and uncertainty. In the Poincaré ball model, the distance from the origin represents the degree of certainty.
As illustrated in the geometry of the Poincaré ball, points near the origin correspond to "complete uncertainty," while points near the circumference represent "complete certainty." Because the volume of hyperbolic space grows exponentially toward the boundary, the model is heavily penalized for making incorrect reconstructions when it is "certain" (i.e., near the edge). This "certain but wrong" logic allows HypAD to prioritize anomalies that represent clear deviations from a well-learned pattern.
Experimental Evaluation
HypAD was evaluated across a diverse set of univariate and multivariate benchmarks, including NASA spacecraft data (SMAP/MSL), Yahoo web traffic, and the SWaT water treatment plant dataset.
Key Results
- State-of-the-Art Performance: HypAD achieved an average F1-score of 0.631 on univariate datasets, outperforming TadGAN by over 5%.
- Multivariate Improvements: On the U-CASAS dataset, which tracks daily living activities in elderly residences, HypAD showed a 32.51% improvement in F1-score over the baseline.
- High Precision: The model achieved a precision of 0.996 on the SWaT dataset, demonstrating its effectiveness in reducing false positives in critical infrastructure.
- Ablation Studies: Comparisons showed that hyperbolic uncertainty consistently outperformed standard Euclidean models and traditional uncertainty methods like dropout.
Conclusion
HypAD demonstrates that incorporating geometric uncertainty into anomaly detection significantly improves reliability and reduces false alarms. While the model excels in most scenarios, it can struggle with extremely sparse data where patterns are too subtle to learn a meaningful uncertainty score, as seen in specific activity tracking tasks. Future work will explore alternative hyperbolic geometries, such as the Lorentz model, and the application of this framework to other domains like computer vision and natural language processing.
Summary updated