Skip to main content

1D Quantum Convolutional Neural Network for Time Series Forecasting and Classification

  • Conference paper
  • First Online:
Advances in Computational Intelligence (MICAI 2023)

Abstract

The 1D Convolutional Neural Network (1D CNN) is a kind of Artificial Neural Network (ANN) that has been shown to obtain state-of-the-art performance levels on several applications with minimal computational complexity and whose advantages are well established. In this article, we propose a 1D quantum convolution, which extracts local features by means of a quantum circuit in a way similar to the classical convolution. In this work, we test the performance of the proposed 1D quantum convolutional layer building a 1D Quantum Convolutional Neural Network (1D QCNN) that consists of the 1D quantum convolution followed by classical layers. The proposed model is compared with classical models for both time series forecasting and classification tasks including benchmark and real-world datasets. The obtained results show that the 1D QCNN can successfully extract features from temporal data, and in certain cases outperform classical models in terms of accuracy and convergence.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Abbas, A., Sutter, D., Zoufal, C., Lucchi, A., Figalli, A., Woerner, S.: The power of quantum neural networks. Nat. Comput. Sci. 1(6), 403–409 (2021)

    Article  Google Scholar 

  2. Alejandra, R.R.M., Andres, M.V., Mauricio, L.R.J.: Time series forecasting with quantum machine learning architectures. In: Pichardo Lagunas, O., Martínez-Miranda, J., Martínez Seis, B. (eds.) Advances in Computational Intelligence, MICAI 2022, vol. 13612, pp. 66–82. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-19493-1_6

  3. Bergholm, V., Izaac, J., Schuld, M., Gogolin, C.: PennyLane: automatic differentiation of hybrid quantum-classical computations (2022)

    Google Scholar 

  4. Cerezo, M., et al.: Variational quantum algorithms. Nat. Rev. Phys. 3(9), 625–644 (2021)

    Article  Google Scholar 

  5. Feynman, R.P.: Simulating physics with computers. In: Feynman and Computation, pp. 133–153. CRC Press (2018)

    Google Scholar 

  6. Havlíček, V., et al.: Supervised learning with quantum-enhanced feature spaces. Nature 567(7747), 209–212 (2019)

    Article  Google Scholar 

  7. Henderson, M., Shakya, S., Pradhan, S., Cook, T.: Quanvolutional neural networks: powering image recognition with quantum circuits. Quantum Mach. Intell. 2(1), 2 (2020)

    Article  Google Scholar 

  8. Hong, Z., Wang, J., Qu, X., Zhu, X., Liu, J., Xiao, J.: Quantum convolutional neural network on protein distance prediction. In: 2021 International Joint Conference on Neural Networks (IJCNN), pp. 1–8. IEEE (2021)

    Google Scholar 

  9. Houssein, E.H., Abohashima, Z., Elhoseny, M., Mohamed, W.M.: Hybrid quantum-classical convolutional neural network model for COVID-19 prediction using chest X-ray images. J. Comput. Des. Eng. 9(2), 343–363 (2022). https://doi.org/10.1093/jcde/qwac003

  10. Hur, T., Kim, L., Park, D.K.: Quantum convolutional neural network for classical data classification. Quantum Mach. Intell. 4(1), 3 (2022). https://doi.org/10.1007/s42484-021-00061-x

    Article  Google Scholar 

  11. Li, W., Deng, D.L.: Recent advances for quantum classifiers. Sci. China Phys. Mech. Astron. 65(2), 220301 (2021). https://doi.org/10.1007/s11433-021-1793-6

    Article  Google Scholar 

  12. Liu, J., Lim, K.H., Wood, K.L., Huang, W., Guo, C., Huang, H.L.: Hybrid quantum-classical convolutional neural networks. Sci. China Phys. Mech. Astron. 64(9), 290311 (2021)

    Article  Google Scholar 

  13. Lloyd, S., Mohseni, M., Rebentrost, P.: Quantum algorithms for supervised and unsupervised machine learning (2013)

    Google Scholar 

  14. Lu, S., Braunstein, S.: Quantum decision tree classifier. Quantum Inf. Process. 13, 757–770 (2014). https://doi.org/10.1007/s11128-013-0687-5

    Article  MathSciNet  MATH  Google Scholar 

  15. Mari, A., Bromley, T.R., Izaac, J., Schuld, M., Killoran, N.: Transfer learning in hybrid classical-quantum neural networks. Quantum 4, 340 (2020). https://doi.org/10.22331/q-2020-10-09-340

  16. Mitarai, K., Negoro, M., Kitagawa, M., Fujii, K.: Quantum circuit learning. Phys. Rev. A 98, 032309 (2018). https://doi.org/10.1103/PhysRevA.98.032309, https://link.aps.org/doi/10.1103/PhysRevA.98.032309

  17. Nielsen, M.A., Chuang, I.L.: Quantum Computation and Quantum Information. Cambridge University Press, Cambridge (2000)

    Google Scholar 

  18. Park, G., Huh, J., Park, D.K.: Variational quantum one-class classifier. Mach. Learn. Sci. Technol. 4(1), 015006 (2023). https://doi.org/10.1088/2632-2153/acafd5

  19. Preskill, J.: Quantum computing 40 years later. Nat. Rev. Phys. 4(1) (2023). https://doi.org/10.1038/s42254-021-00410-6

  20. Ramezani, S.B., Sommers, A., Manchukonda, H.K., Rahimi, S., Amirlatifi, A.: Machine learning algorithms in quantum computing: a survey. In: 2020 International Joint Conference on Neural Networks (IJCNN), pp. 1–8 (2020). https://doi.org/10.1109/IJCNN48605.2020.9207714

  21. Rebentrost, P., Mohseni, M., Lloyd, S.: Quantum support vector machine for big data classification. Phys. Rev. Lett. 113(13), 130503 (2014). https://doi.org/10.1103/physrevlett.113.130503

    Article  Google Scholar 

  22. Sameer, M., Gupta, B.: A novel hybrid classical-quantum network to detect epileptic seizures. medRxiv, pp. 2022-05 (2022)

    Google Scholar 

  23. Schuld, M., Bergholm, V., Gogolin, C., Izaac, J., Killoran, N.: Evaluating analytic gradients on quantum hardware. Phys. Rev. A 99(3), 032331 (2019). https://doi.org/10.1103/physreva.99.032331

    Article  Google Scholar 

  24. Schuld, M., Bocharov, A., Svore, K.M., Wiebe, N.: Circuit-centric quantum classifiers. Phys. Rev. A 101, 032308 (2020). https://doi.org/10.1103/PhysRevA.101.032308, https://link.aps.org/doi/10.1103/PhysRevA.101.032308

  25. Schuld, M., Petruccione, F.: Supervised Learning with Quantum Computers. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-96424-9

  26. Schuld, M., Sinayskiy, I., Petruccione, F.: An introduction to quantum machine learning. Contemp. Phys. 56(2), 172–185 (2014). https://doi.org/10.1080/00107514.2014.964942

  27. Schuld, M., Sinayskiy, I., Petruccione, F.: Simulating a perceptron on a quantum computer. Phys. Lett. A 379(7), 660–663 (2015). https://doi.org/10.1016/j.physleta.2014.11.061

  28. Schuld, M., Sweke, R., Meyer, J.J.: Effect of data encoding on the expressive power of variational quantum-machine-learning models. Phys. Rev. A 103(3), 032430 (2021). https://doi.org/10.1103/physreva.103.032430

  29. Shahwar, T., et al.: Automated detection of Alzheimer’s via hybrid classical quantum neural networks. Electronics 11, 721 (2022). https://doi.org/10.3390/electronics11050721

    Article  Google Scholar 

  30. Fazeli, S.: ECG heartbeat categorization dataset (2018). https://www.kaggle.com/datasets/shayanfazeli/heartbeat. Accessed 28 Feb 2023

  31. Antweiler, W.: Pacific exchange rate service (2023). http://fx.sauder.ubc.ca/data.html. Accessed 20 Jan 2023

  32. Yang, Y.F., Sun, M.: Semiconductor defect detection by hybrid classical-quantum deep learning. In: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, June 2022. https://doi.org/10.1109/cvpr52688.2022.00236

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mayra Alejandra Rivera-Ruiz .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Rivera-Ruiz, M.A., Juárez-Osorio, S.L., Mendez-Vazquez, A., López-Romero, J.M., Rodriguez-Tello, E. (2024). 1D Quantum Convolutional Neural Network for Time Series Forecasting and Classification. In: Calvo, H., Martínez-Villaseñor, L., Ponce, H. (eds) Advances in Computational Intelligence. MICAI 2023. Lecture Notes in Computer Science(), vol 14391. Springer, Cham. https://doi.org/10.1007/978-3-031-47765-2_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-47765-2_2

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-47764-5

  • Online ISBN: 978-3-031-47765-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics