Root Cause Analysis of Measurement and Mechanistic Anomalies

Hendrik Suhr, David Kaltenpoth, Jilles Vreeken

TL;DR

This paper introduces a novel causal framework to distinguish between two fundamentally different types of data anomalies: measurement errors (e.g., a faulty sensor recording the wrong value) and mechanistic shifts (e.g., an actual change in the underlying system process). By modeling these as distinct types of interventions on a causal graph, the authors develop CALI (Causal Anomaly Localization and Inspection), an efficient, unsupervised algorithm that not only localizes where an anomaly occurred but also explains how it happened.

What Problem Does This Paper Address?

When an anomaly detection system flags a data point, it usually tells you which features look strange (feature attribution). However, standard methods fail to answer a critical operational question: Why is it strange?

Consider an industrial plant where a pressure gauge suddenly spikes. This could mean two entirely different things:

  1. Measurement Anomaly: The pressure sensor is broken or miscalibrated, but the actual tank pressure is fine. (Solution: Replace/recalibrate the sensor).
  2. Mechanistic Anomaly: The sensor is working perfectly, but a valve stuck open, genuinely altering the physical process. (Solution: Shut down the system and fix the valve).

Existing root cause analysis (RCA) methods blur this distinction. This paper tackles the challenge of jointly localizing the anomalous variables and classifying whether the root cause is a measurement error or a true mechanism shift, directly from contaminated data without requiring a clean training set.

Figure 1: Different outlier types under the causal DAG W ←X →Y →Z.

Methods

The authors formalize the problem by separating data into latent "true" variables ($X^*$) and observed "measured" readouts ($X$). They model anomalies as sparse, sample-level hard interventions on a Structural Causal Model (SCM):

  • Measurement Anomalies: The intervention occurs on the observed variable $X_j$. The true underlying state $X_j^*$ remains normal. Crucially, because observed variables have no children in the causal graph, the error does not propagate downstream.
  • Mechanistic Anomalies: The intervention occurs on the latent variable $X_j^*$, overriding its clean mechanism. This altered state propagates downstream, affecting all its causal descendants.
Causal graphs showing how downstream behavior changes: (a) clean process, (b) measurement outlier where the error is isolated, and (c) mechanistic outlier where the error cascades downstream.

The CALI Algorithm

To make inference tractable over an exponentially large space of possible anomaly assignments, the authors introduce CALI (Causal Anomaly Localization and Inspection):

  1. Robust Fitting: It fits the clean data mechanisms using Generalized Additive Models (GAMs) via median quantile regression, ensuring the model isn't warped by the anomalies in the dataset.
  2. Hard-Assignment Approximation: Instead of integrating over all possible anomaly combinations, it uses a greedy search heuristic. It prioritizes candidates with low likelihood under the clean model and accepts them only if the likelihood gain outweighs a Bernoulli-based sparsity penalty (leveraging the Sparse Mechanism Shift hypothesis, which assumes multiple independent failures are rare).
  3. Monte Carlo Marginalization: For measurement anomalies, CALI uses Monte Carlo sampling to approximate the unobserved, true latent values and evaluate downstream consistency.

Datasets

The method was evaluated on both synthetic and real-world datasets:

  • Synthetic Data: 15-node random Erdős-Rényi directed acyclic graphs (DAGs) with non-linear (quadratic/cubic) mechanisms and additive Gaussian noise.
  • Sachs Dataset: A classic real-world biology dataset containing 853 flow cytometry measurements of 11 proteins/phospholipids in human immune cells, featuring weak interventional shifts.
  • Causal Chambers Benchmark: A modern physical testbed dataset modeling a light tunnel system, providing clean observational data alongside medium and strong physical interventions.
  • NYC Yellow Taxi Trip Dataset: A real-world dataset containing 12.7 million taxi trips used for a qualitative case study.

Key Insights and Ideas

  • Propagation is the Key: The fundamental differentiator between a sensor error and a process shift is downstream propagation. If a variable is wildly off but its children behave normally, it’s likely a measurement error. If the children also deviate in a structurally consistent way, it’s a mechanism shift.
  • The Sink Node Limitation: The paper proves a fundamental identifiability limit: at sink nodes (variables with no children), measurement and mechanistic anomalies are mathematically indistinguishable. Without downstream variables to observe, you cannot see if an error propagates.
  • Sparsity as an Inductive Bias: By penalizing the number of active anomalies, the framework naturally prefers a single measurement error over a complex, concerted shift in multiple independent mechanisms.

Key Results

  • Approximation Efficiency: CALI's greedy heuristic closely matches the performance of an exhaustive, model-optimal classifier (OPT*) while being vastly faster—cutting execution time on a test setup from nearly 20 minutes down to just 47 seconds.
  • Superior Localization: On both synthetic and Causal Chambers data, CALI outperformed existing causal and non-causal RCA methods (such as SCM-based attribution, SMTR, and AE+SHAP) in root cause localization (Top-$k$ Recall), particularly as outlier strength increased.
  • High Classification Accuracy: CALI accurately distinguished between anomaly types, significantly outperforming a marginal outlierness baseline (MARG*), especially for subtle, weak outliers where marginal methods fail.
Root cause localization (left) and anomaly-type classification accuracy (right) on synthetic data, demonstrating that CALI outperforms baseline methods.
  • Real-World Sanity Check (NYC Taxi Data): In the case study, CALI successfully flagged a trip with a 9.4-mile distance but a 12-second travel time as a measurement error (physically impossible speed). Conversely, it correctly flagged trips with zero distance but a flat $52 fare as mechanistic anomalies, capturing the real-world JFK airport flat-rate pricing structure.

Limitations and Future Work

  • DAG Dependency: CALI requires a known causal graph. While it performs well when paired with a learned graph from causal discovery algorithms (like NoGAM), its performance degrades if the graph is severely misspecified.
  • Extrapolation Issues: For extremely large, extreme outliers, the learned spline functions have to extrapolate far beyond the training data, making density estimates less reliable.
  • Tabular Data Restriction: The current framework is strictly designed for tabular data; extending these principles to time-series or image data remains an open challenge.
  • Future Direction: The authors suggest using these structured anomalies to improve causal discovery itself, treating mechanistic outliers as informative, natural perturbations rather than data noise.

Summary updated

BibTeX
@misc{suhr2026root,
  author = {Hendrik Suhr and David Kaltenpoth and Jilles Vreeken},
  title = {{Root Cause Analysis of Measurement and Mechanistic Anomalies}},
  year = {2026},
  eprint = {2601.23026},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.23026},
}
Figure