OSCR

A Comparative Analysis of Explainable AI (XAI) Techniques for Transparent and Reliable Image Classification.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [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. [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

  1. import torch
  2. import torch.nn as nn
  3. import torchvision.models as models
  4. # --- CNN Definition ---
  5. class CNN(nn.Module):
  6. def __init__(self):
  7. super(CNN, self).__init__()
  8. self.features = nn.Sequential(
  9. nn.Conv2d(3, 8, kernel_size=3, stride=1, padding=1),
  10. nn.ReLU(inplace=True),
  11. nn.AvgPool2d(kernel_size=2, stride=2),
  12. nn.Conv2d(8, 16, kernel_size=3, stride=1, padding=1),
  13. nn.ReLU(inplace=True),
  14. nn.AvgPool2d(kernel_size=2, stride=2),
  15. nn.Conv2d(16, 32, kernel_size=3, stride=1, padding=1),
  16. nn.ReLU(inplace=True),
  17. nn.AvgPool2d(kernel_size=2, stride=2),
  18. nn.Conv2d(32, 64, kernel_size=3, stride=1, padding=1),
  19. nn.ReLU(inplace=True),
  20. nn.AvgPool2d(kernel_size=2, stride=2)
  21. )
  22. self.classifier = nn.Sequential(
  23. nn.Linear(64 * 14 * 14, 64),
  24. nn.ReLU(inplace=True),
  25. nn.Linear(64, 2)
  26. )
  27. def forward(self, x):
  28. x = self.features(x)
  29. x = x.view(x.size(0), -1) # Flatten
  30. x = self.classifier(x)
  31. return x
  32. # --- Loaders ---
  33. def load_vgg16(weights_path, device):
  34. """
  35. Loads VGG16 with a binary classifier (Sigmoid output).
  36. """
  37. model = models.vgg16()
  38. # Modify classifier for binary output as requested
  39. model.classifier[6] = nn.Sequential(
  40. nn.Linear(4096, 1),
  41. nn.Sigmoid()
  42. )
  43. try:
  44. state_dict = torch.load(weights_path, map_location=device, weights_only=True)
  45. except TypeError:
  46. # Fallback for older pytorch versions
  47. state_dict = torch.load(weights_path, map_location=device)
  48. model.load_state_dict(state_dict)
  49. model.to(device)
  50. model.eval()
  51. return model
  52. def load_cnn(weights_path, device):
  53. """
  54. Loads Custom CNN with split state_dict (features/classifier).
  55. """
  56. model = CNN()
  57. # Load the dictionary of state dicts
  58. state_dict = torch.load(weights_path, map_location=device)
  59. # Load into respective parts
  60. model.features.load_state_dict(state_dict['features'])
  61. model.classifier.load_state_dict(state_dict['classifier'])
  62. model.to(device)
  63. model.eval()
  64. return model

definitions.py at commit a3145d6, under Apache-2.0 · at the source

Overview

  1. Department of Computer Science, Old Dominion University, Norfolk, VA 23529, USA; (S.C.); (S.M.D.)
  2. Environmental Laboratory, US Army Engineer Research and Development Center, Vicksburg, MS 39180, USA; (K.R.P.); (M.L.M.)
Institutions: Old Dominion University (United States); United States Army (United States); U.S. Army Engineer Research and Development Center (United States)
Journal: Entropy (Basel, Switzerland), volume 28, issue 5, article 562
Dates: received 12 February 2026; accepted 6 May 2026; published online 18 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3390/e28050562 · PMID 42187977 · PMCID PMC13205289 · OpenAlex W7161676037
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: methods / tools (subfield)
Methods: Connectivity, Machine learning
Keywords: XAI, image classification, LIME, Grad-CAM, PEEK, LRP, interpretability
Topic: Explainable Artificial Intelligence (XAI) (Artificial Intelligence, Computer Science), according to OpenAlex
Citations: not cited yet (Europe PMC); 39 references in the paper

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

License: Apache-2.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: a3145d624eac9ca8c9ed3c5001829707e8d3fe3e, 18 May 2026
Languages: Python (20)
Size: 23 files, 20 scripts
Software Heritage: not archived
Found in: “Data Availability Statement”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (15 files), NumPy (11 files), Matplotlib (8 files), pandas (3 files), seaborn (3 files), OpenCV (2 files), Pillow (2 files), SciPy (2 files), scikit-learn (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
22 files

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://github.com/AMLRL-ODU/CompareXAI (accessed on 11 February 2026).

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://doi.org/10.3390/e28050562

BibTeX

@article{chakraborty2026comparative,
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/e28050562},
url = {https://doi.org/10.3390/e28050562},
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/05/18
VL - 28
IS - 5
SP - 562
SN - 1099-4300
PB - Multidisciplinary Digital Publishing Institute (MDPI)
DO - 10.3390/e28050562
UR - https://doi.org/10.3390/e28050562
LA - en
ER -

CSL-JSON

{
"id": "10.3390/e28050562",
"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": "Entropy (Basel)",
"volume": "28",
"issue": "5",
"page": "562",
"DOI": "10.3390/e28050562",
"PMID": "42187977",
"PMCID": "PMC13205289",
"ISSN": "1099-4300",
"publisher": "Multidisciplinary Digital Publishing Institute (MDPI)",
"URL": "https://doi.org/10.3390/e28050562",
"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 Technologies
Journal: 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 intelligence
In 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 mapping
In 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 scenes
Journal: n/a
In 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 biology
In 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 medicine
In 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 communications
In 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 neuroscience
In 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 biology
In 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.

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.