Whole slide image representation in bone marrow cytology

Youqing Mu, Hamid R. Tizhoosh, Taher Dehkharghanian, Clinton J.v. Campbell

TL;DR

Researchers have developed a novel deep learning framework that transforms massive bone marrow whole slide images (WSIs) into compact, searchable vectors. By treating a slide as a "bag" of individual cell features rather than arbitrary image patches, the system achieves state-of-the-art performance in automated disease retrieval and classification while providing interpretable "attention" maps for pathologists.

What Problem Does This Paper Address?

In the world of pathology, bone marrow aspirate cytology is a cornerstone for diagnosing blood cancers. However, it is a grueling task: a hematopathologist must manually scan gigapixel-sized images to count and classify hundreds of individual cells. This process is slow, prone to human error, and hampered by a global shortage of experts.

While AI has made huge strides in histopathology (looking at tissue architecture), cytology (looking at individual cells) is a different beast. Standard AI approaches break images into "patches," but in cytology, most patches are empty "background" space. This "sparsity" makes it incredibly difficult for traditional models to learn meaningful representations of a whole slide. The authors set out to create a compact, slide-level representation that captures the semantic essence of a patient's bone marrow without getting lost in the empty space.

Methods

The authors propose a "cell-based" Multiple Instance Learning (MIL) approach. Instead of feeding the model image patches, they feed it "bags" of individual cells.

  1. Feature Extraction: They repurposed a previously trained YOLO-based model to detect and classify cells. For every detected cell, they extracted a deep feature embedding (a 256-length vector).
  2. Cell Bags: They constructed "cell bags" containing 256 representative cells (sampled via a refined Histogram of Cell Types) plus an average feature vector for megakaryocytes (large, rare cells).
  3. Modern Hopfield Networks: To aggregate these individual cell features into a single slide-level vector, they used a Modern Hopfield Network. This acts as a sophisticated attention mechanism, learning which specific cells in the bag are most "important" for a diagnosis.
  4. Supervised Contrastive (SupCon) Loss: The model was trained to "pull" slides with the same diagnosis together in a high-dimensional embedding space while "pushing" different diagnoses apart. This makes the resulting slide vectors highly effective for similarity searches.

Datasets

The study utilized a dataset of 556 Whole Slide Images from 865 patients at a large hematology reference center in Canada.

  • Labels: The slides were categorized into five broad diagnostic groups: Normal, Acute Leukemia (ACL), Myelodysplastic Syndrome (MDS), Plasma Cell Neoplasm (PCN), and Lymphoproliferative Disorder (LPD).
  • Ground Truth: Interestingly, the labels were generated by a fine-tuned BERT model processing the text of the original pathology reports, rather than manual re-annotation by experts—a pragmatic approach to handling large-scale medical data.

Key Insights and Ideas

  • Cells over Patches: The most critical insight is that in cytology, the cell is the fundamental unit of information. By discarding the "background" and focusing only on detected cells, the model avoids the noise and sparsity issues that plague patch-based MIL.
  • Interpretability via Attention: Because the model assigns an "attention weight" to every cell, it is inherently interpretable. When the model predicts Acute Leukemia, you can look at the attention plot and see that it focused on "blast" cells—exactly what a human pathologist would do.
  • Morphology Matters: The system outperformed models based purely on cell counts (the "Refined Histogram of Cell Types"). This proves that the appearance (morphology) of the cells contains vital diagnostic signals that simple counting misses, especially for complex diseases like MDS.

Key Results

  • Image Retrieval: In a "search-by-example" task, the model achieved a 0.58 ± 0.02 mAP@10 (mean Average Precision), significantly outperforming the random baseline of 0.39.
  • Classification: Using a simple k-Nearest Neighbor (k-NN) classifier on the slide vectors, the system achieved a weighted-macro-average F1 score of 0.57.
  • Disease-Specific Performance: The model was particularly strong at identifying Acute Leukemia (F1: 0.74) and Normal cases (F1: 0.67). It struggled more with MDS (F1: 0.33), which is expected given that MDS is notoriously difficult even for expert humans and often requires genetic data for a definitive diagnosis.

Limitations and Future Work

The authors acknowledge several hurdles:

  • Noisy Labels: Using BERT-derived labels from old reports introduces some error compared to a "gold standard" expert review.
  • Dataset Size: While 556 WSIs is significant, deep learning models typically thrive on much larger datasets.
  • Hardware Constraints: Current scanning technology for cytology is not yet as standardized or high-throughput as histopathology, which limits the quality of the raw input data.

Future work will likely focus on multi-modal learning, combining these visual slide vectors with clinical and molecular data to tackle the "hard" diagnoses like MDS more effectively.

Summary updated

BibTeX
@article{mu2023whole,
  author = {Youqing Mu and Hamid R. Tizhoosh and Taher Dehkharghanian and Clinton J.V. Campbell},
  title = {{Whole slide image representation in bone marrow cytology}},
  journal = {Computers in Biology and Medicine},
  year = {2023},
  doi = {10.1016/j.compbiomed.2023.107530},
}
Figure