A Comparative Analysis of Explainable AI (XAI) Techniques for Transparent and Reliable Image Classification.
The 2 matches
- [1] § 3. Methodology › 3.3. Test Models: Role of CNN Architecture Complexity ↔ xai_c/models/definitions.py, lines 5–36 · score 0.73 · AvgPool2d, ReLU, kernel, module, stride, padding
- [2] § 3. Methodology › 3.2. Preprocessing of Dataset ↔ CNN_XAI_Analysis.py, lines 190–201 · score 0.60 · ToTensor, PIL image, resize, model
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: 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.21203/rs.3.rs-9676637/v1 [code]
- A Comprehensive Benchmarking of Spatial Deconvolution and Domain Detection Methods across Diverse Tissues and Spatial Transcriptomic TechnologiesJournal: Research Square (preprint)In common: OpenCV, Pillow, PyTorch, 6 other tools, methods / tools
- [2] doi:10.3389/frai.2026.1771088 [code]
- Few-shot deployment of pretrained MRI transformers in brain imaging tasks.Journal: Frontiers in artificial intelligenceIn common: OpenCV, Pillow, PyTorch, 6 other tools, methods / tools
- [3] doi:10.1002/hbm.70469 [code]
- VarCoNet: A Variability-Aware Self-Supervised Framework for Functional Connectome Extraction From Resting-State fMRI.Journal: Human brain mappingIn common: OpenCV, Pillow, PyTorch, 6 other tools, methods / tools
- [4] doi:10.1038/s41597-025-05174-7 [code]
- A large-scale MEG and EEG dataset for object recognition in naturalistic scenesJournal: n/aIn common: OpenCV, Pillow, PyTorch, 6 other tools, methods / tools
- [5] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: OpenCV, Pillow, PyTorch, 6 other tools
- [6] doi:10.1038/s43856-026-01817-x [code]
- Visual prompt engineering for multimodal and irregularly sampled medical data.Journal: Communications medicineIn common: OpenCV, Pillow, PyTorch, 6 other tools
- [7] doi:10.1038/s41467-026-76837-1 [code]
- Drug screen and machine learning predict neuroprotective agents in a preclinical human model of childhood dementia.Journal: Nature communicationsIn common: OpenCV, Pillow, PyTorch, 6 other tools
- [8] doi:10.1038/s41593-026-02388-9 [code]
- Hippocampal CA3 connectomics reveals a gradient of mossy fiber inputs and selective feedforward inhibition onto pyramidal cells.Journal: Nature neuroscienceIn common: OpenCV, Pillow, PyTorch, 6 other tools
- [9] doi:10.1371/journal.pcbi.1014571 [code]
- SynAPSeg: A novel dataset and image analysis framework for deep learning-based synapse detection and quantification.Journal: PLoS computational biologyIn common: OpenCV, Pillow, PyTorch, 6 other tools
- [10] doi:10.1162/imag.a.1309 [code]
- Probing the content of semantic representations in body-selective regions.Journal: Imaging neuroscience (Cambridge, Mass.)In common: OpenCV, Pillow, PyTorch, 6 other tools
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:80f877611a145ef3…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
