IDEAS home Printed from https://ideas.repec.org/a/kap/apfinm/v31y2024i2d10.1007_s10690-023-09412-z.html
   My bibliography  Save this article

A CNN-LSTM Stock Prediction Model Based on Genetic Algorithm Optimization

Author

Listed:
  • Heon Baek

    (Sogang University)

Abstract

Predicting the stock market remains a difficult field because of its inherent volatility. With the development of artificial intelligence, research using deep learning for stock price prediction is increasing, but the importance of applying a prediction system consisting of preparing verified data and selecting an optimal feature set is lacking. Accordingly, this study proposes a GA optimization-based deep learning technique (CNN-LSTM) that predicts the next day's closing price based on an artificial intelligence model to more accurately predict future stock values. In this study, CNN extracts features related to stock price prediction, and LSTM reflects the long-term history process of input time series data. Basic stock price data and technical indicator data for the last 20 days prepare a data set to predict the next day's closing price, and then a CNN-LSTM hybrid model is set. In order to apply the optimal parameters of this model, GA was used in combination. The Korea Stock Index (KOSPI) data was selected for model evaluation. Experimental results showed that GA-based CNN-LSTM has higher prediction accuracy than single CNN, LSTM models, and CNN-LSTM model. This study helps investors and policy makers who want to use stock price fluctuations as more accurate predictive data using deep learning models.

