Skip to main content
QUICK REVIEW

[Paper Review] PATE: Proximity-Aware Time series anomaly Evaluation

Ramin Ghorbani, Marcel J. T. Reinders|arXiv (Cornell University)|May 20, 2024
Time Series Analysis and ForecastingComputer Science3 citations
TL;DR

This paper proposes PATE, a proximity-aware evaluation metric for time series anomaly detection that assigns weighted scores based on temporal proximity to anomaly intervals, including pre- and post-buffer zones. PATE improves model evaluation by rewarding early detection, accurate onset response, and full coverage, outperforming traditional metrics like F1 and AUC in ranking consistency and fairness across state-of-the-art models on real and synthetic datasets.

ABSTRACT

Evaluating anomaly detection algorithms in time series data is critical as inaccuracies can lead to flawed decision-making in various domains where real-time analytics and data-driven strategies are essential. Traditional performance metrics assume iid data and fail to capture the complex temporal dynamics and specific characteristics of time series anomalies, such as early and delayed detections. We introduce Proximity-Aware Time series anomaly Evaluation (PATE), a novel evaluation metric that incorporates the temporal relationship between prediction and anomaly intervals. PATE uses proximity-based weighting considering buffer zones around anomaly intervals, enabling a more detailed and informed assessment of a detection. Using these weights, PATE computes a weighted version of the area under the Precision and Recall curve. Our experiments with synthetic and real-world datasets show the superiority of PATE in providing more sensible and accurate evaluations than other evaluation metrics. We also tested several state-of-the-art anomaly detectors across various benchmark datasets using the PATE evaluation scheme. The results show that a common metric like Point-Adjusted F1 Score fails to characterize the detection performances well, and that PATE is able to provide a more fair model comparison. By introducing PATE, we redefine the understanding of model efficacy that steers future studies toward developing more effective and accurate detection models.

Motivation & Objective

  • To address the limitations of standard evaluation metrics in capturing temporal dynamics of time series anomalies.
  • To develop a metric that fairly evaluates early and delayed detections, onset response time, and coverage level of anomaly intervals.
  • To provide a more transparent and context-sensitive benchmark for comparing state-of-the-art anomaly detection models.
  • To enable expert-driven evaluation through configurable buffer zones around anomalies.
  • To demonstrate that existing metrics like Point-Adjusted F1 fail to accurately reflect model performance in real-world scenarios.

Proposed method

  • PATE introduces proximity-based weighting by defining pre- and post-buffer zones around each ground-truth anomaly interval.
  • It computes a weighted version of True Positives, False Positives, and False Negatives based on overlap duration and proximity to the anomaly.
  • Precision and Recall are recalculated using these weighted counts, and the area under the Precision-Recall curve is computed as the final metric.
  • The method supports configurable buffer sizes, allowing context-specific evaluation for different application domains.
  • PATE-F1 is introduced as a specialized variant for binary-output models, simplifying evaluation while preserving temporal sensitivity.
  • The framework is validated across synthetic and real-world time series datasets using multiple state-of-the-art anomaly detectors.
Figure 1. Illustration of anomaly detection in time series data. $a_{1-3}$ represent the actual anomalies as ground truth. Predictions are denoted by $p$ . The durations of both events are indicated by the length of the boxes. Overlapping areas between $p$ and $a$ demonstrate where the model has cor
Figure 1. Illustration of anomaly detection in time series data. $a_{1-3}$ represent the actual anomalies as ground truth. Predictions are denoted by $p$ . The durations of both events are indicated by the length of the boxes. Overlapping areas between $p$ and $a$ demonstrate where the model has cor

Experimental results

Research questions

  • RQ1How do traditional evaluation metrics fail to capture the temporal nuances of time series anomaly detection, such as early or delayed detection?
  • RQ2To what extent does PATE improve the fairness and accuracy of model comparison compared to existing metrics like F1 and AUC?
  • RQ3How consistent are model rankings across different buffer size configurations in PATE, and does this indicate robustness?
  • RQ4Can PATE effectively differentiate between models with similar F1 scores but differing temporal detection behaviors?
  • RQ5Does the use of PATE reveal a significant shift in the perceived performance ranking of state-of-the-art anomaly detection models?

Key findings

  • PATE significantly outperforms Point-Adjusted F1 in ranking model performance, with Transformer and LSTM ranking first and second under PATE, while AnomalyTrans and DCdetector dropped to last place.
  • Under PATE, Transformer achieved a mean rank of 1.38 and LSTM 2.12, whereas under Point-Adjusted F1, they ranked 4th and 5th, respectively, indicating a major shift in perceived model efficacy.
  • The metric consistently ranks models fairly across different buffer sizes, demonstrating robustness and adaptability to expert-defined temporal thresholds.
  • PATE reveals that models like AnomalyTrans and DCdetector, previously considered SOTA, are less effective in real-world temporal detection scenarios than indicated by standard metrics.
  • The re-evaluation shows that ROC-AUC and VUS-ROC offer more reasonable estimates than F1, but still lack discriminability—PATE provides a more nuanced and transparent assessment.
  • PATE-F1 provides a direct and simplified evaluation path for binary-output models, maintaining temporal sensitivity without requiring threshold tuning.
Figure 2. Illustration of the Categorization and Weighting Mechanism in the PATE Method. Prediction events ( $p_{1}-p_{7}$ ) are represented by orange boxes, while anomaly events ( $a_{1}-a_{4}$ ) are depicted by blue boxes. TP weights are illustrated with a blue line , FP weights with a red line ,
Figure 2. Illustration of the Categorization and Weighting Mechanism in the PATE Method. Prediction events ( $p_{1}-p_{7}$ ) are represented by orange boxes, while anomaly events ( $a_{1}-a_{4}$ ) are depicted by blue boxes. TP weights are illustrated with a blue line , FP weights with a red line ,

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.