A Comparative Analysis of Explainable AI (XAI) Techniques for Transparent and Reliable Image Classification.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 2 matches
- [1] § 3. Methodology › 3.3. Test Models: Role of CNN Architecture Complexity ↔ xai_c/models/definitions.py, lines 5 to 36 · score 0.73 · AvgPool2d, ReLU, kernel, module, stride, padding · block
oscr:b:EFBWP56R8RN4Q-9· Report a mismatch - [2] § 3. Methodology › 3.2. Preprocessing of Dataset ↔ CNN_XAI_Analysis.py, lines 190 to 201 · score 0.60 · ToTensor, PIL image, resize, model · block
oscr:b:RNC3RBXX4J729-L· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 77 lines · 2.2 KB · Apache-2.0 · 1 match
- import torch
- import torch.nn as nn
- import torchvision.models as models
- # --- CNN Definition ---
- class CNN(nn.Module):
- def __init__(self):
- super(CNN, self).__init__()
- self.features = nn.Sequential(
- nn.Conv2d(3, 8, kernel_size=3, stride=1, padding=1),
- nn.ReLU(inplace=True),
- nn.AvgPool2d(kernel_size=2, stride=2),
- nn.Conv2d(8, 16, kernel_size=3, stride=1, padding=1),
- nn.ReLU(inplace=True),
- nn.AvgPool2d(kernel_size=2, stride=2),
- nn.Conv2d(16, 32, kernel_size=3, stride=1, padding=1),
- nn.ReLU(inplace=True),
- nn.AvgPool2d(kernel_size=2, stride=2),
- nn.Conv2d(32, 64, kernel_size=3, stride=1, padding=1),
- nn.ReLU(inplace=True),
- nn.AvgPool2d(kernel_size=2, stride=2)
- )
- self.classifier = nn.Sequential(
- nn.Linear(64 * 14 * 14, 64),
- nn.ReLU(inplace=True),
- nn.Linear(64, 2)
- )
- def forward(self, x):
- x = self.features(x)
- x = x.view(x.size(0), -1) # Flatten
- x = self.classifier(x)
- return x
- # --- Loaders ---
- def load_vgg16(weights_path, device):
- """
- Loads VGG16 with a binary classifier (Sigmoid output).
- """
- model = models.vgg16()
- # Modify classifier for binary output as requested
- model.classifier[6] = nn.Sequential(
- nn.Linear(4096, 1),
- nn.Sigmoid()
- )
- try:
- state_dict = torch.load(weights_path, map_location=device, weights_only=True)
- except TypeError:
- # Fallback for older pytorch versions
- state_dict = torch.load(weights_path, map_location=device)
- model.load_state_dict(state_dict)
- model.to(device)
- model.eval()
- return model
- def load_cnn(weights_path, device):
- """
- Loads Custom CNN with split state_dict (features/classifier).
- """
- model = CNN()
- # Load the dictionary of state dicts
- state_dict = torch.load(weights_path, map_location=device)
- # Load into respective parts
- model.features.load_state_dict(state_dict['features'])
- model.classifier.load_state_dict(state_dict['classifier'])
- model.to(device)
- model.eval()
- return model
definitions.py at commit a3145d6, under Apache-2.0 · at the source
Overview
- Department of Computer Science, Old Dominion University, Norfolk, VA 23529, USA; (S.C.); (S.M.D.)
- Environmental Laboratory, US Army Engineer Research and Development Center, Vicksburg, MS 39180, USA; (K.R.P.); (M.L.M.)
Abstract
Evaluating the trustworthiness of black-box machine learning models remains a significant methodological challenge. Their lack of transparency and interpretability limits applicability, because stakeholders often seek transparency before trusting the results of black-box machine learning models. Explainable AI (XAI) methods provide for human-understandable justifications and informed decision-making of these black-box architectures. Therefore, it is imperative to select the proper XAI model tailored to specific tasks. In this research, we focus on examining four XAI techniques: PEEK, LRP, GRAD-CAM, and LIME to understand how they perform against each other for image classification tasks. We evaluate the performance, robustness, generalizability, noise stability, and computational efficiency of these methods using a globally recognized dataset. With 7390 images, the Oxford IIT pet dataset provides a comprehensive resource for training a custom Convolutional Neural Network (CNN) and VGG16, enabling a consistent evaluation of each XAI method. First, we analyze the saliency maps of the input images and observe the regions predicted by these XAI methods, and then leverage a noise analysis approach to evaluate their performance in terms of accuracy. We further explore the robustness, run-time, and “faithfulness” metrics of each XAI method. In general, we find that these methods can identify a set of input-data features that are critical for accurate classification but also intuitive, such as the outline, face, and eyes of subjects. However, our analysis reveals only marginal consensus among XAI methods in identifying those critical features. Grad-CAM demonstrates strong robustness and stability in VGG16, but the performance on the shallow CNN model remained inconsistent.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
AMLRL-ODU/CompareXAI
a3145d624eac9ca8c9ed3c5001829707e8d3fe3e, 18 May 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
22 files
- CNN_XAI_Analysis.py, Python, 287 lines, 1 match
- CNN_jaccard_score_analys
is.py , Python, 227 lines - main_runall.py, Python, 99 lines
- main_runall_lime.py, Python, 77 lines
- robustness.py, Python, 215 lines
- run_jaccard.py, Python, 186 lines
- runtime_analysis.py, Python, 170 lines
- xai_c/
__init__.py , Python, 1 line - xai_c/
data.py , Python, 35 lines - xai_c/
evaluation.py , Python, 151 lines - xai_c/
methods/ , Python, 1 line__init__.py - xai_c/
methods/ , Python, 45 linesgradcam.py - xai_c/
methods/ , Python, 74 lineslime_method.py - xai_c/
methods/ , Python, 28 lineslrp.py - xai_c/
methods/ , Python, 34 linespeek.py - xai_c/
models/ , Python, 1 line__init__.py - xai_c/
models/ , Python, 77 lines, 1 matchdefinitions.py - xai_c/
perturbation.py , Python, 47 lines - xai_c/
utils.py , Python, 61 lines - xai_c/
visualization.py , Python, 90 lines - LICENSE, License, 201 lines
- README.md, Text, 2 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 20 scripts, each with its path and the digest of its content;
- 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data Availability Statement
No new data were created or analyzed in this study. All the codes and data are available in the mentioned Github link: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 7 keywords, 27 references.
Cite
This paper
Chakraborty, S., Dipto, S. M., Pilkiewicz, K. R., Mayo, M. L., & Rana, P. (2026). A Comparative Analysis of Explainable AI (XAI) Techniques for Transparent and Reliable Image Classification. Entropy (Basel, Switzerland), 28(5), 562. https://
BibTeX
@article{chakraborty2026
author = {Chakraborty, Sovon and Dipto, Shakib Mahmud and Pilkiewicz, Kevin R. and Mayo, Michael L. and Rana, Pratip},
title = {{A Comparative Analysis of Explainable AI (XAI) Techniques for Transparent and Reliable Image Classification}},
journal = {Entropy (Basel, Switzerland)},
year = {2026},
month = may,
volume = {28},
number = {5},
pages = {562},
publisher = {Multidisciplinary Digital Publishing Institute (MDPI)},
issn = {1099-4300},
doi = {10.3390/
url = {https://
pmid = {42187977},
pmcid = {PMC13205289}
}
RIS
TY - JOUR
AU - Chakraborty, Sovon
AU - Dipto, Shakib Mahmud
AU - Pilkiewicz, Kevin R.
AU - Mayo, Michael L.
AU - Rana, Pratip
TI - A Comparative Analysis of Explainable AI (XAI) Techniques for Transparent and Reliable Image Classification
T2 - Entropy (Basel, Switzerland)
J2 - Entropy (Basel)
PY - 2026
DA - 2026/
VL - 28
IS - 5
SP - 562
SN - 1099-4300
PB - Multidisciplinary Digital Publishing Institute (MDPI)
DO - 10.3390/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3390/
"type": "article-journal",
"title": "A Comparative Analysis of Explainable AI (XAI) Techniques for Transparent and Reliable Image Classification",
"container-title": "Entropy (Basel, Switzerland)",
"author": [
{
"family": "Chakraborty",
"given": "Sovon"
},
{
"family": "Dipto",
"given": "Shakib Mahmud"
},
{
"family": "Pilkiewicz",
"given": "Kevin R."
},
{
"family": "Mayo",
"given": "Michael L."
},
{
"family": "Rana",
"given": "Pratip"
}
],
"container-title-short":
"volume": "28",
"issue": "5",
"page": "562",
"DOI": "10.3390/
"PMID": "42187977",
"PMCID": "PMC13205289",
"ISSN": "1099-4300",
"publisher": "Multidisciplinary Digital Publishing Institute (MDPI)",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
18
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1016/j.neuroimage.2023.120109 [code]
- Benchmarking explanation methods for mental state decoding with deep learning models.Journal: NeuroImageIn common: Pillow, PyTorch, seaborn, 5 other tools, methods / tools, 1 reference
- [2] doi:10.3389/frai.2022.903875 [code]
- Benchmarking Perturbation-Based Saliency Maps for Explaining Atari Agents.Journal: Frontiers in artificial intelligenceIn common: OpenCV, Pillow, seaborn, 5 other tools, 1 reference
- [3] doi:10.1007/s10994-022-06167-y [code]
- Scrutinizing XAI using linear ground-truth data with suppressor variables.Journal: Machine learningIn common: Pillow, seaborn, scikit-learn, 4 other tools, methods / tools, 1 reference
- [4] doi:10.1038/s41598-025-09538-2 [code]
- A comprehensive analysis of perturbation methods in explainable AI feature attribution validation for neural time series classifiers.Journal: Scientific reportsIn common: PyTorch, seaborn, scikit-learn, 4 other tools, methods / tools, 1 reference
- [5] doi:10.1038/s41598-026-47814-x [code]
- Predicting post-stroke functional outcome using explainable machine learning and integrated data.Journal: Scientific reportsIn common: PyTorch, scikit-learn, pandas, 2 other tools, 2 references
- [6] doi:10.1109/jtehm.2024.3430035 [code]
- XAI-Based Assessment of the AMURA Model for Detecting Amyloid-β and Tau Microstructural Signatures in Alzheimer's Disease.Journal: IEEE journal of translational engineering in health and medicineIn common: Pillow, PyTorch, scikit-learn, 4 other tools, 1 reference
- [7] doi:10.3390/e28040453 [code]
- Polynomial Perceptrons for Compact, Robust, and Interpretable Machine Learning Models.Journal: Entropy (Basel, Switzerland)In common: PyTorch, seaborn, scikit-learn, 4 other tools, 1 reference
- [8] doi:10.3389/frobt.2024.1324404 [code]
- Neural dynamics of robust legged robots.Journal: Frontiers in robotics and AIIn common: OpenCV, Pillow, PyTorch, 3 other tools, 1 reference
- [9] doi:10.1038/s41746-024-01123-7 [code]
- Constructing personalized characterizations of structural brain aberrations in patients with dementia using explainable artificial intelligence.Journal: NPJ digital medicineIn common: Pillow, scikit-learn, pandas, 3 other tools, 1 reference
- [10] doi:10.3389/fpsyt.2026.1803720 [code]
- NeuroCon-AutismNet: a privacy-preserving multimodal framework toward autism screening via diffusion-regularized EEG biomarkers and empathy-aware multilingual dialogue.Journal: Frontiers in psychiatryIn common: PyTorch, scikit-learn, pandas, 3 other tools, 1 reference
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 20 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:9a0c5108b6a7e16c…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.3390/e28050562)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.3390/e28050562.svg
:target: https://openscicode.org/badge/doi/10.3390/e28050562
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3390/e28050562"><img src="https://openscicode.org/badge/doi/10.3390/e28050562.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
