Introduction
Diagnosing hereditary hemolytic anemias, such as sickle cell disease (SCD) or hereditary spherocytosis, traditionally requires a skilled hematologist to manually inspect red blood cell (RBC) morphology under a microscope. This process is hindered by several factors: the "needle in a haystack" problem where only a small fraction (5-10%) of cells may be diagnostic, the inherent subjectivity and labor-intensiveness of manual labeling, and the scarcity of large-scale, precisely annotated datasets.
To address these challenges, this research presents a deep learning pipeline based on Attention-Based Multiple Instance Learning (MIL). This approach treats a patient's blood sample as a "bag" of individual cell "instances," requiring only a single patient-level diagnosis for training rather than exhaustive cell-by-cell annotations.
Methods
The proposed framework consists of two primary stages: cell detection and classification via MIL.
Cell Detection and Feature Extraction
First, a modified Mask R-CNN with a ResNet backbone is employed to detect individual RBCs in bright-field microscopy images. Rather than simple bounding boxes, the model extracts high-dimensional feature maps for each detected cell using RoI aligning.
Attention-Based MIL and Auxiliary SIC
The core of the classification engine is an MIL network enhanced with an attention mechanism. Unlike standard pooling methods that average features across all cells, the attention mechanism learns to assign a weight (attention score) to each cell, reflecting its diagnostic importance. This allows the model to focus on rare, malformed "landmark" cells while ignoring healthy ones.
To stabilize training and prevent vanishing gradients—a common issue when learning from sparse patient-level labels—the researchers introduced an auxiliary Single Instance Classification (SIC) branch. This branch initially treats all cells in a positive bag as positive, using a dynamic loss function that shifts focus from individual cell classification to global bag classification as training matures.
Dataset
The model was evaluated on a dataset of unstained bright-field microscopy images (100x objective) from 59 individuals, including healthy controls and patients with four genetic disorders: Thalassemia, Sickle Cell Disease, PIEZO1 mutation, and Hereditary Spherocytosis. Each patient sample comprised multiple images, with dozens of cells per image.
Results
The integrated MIL + Attention + SIC approach significantly outperformed baseline single-instance classifiers. Key performance metrics include:
- Accuracy: 79% (vs. 50% for baseline).
- AU ROC: 0.960, demonstrating high discriminative power across all disease classes.
- Weighted F1 Score: 0.78.
Qualitatively, the model demonstrated "unsupervised landmark discovery." By visualizing high-attention cells, researchers confirmed that the model autonomously identifies the same morphological abnormalities used by human experts, such as crescent-shaped cells in SCD samples.
Discussion and Future Work
The inclusion of an attention mechanism provides built-in interpretability, transforming the "black box" model into a tool that highlights diagnostic evidence for clinical review. Future enhancements could include Bayesian uncertainty estimation to quantify model confidence and active learning strategies to further refine performance with minimal expert input. By reducing the reliance on per-cell labeling, this framework offers a scalable path toward automated, objective diagnosis of rare blood disorders.
Summary updated