Abstract
This paper presents a novel case-based similar image retrieval (SIR) method designed for H&E-stained histopathological images of malignant lymphoma. To navigate the complexity of over 70 lymphoma subtypes, the proposed method utilizes attention-based multiple instance learning (MIL) to automatically identify tumor-specific regions within whole slide images (WSIs). Furthermore, contrastive deep metric learning is employed to incorporate immunohistochemical (IHC) staining patterns as a proxy for clinical similarity. Experimental results on 249 cases demonstrate superior performance over baseline methods, with subjective evaluations by pathologists confirming the clinical relevance of the retrieved cases.
Introduction
Malignant lymphoma diagnosis is a high-stakes task requiring the identification of specific subtypes within massive digital Whole Slide Images (WSIs). Pathologists typically identify suspicious regions on standard Hematoxylin and Eosin (H&E) slides before ordering specific, expensive immunohistochemical (IHC) stains for confirmation. The scale of these images (often 100,000 x 100,000 pixels) and the lack of granular annotations present significant challenges for automated diagnostic aids. Traditional supervised learning is hindered by the impracticality of manual pixel-level labeling, while simple diagnostic labels fail to capture the visual and clinical heterogeneity of different cases.
Methodology
The researchers developed a case-based SIR method that operates on weakly annotated data, requiring only the final diagnosis for training. The approach integrates two key technologies:
Attention-based Multiple Instance Learning (MIL)
The system treats a WSI as a collection (or "bag") of small image patches. An attention mechanism learns to assign weights to these patches based on their importance for classification. High-attention (HA) patches effectively localize tumor regions automatically, allowing the retrieval system to focus on pathologically significant areas rather than background tissue.
Contrastive Deep Metric Learning (DML)
Rather than matching cases based solely on diagnosis labels, the model learns a feature space where cases requiring similar IHC staining panels are clustered together. By using the Jaccard index of IHC stains as a relevance measure, the system ensures that retrieved cases are visually and clinically similar in a way that assists pathologists in deciding which subsequent tests to order.
Experimental Evaluation
The model was trained and evaluated on the Kurume Dataset (249 cases) and externally validated on the Nagoya Dataset (208 cases).
Quantitative Results
The proposed method achieved an IHC staining accuracy of 0.676, outperforming the standard ResNet50 baseline (0.609). It also demonstrated high subtype retrieval accuracy (0.783). Expert validation confirmed the model's focus: 63% of high-attention patches were identified as tumor regions, compared to only 24% of low-attention patches.
Clinical Utility
In a subjective study, 10 pathologists overwhelmingly preferred the results from the proposed method over baseline systems. They noted that the retrieved cases were more helpful for real-world diagnostic workflows, particularly because the similarity was grounded in IHC staining patterns rather than just final labels.
Discussion and Conclusion
The integration of attention-based MIL and IHC-driven metric learning provides a powerful framework for navigating large-scale histopathological data. By mimicking the multi-scale approach of human pathologists (using both 5x and 40x magnification) and focusing on clinically relevant similarity, the system offers both high performance and explainability. While challenges remain regarding the "domain gap" between different institutions and scanners, this research marks a significant step toward practical AI-assisted diagnosis in complex hematopathology.
Summary updated