Skip to content
AI.info

Research

Enhanced Leukemic Cell Classification Using Attention-Based CNN and Data Augmentation

Overview Research area: Medical image analysis / computer vision applied to hematology — automated classification of leukemic versus healthy white blood cells from microscopic images. Technical level:

Enhanced Leukemic Cell Classification Using Attention-Based CNN and Data Augmentation
arXiv
2601.01026
Published
2026-01-03
Authors
Douglas Costa Braga, Daniel Oliveira Dantas

AI summary

Overview

  • Research area: Medical image analysis / computer vision applied to hematology — automated classification of leukemic versus healthy white blood cells from microscopic images.
  • Technical level: Advanced. The work assumes familiarity with convolutional neural networks, transfer learning, attention mechanisms, loss functions, and statistical validation protocols.
  • One-sentence scope: The paper presents a reproducible deep learning pipeline built on an EfficientNetV2-B3 backbone with Squeeze-and-Excitation attention, evaluated on the C-NMC 2019 dataset for binary classification of malignant (ALL) versus healthy (HEM) lymphoblasts.

What This Paper Is About

Acute lymphoblastic leukemia (ALL) is the most common childhood cancer, and its diagnosis currently depends on expert microscopic examination of blood or bone marrow samples — a slow, invasive-in-some-cases process subject to substantial inter-observer variation. The authors build an automated classification system that distinguishes malignant lymphoblasts from healthy lymphocytes in microscopic images, aiming for accuracy comparable to or better than existing methods while using far fewer parameters so that it could plausibly run in resource-constrained clinical settings. A second goal is interpretability: showing which cellular features drive the model's decisions.

Key Contributions

  1. An attention-based architecture combining an EfficientNetV2-B3 backbone with Squeeze-and-Excitation (SE) channel attention, reaching a 97.89% F1-score on the C-NMC 2019 test set while using about 89% fewer parameters than VGG16 (15.2M vs. 138M).
  2. Interpretable attention visualizations that highlight diagnostically relevant cellular regions — irregular nuclear morphology and elevated nucleus-to-cytoplasm ratio for malignant cells, regular contours and uniform chromatin for healthy cells.
  3. A comprehensive augmentation pipeline applied only to the minority class (HEM), expanding it from 2,533 to 7,324 images, combined with focal loss to address class imbalance.
  4. A rigorous evaluation protocol using patient-wise data splitting plus a 100-iteration Monte Carlo experiment, with statistically significant improvements reported over baseline methods (p < 0.001).

Main Findings

  • Test set performance: The model achieved 97.89% accuracy, 97.89% precision, 97.89% recall, and 97.89% F1-score on the test set, with an AUC of 93.77%.
  • Confusion matrix: On the test set (2,084 images), the model correctly classified 964 healthy cells and 1,076 malignant cells, misclassifying 18 healthy cells as malignant and 26 malignant cells as healthy — corresponding to 97.6% sensitivity for malignant cells and 98.2% specificity for healthy cells.
  • Training behavior: The best validation F1-score of 98.37% was reached at epoch 10; training continued to early stopping at epoch 18, with the epoch-10 model retained.
  • Comparative standing: The proposed model's 97.89% F1-score was the highest among the methods compared in the paper, a 2.46 percentage-point improvement over the next best reported method (Sampathila et al. at 95.43%). The abstract states the pipeline outperforms existing approaches by up to 4.67%.
  • Parameter efficiency: The architecture requires 15.2 million parameters versus 138.4M for VGG16 and 143.7M for VGG19 — roughly an 89% reduction.
  • Monte Carlo robustness: Across 100 patient-wise randomized iterations, mean F1-score was 98.15% ± 0.41% (95% CI: [97.11%, 98.72%]) and mean AUC was 99.80% ± 0.07% (95% CI: [99.62%, 99.91%]). Accuracy, precision, and recall showed similar stability at 98.16% ± 0.41%. The single test-set F1-score falls inside the Monte Carlo confidence interval, which the authors present as evidence of consistency between the two evaluation approaches.
  • Ablation results (Validation set, as reported): Removing augmentation dropped F1 to 93.50% (−3.77%), removing SE attention dropped it to 94.93% (−2.34%), and removing focal loss dropped it to 95.84% (−1.43%). Data augmentation was therefore the single largest contributor.
  • Interpretability: Attention maps concentrated on morphologically meaningful regions for each class, aligning with established diagnostic criteria from the clinical literature.

Methodology in Plain English

The researchers used a publicly available dataset of microscopic blood images (C-NMC 2019), where every image is a 450×450 pixel crop containing a single segmented cell on a black background. They combined the training and preliminary test portions of the dataset, yielding 12,528 labeled images from 101 unique patients (60 ALL with 8,491 images and 41 HEM with 4,037 images), and split these patients — not individual images — into training (80 patients), validation (10 patients), and test (11 patients) groups. Splitting by patient matters because images from the same patient are similar; mixing them would inflate reported performance.

