Local Evaluation of Time Series Anomaly Detection Algorithms

Alexis Huet, Jose Manuel Navarro, Dario Rossi
6/27/2022
cs.LG

Official code: ahstat/affiliation-metrics-py (29 stars, Python, MIT, last commit 2022-05-30).

Abstract

In recent years, specific evaluation metrics for time series anomaly detection algorithms have been developed to handle the limitations of the classical precision and recall. However, such metrics are heuristically built as an aggregate of multiple desirable aspects, introduce parameters and wipe out the interpretability of the output.

Show full abstract

In this article, we first highlight the limitations of the classical precision/recall, as well as the main issues of the recent event-based metrics -- for instance, we show that an adversary algorithm can reach high precision and recall on almost any dataset under weak assumption. To cope with the above problems, we propose a theoretically grounded, robust, parameter-free and interpretable extension to precision/recall metrics, based on the concept of ``affiliation'' between the ground truth and the prediction sets. Our metrics leverage measures of duration between ground truth and predictions, and have thus an intuitive interpretation. By further comparison against random sampling, we obtain a normalized precision/recall, quantifying how much a given set of results is better than a random baseline prediction. By construction, our approach keeps the evaluation local regarding ground truth events, enabling fine-grained visualization and interpretation of algorithmic results. We compare our proposal against various public time series anomaly detection datasets, algorithms and metrics. We further derive theoretical properties of the affiliation metrics that give explicit expectations about their behavior and ensure robustness against adversary strategies.

View on arXivView PDF

Code Implementations(1)

MIT

Python 3 implementation of the affiliation metrics and tests for reproducing the experiments described in "Local Evaluation of Time Series Anomaly Detection Algorithms" [KDD 2022]

291PythonMay 30, 20224 years agoMIT

Similar Papers

Cite this paper

@article{huet2022local,
  title  = {Local Evaluation of Time Series Anomaly Detection Algorithms},
  author = {Alexis Huet and Jose Manuel Navarro and Dario Rossi},
  year   = {2022},
  eprint = {2206.13167},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.13167}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.13167.svg)](https://codeofpaper.com/paper/2206.13167)

Discussion