Transformer-Based Hematological Malignancy Prediction from Peripheral Blood Smears in a Real-World Cohort

Muhammed Furkan Dasdelen, Ivan Kukuljan, Peter Lienemann, Ario Sadafi, Matthias Hehr, Karsten Spiekermann, Christian Pohlkamp, Carsten Marr, Marr, CarstenarXiv 2025 · DOI

Abstract

Peripheral blood smears remain a cornerstone in the diagnosis of hematological neoplasms, offering rapid and valuable insights that inform subsequent diagnostic steps. However, since neoplastic transformations typically arise in the bone marrow, they may not manifest as detectable aberrations in peripheral blood, presenting a diagnostic challenge. In this paper, we introduce cAItomorph, an explainable transformer-based AI model, trained to classify hematological malignancies based on peripheral blood cytomorphology. Our data comprises peripheral blood single-cell images from 6115 patients with diagnoses confirmed by cytomorphology, cytogenetics, molecular genetics, and immunophenotyping from bone marrow samples, and 495 healthy controls, eight coarse classes. cAItomorph leverages the DinoBloom hematology foundation model and aggregates image encodings via a transformer-based architecture into a single vector. It achieves an overall accuracy of 0.72 in eight disease classification, with F1 scores of 0.76 for acute leukemia, 0.80 for myeloproliferative neoplasms and 0.94 for healthy cases. The overall accuracy increases to 0.87 in top-2 predictions. cAItomorph achieves high sensitivity for acute leukemia cases in external test sets. By analyzing attention heads, we demonstrate clinically relevant cell-level attentions in both internal and external test sets. Moreover, our model's calibrated prediction probabilities reduce the false discovery rate from 13.5% to 8.7% without missing any acute leukemia cases, thereby decreasing the number of unnecessary bone marrow aspirations based on peripheral blood smears. This study highlights the potential of AI-assisted diagnostics in hematological malignancies, illustrating how models trained on real-world data could enhance diagnostic accuracy and reduce invasive procedures.

Introduction

Diagnosing blood cancers often requires painful and invasive bone marrow biopsies, as peripheral blood smears are notoriously difficult to interpret for early or subtle malignancies. Hematological malignancies typically originate in the bone marrow. While a peripheral blood smear is a fast, cheap, and minimally invasive first step in a patient's diagnostic journey, definitive diagnosis usually requires a painful bone marrow aspiration. This is because malignant cells don't always manifest clearly in peripheral blood, making manual microscopic examination by cytologists labor-intensive and highly subjective.

This paper introduces cAItomorph, a transformer-based AI model trained on a massive real-world dataset to predict hematological malignancies directly from peripheral blood smears. By leveraging a hematology foundation model and multiple instance learning, cAItomorph achieves high accuracy, provides cell-level explainability, and could significantly reduce unnecessary invasive biopsies.

Methods

The authors frame the diagnosis as a weakly supervised Multiple Instance Learning (MIL) problem. Instead of needing human experts to label every single cell in an image, the model only requires the final patient-level diagnosis. The pipeline, named cAItomorph, operates in three stages:

  1. Feature Extraction: The model uses DinoBloom, a state-of-the-art hematology foundation model (ViT-B), to compress single-cell images into dense latent vectors.
  2. Aggregation: A custom 10-layer Vision Transformer aggregates the features from all of a patient's imaged white blood cells (up to 500 cells per patient) into a single patient-level vector.
  3. Classification: A multi-layer perceptron (MLP) predicts the probabilities for 8 coarse disease classes and simultaneously estimates the patient's hemoglobin value.
cAItomorph architecture and comprehensive performance evaluation including confusion matrices, ROC curves, and UMAP visualization.

To ensure clinical trust, the authors use an Attention Rollout method to extract cell-level attention maps. This provides explainability by revealing exactly which individual cells the transformer focused on to make its patient-level diagnosis.

Datasets

The study utilizes a newly assembled dataset from the Munich Leukemia Laboratory (2021-2022) containing over 3.2 million single-cell images from 6,115 patients and 495 healthy controls.

Data acquisition workflow, cleaning process, and the hierarchical grouping of 168 diagnostic labels into 8 coarse classes.

After cleaning, the training set comprised 2,043 patients categorized into 8 coarse classes: Acute leukemia, Lymphoma, MDS, MDS/MPN, MPN, Plasma cell neoplasm, Reactive changes, and Healthy. External validation was performed using the AML-Hehr dataset (129 AML patients, 60 healthy) and the APL-AML dataset (106 patients), the latter being notably out-of-domain with a distinct staining background.

Key Results and Clinical Impact

cAItomorph achieved an overall accuracy of 0.72 for top-1 prediction across the 8 coarse classes, jumping to 0.87 for top-2 predictions. For binary malignancy detection, the model achieved an AUROC of 0.97, with 0.99 sensitivity and 0.88 specificity for distinguishing malignant from non-malignant cases.

  • Seeing the Unseen: Surprisingly, cAItomorph achieved reasonably high sensitivity for diseases like Myelodysplastic Syndromes (MDS) and plasma cell neoplasms—conditions typically considered nearly impossible to diagnose from peripheral blood cytomorphology alone.
  • Clinically Aligned Attention: The model's explainability aligns with clinical pathology. For example, the model correctly assigns the highest attention weights to myeloblasts when diagnosing acute leukemia, and to giant platelets when diagnosing myeloproliferative neoplasms (MPN).
  • Reducing Unnecessary Biopsies: By using the model's calibrated output probabilities to flag "malignancy," clinics can use this as a powerful screening tool. The authors demonstrated that using cAItomorph could reduce the False Discovery Rate from 13.5% to 8.7% (a 35.5% reduction) without missing a single acute leukemia case.

Discussion

While the results are promising, the real-world dataset is highly imbalanced, making the detection of rare diseases difficult. Additionally, the "healthy" control group consisted entirely of stem cell donors—people who are generally younger and exceptionally fit. Because of this, the model might be overly sensitive, flagging patients with non-hematological chronic illnesses as "malignant" simply because their blood doesn't look perfectly healthy.

Future work includes conducting prospective clinical trials to validate the model in real-time clinical settings and integrating cAItomorph as a cornerstone module in larger, multimodal AI systems to automate and enhance comprehensive hematology workflows.

Summary updated

BibTeX
@misc{dasdelen2025transformer,
  author = {Muhammed Furkan Dasdelen and Ivan Kukuljan and Peter Lienemann and Ario Sadafi and Matthias Hehr and Karsten Spiekermann and Christian Pohlkamp and Carsten Marr and Marr, Carsten},
  title = {{Transformer-Based Hematological Malignancy Prediction from Peripheral Blood Smears in a Real-World Cohort}},
  year = {2025},
  eprint = {2509.20402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.20402},
}
Figure