[Paper Review] Image Classification via Quantum Machine Learning
This paper proposes a fully quantum machine learning classifier for image classification using binary-encoded patterns and quantum state superposition. It demonstrates favorable performance on real datasets, including balanced and highly imbalanced classes—particularly effective for minority classes relevant in medical imaging—validating quantum machine learning beyond theory.
Quantum Computing and especially Quantum Machine Learning, in a short period of time, has gained a lot of interest through research groups around the world. This can be seen in the increasing number of proposed models for pattern classification applying quantum principles to a certain degree. Despise the increasing volume of models, there is a void in testing these models on real datasets and not only on synthetic ones. The objective of this work is to classify patterns with binary attributes using a quantum classifier. Specially, we show results of a complete quantum classifier applied to image datasets. The experiments show favorable output while dealing with balanced classification problems as well as with imbalanced classes where the minority class is the most relevant. This is promising in medical areas, where usually the important class is also the minority class.
Motivation & Objective
- To validate quantum machine learning models on real-world image datasets, moving beyond theoretical proofs and synthetic data.
- To address the challenge of imbalanced classification, especially where the minority class is clinically significant (e.g., disease detection).
- To demonstrate a complete quantum classifier implementation using real quantum hardware constraints and practical encoding.
- To assess the scalability and robustness of quantum classification in near-term quantum devices with limited qubits and noise.
- To provide a foundation for future quantum-enhanced image classification in medical and high-stakes applications.
Proposed method
- Maps binary image patterns to quantum states using superposition, encoding each pixel value as ±1 in a uniformly weighted superposition of computational basis states.
- Employs unitary transformations to prepare input and weight states, enabling quantum interference for inner product computation.
- Uses a quantum circuit to compute the inner product between input and weight states via controlled operations and measurement of the |1⟩ state.
- Applies a thresholding mechanism on the measurement outcome to classify the input as belonging to one of two classes.
- Utilizes Qiskit and PyTorch for hybrid quantum-classical model implementation and circuit generation.
- Employs standard machine learning evaluation metrics (accuracy, precision, recall, F1, AUC) on two real datasets: MNIST-like and Semeion digits.
Experimental results
Research questions
- RQ1Can a fully quantum classifier achieve competitive performance on real image classification tasks with limited qubit counts?
- RQ2How does the quantum classifier perform on imbalanced datasets where the minority class is the most relevant (e.g., medical diagnosis)?
- RQ3Does the quantum model maintain high recall and F1 for minority classes despite limited data and hardware noise?
- RQ4Can quantum superposition and interference provide a computational advantage in pattern classification even with current noisy intermediate-scale quantum (NISQ) devices?
- RQ5What are the practical challenges in mapping classical image data to quantum states and maintaining fidelity in real hardware?
Key findings
- The quantum classifier achieved an average F1 score of 0.872 on balanced MNIST-like data, with individual class F1 scores ranging from 0.739 to 0.964.
- On heavily imbalanced data, the classifier maintained high recall (up to 1.0) for the minority class, with F1 scores ranging from 0.161 to 0.204.
- For the most imbalanced case, the model achieved an AUC of 0.567 for digit 7 and 0.560 for digit 5, indicating moderate discriminative power despite class imbalance.
- The model showed strong performance on the Semeion dataset, with a maximum recall of 0.977 for digit 7 and an average accuracy of 0.839 across all classes.
- Resubstitution error analysis revealed that the model generalizes reasonably well, with error rates below 0.25 for most classes, even under extreme imbalance.
- The classifier demonstrated robustness in detecting minority classes, with recall values above 0.95 for digits 0, 1, 4, 5, 6, 7, 8, and 9 in imbalanced settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.