Explainable Anomaly Detection: Counterfactual driven What-If Analysis
Logan Cummins, Alexander Sommers, Sudip Mittal, Shahram Rahimi, Maria Seale, Joseph Jaboure, Thomas Arnold
TL;DR
This work tackles explainability in anomaly detection for predictive maintenance by using counterfactual explanations to enable what-if analysis. It integrates a Temporal Convolutional Network (TCN) anomaly detector with CoMTE-based counterfactual generation and demonstrates the approach on the PRONOSTIA bearing dataset. A proof-of-concept shows that counterfactuals can be presented as actionable scenarios, including online interactions, while achieving high cross-validation accuracy and robust anomaly detection. The results suggest practical value for diagnosing root causes and exploring mitigations in real-time maintenance planning, paving the way for more complex, real-world deployments.
Abstract
There exists three main areas of study inside of the field of predictive maintenance: anomaly detection, fault diagnosis, and remaining useful life prediction. Notably, anomaly detection alerts the stakeholder that an anomaly is occurring. This raises two fundamental questions: what is causing the fault and how can we fix it? Inside of the field of explainable artificial intelligence, counterfactual explanations can give that information in the form of what changes to make to put the data point into the opposing class, in this case "healthy". The suggestions are not always actionable which may raise the interest in asking "what if we do this instead?" In this work, we provide a proof of concept for utilizing counterfactual explanations as what-if analysis. We perform this on the PRONOSTIA dataset with a temporal convolutional network as the anomaly detector. Our method presents the counterfactuals in the form of a what-if analysis for this base problem to inspire future work for more complex systems and scenarios.
