update readme and folder name
Browse files
README.md
CHANGED
|
@@ -1,3 +1,81 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
+
# StainEval: Robustness Evaluation Framework for H&E Staining in Computational Pathology
|
| 5 |
+
|
| 6 |
+
This repository contains the data, simulation parameters, and results for evaluating robustness of computational pathology (CPath) models to H&E staining variation, as presented in:
|
| 7 |
+
|
| 8 |
+
**Title:** A protocol for evaluating robustness to H&E staining variation in computational pathology models
|
| 9 |
+
**Use case:** Microsatellite instability (MSI) prediction in colorectal cancer (CRC)
|
| 10 |
+
|
| 11 |
+
The framework systematically tests trained models under controlled, reference-based staining variations, enabling interpretable assessment of model performance and robustness.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## Repository Structure
|
| 16 |
+
|
| 17 |
+
### `abmil_simulation_hyperparams/`
|
| 18 |
+
Contains hyperparameter and data split information for the 300 simulated ABMIL models.
|
| 19 |
+
|
| 20 |
+
- `fixed_simulation_hps_n=300.csv` β Hyperparameters used for the 300 ABMIL training runs.
|
| 21 |
+
- `fixed_splits_n=300/` β Train/validation splits for each run.
|
| 22 |
+
- `train_{idx}.csv` β Patient/slide allocation to training set for run `idx`.
|
| 23 |
+
- `val_{idx}.csv` β Patient/slide allocation to validation set for run `idx`.
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
### `exp_results/`
|
| 28 |
+
Contains prediction, logit, and label results per model for all controlled staining experiments and the original reference dataset.
|
| 29 |
+
|
| 30 |
+
- **Staining-specific folders** (each contains results for N=306 models):
|
| 31 |
+
- `concentration=GV_AT2_stain=None/` β High H&E concentration
|
| 32 |
+
- `concentration=KRH_GT450_stain=None/` β Low H&E concentration
|
| 33 |
+
- `concentration=None_stain=GV_GT450/` β High H&E color similarity
|
| 34 |
+
- `concentration=None_stain=HRH_S60/` β Low H&E color similarity
|
| 35 |
+
|
| 36 |
+
- **Performance summary CSVs**:
|
| 37 |
+
- `performance_auc_concentration=GV_AT2_stain=None.csv` β AUC + 95% CI, high concentration
|
| 38 |
+
- `performance_auc_concentration=KRH_GT450_stain=None.csv` β AUC + 95% CI, low concentration
|
| 39 |
+
- `performance_auc_concentration=None_stain=GV_GT450.csv` β AUC + 95% CI, high color similarity
|
| 40 |
+
- `performance_auc_concentration=None_stain=HRH_S60.csv` β AUC + 95% CI, low color similarity
|
| 41 |
+
- `performance_auc_reference.csv` β AUC + 95% CI, original dataset
|
| 42 |
+
|
| 43 |
+
- **Robustness metric**:
|
| 44 |
+
- `robustness_auc_minmax_range.csv` β Min-max AUC range across all staining settings with CIs.
|
| 45 |
+
|
| 46 |
+
- **Reference dataset**:
|
| 47 |
+
- `reference/` β Predictions, logits, and labels for the original dataset (N=306 models).
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
### `plism-wsi_stain_references/`
|
| 52 |
+
PLISM-derived reference H&E stain vectors and intensity values.
|
| 53 |
+
|
| 54 |
+
- `img_stats/` β Tile-level image statistics (entropy, Laplacian variance, average hue) for 91 unique stain-device combinations.
|
| 55 |
+
- `intensities/` β CSV file per stain-device combination with per-image H&E intensities.
|
| 56 |
+
- `stain_vectors/` β NPZ files with median stain vectors per unique stain-device combination.
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
### `surgen_stain_properties/`
|
| 61 |
+
Staining properties derived from SurGen slides.
|
| 62 |
+
|
| 63 |
+
- `intensities/` β H&E intensity values per selected tile and median per slide:
|
| 64 |
+
- `intensity_slide_medians.csv`
|
| 65 |
+
- `intensity_stats_tiles.csv`
|
| 66 |
+
- `stain_vectors/` β NPZ file per slide ID containing median stain vectors of selected tiles.
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## Usage Notes
|
| 71 |
+
|
| 72 |
+
1. The `abmil_simulation_hyperparams` folder allows exact replication of the 300 simulated ABMIL models.
|
| 73 |
+
2. `exp_results` contains the main outputs for evaluating model robustness under controlled H&E variations.
|
| 74 |
+
3. Reference stain information from PLISM and SurGen can be used to generate new staining perturbations or define operational stain ranges for QC.
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
|
| 80 |
+
If you use this dataset or framework, please cite:
|
| 81 |
+
...
|
surgen_stain_properties/{intensity β intensities}/intensity_slide_medians.csv
RENAMED
|
File without changes
|
surgen_stain_properties/{intensity β intensities}/intensity_stats_tiles.csv
RENAMED
|
File without changes
|