Abstract
Time series forecasting is a challenge in several areas and for several applications. A series of tools have emerged to tackle this problem, from classic models to modern models that use machine learning and deep learning. One of these areas of great interest is financial. Specifically, forecasting the prices of stocks and indices can be especially difficult due to the characteristics of this type of series. In this work, we propose a method to automatically develop a deep network using a genetic algorithm to select the hyperparameters. To test the proposed method, we used four datasets, including financial and non-financial time series. In both financial and non-financial datasets, the proposed method with automated hyperparameter selection did better than the models made by other authors using different methods.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Casella, G., Berger, R.L.: Statistical inference. Cengage Learning (2021)
Cicek, Z.I.E., Ozturk, Z.K.: Optimizing the artificial neural network parameters using a biased random key genetic algorithm for time series forecasting. Appl. Soft Comput. 102, 107091 (2021)
David, O.E., Greental, I.: Genetic algorithms for evolving deep neural networks. In: Proceedings of the Companion Publication of the 2014 Annual Conference on Genetic and Evolutionary Computation, pp. 1451–1452 (2014)
Garro, B.A., Vázquez, R.A.: Designing artificial neural networks using particle swarm optimization algorithms. Comput. Intell. Neurosci. 2015 (2015)
Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9, 1735–1780 (1997). https://doi.org/10.1162/neco.1997.9.8.1735
Hu, Z., Zhao, Y., Khushi, M.: A survey of forex and stock price prediction using deep learning. Appl. Syst. Innov. 4(1) (2021). https://doi.org/10.3390/asi4010009, https://www.mdpi.com/2571-5577/4/1/9
Itano, F., de Abreu de Sousa, M.A., Del-Moral-Hernandez, E.: Extending MLP ANN hyper-parameters optimization by using genetic algorithm. In: 2018 International Joint Conference on Neural Networks (IJCNN), pp. 1–8 (2018). https://doi.org/10.1109/IJCNN.2018.8489520
Koprinska, I., Wu, D., Wang, Z.: Convolutional neural networks for energy time series forecasting. In: 2018 International Joint Conference on Neural Networks (IJCNN), pp. 1–8. IEEE (2018)
Krizhevsky, A., Sutskever, I., Hinton, G.E.: ImageNet classification with deep convolutional neural networks. In: Pereira, F., Burges, C.J.C., Bottou, L., Weinberger, K.Q. (eds.) Advances in Neural Information Processing Systems, vol. 25, pp. 1097–1105. Curran Associates, Inc. (2012)
Lim, B., Zohren, S.: Time-series forecasting with deep learning: a survey. Philosophical transactions of the royal society a: mathematical, physical and engineering sciences 379(2194), 20200209 (2021). https://doi.org/10.1098/rsta.2020.0209
Lu, W., Li, J., Li, Y., Sun, A., Wang, J.: A CNN-LSTM-based model to forecast stock prices. Complexity 2020 (2020)
Mitchell, M.: An Introduction to Genetic Algorithms. MIT Press, Cambridge (1996)
Park, H.J., Kim, Y., Kim, H.Y.: Stock market forecasting using a multi-task approach integrating long short-term memory and the random forest framework. Appl. Soft Comput. 114, 108106 (2022). https://doi.org/10.1016/j.asoc.2021.108106
Sagheer, A., Kotb, M.: Time series forecasting of petroleum production using deep LSTM recurrent networks. Neurocomputing 323, 203–213 (2019)
Sezer, O.B., Gudelek, M.U., Ozbayoglu, A.M.: Financial time series forecasting with deep learning: a systematic literature review: 2005–2019. Appl. Soft Comput. J. (2020). https://doi.org/10.1016/j.asoc.2020.106181
Sun, Y., Xue, B., Zhang, M., Yen, G.G., Lv, J.: Automatically designing CNN architectures using the genetic algorithm for image classification. IEEE Trans. Cybernet. 50(9), 3840–3854 (2020)
Wang, S., Aggarwal, C., Liu, H.: Random-forest-inspired neural networks. ACM Trans. Intell. Syst. Technol. (TIST) 9(6), 1–25 (2018)
Wu, J.M.-T., Li, Z., Herencsar, N., Vo, B., Lin, J.C.-W.: A graph-based CNN-LSTM stock price prediction algorithm with leading indicators. Multimedia Syst. 29, 1751–1770 (2021). https://doi.org/10.1007/s00530-021-00758-w
Zhao, J., Mao, X., Chen, L.: Speech emotion recognition using deep 1D & 2D CNN LSTM networks. Biomed. Signal Process. Control 47, 312–323 (2019). https://doi.org/10.1016/j.bspc.2018.08.035
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Urbinate, E., Itano, F., Del-Moral-Hernandez, E. (2023). CNN-LSTM Optimized by Genetic Algorithm in Time Series Forecasting: An Automatic Method to Use Deep Learning. In: Rutkowski, L., Scherer, R., Korytkowski, M., Pedrycz, W., Tadeusiewicz, R., Zurada, J.M. (eds) Artificial Intelligence and Soft Computing. ICAISC 2023. Lecture Notes in Computer Science(), vol 14125. Springer, Cham. https://doi.org/10.1007/978-3-031-42505-9_25
Download citation
DOI: https://doi.org/10.1007/978-3-031-42505-9_25
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-42504-2
Online ISBN: 978-3-031-42505-9
eBook Packages: Computer ScienceComputer Science (R0)