journal article·2023-02-24Open access

Real-Time, Model-Agnostic and User-Driven Counterfactual Explanations Using Autoencoders

Jokin Labaien Soto, Ekhi Zugasti Uriguen, Xabier De Carlos Garcia

Applied Sciences· Volume 13· Issue 5

Abstract

Explainable Artificial Intelligence (XAI) has gained significant attention in recent years due to concerns over the lack of interpretability of Deep Learning models, which hinders their decision-making processes. To address this issue, counterfactual explanations have been proposed to elucidate the reasoning behind a model’s decisions by providing what-if statements as explanations. However, generating counterfactuals traditionally involves solving an optimization problem for each input, making it impractical for real-time feedback. Moreover, counterfactuals must meet specific criteria, including being user-driven, causing minimal changes, and staying within the data distribution. To overcome these challenges, a novel model-agnostic approach called Real-Time Guided Counterfactual Explanations (RTGCEx) is proposed. This approach utilizes autoencoders to generate real-time counterfactual explanations that adhere to these criteria by optimizing a multiobjective loss function. The performance of RTGCEx has been evaluated on two datasets: MNIST and Gearbox, a synthetic time series dataset. The results demonstrate that RTGCEx outperforms traditional methods in terms of speed and efficacy on MNIST, while also effectively identifying and rectifying anomalies in the Gearbox dataset, highlighting its versatility across different scenarios.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Explainable Artificial Intelligence (XAI) · Machine Learning in Healthcare · Scientific Computing and Data Management

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Ikerlan Technology Research Centre, Basque Research and Technology Alliance (BRTA), Pº J.M. Arizmediarrieta, 2, 20500 Arrasate-Mondragón, Spain

Data Analysis and Cybersecurity Group, Mondragon University, Goiru Kalea, 2, 20500 Arrasate-Mondragón, Spain

Funding

DREEMIND project of the Basque Goverment

References (24)

Show source-provided references
1. Ribeiro, M.T., Singh, S., and Guestrin, C. (2018, January 2–7). Anchors: High-precision model-agnostic explanations. Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, New Orleans, LA, USA.10.1609/aaai.v32i1.11491 ↗
2. Predictive learning via rule ensembles10.1214/07-AOAS148 ↗
3. Lundberg, S.M., and Lee, S.I. (2017, January 4–9). A unified approach to interpreting model predictions. Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA.
4. Ribeiro, M.T., Singh, S., and Guestrin, C. (2016, January 13–17). Why should i trust you? Explaining the predictions of any classifier. Proceedings of the 22nd ACM CA, International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.10.1145/2939672.2939778 ↗
5. Sundararajan, M., Taly, A., and Yan, Q. (2017, January 6–11). Axiomatic attribution for deep networks. Proceedings of the 34th International Conference on Machine Learning, Sydney, Australia.
6. A Survey of Contrastive and Counterfactual Explanation Generation Methods for Explainable Artificial Intelligence10.1109/ACCESS.2021.3051315 ↗
7. Verma, S., Dickerson, J., and Hines, K. (2020). Counterfactual Explanations for Machine Learning: A Review. arXiv.
8. Artelt, A., and Hammer, B. (2019). On the computation of counterfactual explanations—A survey. arXiv.
9. Dhurandhar, A., Chen, P.Y., Luss, R., Tu, C.C., Ting, P., Shanmugam, K., and Das, P. (2018, January 3–8). Explanations based on the missing: Towards contrastive explanations with pertinent negatives. Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada.
10. Van Looveren, A., and Klaise, J. (2019). Interpretable counterfactual explanations guided by prototypes. arXiv.
11. Kenny, E.M., and Keane, M.T. (2020). On generating plausible counterfactual and semi-factual explanations for deep learning. arXiv.10.1609/aaai.v35i13.17377 ↗
12. Gaining insight through case-based explanation10.1007/s10844-008-0069-0 ↗
13. Mothilal, R.K., Sharma, A., and Tan, C. (2020, January 27–30). Explaining machine learning classifiers through diverse counterfactual explanations. Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency, Barcelona, Spain.10.1145/3351095.3372850 ↗
14. Nemirovsky, D., Thiebaut, N., Xu, Y., and Gupta, A. (2020). CounteRGAN: Generating Realistic Counterfactuals with Residual Generative Adversarial Nets. arXiv.
15. Liu, S., Kailkhura, B., Loveland, D., and Han, Y. (2019). Generative counterfactual introspection for explainable deep learning. arXiv.10.1109/GlobalSIP45357.2019.8969491 ↗
16. Mahajan, D., Tan, C., and Sharma, A. (2019). Preserving causal constraints in counterfactual explanations for machine learning classifiers. arXiv.
17. Generative Adversarial Networks (GANs) Challenges, Solutions, and Future Directions10.1145/3446374 ↗
18. Balasubramanian, R., Sharpe, S., Barr, B., Wittenbach, J., and Bruss, C.B. (2020). Latent-CF: A Simple Baseline for Reverse Counterfactual Explanations. arXiv.
19. Gradient-based learning applied to document recognition10.1109/5.726791 ↗
20. (2023, February 01). Mathworks Gearbox Simulator. Available online: https://www.mathworks.com/help/signal/examples/vibration-analysis-of-rotating-machinery.html.
21. Multi-head CNN–RNN for multi-time series anomaly detection: An industrial case study10.1016/j.neucom.2019.07.034 ↗
22. Research commentary—Too big to fail: Large samples and the p-value problem10.1287/isre.2013.0480 ↗
23. Hvilshøj, F., Iosifidis, A., and Assent, I. (2021). On quantitative evaluations of counterfactuals. arXiv.
24. Schemmer, M., Holstein, J., Bauer, N., Kühl, N., and Satzger, G. (2023). Towards Meaningful Anomaly Detection: The Effect of Counterfactual Explanations on the Investigation of Anomalies in Multivariate Time Series. arXiv.