Unifying Explainable Anomaly Detection and Root Cause Analysis in Dynamical Systems

Yue Sun, Yue Sun 0001, Rick S. Blum, Parv VenkitasubramaniamarXiv 2025 · DOI

Introduction

In the management of complex dynamical systems—such as power grids, traffic networks, or chemical plants—detecting an anomaly is merely the first step. For effective intervention, operators must determine the root cause and the nature of the failure. Traditional machine learning approaches often treat these systems as "black boxes," providing binary alerts without context. ICODE (Interpretable Causality Ordinary Differential Equation) addresses this by unifying anomaly detection, root cause localization, and anomaly type classification into a single, explainable framework.

The Limitations of Black-Box Models

Current state-of-the-art models for anomaly detection typically focus on a single task: identifying whether a system state is normal or anomalous. However, they struggle to provide actionable insights regarding the origin of the error. A critical challenge lies in distinguishing between measurement anomalies (localized sensor errors that do not affect the system state) and cyber anomalies (physical failures or attacks that propagate through the system's dynamics).

Comparison of traditional black-box models versus the proposed multi-task ICODE framework.

The ICODE Framework

ICODE leverages Neural Ordinary Differential Equations (Neural ODEs) to model the continuous evolution of a system's state. Unlike discrete-time models, Neural ODEs learn the underlying governing equations, represented as a function $\Phi_\theta$.

The core of the ICODE architecture is the Causal Dependency Matrix ($C$). This $p \times p$ matrix captures the weights of causal relationships between system variables. During normal operation, the model learns a sparse matrix representing the system's inherent physics. When an anomaly occurs, the model is briefly retrained on the anomalous data. By comparing the original matrix $C$ to the retrained matrix $C'$, ICODE can identify disrupted causal links.

The unified ICODE workflow: (1) learning from normal data, (2) identifying anomaly patterns, and (3-5) performing classification and root cause localization via the dependency matrix.

Distinguishing Anomaly Types

A key theoretical contribution of this work is the mathematical distinction between anomaly types based on error propagation:

  • Measurement Anomalies: These occur "outside" the system's differential equations. Because they are localized sensor errors, they do not affect the actual state variables, and thus the error does not propagate. In the dependency matrix, this manifests as localized changes.
  • Cyber Anomalies: These occur "inside" the equations, altering the system's state. Because variables are interconnected through the system's dynamics, the error propagates globally. This results in diffuse changes across the dependency matrix.

Experimental Evaluation

The researchers evaluated ICODE on three simulated dynamical systems: the N-species Lotka-Volterra system (predator-prey dynamics), the Lorenz-96 system (atmospheric circulation), and a Reaction-Diffusion system.

Key Results

ICODE demonstrated superior performance across all tasks:

  • Detection: Achieved F1-scores up to 0.9799, outperforming baselines like Deep SVDD and the Anomaly Transformer.
  • Localization: In the complex Lorenz-96 system, ICODE reached a Top-1 accuracy of 0.7632, significantly higher than specialized RCA tools like CausalRCA (0.6978).
  • Classification: The model distinguished between cyber and measurement anomalies with accuracies ranging from 91.6% to 97.4%.

Conclusion and Future Work

ICODE provides a robust, model-intrinsic explanation for anomalies in dynamical systems. By enforcing sparsity and leveraging the continuous nature of Neural ODEs, it offers a unified solution for detection and diagnosis. Future research will focus on scaling the dependency matrix analysis to systems with thousands of variables and testing the framework against the noise and complexities of real-world industrial datasets.

Summary updated

BibTeX
@misc{sun2025unifying,
  author = {Yue Sun and Yue Sun and Rick S. Blum and Parv Venkitasubramaniam},
  title = {{Unifying Explainable Anomaly Detection and Root Cause Analysis in Dynamical Systems}},
  year = {2025},
  eprint = {2502.12086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.12086},
}
Figure