Input- and Feature-Space Correction for Cross-Hospital IHC Grading
Organizations: Department of Computer Science, University of Rochester, Rochester, NY · Rochester Institute of Technology, Rochester, NY
Abstract
Pathology foundation models (FMs) are trained predominantly on hematoxylin and eosin (H&E) images but are increasingly used as frozen feature extractors for immunohistochemistry (IHC), where cross-hospital differences can impair grading. However, systematic comparisons of correction methods for cross-hospital IHC grading remain limited. To address this gap, we benchmark label-free transformations applied to input images before frozen-FM encoding and to features after frozen-FM encoding using UNI and Virchow2, three IHC markers, and six directed cross-hospital transfers, yielding 12 settings. Among the evaluated input-space methods, our proposed method FIX achieved the largest macro-F1 improvement over no correction, outperforming well-known stain normalization techniques. Among feature-space methods, a simple feature-wise standardization achieved the best improvement over no correction, outperforming CORAL. Under patient-averaged tile-level evaluation, combining FIX with feature-wise standardization improved macro-F1 and quadratic weighted kappa (QWK) by 0.181 and 0.208, respectively, and reduced ordinal error by 0.209 relative to no correction. These results show that input- and feature-space transformations can provide complementary benefits for cross-hospital IHC grading with frozen pathology FMs.
Figures & tables
| Method | Correction stage | HER2 | Nectin-4 | TROP2 | ||||
|---|---|---|---|---|---|---|---|---|
| Mean | ||||||||
| No correction | None | 0.356 | 0.564 | 0.412 | 0.549 | 0.817 | 0.699 | 0.566 |
| Reinhard | Input | 0.401 | 0.606 | 0.465 | 0.525 | 0.726 | 0.686 | 0.568 |
| Macenko | Input | 0.306 | 0.391 | 0.533 | 0.511 | 0.410 | 0.471 | 0.437 |
| PCA projection | Input | 0.288 | 0.566 | 0.669 | 0.644 | 0.831 | 0.816 | 0.636 |
| FIX | Input | 0.605 | 0.335 | 0.689 | 0.781 | 0.881 | 0.844 | 0.689 |
| Method | Correction stage | HER2 | Nectin-4 | TROP2 | ||||
|---|---|---|---|---|---|---|---|---|
| Mean | ||||||||
| No correction | None | 0.578 | 0.170 | 0.526 | 0.550 | 0.893 | 0.461 | 0.530 |
| Reinhard | Input | 0.633 | 0.375 | 0.385 | 0.480 | 0.752 | 0.489 | 0.519 |
| Macenko | Input | 0.501 | 0.409 | 0.270 | 0.505 | 0.698 | 0.367 | 0.459 |
| PCA projection | Input | 0.397 | 0.147 | 0.598 | 0.666 | 0.781 | 0.616 | 0.534 |
| FIX | Input | 0.625 | 0.153 | 0.605 | 0.750 | 0.847 | 0.676 | 0.609 |
| Method | Macro-F1 | QWK | Ordinal error |
|---|---|---|---|
| No correction | 0.539 | 0.536 | 0.478 |
| FIX | 0.652 | 0.673 | 0.332 |
| FS | 0.662 | 0.675 | 0.329 |
| FIX + FS | 0.719 | 0.744 | 0.269 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Condition | Target-calibration use | Source / probe-training representation | Held-out target representation |
|---|---|---|---|
| No correction | None | Unmodified source images encoded by the frozen FM | Unmodified target images |
| PCA projection | None; the basis is fitted on source patches only | PCA-reconstructed source images encoded by the frozen FM | PCA-reconstructed target images |
| FIX | Estimate coefficient statistics from source and unlabeled target calibration RGB patches | PCA-reconstructed source images, without coefficient editing | FIX-corrected target images |
| MS | Mean of the unmodified target calibration features | Unmodified source features recentered to that mean | Unmodified target images |
| FS | Per-dimension mean and standard deviation of the unmodified target calibration features | Unmodified source features standardized to those statistics | Unmodified target images |
| PCA projection+MS | Mean of the PCA-reconstructed target calibration features | PCA-reconstructed source features recentered to that mean | PCA-reconstructed target images, unshifted |
Domain Adaptation
Domain adaptation transfers machine-learning models across changing data distributions, often using unlabeled or limited target-domain examples.
See all 253 papers