HemaHier: Chain-Conditioned Ordinal Hierarchies for Lineage-Aware Bone-Marrow Cytology

Afshin Bozorgpour, Peter Schüffler, Edgar Jost, Dorit MerhofarXiv 2026

TL;DR

HemaHier introduces an ordinal-hierarchical prediction head for bone-marrow cytology that embeds biological lineage and cell maturation trajectories directly into deep learning models. By structuring the label space, it significantly reduces clinically dangerous cross-lineage errors and provides a continuous maturity score for healthy cells, all while gracefully handling atypical and dysplastic cells.

What Problem Does This Paper Address?

In bone-marrow cytology, hematologists examine single-cell morphology to diagnose and monitor blood diseases. Cells naturally belong to specific lineages (e.g., erythroid, myeloid) and progress through continuous maturation stages (e.g., from an immature myeloblast to a mature segmented neutrophil).

Standard deep learning approaches treat this task as a "flat" multi-class classification problem. This setup ignores biological reality: it treats a minor, same-lineage maturation slip (e.g., confusing a promyelocyte with a myelocyte) as equally wrong as a severe cross-lineage mistake (e.g., confusing a promyelocyte with an erythroblast). Furthermore, flat classifiers cannot output a continuous measure of cell maturity or cleanly separate healthy developmental pathways from abnormal, dysplastic cell variants.

Methods

HemaHier is a specialized prediction head designed to sit on top of a frozen or lightly adapted cytology foundation model (such as DinoBloom).

Fig. 1: Overview of HemaHier. Bone-marrow labels are represented by fine classes, lineages, valid healthy maturation chains, and off-chain identities. A cytology backbone provides late and intermediate features, which are factor- ized into lineage context zc and detail/maturity representation zd. The coupled heads predict fine identity, lineage, and branch-conditioned maturity. Maturity supervision is applied only to valid healthy chains, while hierarchy-conditioned decoding combines fine and lineage evidence at inference.

Its core components include:

  • Factorized Representations: It splits the backbone's features into a lineage context vector ($z_c$) and a detail/maturity representation vector ($z_d$) to capture fine morphological nuances like chromatin texture and granularity.
  • Coupled Heads & Consistent Posterior: Instead of predicting fine classes and lineages independently, HemaHier mathematically couples them. The fine-grained class probabilities are mathematically constrained and renormalized within their predicted lineage, guaranteeing hierarchical consistency at inference time.
  • Chain-Conditioned Maturity Head: The model uses a shared, query-conditioned head to predict a continuous maturity score between 0 and 1 for cells on valid, healthy maturation chains. Crucially, atypical or dysplastic cells remain in the classification space but are excluded from the maturity loss, preventing the model from forcing abnormal cells onto a healthy developmental axis.
  • Staged Training Objective: The loss function combines joint negative log-likelihood, an auxiliary fine cross-entropy loss to stabilize early training, a lineage classifier loss, and two maturity losses (regression to stage targets and a margin ranking loss to ensure later stages score higher than earlier ones).

Datasets

The authors evaluated HemaHier across three bone-marrow cytology datasets, all harmonized under a shared biological ontology:

  1. UKA2: An in-house dataset consisting of 9,118 cells across 23 fine classes.
  2. UKA1: An in-house, pathology-heavy dataset containing 8,566 cells across 24 fine classes.
  3. MLLv1 (BMC): A massive public bone-marrow reference dataset containing 171,374 cells across 21 fine classes.

Key Insights and Ideas

  • Biological Structure as a Regularizer: Incorporating hierarchical and ordinal constraints acts as a powerful regularizer. It guides the model to make "milder" mistakes without sacrificing overall classification accuracy.
  • Isolating Pathology from Healthy Baselines: By explicitly keeping dysplastic and atypical cells in the classification label space but removing them from the maturity regression loss, the model learns a clean, uncorrupted axis for healthy cell maturation.
  • Continuous Readouts from Discrete Labels: Even though the training labels are discrete cell stages, the chain-conditioned head successfully learns a continuous maturation trajectory, allowing it to accurately rank cells by maturity within the same class.

Key Results

HemaHier was tested against a standard flat linear probe and a state-of-the-art hierarchical baseline ($\text{HMIL}^*$).

  • Superior Rare-Class Recognition: On the highly imbalanced public MLLv1 dataset using a frozen backbone, HemaHier improved the fine macro-F1 score from 63.3 to 72.2 and boosted rare-class F1 performance by over twenty points (38.6 to 59.1) compared to the flat baseline.
  • Milder Errors: HemaHier consistently achieved the lowest cross-lineage error (CLE) rate and maturity-aware tree distance (TD) across all datasets.
Fig. 2: Errors are fewer and milder (frozen backbone, 5-fold mean). Each bar is the fine-classification error rate decomposed by clinical severity, from an adjacent-stage maturation slip (mildest) to a cross-lineage confusion (severest). On every dataset HemaHier both shortens the bar (fewer errors) and shrinks its severe (dark) portion relative to the flat probe, most visibly the cross-lineage errors on MLLv1 and the off-chain confusions on UKA1.
  • High Maturation Quality: The model recovered a highly accurate continuous maturation axis, achieving a Spearman rank correlation ($\rho$) between 0.87 and 0.95 across the datasets.
The learned continuous maturation axis for the neutrophil lineage, showing a monotonic increase in predicted maturity relative to the true developmental stage.

Limitations and Future Work

The primary limitation of HemaHier is its reliance on expert-curated, predefined healthy maturation chains. It cannot dynamically discover new developmental pathways. Additionally, while it successfully isolates atypical and dysplastic cells from the healthy maturation axis, it does not yet model the specific, abnormal developmental trajectories that these pathological cells follow. The authors note that extending the framework to map these pathological trajectories is a natural next step.

Summary updated

BibTeX
@misc{bozorgpour2026hemahier,
  author = {Afshin Bozorgpour and Peter Schüffler and Edgar Jost and Dorit Merhof},
  title = {{HemaHier: Chain-Conditioned Ordinal Hierarchies for Lineage-Aware Bone-Marrow Cytology}},
  year = {2026},
  eprint = {2609.12835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.12835},
}
Figure