Hybrid quantum learning for imbalanced blood-cell classification: domain adaptation and classifier design

Gabriele D'Angeli, Cyrill Aebischer, Eryk Schiller, Gianluca Nicchiotti, Su Fong Chien, Jérôme Extermann, Enrico PomaricoarXiv 2026

TL;DR

This paper explores whether hybrid quantum-classical models can tackle the "small data, big imbalance" problem in medical imaging. By swapping traditional neural network classifier heads for Variational Quantum Circuits (VQCs) and utilizing intermediate domain adaptation, the researchers achieved performance on white blood cell classification that is remarkably competitive with purely classical baselines.

What Problem Does This Paper Address?

Automated white blood cell (WBC) classification is a cornerstone of hematology, but it’s a nightmare for standard deep learning. The challenges are three-fold:

  1. Limited Data: High-quality, expert-annotated microscopy images are scarce.
  2. Class Imbalance: Some cell types (like basophils) appear far less frequently than others (like neutrophils), leading models to ignore the rare but critical classes.
  3. Morphological Similarity: Different cell types often look frustratingly similar to the untrained eye (and the unoptimized algorithm).

The authors investigate whether Quantum Machine Learning (QML)—specifically hybrid architectures—can offer better generalization or different error profiles than classical models when training data is limited.

Methods

The researchers employed a Hybrid Quantum-Classical Transfer Learning pipeline:

  • The Backbone: A classical ResNet34 pre-trained on ImageNet acts as the feature extractor.
  • Domain Adaptation: Instead of jumping straight to the small target dataset, they performed "intermediate adaptation" on MLL23, a much larger blood cell dataset. This helps the backbone learn features specific to hematology before tackling the final task.
  • The Hybrid Head: They replaced the final classical layer with a Variational Quantum Classifier (VQC).
  • Encoding: Classical features are compressed and "uploaded" into quantum states using rotation gates ($R_x, R_y, R_z$).
  • Processing: The circuit uses trainable entangling layers (Ising-ZZ rings) to process the data.
  • Architecture: They tested various configurations, including "standard" vs. "incremental" data re-uploading and single-block vs. multi-block circuits (using 12 qubits per block).
  • Optimization: The entire stack—classical backbone and quantum head—is trained end-to-end using the AdamW optimizer.

Datasets

  • MicroscopyRGB (Target): A small but high-quality dataset of 821 peripheral blood cell images across seven classes (Basophils, Eosinophils, Smudge cells, etc.).
  • MLL23 (Source for Adaptation): A massive dataset containing 41,621 images across 18 morphological classes, used to "warm up" the model for the specific domain of blood microscopy.

Key Insights and Ideas

  • Domain Adaptation is a Force Multiplier: The biggest performance jump didn't come from the quantum circuit itself, but from the intermediate training on MLL23. For a frozen backbone, macro-F1 scores jumped by nearly 15%. This underscores that for QML to succeed in specialized fields, it must be integrated into robust classical transfer learning pipelines.
  • Quantum Heads are "Classical-Competitive": The best hybrid configuration (two independent 12-qubit blocks) achieved a macro-F1 of 0.865, nipping at the heels of the classical affine head (0.879). While it didn't "beat" the classical model, it proved that current quantum simulations can handle high-dimensional medical data with comparable accuracy.
  • Parallelism in Qubits: Using two independent circuit blocks (B2) performed better than a single, deeper block. This suggests that "widening" the quantum head might be more effective for complex classification than simply adding more variational layers.
  • Unique Error Profiles: The hybrid models showed different precision-recall trade-offs for rare classes (like atypical lymphocytes) compared to classical models. This hints that hybrid models might eventually be useful as part of an ensemble to catch errors classical models miss.

Key Results

  • Intermediate Adaptation: Improved the macro-F1 of the frozen backbone from 0.685 to 0.786.
  • Aggregate Performance: The shallow two-block hybrid head reached a balanced accuracy of 0.886 ± 0.008, nearly identical to the classical baseline of 0.889 ± 0.010.
  • Computational Cost: There is a significant "quantum tax." Training the hybrid B2/L1 model took approximately 198 times longer than the classical baseline under noiseless simulation.

Limitations and Future Work

  • Simulation vs. Reality: All quantum circuits were evaluated using noiseless statevector simulations. Real-world quantum hardware (NISQ devices) introduces noise that would likely degrade these results.
  • Sample Size: With only 821 images, the evaluation is sensitive to the specific data split, though the authors mitigated this using repeated five-fold cross-validation.
  • The "Quantum Advantage" Gap: Currently, the hybrid head requires more parameters and significantly more compute to match a simple classical layer.
  • Future Directions: The authors suggest moving quantum components deeper into the feature extraction layers (rather than just the head) and exploring trainable quantum pre-processing modules to better distinguish morphologically similar cells.

Summary updated

Abstract

Limited annotated data, class imbalance, and morphological similarity make white blood cell classification challenging. We benchmark hybrid variational quantum classifier heads against an affine baseline on 821 microscopy images across seven morphological classes. Using ImageNet-initialised ResNet34 backbones and repeated stratified five-fold cross-validation, we first compare direct transfer with intermediate adaptation on MLL23, a larger peripheral blood cell microscopy dataset. To guide the head comparison, we explore different encoding strategies, variational depth, and the number of independent circuit blocks. We then compare the classifier performance using the affine head and two hybrid heads across multiple random seeds, under a shared training and evaluation protocol. For this comparison, all backbones share the same MLL23-adapted initialisation. Intermediate adaptation increases mean macro-F1 across all four affine-head fine-tuning configurations. The largest gain occurs with a frozen backbone, where macro-F1 rises from $0.685$ to $0.786$, a relative improvement of approximately $14.7\%$. The shallow two-block hybrid head achieves a mean pooled out-of-fold macro-F1 of $0.865 \pm 0.010$, compared with $0.879 \pm 0.008$ for the affine head. The corresponding balanced accuracies are $0.886 \pm 0.008$ and $0.889 \pm 0.010$, respectively. In the architectural exploration, the two-block hybrid head achieves the highest macro-F1 and balanced accuracy among the evaluated hybrid configurations, while the effect of encoding varies across the considered metrics. Our results help guide the design and evaluation of hybrid classifier heads for imbalanced microscopy by linking architectural choices to overall performance and class-specific precision-recall trade-offs.
BibTeX
@misc{dangeli2026hybrid,
  author = {Gabriele D'Angeli and Cyrill Aebischer and Eryk Schiller and Gianluca Nicchiotti and Su Fong Chien and Jérôme Extermann and Enrico Pomarico},
  title = {{Hybrid quantum learning for imbalanced blood-cell classification: domain adaptation and classifier design}},
  year = {2026},
  eprint = {2611.18757},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18757},
}
Figure