chestxray-pneumonia-eval
Weakly Supervised Pneumonia Localization from Chest X-Rays Using Deep Neural Network and Grad-CAM Explanations — Shahi et al. (2025) (arXiv:2511.00456, 2025)
What this evaluates
Evaluates deep learning models for binary classification of chest X-rays into normal versus pneumonia categories, while also assessing the spatial interpretability of model predictions using Grad-CAM heatmaps.
Datasets
Metrics
Accuracy (primary) — range: [0, 1]
- Proportion of correctly classified instances: (TP + TN) / (TP + TN + FP + FN).
ROC-AUC — range: [0, 1]
- Area under the Receiver Operating Characteristic curve, measuring trade-off between true positive rate and false positive rate across thresholds.
PR-AUC — range: [0, 1]
- Area under the Precision-Recall curve, measuring trade-off between precision and recall across thresholds.
Best F1 — range: [0, 1]
- Maximum F1-score achieved across all classification thresholds, calculated as 2 * (Precision * Recall) / (Precision + Recall).
Lung Attention Ratio (LAR) — range: [0, 1]
- Ratio of Grad-CAM heatmap activation pixels falling within the anatomical lung mask to the total heatmap activation pixels.
Input / output format
Input: Single chest X-ray image with an associated patient-level binary label (Normal or Pneumonia).
Output: Binary classification prediction (Normal/Pneumonia) and a Grad-CAM heatmap overlay indicating spatial attention regions.
Scoring recipe
y_pred = model.predict(X)
accuracy = (y_pred == y_true).mean()
f1 = f1_score(y_true, y_pred, average='binary')
roc_auc = roc_auc_score(y_true, y_prob)
pr_auc = average_precision_score(y_true, y_prob)
heatmap = compute_gradcam(model, X)
lung_mask = get_anatomical_lung_mask(X)
lar = (heatmap * lung_mask).sum() / heatmap.sum()
Common pitfalls
- Using image-level splits instead of patient-level splits causes data leakage due to multiple views per patient.
- Grad-CAM heatmaps are post-hoc explanations, not supervised localization targets, so high classification accuracy does not guarantee anatomically correct attention.
- Early stopping is based on validation ROC-AUC, not accuracy, which may shift the optimal threshold for F1/Best F1 reporting.
Evidence (verbatim from paper)
Evaluation metrics include Accuracy, ROC-AUC, PR-AUC and Best F1. ... Quantitative Grad-CAM localization using Lung Attention Ratio (LAR) on a representative subset of the test set.
Citation
@misc{shahi2025weakly,
title={Weakly Supervised Pneumonia Localization from Chest X-Rays Using Deep Neural Network and Grad-CAM Explanations},
author={Shahi et al. (2025)},
year={2025},
note={arXiv:2511.00456}
}
1---2name: chestxray-pneumonia-eval3description: Evaluates deep learning models for binary classification of chest X-rays into normal versus pneumonia categories, while also assessing the spatial interpretability of model predictions using Grad-CAM heatmaps. Use when the user wants to benchmark on Chest X-Rays dataset, or asks about evaluating this task. Reports Accuracy.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/chestxray-pneumonia-eval6 skill_kind: dataset_eval7 source_arxiv: 2511.004568 bibtex_key: shahi2025weakly9 confidence: high10---1112# chestxray-pneumonia-eval1314> Weakly Supervised Pneumonia Localization from Chest X-Rays Using Deep Neural Network and Grad-CAM Explanations — Shahi et al. (2025) (arXiv:2511.00456, 2025)1516## What this evaluates1718Evaluates deep learning models for binary classification of chest X-rays into normal versus pneumonia categories, while also assessing the spatial interpretability of model predictions using Grad-CAM heatmaps.1920## Datasets2122- **Chest X-Rays dataset** — total ?; splits: train (-1), val (-1), test (-1); repo https://github.com/kiranshahi/pneumonia-analysis2324## Metrics2526- `Accuracy` **(primary)** — range: [0, 1]27 - Proportion of correctly classified instances: (TP + TN) / (TP + TN + FP + FN).28- `ROC-AUC` — range: [0, 1]29 - Area under the Receiver Operating Characteristic curve, measuring trade-off between true positive rate and false positive rate across thresholds.30- `PR-AUC` — range: [0, 1]31 - Area under the Precision-Recall curve, measuring trade-off between precision and recall across thresholds.32- `Best F1` — range: [0, 1]33 - Maximum F1-score achieved across all classification thresholds, calculated as 2 * (Precision * Recall) / (Precision + Recall).34- `Lung Attention Ratio (LAR)` — range: [0, 1]35 - Ratio of Grad-CAM heatmap activation pixels falling within the anatomical lung mask to the total heatmap activation pixels.3637## Input / output format3839**Input**: Single chest X-ray image with an associated patient-level binary label (Normal or Pneumonia).4041**Output**: Binary classification prediction (Normal/Pneumonia) and a Grad-CAM heatmap overlay indicating spatial attention regions.4243## Scoring recipe4445```python46y_pred = model.predict(X)47accuracy = (y_pred == y_true).mean()48f1 = f1_score(y_true, y_pred, average='binary')49roc_auc = roc_auc_score(y_true, y_prob)50pr_auc = average_precision_score(y_true, y_prob)51heatmap = compute_gradcam(model, X)52lung_mask = get_anatomical_lung_mask(X)53lar = (heatmap * lung_mask).sum() / heatmap.sum()54```5556## Common pitfalls5758- Using image-level splits instead of patient-level splits causes data leakage due to multiple views per patient.59- Grad-CAM heatmaps are post-hoc explanations, not supervised localization targets, so high classification accuracy does not guarantee anatomically correct attention.60- Early stopping is based on validation ROC-AUC, not accuracy, which may shift the optimal threshold for F1/Best F1 reporting.6162## Evidence (verbatim from paper)6364> Evaluation metrics include Accuracy, ROC-AUC, PR-AUC and Best F1. ... Quantitative Grad-CAM localization using Lung Attention Ratio (LAR) on a representative subset of the test set.6566## Citation6768```bibtex69@misc{shahi2025weakly,70 title={Weakly Supervised Pneumonia Localization from Chest X-Rays Using Deep Neural Network and Grad-CAM Explanations},71 author={Shahi et al. (2025)},72 year={2025},73 note={arXiv:2511.00456}74}75```7677- arXiv: 2511.00456