Suggested Citation

  • Heon Baek, 2024. "A CNN-LSTM Stock Prediction Model Based on Genetic Algorithm Optimization," Asia-Pacific Financial Markets, Springer;Japanese Association of Financial Economics and Engineering, vol. 31(2), pages 205-220, June.
  • Handle: RePEc:kap:apfinm:v:31:y:2024:i:2:d:10.1007_s10690-023-09412-z
    DOI: 10.1007/s10690-023-09412-z
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10690-023-09412-z
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10690-023-09412-z?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Hyejung Chung & Kyung-shik Shin, 2018. "Genetic Algorithm-Optimized Long Short-Term Memory Network for Stock Market Prediction," Sustainability, MDPI, vol. 10(10), pages 1-18, October.
    2. Baresa, Suzana & Bogdan , Sinisa & Ivanovic, Zoran, 2013. "Strategy Of Stock Valuation By Fundamental Analysis," UTMS Journal of Economics, University of Tourism and Management, Skopje, Macedonia, vol. 4(1), pages 45-51.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ivanovski Zoran & Narasanov Zoran & Ivanovska Nadica, 2018. "Performance Evaluation of Stocks’ Valuation Models at MSE," Economic and Regional Studies / Studia Ekonomiczne i Regionalne, Sciendo, vol. 11(2), pages 7-23, June.
    2. Zhou, Zhongbao & Gao, Meng & Liu, Qing & Xiao, Helu, 2020. "Forecasting stock price movements with multiple data sources: Evidence from stock market in China," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 542(C).
    3. Wang, Yijun & Andreeva, Galina & Martin-Barragan, Belen, 2023. "Machine learning approaches to forecasting cryptocurrency volatility: Considering internal and external determinants," International Review of Financial Analysis, Elsevier, vol. 90(C).
    4. Ehsan Hoseinzade & Saman Haratizadeh & Arash Khoeini, 2019. "U-CNNpred: A Universal CNN-based Predictor for Stock Markets," Papers 1911.12540, arXiv.org.
    5. Süreyya Özöğür Akyüz & Pınar Karadayı Ataş & Aymane Benkhaldoun, 2024. "Predicting stock market by sentiment analysis and deep learning," Operations Research and Decisions, Wroclaw University of Science and Technology, Faculty of Management, vol. 34(2), pages 85-107.
    6. Kumar S. Chandar & Hitesh Punjabi, 2021. "Cat Swarm Optimization Algorithm Tuned Multilayer Perceptron for Stock Price Prediction," International Journal of Web-Based Learning and Teaching Technologies (IJWLTT), IGI Global, vol. 17(7), pages 1-15, November.
    7. Se-Hak Chun & Jae-Won Jang, 2022. "A New Trend Pattern-Matching Method of Interactive Case-Based Reasoning for Stock Price Predictions," Sustainability, MDPI, vol. 14(3), pages 1-15, January.
    8. Jaime Alberto Gómez Vilchis & Federico Hernández Álvarez & Luis Ignacio Román de la Sancha, 2021. "Autómata Evolutivo (AE) para el mercado accionario usando Martingalas y un Algoritmo Genético," Remef - Revista Mexicana de Economía y Finanzas Nueva Época REMEF (The Mexican Journal of Economics and Finance), Instituto Mexicano de Ejecutivos de Finanzas, IMEF, vol. 16(4), pages 1-22, Octubre -.
    9. Teddy Lazebnik & Tzach Fleischer & Amit Yaniv-Rosenfeld, 2023. "Benchmarking Biologically-Inspired Automatic Machine Learning for Economic Tasks," Sustainability, MDPI, vol. 15(14), pages 1-9, July.
    10. Michels, Rouven & Ötting, Marius & Langrock, Roland, 2023. "Bettors’ reaction to match dynamics: Evidence from in-game betting," European Journal of Operational Research, Elsevier, vol. 310(3), pages 1118-1127.
    11. Kamphol Panyagometh, 2017. "Implementation of Reinganum's Investment Strategy in Long Term Equity Fund in the Stock Exchange of Thailand," International Journal of Economics and Financial Issues, Econjournals, vol. 7(2), pages 492-499.
    12. Matej Črepinšek & Shih-Hsi Liu & Marjan Mernik & Miha Ravber, 2019. "Long Term Memory Assistance for Evolutionary Algorithms," Mathematics, MDPI, vol. 7(11), pages 1-25, November.
    13. Chao Liu & Fengfeng Gao & Mengwan Zhang & Yuanrui Li & Cun Qian, 2024. "Reference Vector-Based Multiobjective Clustering Ensemble Approach for Time Series Forecasting," Computational Economics, Springer;Society for Computational Economics, vol. 64(1), pages 181-210, July.
    14. Liping Wang & Jiawei Li & Lifan Zhao & Zhizhuo Kou & Xiaohan Wang & Xinyi Zhu & Hao Wang & Yanyan Shen & Lei Chen, 2023. "Methods for Acquiring and Incorporating Knowledge into Stock Price Prediction: A Survey," Papers 2308.04947, arXiv.org.
    15. Zexin Hu & Yiqi Zhao & Matloob Khushi, 2021. "A Survey of Forex and Stock Price Prediction Using Deep Learning," Papers 2103.09750, arXiv.org.
    16. Kyoung-jae Kim & Kichun Lee & Hyunchul Ahn, 2018. "Predicting Corporate Financial Sustainability Using Novel Business Analytics," Sustainability, MDPI, vol. 11(1), pages 1-17, December.
    17. Zhou, Yanting & Wang, Yanan & Wang, Kai & Kang, Le & Peng, Fei & Wang, Licheng & Pang, Jinbo, 2020. "Hybrid genetic algorithm method for efficient and robust evaluation of remaining useful life of supercapacitors," Applied Energy, Elsevier, vol. 260(C).
    18. Li-Chen Cheng & Yu-Hsiang Huang & Ming-Hua Hsieh & Mu-En Wu, 2021. "A Novel Trading Strategy Framework Based on Reinforcement Deep Learning for Financial Market Predictions," Mathematics, MDPI, vol. 9(23), pages 1-16, November.
    19. Hsien-Ming Chou, 2024. "Predicting Turnover Rates for Short-Term Stock Index Investments Using Artificial Intelligence and Empirical Analysis," Advances in Management and Applied Economics, SCIENPRESS Ltd, vol. 14(6), pages 1-18.
    20. Shubham Ekapure & Nuruddin Jiruwala & Sohan Patnaik & Indranil SenGupta, 2021. "A data-science-driven short-term analysis of Amazon, Apple, Google, and Microsoft stocks," Papers 2107.14695, arXiv.org.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:kap:apfinm:v:31:y:2024:i:2:d:10.1007_s10690-023-09412-z. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.