benchx-eval
BenchX: A Unified Benchmark Framework for Medical Vision-Language Pretraining on Chest X-Rays — Yang Zhou et al. (2024) (arXiv:2410.21969, 2024)
What this evaluates
Evaluates Medical Vision-Language Pretraining (MedVLP) models on chest X-ray tasks including multi-label/binary classification, segmentation, report generation, and image-text retrieval. It specifically probes how standardized preprocessing and finetuning strategies affect model performance across heterogeneous architectures.
Datasets
- NIH — total ?; splits: train (-1), test (-1)
- VinDr — total ?; splits: train (-1), test (-1)
- COVIDx — total ?; splits: train (-1), test (-1)
- SIIM — total ?; splits: train (-1), test (-1)
- RSNA — total ?; splits: train (-1), test (-1)
- Object-CXR — total ?; splits: train (-1), test (-1)
- TBX11K — total ?; splits: train (-1), test (-1)
- IUXray — total ?; splits: train (-1), test (-1)
- MIMIC 5x200 — total ?; splits: train (-1), test (-1)
Metrics
AUROC (primary) — range: [0, 1]
- Area Under the Receiver Operating Characteristic Curve. Measures the probability that a randomly chosen positive instance is ranked higher than a randomly chosen negative instance across all classification thresholds.
F1 — range: [0, 1]
- Harmonic mean of precision and recall: 2 * (precision * recall) / (precision + recall). Used for binary classification tasks where AUROC may not reflect performance differences accurately.
mDice — range: [0, 1]
- Mean Dice coefficient across classes/instances. Measures spatial overlap between predicted and ground truth segmentation masks.
BLEU/ROUGE-L/METEOR — range: [0, 1]
- Standard NLG metrics: BLEU measures n-gram precision, ROUGE-L measures longest common subsequence recall, METEOR combines precision, recall, and alignment.
Hit@K / Precision@K — range: [0, 1]
- Hit@K (H@K) indicates whether the correct report is in the top K retrieved items. Precision@K (P@K) measures the proportion of correct reports among the top K predictions.
Input / output format
Input: Chest X-ray images. For retrieval tasks, an image query is paired against a candidate pool of radiology reports.
Output: Predicted class labels (multi-label or binary), segmentation masks, generated medical reports, or a ranked list of candidate reports.
Scoring recipe
def score(preds, golds, task):
if task == 'multilabel':
return roc_auc_score(golds, preds, average='macro')
elif task == 'binary':
preds_bin = (preds >= 0.5).astype(int)
return f1_score(golds, preds_bin, average='macro')
elif task == 'seg':
return 2 * (preds * golds).sum() / (preds.sum() + golds.sum() + 1e-8)
elif task == 'retrieval':
ranks = np.argsort(-preds, axis=1)
correct_idx = (ranks == golds[:, None]).argmax(axis=1)
return (correct_idx < K).mean(), (correct_idx < K).sum() / K
Common pitfalls
- Using AUROC for binary classification instead of F1, as the paper notes AUROC may not fully reflect performance differences.
- Applying naive finetuning protocols (e.g., simple linear head) without task-specific hyperparameter tuning, which significantly underestimates model capabilities.
- Benchmarking image-text retrieval without accounting for factors beyond image encoders, leading to misleading similarity scores.
Evidence (verbatim from paper)
The evaluation metrics include the area under the ROC curve (AUROC) for multilabel classification, measuring the model’s ability to differentiate between true positives and false positives across various threshold values. For binary classification, we employ F1, the harmonic mean of precision and recall, because we find that AUROC may not fully reflect the performance difference across MedVLP methods.
Citation
@misc{zhou2024benchx,
title={BenchX: A Unified Benchmark Framework for Medical Vision-Language Pretraining on Chest X-Rays},
author={Yang Zhou et al. (2024)},
year={2024},
note={arXiv:2410.21969}
}
1---2name: benchx-eval3description: Evaluates Medical Vision-Language Pretraining (MedVLP) models on chest X-ray tasks including multi-label/binary classification, segmentation, report generation, and image-text retrieval. It specifically probes how standardized preprocessing and finetuning strategies affect model performance across heterogeneous architectures. Use when the user wants to benchmark on NIH, VinDr, COVIDx, SIIM, RSNA, Object-CXR, TBX11K, IUXray, MIMIC 5x200, or asks about evaluating this task. Reports AUROC.4---56# benchx-eval78> BenchX: A Unified Benchmark Framework for Medical Vision-Language Pretraining on Chest X-Rays — Yang Zhou et al. (2024) (arXiv:2410.21969, 2024)910## What this evaluates1112Evaluates Medical Vision-Language Pretraining (MedVLP) models on chest X-ray tasks including multi-label/binary classification, segmentation, report generation, and image-text retrieval. It specifically probes how standardized preprocessing and finetuning strategies affect model performance across heterogeneous architectures.1314## Datasets1516- **NIH** — total ?; splits: train (-1), test (-1)17- **VinDr** — total ?; splits: train (-1), test (-1)18- **COVIDx** — total ?; splits: train (-1), test (-1)19- **SIIM** — total ?; splits: train (-1), test (-1)20- **RSNA** — total ?; splits: train (-1), test (-1)21- **Object-CXR** — total ?; splits: train (-1), test (-1)22- **TBX11K** — total ?; splits: train (-1), test (-1)23- **IUXray** — total ?; splits: train (-1), test (-1)24- **MIMIC 5x200** — total ?; splits: train (-1), test (-1)2526## Metrics2728- `AUROC` **(primary)** — range: [0, 1]29 - Area Under the Receiver Operating Characteristic Curve. Measures the probability that a randomly chosen positive instance is ranked higher than a randomly chosen negative instance across all classification thresholds.30- `F1` — range: [0, 1]31 - Harmonic mean of precision and recall: 2 * (precision * recall) / (precision + recall). Used for binary classification tasks where AUROC may not reflect performance differences accurately.32- `mDice` — range: [0, 1]33 - Mean Dice coefficient across classes/instances. Measures spatial overlap between predicted and ground truth segmentation masks.34- `BLEU/ROUGE-L/METEOR` — range: [0, 1]35 - Standard NLG metrics: BLEU measures n-gram precision, ROUGE-L measures longest common subsequence recall, METEOR combines precision, recall, and alignment.36- `Hit@K / Precision@K` — range: [0, 1]37 - Hit@K (H@K) indicates whether the correct report is in the top K retrieved items. Precision@K (P@K) measures the proportion of correct reports among the top K predictions.3839## Input / output format4041**Input**: Chest X-ray images. For retrieval tasks, an image query is paired against a candidate pool of radiology reports.4243**Output**: Predicted class labels (multi-label or binary), segmentation masks, generated medical reports, or a ranked list of candidate reports.4445## Scoring recipe4647```python48def score(preds, golds, task):49 if task == 'multilabel':50 return roc_auc_score(golds, preds, average='macro')51 elif task == 'binary':52 preds_bin = (preds >= 0.5).astype(int)53 return f1_score(golds, preds_bin, average='macro')54 elif task == 'seg':55 return 2 * (preds * golds).sum() / (preds.sum() + golds.sum() + 1e-8)56 elif task == 'retrieval':57 ranks = np.argsort(-preds, axis=1)58 correct_idx = (ranks == golds[:, None]).argmax(axis=1)59 return (correct_idx < K).mean(), (correct_idx < K).sum() / K60```6162## Common pitfalls6364- Using AUROC for binary classification instead of F1, as the paper notes AUROC may not fully reflect performance differences.65- Applying naive finetuning protocols (e.g., simple linear head) without task-specific hyperparameter tuning, which significantly underestimates model capabilities.66- Benchmarking image-text retrieval without accounting for factors beyond image encoders, leading to misleading similarity scores.6768## Evidence (verbatim from paper)6970> The evaluation metrics include the area under the ROC curve (AUROC) for multilabel classification, measuring the model’s ability to differentiate between true positives and false positives across various threshold values. For binary classification, we employ F1, the harmonic mean of precision and recall, because we find that AUROC may not fully reflect the performance difference across MedVLP methods.7172## Citation7374```bibtex75@misc{zhou2024benchx,76 title={BenchX: A Unified Benchmark Framework for Medical Vision-Language Pretraining on Chest X-Rays},77 author={Yang Zhou et al. (2024)},78 year={2024},79 note={arXiv:2410.21969}80}81```8283- arXiv: 2410.21969