Because healthy cells were underrepresented in the training set (an ALL/HEM ratio of 2.89 in original images), the authors applied augmentation only to the minority class: random horizontal flipping, rotation of ±10 degrees, and small brightness and contrast adjustments, performed on the fly during training. This expanded the HEM training set from 2,533 to 7,324 images, matching the 7,324 ALL training images for a balanced training set of 14,648 images. Validation and test sets kept only original images so that evaluation stayed unbiased.

The model starts from an EfficientNetV2-B3 network pre-trained on ImageNet. Before pooling the feature maps, a Squeeze-and-Excitation block compresses spatial information into channel descriptors, passes them through a bottleneck that reduces dimensionality by a factor of 16 and restores it, and uses the resulting weights (in [0,1]) to rescale the feature maps — effectively letting the network emphasize informative channels. A classification head of three fully connected layers (512, 256, and 2 outputs) with batch normalization and dropout produces the binary prediction. Focal loss (α = 0.25, γ = 2.0) downweights easy examples and focuses learning on hard cases. Training used the AdamW optimizer with a OneCycleLR schedule, batch size 8, mixed precision, gradient clipping, and early stopping. Everything ran on a single NVIDIA GeForce RTX 4060 GPU (8GB VRAM) with 32GB RAM and PyTorch 1.9.0.

Finally, the authors re-ran the experiment 100 times with different random patient assignments to the three splits, using these Monte Carlo results both to check stability and to test significance against an otherwise identical model without the SE attention block.

Why This Matters

Impact on research: The paper argues that attention mechanisms can raise classification performance in this task without a proportional increase in model size, and it emphasizes reproducibility, patient-wise splitting, and statistical validation — practices that address common weaknesses in medical imaging literature, where inconsistent evaluation protocols make cross-study comparison difficult. It also contributes an interpretability argument: attention maps give clinicians something to inspect rather than a black-box label.

Real-world applications:

  • Triage support in hematology labs, where an automated first-pass classifier could flag suspect slides for expert review.
  • Screening in resource-constrained settings where specialized microscopists are scarce — the 15.2M parameter footprint is relevant to this use case.
  • Educational and quality-control tools that highlight which morphological features distinguish malignant from healthy cells.
  • Second-opinion systems that reduce inter-observer variability in peripheral blood examination.

Industry relevance: The combination of high reported accuracy, an 89% parameter reduction relative to VGG16-class models, and hardware requirements achievable on a single consumer-grade GPU (RTX 4060, 8GB VRAM) points toward deployment on modest clinical hardware rather than cloud-scale infrastructure. The paper's explicit framing around reproducibility and modular pipeline design also speaks to the requirements of regulated medical software development.

Future Directions

  • External validation: The authors identify validation on datasets from different institutions — with varying staining protocols, imaging equipment, and patient demographics — as a necessary next step; the current study uses only C-NMC 2019.
  • Attention plus transformers: Integrating the SE attention mechanism with Vision Transformers to combine local feature emphasis with global context modeling while preserving computational efficiency.
  • Leveraging unlabeled data: Applying self-supervised pre-training on the C-NMC 2019 unlabeled test set of 2,586 images before supervised fine-tuning.
  • Multi-modal and clinical validation: Extending the attention mechanism to cross-modal fusion of peripheral blood smear images with flow cytometry data, and running prospective clinical validation studies to assess real-world performance and workflow integration.
  • Stronger explainability: The authors note that SE attention alone is limited, and suggest counterfactual explanations or concept-based interpretability as ways to further build clinical trust and support error analysis.

Target Audience

This paper is most useful to researchers and graduate students working at the intersection of deep learning and medical imaging, particularly those studying leukemia or blood cell classification. It also suits machine learning engineers who need a documented, reproducible reference pipeline covering patient-wise splitting, class-imbalance handling with focal loss and targeted augmentation, and attention-based architectures. Clinicians and clinical informatics teams evaluating whether automated cell classification is mature enough for practical deployment will find the interpretability and efficiency arguments relevant, and the ablation study provides a useful template for practitioners deciding which components of such a pipeline actually carry their weight.

Authors’ abstract

We present a reproducible deep learning pipeline for leukemic cell classification, focusing on system architecture, experimental robustness, and software design choices for medical image analysis. Acute lymphoblastic leukemia (ALL) is the most common childhood cancer, requiring expert microscopic diagnosis that suffers from inter-observer variability and time constraints. The proposed system integrates an attention-based convolutional neural network combining EfficientNetV2-B3 with Squeeze-and-Excitation mechanisms for automated ALL cell classification. Our approach employs comprehensive data augmentation, focal loss for class imbalance, and patient-wise data splitting to ensure robust and reproducible evaluation. On the C-NMC 2019 dataset (12,528 original images from 62 patients), the system achieves a 97.89% F1-score and 97.89% accuracy on the test set, with statistical validation through 100-iteration Monte Carlo experiments confirming significant improvements (p &lt; 0.001) over baseline methods. The proposed pipeline outperforms existing approaches by up to 4.67% while using 89% fewer parameters than VGG16 (15.2M vs. 138M). The attention mechanism provides interpretable visualizations of diagnostically relevant cellular features, demonstrating that modern attention-based architectures can improve leukemic cell classification while maintaining computational efficiency suitable for clinical deployment.

Read the original paper