Enhancing Blood Cells Classification using Hybrid Quantum Neural Networks

Guilherme Cruz, Nouhaila Innan, Alberto Marchisio, Gabriel Falcao, Muhammad ShafiquearXiv 2026

TL;DR

This paper introduces a controlled framework to evaluate Hybrid Quantum-Classical Neural Networks (HQNNs) for microscopic blood cell classification. By pairing a classical ResNet-50 backbone with a variational quantum circuit, the authors demonstrate that quantum feature transformations significantly improve fine-grained classification accuracy, especially for visually ambiguous cell types. Crucially, the model maintains its edge under data-scarce conditions and proves robust when deployed on real IBM quantum hardware.

What Problem Does This Paper Address?

Automating blood cell classification is vital for rapid disease screening and diagnostic workflows. While deep learning models (like CNNs) have largely replaced manual microscopy, they hit a performance ceiling when dealing with fine-grained classification tasks. Cells like monocytes and neutrophils often share overlapping visual traits and exhibit high intra-class variability, leading to misclassifications.

Hybrid Quantum-Classical Neural Networks (HQNNs) offer a potential solution by mapping classical features into high-dimensional quantum Hilbert spaces, leveraging quantum entanglement to uncover complex, non-linear correlations. However, prior research in this area often fails to isolate the true source of "quantum advantage"—leaving it unclear whether improvements stem from intrinsic quantum properties or simply from adding more parameters. This paper addresses this gap by establishing a strictly controlled, capacity-matched comparative framework.

Methods

The authors design a modular processing pipeline consisting of four distinct stages:

  1. Feature Extraction: A standard, pre-trained ResNet-50 backbone extracts a 2048-dimensional feature vector from input images.
  2. Dimensionality Reduction: A classical fully connected layer compresses the 2048-d vector into a 10-dimensional latent representation, bounded by a tanh activation function.
  3. Intermediate Transformation: This is the core experimental variable. The authors compare three setups:
  4. HQNN Model: The 10-d vector is encoded into a 10-qubit variational quantum circuit (VQC) using angle embedding. The circuit applies four layers of trainable $R_Y$ rotations and a ring-structured CNOT entanglement pattern, outputting a 10-d vector of Pauli-Z expectation values.
  5. Classical Matched Model: The VQC is replaced by a classical non-linear layer with comparable parameter capacity (110 parameters vs. 40 in the VQC). This serves as the vital control group.
  6. Classical Baseline: The intermediate transformation stage is omitted entirely.
  7. Classification Head: A lightweight fully connected network maps the resulting 10-d vector to the final class probabilities.

The entire pipeline is illustrated below:

Fig. 2. Overview of the proposed blood cell classification pipeline. The framework processes both the Blood Cell Images and PBC datasets through a common preprocessing and augmentation stage, followed by feature extraction using a pre-trained ResNet-50 backbone. The resulting 2048-dimensional feature vector is reduced to a 10-dimensional latent representation and passed to an HQNN composed of angle encoding, a variational quantum circuit with 10 qubits and 4 layers, and Pauli-Z measurement. The resulting quantum feature vector is then fed to a lightweight classification head for final blood cell type prediction.

Datasets

The framework was evaluated on two public datasets:

  • Blood Cell Images Dataset: A 4-class dataset (eosinophils, lymphocytes, monocytes, and neutrophils) containing roughly 9,957 training images and 2,487 test images.
  • Peripheral Blood Cell (PBC) Dataset: A more complex 8-class dataset spanning distinct cell types (see examples in the figure below). The training set was augmented to balance the classes, resulting in 32,776 training images, 4,098 validation images, and 2,056 test images.
Fig. 1. Representative examples of the eight classes in the PBC dataset.

Key Insights and Ideas

  • Isolating the Quantum Advantage: By keeping the backbone, bottleneck dimension, and classification head identical, the authors prove that the performance gains are uniquely driven by the quantum feature space transformation, rather than an influx of classical parameters.
  • Excellence at the Boundaries: The quantum layer provides the highest value in resolving ambiguous, fine-grained boundaries where classical feature maps overlap (e.g., distinguishing monocytes from neutrophils).
  • Data Efficiency: When the training data was slashed to 25% of its original size, the HQNN maintained the highest performance, outperforming the classical matched model by 2.19 percentage points in macro F1-score. This suggests HQNNs are highly valuable for data-scarce medical domains.

Key Results

  • 4-Class Scenario (Blood Cell Images): The HQNN model achieved the best overall performance with an accuracy of 95.72% and a macro F1-score of 0.9153, outperforming the Classical Matched Model (88.62% F1) and the Classical Baseline (87.84% F1). This represents a substantial 3.0%–3.7% boost in macro F1-score.
Fig. 6. Comparison of overall accuracy and macro F1-score for the evaluated models on the Blood Cell Images Dataset.
  • 8-Class Scenario (PBC Dataset): In a near-saturated performance environment, the HQNN still edged out the competition, achieving a top accuracy of 99.67% and a macro F1-score of 0.9869 (compared to 0.9854 for the matched classical alternative).
  • Real Hardware Validation: To test real-world viability, the authors ran inference on physical quantum hardware (ibm_fez). Despite the presence of quantum noise inherent to NISQ-era devices, the hardware execution achieved a macro F1-score of 0.8963 on a subset of data—showing only a minor 2.5%–3% degradation compared to the ideal, noise-free simulator.

Limitations and Future Work

While promising, the study notes a few key limitations:

  • Hardware Scaling: Due to current physical quantum hardware constraints and execution time limits, real hardware testing had to be restricted to a small, balanced subset of 40 samples. Scaling full-batch inference to large datasets remains a bottleneck.
  • Diminishing Returns: In highly optimized, near-saturated classical tasks (like the full 8-class dataset), the absolute quantum advantage becomes marginal.

The authors suggest that future work should explore alternative quantum encoding schemes, diverse circuit topologies, and even more complex, unoptimized biomedical datasets to fully exploit the expressive power of quantum mechanics.

Summary updated

BibTeX
@misc{cruz2026enhancing,
  author = {Guilherme Cruz and Nouhaila Innan and Alberto Marchisio and Gabriel Falcao and Muhammad Shafique},
  title = {{Enhancing Blood Cells Classification using Hybrid Quantum Neural Networks}},
  year = {2026},
  eprint = {2605.23324},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.23324},
}
Figure