Uni-Hema: Unified Model for Digital Hematopathology

Abdul Rehman, Iqra Rasool, Ayisha Imran, Mohsen Ali, Waqas Sultani · DOI

Digital hematopathology is a critical diagnostic field involving the microscopic analysis of blood smears to identify diseases such as leukemia, malaria, and sickle cell anemia. Traditionally, this process requires hematologists to perform complex multi-modal reasoning: detecting individual cells, classifying types, segmenting boundaries, and interpreting subtle morphological changes. While AI has advanced in medical imaging, existing models are often "one-trick ponies" limited to specific tasks or diseases.

Uni-Hema performs a wide range of hematopathology tasks, including detection, classification, segmentation, and visual reasoning.

Addressing the Fragmentation in Hematopathology AI

The current AI landscape in hematopathology is fragmented. Models are typically designed for "single-task, single-disease" applications—for instance, a malaria detection model cannot identify leukemia. Furthermore, general medical foundation models often struggle with blood smears, which require high magnification (40x–100x) to resolve fine-grained cellular details amidst cluttered fields-of-view. Uni-Hema addresses this gap by providing a unified framework capable of multi-task, multi-modal reasoning.

Methodology: The Hema-Former Architecture

Uni-Hema utilizes a sophisticated architecture centered around the Hema-Former, a novel component designed to fuse visual and textual information.

The Uni-Hema architecture integrates a ResNet-50 backbone with specialized encoders and the Hema-Former module for multi-modal fusion.

The system consists of several key modules:

  • Backbone & Encoders: A ResNet-50 backbone extracts spatial features, while a DINO-inspired spatial image encoder captures long-range dependencies between cells.
  • Hema-Former: This central "brain" employs four sub-modules:
  • Cross-Modal Fusion (CMF): Aligns text queries with image features for Visual Question Answering (VQA).
  • Text-Guided Visual Refinement (TGVR): Uses disease-specific prompts to guide cell detection.
  • Single Cell Feature Extractor (SCFE): Extracts global features for classification.
  • Query-Guided Mask Former (QGMF): Generates precise binary segmentation masks.
  • Sequential Training: The model undergoes a six-stage training process, progressing from basic classification to complex tasks like Masked Language Modeling (MLM) and VQA.

Extensive Multi-Modal Datasets

The researchers curated a massive corpus of 46 publicly available datasets, totaling approximately 700,000 images. This collection covers diverse diseases and tasks, including 11 datasets for segmentation, 18 for detection, and 17 for classification. Additionally, the team introduced two new semi-synthetic benchmarks: WBCAtt-VQA (21,000 QA pairs) and LeukemiaAttri-MLM (7,000 masked sentences), generated using medical LLMs like BioMistral and Gemini 1.5 based on ground-truth morphological annotations.

Key Insights and Performance

Uni-Hema demonstrates that multi-task training creates synergy, where shared knowledge across detection, segmentation, and classification improves overall performance. By incorporating T5-based text encoders, the model mimics a pathologist’s workflow, using clinical context to refine visual analysis.

Quantitative results show that Uni-Hema matches or exceeds specialized state-of-the-art (SOTA) models:

  • Detection: Achieved a mean mAP50 of 61.1, surpassing DINO and YOLO baselines.
  • Classification: Reached a mean F1-score of 92.5, outperforming specialized models like DinoBloomS.
  • Segmentation: Achieved a Dice-Score of 91.7, demonstrating robustness in complex, overlapping cell environments.
  • Reasoning: In VQA and MLM tasks, it achieved BLEU-4 scores of 56.4 and 79.8 respectively, providing interpretable insights into cell morphology (e.g., describing cytoplasm color or the presence of vacuoles).

Conclusion and Future Directions

Uni-Hema represents a significant step toward a "foundation model" for hematopathology. While it shows impressive zero-shot robustness on unseen data, limitations remain, such as the sharpness of segmentation edges due to hardware constraints and the semi-synthetic nature of the reasoning datasets. Future work will focus on scaling training and improving efficiency for whole-slide image (WSI) analysis.

Summary updated

BibTeX
@inproceedings{rehman2026uni,
  author = {Abdul Rehman and Iqra Rasool and Ayisha Imran and Mohsen Ali and Waqas Sultani},
  title = {{Uni-Hema: Unified Model for Digital Hematopathology}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=UiVB2Qv28D},
}
Figure