SAM2HIPT: a hybrid deep learning framework integrating SAM2 and HIPT with joint loss optimization for immunohistochemical cell nucleus segmentation
Clinical Snapshot
PICO Framework
| P — Population | Immunohistochemistry images from histopathological datasets (BCData and DeepLIIF) |
| I — Intervention | SAM2HIPT hybrid deep learning framework (two-stage segmentation with SAM2 and Hierarchical Image Pyramid Transformer) |
| C — Comparator | Multiple state-of-the-art baseline segmentation methods |
| O — Outcomes | Segmentation accuracy (Dice coefficient), boundary delineation precision (HD95 boundary error), segmentation performance and robustness |
Bottom Line
This technical study presents SAM2HIPT, a novel two-stage deep learning framework for nucleus segmentation in immunohistochemistry images. The method combines Segment Anything Model 2 with Hierarchical Image Pyramid Transformer, achieving high Dice coefficients (0.91-0.92) on benchmark datasets. While the technical approach appears promising for addressing challenges in digital pathology, the study lacks statistical rigor with no confidence intervals or significance testing. The clinical impact remains unclear without validation on diverse, real-world datasets or assessment of implementation feasibility. Australian pathology services considering such technology would need additional validation studies and cost-effectiveness analysis before clinical adoption. The work represents an incremental technical advance but requires more robust evaluation methodology to establish clinical utility.
Key Findings
P Value: Not reported
Effect Size: Dice coefficients of 0.92 (BCData) and 0.91 (DeepLIIF)
Primary Outcome: Nucleus segmentation accuracy measured by Dice coefficient
Nnt Or Sensitivity: HD95 boundary errors of 1.05 and 1.10 pixels respectively
Confidence Interval: Not reported
Clinical Application
Requires significant computational resources and technical expertise for implementation Could enhance digital pathology capabilities in Australian laboratories, potentially supporting TGA-approved diagnostic workflows and improving consistency in cancer diagnosis across regional centres Pathology laboratories performing immunohistochemistry analysis for cancer diagnosis and treatment assessment
Abstract
Nucleus segmentation in immunohistochemistry images plays a critical role in cancer diagnosis and treatment assessment. However, existing methods remain limited in segmentation accuracy and boundary delineation due to staining heterogeneity, densely packed cell distributions, and complex background interference. To address these challenges, this paper proposes a two-stage nucleus segmentation framework, termed SAM2HIPT. In the first stage, the pre-trained Segment Anything Model 2 (SAM2) is employed to generate initial segmentation predictions for input images, wherein the image encoder is kept frozen to preserve the pre-trained visual representation capacity while the mask decoder is fine-tuned to adapt to the characteristics of the pathological image domain; local texture, morphological, and boundary information are extracted through visual feature encoding to produce initial nucleus segmentation masks and spatial prior representations. In the second stage, the Hierarchical Image Pyramid Transformer is introduced to refine the initial segmentation results, performing multi-scale, multi-level feature representation and fusion of morphological, textural, and spatial structural information through a hierarchical vision Transformer architecture, thereby enhancing nuclear structural representation and boundary consistency. To enable collaborative optimization across both stages, a joint loss function is designed to impose unified constraints on segmentation accuracy and feature representation. Evaluated on two public histopathological benchmark datasets, BCData and DeepLIIF, the proposed method achieves Dice coefficients of 0.92 and 0.91, respectively, and HD95 boundary error values of 1.05 pixels and 1.10 pixels, demonstrating superior segmentation performance and robustness over multiple state-of-the-art baseline methods.
References
- 1.Yao, Y., Li, S., Hu, Y., Xue, Y., Huang, J., He, J., & Li, S. (2026). SAM2HIPT: a hybrid deep learning framework integrating SAM2 and HIPT with joint loss optimization for immunohistochemical cell nucleus segmentation. Biomedical Physics & Engineering Express. https://doi.org/10.1088/2057-1976/ae63d6
Related Research
Clinica chimica acta; international journal of clinical chemistry
Exploring clinical feasibility of zero-shot learning in a large language model for immunofixation electrophoresis image interpretation
18 May 2026
Histochemistry and cell biology
Artificial intelligence in small tissue biopsies: diagnostic applications, histochemical integration, and methodological challenges in surgical pathology.
15 May 2026
Scientific reports
The impact of tissue detection on diagnostic artificial intelligence algorithms in prostate digital pathology
15 May 2026
This content is for educational purposes for healthcare professionals only and does not constitute clinical advice. Clinical decisions should be based on individual patient assessment, current guidelines, and appropriate specialist consultation. Editorial Standards · Privacy Policy · Terms of Service