Abstract
Hematoxylin and eosin (H&E) is a common and inexpensive histopathology assay. Though widely used and information-rich, it cannot directly inform about specific molecular markers, which require additional experiments to assess. To address this gap, we present ROSIE, a deep-learning framework that computationally imputes the expression and localization of dozens of proteins from H&E images. Our model is trained on a dataset of over 1300 paired and aligned H&E and multiplex immunofluorescence (mIF) samples from over a dozen tissues and disease conditions, spanning over 16 million cells. Validation of our in silico mIF staining method on held-out H&E samples demonstrates that the predicted biomarkers are effective in identifying cell phenotypes, particularly distinguishing lymphocytes such as B cells and T cells, which are not readily discernible with H&E staining alone. Additionally, ROSIE facilitates the robust identification of stromal and epithelial microenvironments and immune cell subtypes like tumor-infiltrating lymphocytes (TILs), which are important for understanding tumor-immune interactions and can help inform treatment strategies in cancer research.
Introduction
In the field of pathology, Hematoxylin and Eosin (H&E) staining is the foundational tool for visualizing tissue structure and morphology. While cost-effective and fast, H&E staining lacks the molecular specificity needed to identify specific protein expressions within cells. To obtain this detail, researchers typically turn to multiplex immunofluorescence (mIF) platforms like CODEX, which can simultaneously tag dozens of proteins. However, mIF is resource-intensive, expensive, and requires specialized equipment often unavailable in clinical settings.
ROSIE (RObust in Silico Immunofluorescence from E&E images) addresses this information gap by using artificial intelligence to predict the molecular richness of mIF using only the structural data found in standard H&E images.
Methods and Data
The ROSIE framework utilizes a ConvNext-Small convolutional neural network (CNN) architecture. The model performs patch-based multitask regression, taking a 128x128 pixel H&E patch as input to predict the average expression of 50 biomarkers for the central 8x8 pixel region. A key technical decision was the use of Mean Squared Error (MSE) as the objective function rather than Generative Adversarial Networks (GANs); the authors found that MSE provided more stable and biologically accurate quantitative results for downstream analysis.
The model was trained on a massive dataset of over 1,300 paired and aligned H&E and CODEX samples, encompassing 18 studies, 13 disease types, and 16 million cells across various tissues. Validation was conducted on four primary datasets (Stanford-PGC, Ochsner-CRC, Tuebingen-GEJ, and UChicago-DLBCL) to test the model's ability to generalize across different clinical sites and cancer types.
Key Insights
- CNNs vs. Transformers: Surprisingly, the relatively small ConvNext CNN outperformed larger Vision Transformers (ViTs) pre-trained on pathology images. This suggests that the "inductive bias" of CNNs—their focus on local spatial patterns—is inherently better suited for patch-level histology features.
- The Power of Multitasking: Training the model to predict 50 markers simultaneously improved performance over training on smaller subsets. This suggests that ROSIE learns a shared biological representation where the patterns of one marker help predict related ones.
- Quantitative Accuracy: Unlike previous "virtual staining" efforts that focused on visual aesthetics, ROSIE emphasizes quantitative data usability for automated cell phenotyping and microenvironment discovery.
Results
ROSIE achieved an average Pearson correlation (R) of approximately 0.25–0.32 across 50 biomarkers, significantly outperforming morphology-only baselines. The virtual stains proved highly effective for cell phenotyping; for example, ROSIE identified B cells and T cells with F1 scores of 0.31 and 0.56, respectively—tasks that are nearly impossible with H&E alone.
Furthermore, the model successfully identified Tumor-Infiltrating Lymphocytes (TILs) with a high correlation (Pearson R = 0.805) to ground truth. This metric is critical in oncology for predicting patient response to immunotherapies.
Limitations and Future Work
Despite its success, ROSIE faces challenges in generalizing across different staining platforms (e.g., from CODEX to Orion). The 128-pixel input window also limits the model's context to roughly 30 neighboring cells, potentially missing broader tissue architecture. Future work will explore larger context windows and methods to improve the detection of rare biomarkers, which currently suffer from low signal-to-noise ratios. Additionally, the requirement for perfectly aligned H&E and mIF training data remains a bottleneck due to physical tissue artifacts.
Summary updated