Abstract
Detecting anomalies in complex multivariate systems, such as aircraft engines, is challenging due to the intricate interdependencies between sensors. Traditional "black-box" models often fail to capture subtle relationship breaks and lack explainability. This paper introduces a framework that integrates causal discovery (PCMCI/PCMCIplus) to decompose the joint probability of sensor data into individual causal mechanisms. By modeling these local dependencies using Conditional Variational Autoencoders (CVAEs) and Conditional Kernel Density Estimation (CKDE), the proposed method achieves superior detection performance and inherent explainability on both synthetic and real-world turbofan engine datasets.
Introduction
In modern industrial systems, sensors are highly interdependent. Traditional anomaly detection methods typically attempt to model the "joint probability" of all sensors simultaneously. However, these approaches suffer from two primary limitations. First, they often fail to explicitly model how one sensor influences another, potentially missing anomalies where values remain within normal ranges but their relational dynamics break. Second, they lack explainability; when an anomaly is flagged, identifying the specific failing component or relationship is difficult.
To address these issues, this research proposes treating a system not as a monolithic block of data, but as a network of cause-and-effect relationships. By leveraging causal discovery, the problem is transformed into monitoring the stability of individual causal links.
Methodology
The core of the proposed framework is the application of "Markov factorization." If the causal parents of a variable are known, the state of the entire system can be described as the product of the conditional probabilities of each variable given its parents.
Causal Discovery (CD)
The workflow begins with reconstructing the "timeseries graph" from observational data using PCMCI and PCMCIplus algorithms. These methods are specifically designed for timeseries data, effectively handling temporal dependencies and autocorrelations that standard causal discovery algorithms might miss.
Density Estimation and Scoring
Once the causal graph is established, the framework estimates the conditional distribution for every variable. The authors employ a hybrid modeling approach:
- Conditional Variational Autoencoders (CVAEs): Utilized for variables with complex, high-dimensional parent sets.
- Conditional Kernel Density Estimation (CKDE): A non-parametric approach used for variables with fewer than three parents.
During inference, the model calculates the negative log-likelihood for each variable. The final anomaly score is the maximum score among all individual variables. This "max-pooling" approach ensures that the model is sensitive to the specific "broken link" in the causal chain, providing built-in explainability by pointing directly to the violated mechanism.
Experimental Evaluation
The framework was evaluated on two primary datasets:
- Synthetic Data: Generated via a structural causal process to provide a ground truth for testing sensitivity to graph errors.
- C-MAPPS (NASA Turbofan Engine): A complex industry benchmark (specifically the FD004 subset) featuring multiple operating conditions and failure modes.
Key Results
On synthetic data, the causal approach using CVAEs achieved an Average Precision (AP) of 0.621, significantly outperforming the standard VAE baseline of 0.434. On the C-MAPPS dataset, the hybrid "Causal + CVAE & CKDE" model reached an AP of 0.924 and an AUROC of 0.988, surpassing both the standard VAE (AP 0.911) and KDE baselines (AP 0.570).
The research also highlighted that the model is robust to "false positive" edges in the causal graph, whereas "false negatives" (missing links) are more detrimental to performance.
Conclusion
By shifting from global joint probability modeling to local causal decomposition, this framework enhances both the sensitivity and explainability of anomaly detection in multivariate timeseries. While the current approach assumes causal stationarity, future work will explore handling non-stationary systems where causal relationships evolve over time due to wear or operational shifts. Additionally, scaling causal discovery to extremely high-dimensional systems remains a key area for further investigation.
Summary updated