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.
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.
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.
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.
A basic idea of quantum computing is surprisingly similar to that of kernel methods in machine learning, namely, to efficiently perform computations in an intractably large Hilbert space. In this Letter we explore some theoretical foundations of this link and show how it opens up a new avenue for the design of quantum machine learning algorithms. We interpret the process of encoding inputs in a quantum state as a nonlinear feature map that maps data to quantum Hilbert space. A quantum computer can now analyze the input data in this feature space. Based on this link, we discuss two approaches for building a quantum model for classification. In the first approach, the quantum device estimates inner products of quantum states to compute a classically intractable kernel. The kernel can be fed into any classical kernel method such as a support vector machine. In the second approach, we use a variational quantum circuit as a linear model that classifies data explicitly in Hilbert space. We illustrate these ideas with a feature map based on squeezing in a continuous-variable system, and visualize the working principle with two-dimensional minibenchmark datasets.
Interest in quantum machine learning is growing due to its potential to offer more efficient solutions for problems that are difficult to tackle with classical methods. In this context, the research work presented here focuses on the use of quantum machine-learning techniques for image-classification tasks. We exploit a quantum extreme learning machine by taking advantage of its rich feature map provided by the quantum reservoir substrate. We systematically analyze different phases of the quantum extreme learning machine process, from dataset preparation to final image classification. In particular, we test different encodings, together with principal component analysis and the use of autoencoders, and we examine the dynamics of the model through the use of different Hamiltonians for the quantum reservoir. Our results show that the introduction of a quantum reservoir systematically improves the accuracy of the classifier. In addition, our findings indicate that variations in encoding methods can significantly influence performance and that Hamiltonians with distinct structures exhibit the same discrimination rate, depending on how their eigenstates are related to the encoding and measurement basis.