Causal Characterization of Measurement and Mechanistic Anomalies

Hendrik Suhr, David Kaltenpoth, Hanghang Tong

Abstract

Root cause analysis of anomalies aims to identify those features that cause the deviation from the normal process. Existing methods ignore, however, that anomalies can arise through two fundamentally different processes: measurement errors, where data was generated normally but one or more values were recorded incorrectly, and mechanism shifts, where the causal process generating the data changed. While measurement errors can often be safely corrected, mechanistic anomalies require careful consideration. We define a causal model that explicitly captures both types by treating outliers as latent interventions on latent ("true") and observed ("measured") variables. We show that they are identifiable, and propose a maximum likelihood estimation approach to put this to practice. Experiments show that our method matches state-of-the-art performance in root cause localization, while it additionally enables accurate classification of anomaly types, and remains robust even when the causal DAG is unknown.

Introduction

In the field of anomaly detection, Root Cause Analysis (RCA) is vital for determining the origin of a system failure. However, a critical distinction is often overlooked: is the anomaly a result of a faulty sensor (measurement anomaly) or a genuine change in the underlying physical process (mechanistic anomaly)? For instance, in a chemical reactor, an extreme temperature reading could indicate a broken thermometer or a dangerous overheating event. Distinguishing between these is the difference between a simple sensor replacement and an emergency shutdown. This paper introduces a formal causal framework to define, identify, and classify these two distinct anomaly types.

Causal Modeling of Anomalies

The authors represent the data-generating process using a Structural Causal Model (SCM), where variables are nodes in a directed acyclic graph (DAG). They define anomalies as rare "hard interventions" that override the standard causal mechanisms:

  • Mechanistic Anomalies: These are modeled as interventions on latent ("true") variables ($X^*$). Because the underlying state itself has changed, the anomaly propagates to all downstream descendant variables in the causal graph.
  • Measurement Anomalies: These are modeled as interventions on observed variables ($X$). Since only the recording mechanism is flawed, the underlying true state remains normal, and the error does not propagate to downstream variables.
Causal graphs representing clean processes (a), measurement outliers (b), and mechanistic outliers (c).

The CALI Algorithm

To implement this theory, the authors propose CALI (Causal Anomaly Localization and Inspection). CALI utilizes a latent Maximum Likelihood Estimation (MLE) approach to evaluate individual data points. The process involves:

  1. Learning Normalcy: Learning the standard causal mechanisms using robust Generalized Additive Models (GAMs).
  2. Greedy Search: For any anomalous data point, CALI performs a heuristic search to find the most likely root cause and anomaly type by comparing the likelihood of the data under various intervention hypotheses.
  3. Marginalization: Using Monte Carlo sampling to handle unobserved "true" values when testing for measurement errors.

Key Insights: Propagation as a Signature

The core insight of the paper is that the two types of anomalies leave different statistical signatures. A measurement error is a "causal dead end"; it affects only the reported value of a single node. Conversely, a mechanistic shift ripples through the system, affecting the node's children. By examining the conditional independence between a suspected root cause and its descendants, CALI can deduce the nature of the failure.

Scatter plots illustrating how mechanistic (g) and measurement (m) anomalies manifest across different variable relationships.

Results and Discussion

CALI was tested across synthetic datasets, biological signaling networks (Sachs), and physical testbeds (Causal Chambers).

  • Localization Performance: CALI matches or exceeds state-of-the-art RCA methods in Top-$k$ recall, achieving approximately 90% recall on the Causal Chambers benchmark.
  • Classification Accuracy: Unlike traditional methods, CALI can classify the type of anomaly. On the Sachs dataset, it correctly identified the anomaly type for detected root causes with ~90% accuracy.
  • Real-World Application: In a study of NYC Taxi data, CALI distinguished between measurement errors (e.g., a trip with an impossibly long duration but a standard fare) and mechanistic shifts (e.g., airport flat-rate pricing that overrides standard distance-based metering).

Conclusion

By explicitly modeling the causal nature of outliers, CALI provides a more nuanced and actionable form of Root Cause Analysis. While currently requiring a known causal graph, future work aims to integrate this classification into the causal discovery process itself, potentially allowing models to learn more robustly from noisy, real-world data containing both measurement and mechanistic errors.

Summary updated

BibTeX
@misc{suhr2026causal,
  author = {Hendrik Suhr and David Kaltenpoth and Hanghang Tong},
  title = {{Causal Characterization of Measurement and Mechanistic Anomalies}},
  year = {2026},
  eprint = {2601.23026},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.23026},
}
Figure