Skip to main content
QUICK REVIEW

[Paper Review] Nominality Score Conditioned Time Series Anomaly Detection by Point/Sequential Reconstruction

Chih-Yu Lai, Fan-Keng Sun|arXiv (Cornell University)|Oct 24, 2023
Anomaly Detection Techniques and ApplicationsComputer Science11 citations
TL;DR

The paper proposes NPSR, a framework that combines point-based and sequence-based reconstruction to detect both point and contextual anomalies in time series, using a nominality score to condition and induce an improved anomaly score.

ABSTRACT

Time series anomaly detection is challenging due to the complexity and variety of patterns that can occur. One major difficulty arises from modeling time-dependent relationships to find contextual anomalies while maintaining detection accuracy for point anomalies. In this paper, we propose a framework for unsupervised time series anomaly detection that utilizes point-based and sequence-based reconstruction models. The point-based model attempts to quantify point anomalies, and the sequence-based model attempts to quantify both point and contextual anomalies. Under the formulation that the observed time point is a two-stage deviated value from a nominal time point, we introduce a nominality score calculated from the ratio of a combined value of the reconstruction errors. We derive an induced anomaly score by further integrating the nominality score and anomaly score, then theoretically prove the superiority of the induced anomaly score over the original anomaly score under certain conditions. Extensive studies conducted on several public datasets show that the proposed framework outperforms most state-of-the-art baselines for time series anomaly detection.

Motivation & Objective

  • Motivate unsupervised time series anomaly detection capable of handling both point and contextual anomalies.
  • Develop a nominality score to distinguish nominal versus anomalous deviations in time series.
  • Propose an induced anomaly score that fuses point-based and sequence-based insights for improved detection.
  • Show that the induced anomaly score can outperform the original anomaly score under certain conditions.
  • Empirically validate NPSR on diverse real-world and synthetic datasets against state-of-the-art baselines.

Proposed method

  • Define a nominal time series framework where observed data are deviations from a nominal process and decompose deviations into in-distribution (contextual) and out-of-distribution (point) components.
  • Compute a nominality score N(t) as the ratio of the squared norm of the in-distribution deviation to the total deviation, N(t) = ||Δx^c_t||^2 / ||Δx^0_t||^2.
  • Estimate point-based reconstruction using a simple Performer-based autoencoder M_pt to obtain x̂^c_t and compute point-based anomaly A(t) = ||x̂^c_t − x^0_t||^2.
  • Estimate sequence-based nominal behavior using a Performer-based stacked encoder M_seq to obtain x̂^*_, and relate it to the nominal trajectory X^*._
  • Define an induced anomaly score ÊA by smoothing and gating A with a nomality-informed gate g_{N}(N) across a temporal window (induction length d), creating ÊA(t) = Στ A(t;τ) with A(t;τ) = A(τ) ∏ g_N(N(k)).
  • Provide theoretical results showing the induced score can match or exceed the original score under soft and hard gate conditions, and when N is informative.

Experimental results

Research questions

  • RQ1Can a nominality score effectively separate nominal context from true anomalies in time series?
  • RQ2Does integrating point-based and sequence-based reconstructions via a nominality-conditioned induction improve anomaly detection performance?
  • RQ3Under what conditions does the induced anomaly score outperform the original anomaly score or simple smoothing?
  • RQ4How does NPSR perform across single-entity and multi-entity time series datasets compared to state-of-the-art baselines?

Key findings

  • NPSR consistently outperforms most state-of-the-art baselines on several public datasets, with strong results for both point and contextual anomalies.
  • A simple point-based model (M_pt) can achieve competitive performance, and incorporating sequence-based reconstruction (M_seq) via the induced score enhances contextual anomaly detection without sacrificing point anomaly detection.
  • Soft and hard gate variants conditioned on the nominality score (N) can improve F1* and robustness, with a 98.5th percentile threshold for N working well across datasets.
  • Smoothing the original anomaly score A(t) (equivalent to a special case of the induced score ÊA) also improves AUC and F1* across many datasets.
  • Theoretical analysis frames reconstruction as fixing anomalies to uncover nominal time points and proves that ÊA is not worse than A under the stated conditions.

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.