Quantum machine learning has attracted much attention in recent years as one of the applications of quantum computing. In particular, classification using quantum kernels has attracted attention as a means of efficient classification by mapping to a feature space. We aim to use quantum machine learning to identify good and defective products in images including factory products, building, and farm products. Though a fruit apple looks delicious, it has a vine crack inside when it is split in two, it loses its commercial value. It is very difficult to distinguish normal apples from apples with internal vine cracks which are not visible on the exterior, using photographs of the exterior. In this study, an attempt was made to classify internal defects with classical and quantum kernels using binarized images of apples, which are difficult to distinguish with the naked eye. As a result, the accuracy of the classical kernel was less than 0.75. However, with the quantum kernel, an accuracy of over 0.94 could be obtained. The performance of the quantum kernel varied significantly depending on its type. We found that quantum kernel circuits having Hadamard, and control Ry gate have affected the construction of the learning model. We have demonstrated that high accuracy can be achieved by using quantum kernels for the classification of images that are difficult to discriminate visually.
Quantum machine learning has attracted much attention in recent years as one of the applications of quantum computing. In particular, classification using quantum kernels has attracted attention as a means of efficient classification by mapping to a feature space. We aim to use quantum machine learning to identify good and defective products in images including factory products, building, and farm products. Though a fruit apple looks delicious, it has a vine crack inside when it is split in two, it loses its commercial value. It is very difficult to distinguish normal apples from apples with internal vine cracks which are not visible on the exterior, using photographs of the exterior. In this study, an attempt was made to classify internal defects with classical and quantum kernels using binarized images of apples, which are difficult to distinguish with the naked eye. As a result, the accuracy of the classical kernel was less than 0.75. However, with the quantum kernel, an accuracy of over 0.94 could be obtained. The performance of the quantum kernel varied significantly depending on its type. We found that quantum kernel circuits having Hadamard, and control Ry gate have affected the construction of the learning model. We have demonstrated that high accuracy can be achieved by using quantum kernels for the classification of images that are difficult to discriminate visually.
We aim to use quantum machine learning to detect various anomalies in image inspection by using small size data. Assuming the possibility that the expressive power of the quantum kernel space is superior to that of the classical kernel space, we are studying a quantum machine learning model. Through trials of image inspection processes not only for factory products but also for products including agricultural products, the importance of trials on real data is recognized. In this study, training was carried out on SVMs embedded with various quantum kernels on a small number of agricultural product image data sets collected in the markets. The quantum kernels prepared in this study consisted of a smaller number of rotating gates and control gates. The F1 scores for each quantum kernel showed a significant effect of using CNOT gates. After confirming the results with a quantum simulator, the usefulness of the quantum kernels was confirmed on a quantum computer. Learning with SVMs embedded with specific quantum kernels showed significantly higher values of the AUC compared to classical kernels. The reason for the lack of learning in quantum kernels is considered to be due to kernel concentration or exponential concentration similar to the Baren plateau. The reason why the F1 score does not increase as the number of features increases is suggested to be due to exponential concentration, while at the same time it is possible that only certain features have discriminative ability. Furthermore, it is suggested that controlled Toffoli gate may be a promising quantum kernel component.
Over The past decade, quantum computing and machine learning have each witnessed tremendous growth in their respective fields. While quantum computing promises a completely novel paradigm for computation, based on the principles of superposition, entanglement, and interference, machine learning has firmly cemented its place in the sphere of data-driven decision-making. This paper seeks to provide a practical solution to this question, implementing a quantum classical learning system that is capable of performing binary classification tasks. We achieve this through the creation of a Quantum Kernel Support Vector Classifier (QSVC) using the Qiskit framework. While the classical feature set from the Iris dataset is scaled appropriately for the quantum system, the feature set is then represented in the quantum state through the ZZFeatureMap circuit. The QSVC utilizes the kernel-based similarity between quantum states. The results were promising, with the QSVC obtaining a classification accuracy of 92% over a test set, with the model trained in 6.32 seconds on a simulated quantum backend. The decision boundaries learned by the model were complex, and the quantum kernel representation of the feature set was able to capture the underlying class structure, which would have been difficult to achieve in a classical low-dimensional feature space. Our method, with quantum circuits relegated to state preparation and measurement while leaving the optimization to classical processes, is designed to operate within these limits. This makes our method not only theoretically interesting but also immediately applicable to existing simulators and quantum hardware.
In recent years, the diversification of consumer values has led to an increase in the number of small-quantity, high-mix products. For many manufacturing companies, shipping inspections of such products are of great importance. As all products have the same value, good and defective products need to be efficiently identified. Now, a promising future application of quantum technology is considered to be quantum machine learning. We believe that the quantum classifier for SVMs using quantum kernels is one of the areas where quantum advantages can be demonstrated. At present, there are few examples of quantum classifiers applied to real problems in manufacturing processes. In this study, we aim to build a classifier that can demonstrate the quantum advantage and compare SVMs using classical and quantum kernels with conventional ResNet. Initially, a binarised image was generated after image pre-processing. After principal component analysis and dimensionality reduction were performed on the images, SVM with kernels was carried out. The kernel-based SVMs was then compared with the conventionally implemented Residual neural network (ResNet) using an evaluation index: F1-score. The results showed that the F1-score of SVMs using classical kernels was equivalent to that of Resnet. In addition, SVMs using quantum kernels showed higher F1-score than ResNet. In addition, the impact of the feature map and principal components of the quantum kernel was also investigated. It was found that when the feature map became more complex, conversely, circuit generation took more time. It was also found that the principal components are highly relevant to the image and cannot lead to simple results. In the future, we plan to accumulate more experimental data, look for scenes where quantum machine learning can be used and apply it to the manufacturing field.
Quantum Machine Learning (QML) combines quantum computing principles and traditional machine learning principles to provide new ways to solve difficult classification problems through the use of quantum technology. The goal of this paper is to implement a Quantum Kernel Support Vector Machine (QKSVM) using PennyLane and evaluate it against a standard image classification dataset, Fashion-MNIST. The Fashion-MNIST images are represented as 28x28 grayscale pixel arrays; they are normalized using a min-max normalizer with output values between zero and one. The 28x28 arrays are then dimensionally reduced to a size of four principal components (approximately 85% cumulative explained variance), and the QKSVM will utilize a quantum circuit limited to four qubits which is consistent with today's Noisy, Intermediate-Scale Quantum (NISQ) capabilities for performing simulations. Each input feature is represented as a qubit via an RY rotation and the qubits are then entangled using a CNOT circuit to generate the quantum kernel matrix, which is computed as the pairwise fidelity of each input image's state, which is subsequently used by a classical SVM classifier implementing a one-versus-all classification method. The QKSVM achieved approximately 40% accuracy and a macro-F1 score of 0.37 on a 100 sample stratified subset of the Fashion-MNIST test dataset, compared with 60% and 91.2%, respectively, using a classical Radial Basis Function Support Vector Machine (RBF-SVM) classifier with the same four principal components of input features and a Convolutional Neural Network (CNN) with full input images. With a primary bottleneck of qubit count, circuit depth, and shot noise, this work serves as a fully documented and reproducible baseline for future research on quantifying the performance of hybrid classical and quantum image classifiers across standardized image dataset benchmarks.
Abstract Image classification, a pivotal task in multiple industries, faces computational challenges due to the burgeoning volume of visual data. This research addresses these challenges by introducing two quantum machine learning models that leverage the principles of quantum mechanics for effective computations. Our first model, a hybrid quantum neural network with parallel quantum circuits, enables the execution of computations even in the noisy intermediate-scale quantum era, where circuits with a large number of qubits are currently infeasible. This model demonstrated a record-breaking classification accuracy of 99.21% on the full MNIST dataset, surpassing the performance of known quantum–classical models, while having eight times fewer parameters than its classical counterpart. Also, the results of testing this hybrid model on a Medical MNIST (classification accuracy over 99%), and on CIFAR-10 (classification accuracy over 82%), can serve as evidence of the generalizability of the model and highlights the efficiency of quantum layers in distinguishing common features of input data. Our second model introduces a hybrid quantum neural network with a Quanvolutional layer, reducing image resolution via a convolution process. The model matches the performance of its classical counterpart, having four times fewer trainable parameters, and outperforms a classical model with equal weight parameters. These models represent advancements in quantum machine learning research and illuminate the path towards more accurate image classification systems.
In this article, we investigate the applicability of quantum machine learning for classification tasks using two quantum classifiers from the Qiskit Python environment: the variational quantum circuit and the quantum kernel estimator (QKE). We provide a first evaluation on the performance of these classifiers when using a hyperparameter search on six widely known and publicly available benchmark datasets and analyze how their performance varies with the number of samples on two artificially generated test classification datasets. As quantum machine learning is based on unitary transformations, this paper explores data structures and application fields that could be particularly suitable for quantum advantages. Hereby, this paper introduces a novel dataset based on concepts from quantum mechanics using the exponential map of a Lie algebra. This dataset will be made publicly available and contributes a novel contribution to the empirical evaluation of quantum supremacy. We further compared the performance of VQC and QKE on six widely applicable datasets to contextualize our results. Our results demonstrate that the VQC and QKE perform better than basic machine learning algorithms, such as advanced linear regression models (Ridge and Lasso). They do not match the accuracy and runtime performance of sophisticated modern boosting classifiers such as XGBoost, LightGBM, or CatBoost. Therefore, we conclude that while quantum machine learning algorithms have the potential to surpass classical machine learning methods in the future, especially when physical quantum infrastructure becomes widely available, they currently lag behind classical approaches. Our investigations also show that classical machine learning approaches have superior performance classifying datasets based on group structures, compared to quantum approaches that particularly use unitary processes. Furthermore, our findings highlight the significant impact of different quantum simulators, feature maps, and quantum circuits on the performance of the employed quantum estimators. This observation emphasizes the need for researchers to provide detailed explanations of their hyperparameter choices for quantum machine learning algorithms, as this aspect is currently overlooked in many studies within the field. To facilitate further research in this area and ensure the transparency of our study, we have made the complete code available in a linked GitHub repository.