Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShapBPT in Perspective: A Consolidated Review and an eXplainable Anomaly Detection Case Study

Venue: The Fifth Conference on System and Service Quality - QualITA, May 5, 2026, Florence, Italy. Qual-ITA (https://qualitawg.github.io/) is happening with The International Conference on Performance Engineering (ICPE26) .

Presented: 11:40-12:00, 5th May, 2026 - See Program here

Version License: MIT · GitHub contributors GitHub repo size · GitHub commit activity (branch) · GitHub contributors · · GitHub closed issues · GitHub issues · GitHub closed pull requests · GitHub pull requests GitHub last commit · GitHub watchers · GitHub forks · GitHub Repo stars · Visitors


This repository provides the experimental results and reproducibility material for eXplainable Anomaly Detection (XAD) using the ShapBPT Python package.


ShapBPT was recently published at the

40th AAAI Conference on Artificial Intelligence (AAAI-2026), Singapore, 20–27 January 2026.


Overview

This repository contains the experiments, notebooks, and precomputed results for the paper:

ShapBPT in Perspective: A Consolidated Review and an eXplainable Anomaly Detection Case Study

The repository includes:

  • Experimental results for AD Case Study(E6)
  • Reproducible Jupyter notebooks
  • Precomputed PDF and CSV files
  • Ready-to-run ShapBPT examples
  • Visualization utilities for anomaly detection

1. Environment Preparation and Installation ⚙️

To run the notebooks and reproduce the experiments, create a dedicated Python environment.


1.1 Create Conda Environment

conda create -n XAD python=3.9.18
conda activate XAD

1.2 Clone This Repository

git clone https://github.com/rashidrao-pk/XAD
cd XAD
pip install -r requirements.txt 

1.3 Install ShapBPT

Option 1 — Install from PyPI (Recommended) - See PyPi Project here

pip install shap-bpt

Option 2 — Install from Source or follow this page

git clone https://github.com/amparore/shap_bpt
cd shap_bpt
pip install .

Note: ShapBPT contains a Cython module, so compilation is required when installing from source.


1.4 LaTeX Support (Optional but Recommended)

Some plots use LaTeX rendering.

Ubuntu/Linux:

sudo apt-get install texlive-latex-extra texlive-fonts-recommended dvipng cm-super

Windows:

Install MikTeX (or equivalent LaTeX distribution).


1.5 Verify Installation

import shap_bpt
print(shap_bpt.__version__)

1.6 Required Dataset 🌰

Download the MVTec AD dataset:

https://www.mvtec.com/company/research/datasets/mvtec-ad

Place it inside:

notebooks/datasets/

Sample Result


2. Precomputed Results

Exp Dataset Model PDF CSV
E6 MVTec AD VAE-GAN PDF/HTML_E6_hazelnut_heatmaps_IoU.pdf csv_exp_E6_testresults_hazelnut_9_BPT_new_eval.csv

3. Hardware Validation

The published results were generated and validated on the following systems:

Device Machine Processor RAM GPU
Laptop Santech XN2 Intel Core i9 (13th Gen) 16GB NVIDIA RTX 4070
Laptop MacBook Pro Apple M1 16GB Integrated M1 GPU

4. Acknowledgments 🙏

We gratefully acknowledge the following contributions and resources that supported this work:

💠 Funding

This work received funding from the European Union’s Horizon research and innovation programme Chips JU under Grant Agreement No. 101139769, as part of the DistriMuSe Project (HORIZON-KDT-JU-2023-2-RIA). The Joint Undertaking receives support from the European Union and the participating member states.

🧠 Models & Pretrained Weights

Our previous work (Can I Trust my Anomaly Detection, A case study base on explainable AI) Github/anomaly_detection_trust_case_study is acknowledged here which is used as pretrained model weights and initial codes.

🗄️ Datasets

We acknowledge the dataset MVTec curators whose work made this project possible.

Keywords 🔍

Anomaly detection · Variational Autoencoder · eXplainable AI · Software quality · Smart Industries

5. Citation 📃

If you find this work interesting, please cite it using following Bibtex

@inproceedings{rashid2026shapbpt,
  title={ShapBPT in Perspective: A Consolidated Review and an eXplainable Anomaly Detection Case Study},
  author={Rashid, Muhammad and Amparore, Elvio and Ferrari, Enrico and Verda, Damiano},
  booktitle={Companion of the 17th ACM/SPEC International Conference on Performance Engineering},
  pages={178--187},
  year={2026}
}

6. Contributors


Note

Contributions to improve the completeness of this list are greatly appreciated. If you come across any overlooked papers, please feel free to create pull requests, open issues or contact me via email. Your participation is crucial to making this repository even better.

About

Explainable Anomaly Detection - ShapBPT in Perspective: A Consolidated Review and an eXplainable Anomaly Detection Case Study

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages