wsi-classification-eval
Promptable Representation Distribution Learning and Data Augmentation for Gigapixel Histopathology WSI Analysis — Tang et al. (2024) (arXiv:2412.14473, 2024)
What this evaluates
Evaluates whole-slide image (WSI) classification performance using self-supervised patch representations and feature-space data augmentation. It probes how well distribution-guided representation learning captures discriminative histopathological patterns for diagnostic subtyping.
Datasets
- USTC-EGFR — total 754; splits: train (-1), val (-1), test (-1)
- TCGA-EGFR — total 696; splits: train (-1), val (-1), test (-1)
- TCGA-LUNG-3K — total 3064; splits: train (-1), val (-1), test (-1)
Metrics
average accuracy — range: [0, 1]
- Proportion of correctly classified WSIs out of the total number of WSIs in the evaluation set.
micro-average area under the curve (AUC) (primary) — range: [0, 1]
- Area under the Receiver Operating Characteristic (ROC) curve computed by pooling predictions across all classes (micro-averaging) before calculating the AUC.
macro-average F1 score — range: [0, 1]
- Harmonic mean of precision and recall calculated per class, then averaged across all classes (macro-averaging) to treat all classes equally regardless of frequency.
Input / output format
Input: WSIs segmented into non-overlapping 224×224 patches at 20× magnification, encoded via a ViT-S/16 backbone, and aggregated using Multiple Instance Learning (MIL) backbones (CLAM, TransMIL, or DTFD-MIL).
Output: Predicted WSI class label (e.g., EGFR mutation status or lung cancer subtype).
Scoring recipe
def compute_metrics(y_true, y_pred, y_prob):
acc = np.mean(y_true == y_pred)
auc = roc_auc_score(y_true, y_prob, average='micro', multi_class='ovr')
f1 = f1_score(y_true, y_pred, average='macro')
return {'accuracy': acc, 'micro-AUC': auc, 'macro-F1': f1}
Common pitfalls
- Splits are performed at the patient level (6:1:3 ratio) to prevent data leakage, not at the WSI level.
- Results are benchmarked across three different MIL aggregation backbones (CLAM, TransMIL, DTFD-MIL), so performance varies significantly by architecture.
- Feature-space augmentation is evaluated rather than image-space, meaning metrics reflect representation discriminability rather than raw pixel-level classification.
Evidence (verbatim from paper)
Our evaluation metrics include average accuracy, micro-average area under the curve (AUC), and macro-average F1 score.
Citation
@misc{tang2024prdl,
title={Promptable Representation Distribution Learning and Data Augmentation for Gigapixel Histopathology WSI Analysis},
author={Tang et al. (2024)},
year={2024},
note={arXiv:2412.14473}
}
1---2name: wsi-classification-eval3description: Evaluates whole-slide image (WSI) classification performance using self-supervised patch representations and feature-space data augmentation. It probes how well distribution-guided representation learning captures discriminative histopathological patterns for diagnostic subtyping. Use when the user wants to benchmark on USTC-EGFR, TCGA-EGFR, TCGA-LUNG-3K, or asks about evaluating this task. Reports micro-average area under the curve (AUC).4---56# wsi-classification-eval78> Promptable Representation Distribution Learning and Data Augmentation for Gigapixel Histopathology WSI Analysis — Tang et al. (2024) (arXiv:2412.14473, 2024)910## What this evaluates1112Evaluates whole-slide image (WSI) classification performance using self-supervised patch representations and feature-space data augmentation. It probes how well distribution-guided representation learning captures discriminative histopathological patterns for diagnostic subtyping.1314## Datasets1516- **USTC-EGFR** — total 754; splits: train (-1), val (-1), test (-1)17- **TCGA-EGFR** — total 696; splits: train (-1), val (-1), test (-1)18- **TCGA-LUNG-3K** — total 3064; splits: train (-1), val (-1), test (-1)1920## Metrics2122- `average accuracy` — range: [0, 1]23 - Proportion of correctly classified WSIs out of the total number of WSIs in the evaluation set.24- `micro-average area under the curve (AUC)` **(primary)** — range: [0, 1]25 - Area under the Receiver Operating Characteristic (ROC) curve computed by pooling predictions across all classes (micro-averaging) before calculating the AUC.26- `macro-average F1 score` — range: [0, 1]27 - Harmonic mean of precision and recall calculated per class, then averaged across all classes (macro-averaging) to treat all classes equally regardless of frequency.2829## Input / output format3031**Input**: WSIs segmented into non-overlapping 224×224 patches at 20× magnification, encoded via a ViT-S/16 backbone, and aggregated using Multiple Instance Learning (MIL) backbones (CLAM, TransMIL, or DTFD-MIL).3233**Output**: Predicted WSI class label (e.g., EGFR mutation status or lung cancer subtype).3435## Scoring recipe3637```python38def compute_metrics(y_true, y_pred, y_prob):39 acc = np.mean(y_true == y_pred)40 auc = roc_auc_score(y_true, y_prob, average='micro', multi_class='ovr')41 f1 = f1_score(y_true, y_pred, average='macro')42 return {'accuracy': acc, 'micro-AUC': auc, 'macro-F1': f1}43```4445## Common pitfalls4647- Splits are performed at the patient level (6:1:3 ratio) to prevent data leakage, not at the WSI level.48- Results are benchmarked across three different MIL aggregation backbones (CLAM, TransMIL, DTFD-MIL), so performance varies significantly by architecture.49- Feature-space augmentation is evaluated rather than image-space, meaning metrics reflect representation discriminability rather than raw pixel-level classification.5051## Evidence (verbatim from paper)5253> Our evaluation metrics include average accuracy, micro-average area under the curve (AUC), and macro-average F1 score.5455## Citation5657```bibtex58@misc{tang2024prdl,59 title={Promptable Representation Distribution Learning and Data Augmentation for Gigapixel Histopathology WSI Analysis},60 author={Tang et al. (2024)},61 year={2024},62 note={arXiv:2412.14473}63}64```6566- arXiv: 2412.14473