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:
- MDI KDE: Utilizes Kernel Density Estimation. While flexible, it is computationally intensive.
- 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.
Results and Discussion
The MDI Gaussian (full covariance) variant emerged as the most effective method, consistently achieving high precision across different anomaly types.
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