Skip to main content
QUICK REVIEW

[Paper Review] A Causal Approach to Detecting Multivariate Time-series Anomalies and Root Causes

Wenzhuo Yang, Kun Zhang|arXiv (Cornell University)|Jun 30, 2022
Anomaly Detection Techniques and ApplicationsComputer Science6 citations
TL;DR

This paper proposes a causality-based framework for multivariate time-series anomaly detection and root cause analysis by modeling data through learned causal structures. By exploiting the modularity of causal systems, it decomposes the problem into low-dimensional local anomaly detection tasks, enabling accurate anomaly detection and direct root cause identification, with strong performance on simulated, public, and real-world AIOps datasets.

ABSTRACT

Detecting anomalies and the corresponding root causes in multivariate time series plays an important role in monitoring the behaviors of various real-world systems, e.g., IT system operations or manufacturing industry. Previous anomaly detection approaches model the joint distribution without considering the underlying mechanism of multivariate time series, making them computationally hungry and hard to identify root causes. In this paper, we formulate the anomaly detection problem from a causal perspective and view anomalies as instances that do not follow the regular causal mechanism to generate the multivariate data. We then propose a causality-based framework for detecting anomalies and root causes. It first learns the causal structure from data and then infers whether an instance is an anomaly relative to the local causal mechanism whose conditional distribution can be directly estimated from data. In light of the modularity property of causal systems (the causal processes to generate different variables are irrelevant modules), the original problem is divided into a series of separate, simpler, and low-dimensional anomaly detection problems so that where an anomaly happens (root causes) can be directly identified. We evaluate our approach with both simulated and public datasets as well as a case study on real-world AIOps applications, showing its efficacy, robustness, and practical feasibility.

Motivation & Objective

  • To address the limitations of existing multivariate anomaly detection methods that model joint distributions without considering underlying causal mechanisms.
  • To enable accurate anomaly detection by leveraging the modularity property of causal systems, which allows decomposition into simpler, low-dimensional problems.
  • To provide a natural and interpretable way to identify root causes by analyzing deviations in local causal mechanisms.
  • To validate the approach on both synthetic and real-world datasets, including a case study in AIOps for database monitoring.
  • To demonstrate robustness across different causal discovery techniques and causal mechanism estimation methods.

Proposed method

  • The method formulates anomalies as instances that violate the regular causal mechanism, treating them as deviations from local conditional distributions.
  • It learns a causal graph from data using structure learning algorithms such as FGES, GES, or PC, which represent the causal dependencies between time series variables.
  • The joint distribution is factorized into modular conditional distributions, one per variable, based on the causal graph, enabling separate anomaly detection for each local mechanism.
  • Anomaly scores are computed by estimating the likelihood of each variable's value under its local causal mechanism, using models like CVAE, MLP, or KMN for conditional distribution estimation.
  • Root cause scores are derived from the anomaly scores of variables, with higher scores indicating greater likelihood of being a root cause.
  • The framework is robust to imperfect causal graphs, as shown by stable performance across different structure learning methods.

Experimental results

Research questions

  • RQ1Can a causal framework improve the accuracy and interpretability of multivariate time-series anomaly detection compared to joint distribution modeling?
  • RQ2How effectively can the proposed method identify root causes by analyzing local causal mechanisms rather than global dependencies?
  • RQ3Does the framework remain robust when using different causal discovery algorithms (e.g., FGES vs. PC) or causal mechanism estimators (e.g., CVAE vs. MLP)?
  • RQ4Can the method detect rare, real-world anomalies in complex systems such as cloud-based database services, and correctly identify their root causes?
  • RQ5To what extent does the modularity of causal systems enable scalable and interpretable anomaly detection in high-dimensional time series?

Key findings

  • The proposed method achieved an F1-score of 0.918 ± 0.008 on the SWaT dataset and 0.818 ± 0.023 on the WADI dataset when using FGES for causal discovery and CVAE for mechanism estimation.
  • Even with less accurate causal graphs, such as those from the PC algorithm, the method maintained strong performance (F1 = 0.768 on WADI), demonstrating robustness to structural uncertainty.
  • CVAE outperformed MLP and KMN in estimating conditional distributions, achieving the highest F1-scores across both datasets.
  • In a real-world AIOps case study involving 61 KPI metrics, the method correctly detected two major incidents and correctly identified application and I/O-related components as root causes, consistent with expert validation.
  • The causal graph inferred by the method aligned well with domain knowledge, such as the chain Redo → Lfpw → Lfs → COMT in database logging processes.
  • The framework successfully decomposed the multivariate anomaly detection problem into low-dimensional, modular tasks, enabling direct and interpretable root cause identification.

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.