EACE: Explain Anomaly via Counterfactual Explanations

IF 7.6 1区 计算机科学 Q1 COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE Pattern Recognition Pub Date : 2025-08-01 Epub Date: 2025-03-07 DOI:10.1016/j.patcog.2025.111532
Peng Zhou , Qihui Tong , Shiji Chen , Yunyun Zhang , Xindong Wu
{"title":"EACE: Explain Anomaly via Counterfactual Explanations","authors":"Peng Zhou ,&nbsp;Qihui Tong ,&nbsp;Shiji Chen ,&nbsp;Yunyun Zhang ,&nbsp;Xindong Wu","doi":"10.1016/j.patcog.2025.111532","DOIUrl":null,"url":null,"abstract":"<div><div>Anomaly detection aims to identify data points that deviate from the prevailing data distribution. Despite numerous anomaly detection models, there is a prevailing oversight in their interpretability, specifically regarding the rationale behind classifying a specific data point as an anomaly. Therefore, Interpretable Machine Learning has become a current research hotspot and is crucial for users to trust models. As one of the representative models, Counterfactual Explanation (CFE) methods generate alternative scenarios different from the observed data to explain model decisions. CFE tries to answer how the model’s output would change if certain factors (features) were altered. However, most existing CFE methods are designed for classification tasks, and it is a challenge for them to transform anomalies into counterfactual explanation samples effectively. To overcome this limitation, we propose a novel method for Explaining Anomaly via Counterfactual Explanation named EACE. Specifically, based on existing CFE methods’ limitations in handling anomalies, we propose a novel optimization objective by incorporating density loss and boundary loss. Meanwhile, we improved the genetic algorithm to solve this optimization problem since the new loss function is not differentiable. To evaluate the quality of the generated counterfactual explanations, we compare comprehensively with state-of-the-art counterfactual explanation methods and feature importance-based explanation methods. Experimental results demonstrate that EACE has a notable ability to convert anomalies into counterfactual explanation samples that are highly aligned with the normal cluster.</div></div>","PeriodicalId":49713,"journal":{"name":"Pattern Recognition","volume":"164 ","pages":"Article 111532"},"PeriodicalIF":7.6000,"publicationDate":"2025-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Pattern Recognition","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S003132032500192X","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/3/7 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0

Abstract

Anomaly detection aims to identify data points that deviate from the prevailing data distribution. Despite numerous anomaly detection models, there is a prevailing oversight in their interpretability, specifically regarding the rationale behind classifying a specific data point as an anomaly. Therefore, Interpretable Machine Learning has become a current research hotspot and is crucial for users to trust models. As one of the representative models, Counterfactual Explanation (CFE) methods generate alternative scenarios different from the observed data to explain model decisions. CFE tries to answer how the model’s output would change if certain factors (features) were altered. However, most existing CFE methods are designed for classification tasks, and it is a challenge for them to transform anomalies into counterfactual explanation samples effectively. To overcome this limitation, we propose a novel method for Explaining Anomaly via Counterfactual Explanation named EACE. Specifically, based on existing CFE methods’ limitations in handling anomalies, we propose a novel optimization objective by incorporating density loss and boundary loss. Meanwhile, we improved the genetic algorithm to solve this optimization problem since the new loss function is not differentiable. To evaluate the quality of the generated counterfactual explanations, we compare comprehensively with state-of-the-art counterfactual explanation methods and feature importance-based explanation methods. Experimental results demonstrate that EACE has a notable ability to convert anomalies into counterfactual explanation samples that are highly aligned with the normal cluster.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
EACE:通过反事实解释解释异常
异常检测的目的是识别偏离主流数据分布的数据点。尽管有许多异常检测模型,但在它们的可解释性方面存在普遍的疏忽,特别是关于将特定数据点分类为异常的基本原理。因此,可解释性机器学习成为当前的研究热点,对用户信任模型至关重要。反事实解释方法(Counterfactual Explanation, CFE)是一种代表性的模型,它产生不同于观测数据的替代情景来解释模型的决策。CFE试图回答如果某些因素(特征)改变,模型的输出将如何变化。然而,现有的CFE方法大多是为分类任务而设计的,如何有效地将异常转化为反事实解释样本是一个挑战。为了克服这一限制,我们提出了一种通过反事实解释来解释异常的新方法——EACE。具体而言,基于现有CFE方法在处理异常方面的局限性,我们提出了一种结合密度损失和边界损失的优化目标。同时,由于新的损失函数不可微,我们改进了遗传算法来解决这个优化问题。为了评估生成的反事实解释的质量,我们与最先进的反事实解释方法和基于特征重要性的解释方法进行了全面比较。实验结果表明,EACE具有显著的将异常转化为与正常聚类高度一致的反事实解释样本的能力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Pattern Recognition
Pattern Recognition 工程技术-工程:电子与电气
CiteScore
14.40
自引率
16.20%
发文量
683
审稿时长
5.6 months
期刊介绍: The field of Pattern Recognition is both mature and rapidly evolving, playing a crucial role in various related fields such as computer vision, image processing, text analysis, and neural networks. It closely intersects with machine learning and is being applied in emerging areas like biometrics, bioinformatics, multimedia data analysis, and data science. The journal Pattern Recognition, established half a century ago during the early days of computer science, has since grown significantly in scope and influence.
期刊最新文献
IrisMAE: Structure-aware masked image modeling for iris recognition Minimizing the pretraining gap: Domain-aligned text-based person retrieval Stealthy backdoor attack method targeting group fairness in self-supervised learning Single-domain generalization for fastener detection via sample reconstruction and class-wise domain contrast EdgeFusionNet: Edge information-guided small object detection for remote sensing images
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1