Input and feature adjustments improve cross hospital immunohistochemistry grading

Input- and Feature-Space Correction for Cross-Hospital IHC Grading

Computer Vision and Pattern Recognition

Summary

Pathology AI models trained on common tissue stains often struggle when used to analyze different types of stained images from other hospitals. The authors tested methods that adjust the images before and after they are processed by these models to make grading more consistent across hospitals. They found that combining a new image correction method called FIX with a simple feature adjustment strongly improved accuracy in grading. This shows that careful corrections both at the image and feature levels help frozen AI models work better when used in new hospitals.

What this means in practice

  • For hospital data teams: Improve consistency of AI-based immunohistochemistry grading across different hospitals by applying input-space and feature-space corrections together.
  • For digital pathology developers: Design pathology AI tools that integrate pre-encoding stain adjustments with post-encoding feature standardization for better cross-hospital robustness.

Authors

Jongwoon Lee, Jhair Gallardo, Christopher Kanan

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.