Maximally Divergent Intervals for Anomaly Detection

Erik Rodner, Björn Barz, Yanira Guanche, Milan Flach, Miguel D. Mahecha, Paul Bodesheim, Markus Reichstein, Joachim DenzlerarXiv 2016

Introduction

Traditional anomaly detection typically focuses on identifying "point anomalies"—individual timestamps where data deviates from the norm. However, many real-world phenomena, such as climate events or industrial failures, manifest as sustained, contiguous intervals rather than isolated points. This paper introduces the Maximally Divergent Intervals (MDI) framework, designed to directly detect these anomalous batches in multivariate time series.

The MDI Framework

The core objective of MDI is to identify a contiguous interval $I$ such that the probability distribution of data within that interval ($p_I$) is maximally different from the distribution of the data outside it ($p_\Omega$). This is achieved by maximizing the Kullback-Leibler (KL) divergence between the two distributions.

The authors propose two primary models for the data distribution:

  1. MDI KDE: Utilizes Kernel Density Estimation. While flexible, it is computationally intensive.
  2. MDI Gaussian: Assumes a multivariate Gaussian distribution. This variant allows for a closed-form solution for KL divergence, significantly improving efficiency.

To capture temporal dependencies, the framework employs time-delay embedding, concatenating current observations with previous ones into higher-dimensional vectors. The final selection of anomalies is performed using non-maximum suppression (NMS) over all candidate intervals within a specified size range.

Experimental Evaluation

The researchers evaluated MDI against traditional point-based methods using both synthetic and real-world datasets.

Synthetic Benchmarks

The synthetic data, generated via Gaussian Processes, included various anomaly types: mean shifts, amplitude changes, and frequency shifts. Performance was measured using Average Precision (AP) based on an Intersection-over-Union (IoU) threshold, a metric more suited for interval detection than standard point-wise ROC/AUC.

Real-World Application: Meteocean Data

The method was applied to hourly measurements of significant wave height ($H_s$), sea-level pressure (SLP), and wind speed ($W$) from a NOAA buoy. The goal was to detect the intervals corresponding to major hurricanes.

Meteocean data showing significant wave height, sea-level pressure, and wind speed with highlighted hurricane intervals (Isaac, Rafael, Sandy).

Results and Discussion

The MDI Gaussian (full covariance) variant emerged as the most effective method, consistently achieving high precision across different anomaly types.

Quantitative comparison of MDI variants and baseline methods across synthetic anomaly types using Average Precision (AP) and Area Under Curve (AUC).

Key findings include:

  • Superiority of Interval Detection: By optimizing for intervals, the model captures the collective behavior and duration of events, which point-based methods often miss or require complex post-processing to identify.
  • Robustness of the Gaussian Model: Despite its simplicity, the Gaussian variant with full covariance outperformed the more flexible KDE model, particularly in detecting frequency changes.
  • Real-World Efficacy: MDI successfully localized Hurricanes Isaac, Rafael, and Sandy in the Meteocean dataset, demonstrating its practical utility in identifying significant physical events.

Conclusion

The MDI framework represents a significant step toward more physically meaningful anomaly detection in time series. By shifting the focus from points to intervals and leveraging efficient statistical models like the Gaussian variant, it provides a robust tool for identifying complex structural changes in multivariate data. Future work may explore automatic hyperparameter tuning and the integration of more sophisticated temporal models.

Summary updated

Abstract

We present new methods for batch anomaly detection in multivariate time series. Our methods are based on maximizing the Kullback-Leibler divergence between the data distribution within and outside an interval of the time series. An empirical analysis shows the benefits of our algorithms compared to methods that treat each time step independently from each other without optimizing with respect to all possible intervals.
BibTeX
@misc{rodner2016maximally,
  author = {Erik Rodner and Björn Barz and Yanira Guanche and Milan Flach and Miguel D. Mahecha and Paul Bodesheim and Markus Reichstein and Joachim Denzler},
  title = {{Maximally Divergent Intervals for Anomaly Detection}},
  year = {2016},
  eprint = {1610.06761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.06761},
}
Figure