covid19-cxr-ct-detection-eval
Explainable and Lightweight Model for COVID-19 Detection Using Chest Radiology Images — Suba S et al. (2022) (arXiv:2212.13788, 2022)
What this evaluates
Evaluates a lightweight CNN's ability to classify chest radiology images (CXR and CT scans) as positive or negative for COVID-19, and in a three-class setting. It also tests cross-modality generalization by training on CT and testing on CXR data.
Datasets
Metrics
accuracy (primary) — range: [0, 1]
- TP / TP +0.5*(FP + FN) as defined in the paper (note: non-standard formulation).
precision — range: [0, 1]
recall — range: [0, 1]
f1-score — range: [0, 1]
- Calculated per class separately using precision and recall.
Input / output format
Input: Chest X-ray (CXR) or Chest CT images resized to 224x224x3 pixels.
Output: Binary classification (sigmoid activation) or three-class classification (softmax activation) indicating COVID-19 status.
Scoring recipe
def compute_metrics(y_true, y_pred):
tp = np.sum((y_true == 1) & (y_pred == 1))
fp = np.sum((y_true == 0) & (y_pred == 1))
fn = np.sum((y_true == 1) & (y_pred == 0))
accuracy = tp / (tp + 0.5 * (fp + fn))
precision = tp / (tp + fp) if (tp + fp) > 0 else 0
recall = tp / (tp + fn) if (tp + fn) > 0 else 0
f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0
return accuracy, precision, recall, f1
Common pitfalls
- The paper defines accuracy as TP / (TP + 0.5*(FP + FN)), which deviates from the standard TP/(TP+FP+FN) formula.
- F1-score is reported per class separately rather than as a macro/micro average, which can obscure overall performance on imbalanced datasets.
- Cross-modality evaluation (training on CT, testing on CXR) is mentioned but not fully detailed in the results section, making reproducibility of that specific protocol difficult.
Evidence (verbatim from paper)
Performance comparison is carried out for various parameters, viz., accuracy, precision, recall, F1-score, time taken to train the model, number of model parameters, etc. Precision, recall and F1-score are reported per class and accuracy is computed considering all classes. Accuracy is calculated as TP / TP +0.5*(FP + FN), where TP, FP and FN correspond to the number of true positives, false positives and false negatives, respectively. Recall (Sensitivity) gives the proportion of correct positive results and is defined as the ratio of true positives to all positive cases, TP/(TP+FN). Precision (Positive Predictive Value - PPV) gives the proportion of positively classified cases that are truly positive: TP/(TP+FP) and is a measure of how relevant a positive result is. F1-score is calculated the same way as accuracy but for each class separately.
Citation
@misc{suba2022explainable,
title={Explainable and Lightweight Model for COVID-19 Detection Using Chest Radiology Images},
author={Suba S et al. (2022)},
year={2022},
note={arXiv:2212.13788}
}
1---2name: covid19-cxr-ct-detection-eval3description: Evaluates a lightweight CNN's ability to classify chest radiology images (CXR and CT scans) as positive or negative for COVID-19, and in a three-class setting. It also tests cross-modality generalization by training on CT and testing on CXR data. Use when the user wants to benchmark on CXR/CT Chest Radiology Dataset, or asks about evaluating this task. Reports accuracy.4---56# covid19-cxr-ct-detection-eval78> Explainable and Lightweight Model for COVID-19 Detection Using Chest Radiology Images — Suba S et al. (2022) (arXiv:2212.13788, 2022)910## What this evaluates1112Evaluates a lightweight CNN's ability to classify chest radiology images (CXR and CT scans) as positive or negative for COVID-19, and in a three-class setting. It also tests cross-modality generalization by training on CT and testing on CXR data.1314## Datasets1516- **CXR/CT Chest Radiology Dataset** — total ?; splits: train (-1), val (-1), test (-1); repo https://github.com/aleesuss/c191718## Metrics1920- `accuracy` **(primary)** — range: [0, 1]21 - TP / TP +0.5*(FP + FN) as defined in the paper (note: non-standard formulation).22- `precision` — range: [0, 1]23 - TP / (TP + FP)24- `recall` — range: [0, 1]25 - TP / (TP + FN)26- `f1-score` — range: [0, 1]27 - Calculated per class separately using precision and recall.2829## Input / output format3031**Input**: Chest X-ray (CXR) or Chest CT images resized to 224x224x3 pixels.3233**Output**: Binary classification (sigmoid activation) or three-class classification (softmax activation) indicating COVID-19 status.3435## Scoring recipe3637```python38def compute_metrics(y_true, y_pred):39 tp = np.sum((y_true == 1) & (y_pred == 1))40 fp = np.sum((y_true == 0) & (y_pred == 1))41 fn = np.sum((y_true == 1) & (y_pred == 0))42 accuracy = tp / (tp + 0.5 * (fp + fn))43 precision = tp / (tp + fp) if (tp + fp) > 0 else 044 recall = tp / (tp + fn) if (tp + fn) > 0 else 045 f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 046 return accuracy, precision, recall, f147```4849## Common pitfalls5051- The paper defines accuracy as TP / (TP + 0.5*(FP + FN)), which deviates from the standard TP/(TP+FP+FN) formula.52- F1-score is reported per class separately rather than as a macro/micro average, which can obscure overall performance on imbalanced datasets.53- Cross-modality evaluation (training on CT, testing on CXR) is mentioned but not fully detailed in the results section, making reproducibility of that specific protocol difficult.5455## Evidence (verbatim from paper)5657> Performance comparison is carried out for various parameters, viz., accuracy, precision, recall, F1-score, time taken to train the model, number of model parameters, etc. Precision, recall and F1-score are reported per class and accuracy is computed considering all classes. Accuracy is calculated as TP / TP +0.5*(FP + FN), where TP, FP and FN correspond to the number of true positives, false positives and false negatives, respectively. Recall (Sensitivity) gives the proportion of correct positive results and is defined as the ratio of true positives to all positive cases, TP/(TP+FN). Precision (Positive Predictive Value - PPV) gives the proportion of positively classified cases that are truly positive: TP/(TP+FP) and is a measure of how relevant a positive result is. F1-score is calculated the same way as accuracy but for each class separately.5859## Citation6061```bibtex62@misc{suba2022explainable,63 title={Explainable and Lightweight Model for COVID-19 Detection Using Chest Radiology Images},64 author={Suba S et al. (2022)},65 year={2022},66 note={arXiv:2212.13788}67}68```6970- arXiv: 2212.13788