Skip to main navigation Skip to search Skip to main content

Rank-aware agglomeration of foundation models for immunohistochemistry image cell counting

  • Zuqi Huang
  • , Mengxin Tian
  • , Huan Liu
  • , Wentao Li
  • , Baobao Liang
  • , Jie Wu
  • , Fang Yan
  • , Zhaoqing Tang
  • , Zhongyu Li
  • Shanghai Jiao Tong University
  • Xi'an Jiaotong University
  • Fudan University
  • The Second Affiliated Hospital of Xi'an Jiaotong University
  • Shanghai Artificial Intelligence Laboratory

Research output: Contribution to journalArticlepeer-review

Abstract

Accurate cell counting in immunohistochemistry (IHC) images is critical for quantifying protein expression and aiding cancer diagnosis. However, the task remains challenging due to the chromogen overlap, variable biomarker staining, and diverse cellular morphologies. Regression-based counting methods offer advantages over detection-based ones in handling overlapped cells, yet rarely support end-to-end multi-class counting. Moreover, the potential of foundation models remains largely underexplored in this paradigm. To address these limitations, we propose a rank-aware agglomeration framework that selectively distills knowledge from multiple strong foundation models, leveraging their complementary representations to handle IHC heterogeneity and obtain a compact yet effective student model, CountIHC. Unlike prior task-agnostic agglomeration strategies that either treat all teachers equally or rely on feature similarity, we design a Rank-Aware Teacher Selecting (RATS) strategy that models global-to-local patch rankings to assess each teacher’s inherent counting capacity and enable sample-wise teacher selection. For multi-class cell counting, we introduce a fine-tuning stage that reformulates the task as vision–language alignment. Discrete semantic anchors derived from structured text prompts encode both category and quantity information, guiding the regression of class-specific density maps and improving counting for overlapping cells. Extensive experiments demonstrate that CountIHC surpasses state-of-the-art methods across 12 IHC biomarkers and 5 tissue types, while exhibiting high agreement with pathologists’ assessments. Its effectiveness on H&E-stained data further confirms the scalability of the proposed method. The code is publicly available at https://github.com/jtneuron/CountIHC .

Original languageEnglish
Article number104125
JournalMedical Image Analysis
Volume112
DOIs
StatePublished - Jul 2026
Externally publishedYes

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 3 - Good Health and Well-being
    SDG 3 Good Health and Well-being

Keywords

  • Cell counting
  • Foundation model
  • Immunohistochemistry
  • Rank-aware agglomeration

Fingerprint

Dive into the research topics of 'Rank-aware agglomeration of foundation models for immunohistochemistry image cell counting'. Together they form a unique fingerprint.

Cite this