Skip to main content
QUICK REVIEW

[Paper Review] Precision and Recall for Range-Based Anomaly Detection

Tae J. Lee, Justin Gottschlich|arXiv (Cornell University)|Jan 9, 2018
Anomaly Detection Techniques and ApplicationsComputer Science7 references10 citations
TL;DR

This paper proposes a novel mathematical framework for precision and recall tailored to range-based anomalies—events spanning contiguous time intervals—extending classical metrics to better evaluate time-series anomaly detection systems. By incorporating overlap size, positional bias, and prediction cardinality through customizable functions, the model generalizes classical point-based metrics while enabling domain-specific tuning for improved accuracy assessment in streaming and real-time applications.

ABSTRACT

Classical anomaly detection is principally concerned with point-based anomalies, anomalies that occur at a single data point. In this paper, we present a new mathematical model to express range-based anomalies, anomalies that occur over a range (or period) of time.

Motivation & Objective

  • To address the inadequacy of classical precision and recall in evaluating range-based anomalies that span time intervals rather than single points.
  • To develop a formal mathematical model that subsumes classical point-based metrics while supporting customizable domain-specific behavior.
  • To enable accurate evaluation of anomaly detection systems in real-time and streaming environments where anomalies manifest over periods.
  • To provide tunable functions for overlap size, positional bias, and prediction cardinality to reflect application-specific priorities.

Proposed method

  • Proposes a new recall formulation, $Recall_T(R,P)$, that computes a weighted sum of existence and overlap rewards across all real anomaly ranges $R_i$.
  • Introduces a cardinality factor $\gamma(R_i, P)$ to penalize multiple predicted ranges overlapping a single real range, with $\gamma$ customizable to application needs.
  • Defines an overlap size reward $\omega(R_i, R_i \cap P_j, \delta)$ using a positional bias function $\delta(i, \text{length})$ to emphasize early, late, or uniform positions within the overlap.
  • Applies similar principles to precision via $Precision_T(R,P)$, which evaluates each predicted range $P_i$ against all real ranges $R_j$, using a cardinality factor and overlap reward.
  • Uses customizable functions $\omega$, $\gamma$, and $\delta$ to allow domain-specific tuning of sensitivity to overlap size, position, and prediction multiplicity.
  • Ensures backward compatibility with classical metrics by reducing to standard precision and recall when all anomalies are single-point ranges and flat bias is used.

Experimental results

Research questions

  • RQ1How can classical precision and recall metrics be extended to evaluate range-based anomalies that span multiple time points?
  • RQ2What are the key components of a recall metric that accounts for overlap size, position within the anomaly, and prediction cardinality?
  • RQ3How can precision be redefined for range-based predictions to reflect the quality of entire predicted intervals rather than individual points?
  • RQ4In what ways can the new metrics be customized to reflect domain-specific priorities such as early detection or uniform coverage?
  • RQ5To what extent does the proposed framework generalize classical point-based metrics while supporting richer anomaly evaluation?

Key findings

  • The proposed $Recall_T$ and $Precision_T$ metrics generalize classical precision and recall, reducing to them when anomalies are single-point ranges and flat bias is applied.
  • The inclusion of a cardinality factor $\gamma(R_i, P)$ allows the model to penalize systems that split a single real anomaly across multiple predicted ranges, improving evaluation fidelity.
  • Positional bias functions $\delta$—flat, front-end, or tail-end—enable domain-specific emphasis on early or late detection, with examples shown for cancer detection and real-time systems.
  • The overlap size function $\omega$ enables fine-grained reward based on the proportion of the real anomaly correctly predicted, with values normalized to [0,1].
  • Empirical validation is omitted due to venue constraints, but the framework is designed to be broadly generalizable and customizable across diverse application domains.
  • The model supports multi-dimensional customization through independent tuning of $\alpha$, $\beta$, $\gamma$, $\omega$, and $\delta$, allowing alignment with domain-specific anomaly detection priorities.

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.