Abstract
Accurate diagnosis of hematologic malignancies from peripheral blood smears (PBSs) requires integrating cellular morphology and composition across hundreds of white blood cells. Existing approaches primarily automate single-cell classification and do not provide whole-slide diagnostic predictions. We present a full network that utilizes a highly performative cell-based encoder (DeepHeme) for feature extraction paired with our weakly supervised framework using attention-based multiple instance learning (MIL) that we call CAREMIL (Cell AggRegation, Explainable, Multiple Instance Learning). Upon evaluating various popular image encoders and MIL architectures, the combination of DeepHeme and CAREMIL is the best performing pipeline on our disease classification task. CAREMIL proves to be a robust aggregation function that outperforms the most commonly used slide level aggregation function (gated multiple instance learning) across several encoder types. The greatest improvements in performance gain with CAREMIL is observed when using out-of-domain encoders, including an encoder trained on ImageNet and leading open-source pathology foundational models (UNI2 and Virchow2). CAREMIL plus DeepHeme achieves the highest diagnostic performance across acute leukemia (AML), myelodysplastic syndromes (MDS), and hairy cell leukemia (HCL) (AUROCs 0.999, 0.891, and 0.945, respectively), and identifies AML disease even in cases with minimal or absent circulating blasts. Attention values assigned by CAREMIL highlight diagnostically relevant cells and reveal disease-specific morphometric signatures, enabling biological interpretability and case-level insight. CAREMIL remains robust to misclassified cell types by the cell image encoder and does not require explicit cell-level supervision. These findings position CAREMIL as an effective and interpretable multiple instance learning framework for hematologic slide diagnosis, with potential to extend to bone marrow aspirates, cytology, and other liquid biopsy specimens, and to support a broader shift toward quantitative, morphology-informed diagnostics in hematology.
Introduction
In traditional pathology, diagnosing solid tumors involves analyzing tissue architecture. Hematology presents a unique challenge: a peripheral blood smear (PBS) is a "liquid biopsy" where white blood cells are scattered randomly without cohesive spatial structure. Pathologists must manually integrate morphological details and population-wide statistics across hundreds of cells to reach a diagnosis.
While AI tools have become proficient at identifying individual cell types, they often fail to provide a comprehensive whole-slide diagnosis. This paper introduces CAREMIL, a novel Multiple Instance Learning (MIL) framework designed to bridge this gap by moving from automated cell counting to interpretable, slide-level disease diagnosis.
The CAREMIL Pipeline
The proposed diagnostic pipeline consists of several stages, from initial blood collection to final disease classification. The system processes whole-slide images (WSIs) by identifying regions of interest, detecting individual cells using YOLO, and then classifying these cells to form a comprehensive dataset for slide-level analysis.
Methodology
The core of the system is the combination of a domain-specific encoder and a sophisticated aggregator.
DeepHeme Encoder
The pipeline utilizes DeepHeme, a ResNeXt-50 model pre-trained on over 2 million cell images to recognize 23 different blood cell types. This encoder extracts high-dimensional features from each individual cell, capturing subtle morphological nuances.
CAREMIL Aggregator
The primary innovation is the CAREMIL (Cell AggRegation, Explainable, Multiple Instance Learning) framework. Unlike standard "Gated MIL" which typically relies on weighted averages of cell features, CAREMIL explicitly models the global distribution of the cell population.
As illustrated in the architecture diagram, CAREMIL computes global statistical summaries (mean, max, min, and standard deviation) for the entire "bag" of cells. It then employs a transformer-style self-attention mechanism to process these summaries alongside individual cell features. This allows the model to "reason" about both rare, highly suspicious cells (such as blasts) and subtle, population-wide shifts (such as dysplasia).
Results and Clinical Impact
The DeepHeme-CAREMIL combination achieved near-perfect accuracy in detecting Acute Myeloid Leukemia (AML) and high performance across other conditions:
- AML vs. Normal: 0.999 AUROC
- Hairy Cell Leukemia (HCL) vs. Normal: 0.945 AUROC
- Myelodysplastic Syndromes (MDS) vs. Normal: 0.891 AUROC
Robustness and Early Detection
A key strength of CAREMIL is its robustness. In synthetic experiments, the model maintained high sensitivity even when the blast count—the primary marker for leukemia—was below 1%. In a real-world validation case, the AI flagged a "false positive" that was later confirmed to be a leukemia relapse, detecting the disease three weeks before it was identified by traditional bone marrow biopsy.
Interpretability
CAREMIL provides "attention maps" that highlight which cells most influenced the diagnosis. This feature allows pathologists to verify the AI's logic, ensuring that the model is focusing on relevant biological markers, such as dysplastic neutrophils in MDS.
Conclusion
CAREMIL represents a significant advancement in computational hematology. By effectively aggregating single-cell data into a whole-slide diagnosis, it provides a robust, interpretable tool for clinical decision support. Future work will focus on expanding the model's diagnostic breadth and integrating multimodal data types to further enhance diagnostic precision.
Summary updated