IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0212320.html
   My bibliography  Save this article

Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data

Author

Listed:
  • Taewook Kim
  • Ha Young Kim

Abstract

Forecasting stock prices plays an important role in setting a trading strategy or determining the appropriate timing for buying or selling a stock. We propose a model, called the feature fusion long short-term memory-convolutional neural network (LSTM-CNN) model, that combines features learned from different representations of the same data, namely, stock time series and stock chart images, to predict stock prices. The proposed model is composed of LSTM and a CNN, which are utilized for extracting temporal features and image features. We measure the performance of the proposed model relative to those of single models (CNN and LSTM) using SPDR S&P 500 ETF data. Our feature fusion LSTM-CNN model outperforms the single models in predicting stock prices. In addition, we discover that a candlestick chart is the most appropriate stock chart image to use to forecast stock prices. Thus, this study shows that prediction error can be efficiently reduced by using a combination of temporal and image features from the same data rather than using these features separately.

Suggested Citation

  • Taewook Kim & Ha Young Kim, 2019. "Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data," PLOS ONE, Public Library of Science, vol. 14(2), pages 1-23, February.
  • Handle: RePEc:plo:pone00:0212320
    DOI: 10.1371/journal.pone.0212320
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0212320
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0212320&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0212320?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
    ---><---

    References listed on IDEAS

    as
    1. Neely, Christopher & Weller, Paul & Dittmar, Rob, 1997. "Is Technical Analysis in the Foreign Exchange Market Profitable? A Genetic Programming Approach," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 32(4), pages 405-426, December.
    2. Chen, Joseph & Hong, Harrison & Stein, Jeremy C., 2001. "Forecasting crashes: trading volume, past returns, and conditional skewness in stock prices," Journal of Financial Economics, Elsevier, vol. 61(3), pages 345-381, September.
    3. Wei Bao & Jun Yue & Yulei Rao, 2017. "A deep learning framework for financial time series using stacked autoencoders and long-short term memory," PLOS ONE, Public Library of Science, vol. 12(7), pages 1-24, July.
    4. Keim, Donald B. & Stambaugh, Robert F., 1986. "Predicting returns in the stock and bond markets," Journal of Financial Economics, Elsevier, vol. 17(2), pages 357-390, December.
    5. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    6. Taylor, Mark P. & Allen, Helen, 1992. "The use of technical analysis in the foreign exchange market," Journal of International Money and Finance, Elsevier, vol. 11(3), pages 304-314, June.
    7. Blume, Lawrence & Easley, David & O'Hara, Maureen, 1994. "Market Statistics and Technical Analysis: The Role of Volume," Journal of Finance, American Finance Association, vol. 49(1), pages 153-181, March.
    8. Fama, Eugene F & French, Kenneth R, 1992. "The Cross-Section of Expected Stock Returns," Journal of Finance, American Finance Association, vol. 47(2), pages 427-465, June.
    9. Thierry Jeantheau, 2004. "A link between complete models with stochastic volatility and ARCH models," Finance and Stochastics, Springer, vol. 8(1), pages 111-131, January.
    10. French, Kenneth R. & Schwert, G. William & Stambaugh, Robert F., 1987. "Expected stock returns and volatility," Journal of Financial Economics, Elsevier, vol. 19(1), pages 3-29, September.
    11. Meese, Richard A. & Rogoff, Kenneth, 1983. "Empirical exchange rate models of the seventies : Do they fit out of sample?," Journal of International Economics, Elsevier, vol. 14(1-2), pages 3-24, February.
    12. Zhiqiang Guo & Huaiqing Wang & Quan Liu & Jie Yang, 2014. "A Feature Fusion Based Forecasting Model for Financial Time Series," PLOS ONE, Public Library of Science, vol. 9(6), pages 1-13, June.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Huang, Wenyang & Wang, Huiwen & Qin, Haotong & Wei, Yigang & Chevallier, Julien, 2022. "Convolutional neural network forecasting of European Union allowances futures using a novel unconstrained transformation method," Energy Economics, Elsevier, vol. 110(C).
    2. Xiaodong Zhang & Suhui Liu & Xin Zheng, 2021. "Stock Price Movement Prediction Based on a Deep Factorization Machine and the Attention Mechanism," Mathematics, MDPI, vol. 9(8), pages 1-21, April.
    3. Carlos A. Reyes Pérez & Miguel E. Iglesias Martínez & Jose Guerra-Carmenate & Humberto Michinel Álvarez & Eduardo Balvis & Fernando Giménez Palomares & Pedro Fernández de Córdoba, 2023. "Indoor Air Quality Analysis Using Recurrent Neural Networks: A Case Study of Environmental Variables," Mathematics, MDPI, vol. 11(24), pages 1-17, December.
    4. Yanyan Cui & Lixin Liu, 2022. "Investor sentiment-aware prediction model for P2P lending indicators based on LSTM," PLOS ONE, Public Library of Science, vol. 17(1), pages 1-17, January.
    5. Li, Houjian & Zhou, Deheng & Hu, Jiayu & Li, Junwen & Su, Mengying & Guo, Lili, 2023. "Forecasting the realized volatility of Energy Stock Market: A multimodel comparison," The North American Journal of Economics and Finance, Elsevier, vol. 66(C).
    6. Supriya Bajpai, 2021. "Application of deep reinforcement learning for Indian stock trading automation," Papers 2106.16088, arXiv.org.
    7. Akash Doshi & Alexander Issa & Puneet Sachdeva & Sina Rafati & Somnath Rakshit, 2020. "Deep Stock Predictions," Papers 2006.04992, arXiv.org.
    8. Rui Zhang & Zhen Guo & Yujie Meng & Songwang Wang & Shaoqiong Li & Ran Niu & Yu Wang & Qing Guo & Yonghong Li, 2021. "Comparison of ARIMA and LSTM in Forecasting the Incidence of HFMD Combined and Uncombined with Exogenous Meteorological Variables in Ningbo, China," IJERPH, MDPI, vol. 18(11), pages 1-14, June.
    9. Javier Oliver Muncharaz, 2020. "Comparing classic time series models and the LSTM recurrent neural network: An application to S&P 500 stocks [Comparativa de los models clásicos de series temporales con la red neuronal recurrente ," Post-Print hal-03149342, HAL.
    10. Singh, Sriramjee, 2020. "Predicting CBOT Corn Futures Prices by applying ML methods on Weather Data," 2020 Annual Meeting, July 26-28, Kansas City, Missouri 304595, Agricultural and Applied Economics Association.
    11. Andrew Brim & Nicholas S Flann, 2022. "Deep reinforcement learning stock market trading, utilizing a CNN with candlestick images," PLOS ONE, Public Library of Science, vol. 17(2), pages 1-25, February.
    12. Shalini Sharma & Angshul Majumdar & Emilie Chouzenoux & Victor Elvira, 2023. "Deep State-Space Model for Predicting Cryptocurrency Price," Papers 2311.14731, arXiv.org.
    13. Ling Qi & Matloob Khushi & Josiah Poon, 2021. "Event-Driven LSTM For Forex Price Prediction," Papers 2102.01499, arXiv.org.
    14. Catalin Stoean & Wiesław Paja & Ruxandra Stoean & Adrian Sandita, 2019. "Deep architectures for long-term stock price prediction with a heuristic-based strategy for trading simulations," PLOS ONE, Public Library of Science, vol. 14(10), pages 1-19, October.
    15. Hakan Gunduz, 2021. "An efficient stock market prediction model using hybrid feature reduction method based on variational autoencoders and recursive feature elimination," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-24, December.
    16. Antonello Rosato & Rodolfo Araneo & Amedeo Andreotti & Federico Succetti & Massimo Panella, 2021. "2-D Convolutional Deep Neural Network for the Multivariate Prediction of Photovoltaic Time Series," Energies, MDPI, vol. 14(9), pages 1-18, April.
    17. Simon Liebermann & Jung-Sup Um & YoungSeok Hwang & Stephan Schlüter, 2021. "Performance Evaluation of Neural Network-Based Short-Term Solar Irradiation Forecasts," Energies, MDPI, vol. 14(11), pages 1-21, May.
    18. Tashreef Muhammad & Tahsin Aziz & Mohammad Shafiul Alam, 2023. "Utilizing Technical Data to Discover Similar Companies in Dhaka Stock Exchange," Papers 2301.04455, arXiv.org.
    19. Nestoras Chalkidis & Rahul Savani, 2021. "Trading via Selective Classification," Papers 2110.14914, arXiv.org, revised Oct 2021.
    20. Gwiman Bak & Youngchul Bae, 2020. "Predicting the Amount of Electric Power Transaction Using Deep Learning Methods," Energies, MDPI, vol. 13(24), pages 1-30, December.
    21. Jun Zhang & Lan Li & Wei Chen, 2021. "Predicting Stock Price Using Two-Stage Machine Learning Techniques," Computational Economics, Springer;Society for Computational Economics, vol. 57(4), pages 1237-1261, April.
    22. Mimansa Rana & Nanxiang Mao & Ming Ao & Xiaohui Wu & Poning Liang & Matloob Khushi, 2021. "Clustering and attention model based for intelligent trading," Papers 2107.06782, arXiv.org, revised Aug 2021.
    23. Lee, Donghyun & Kim, Mingyu & Lee, Beomhui & Chae, Sangwon & Kwon, Sungjun & Kang, Sungwon, 2022. "Integrated explainable deep learning prediction of harmful algal blooms," Technological Forecasting and Social Change, Elsevier, vol. 185(C).
    24. Jireh Yi-Le Chan & Steven Mun Hong Leow & Khean Thye Bea & Wai Khuen Cheng & Seuk Wai Phoong & Zeng-Wei Hong & Yen-Lin Chen, 2022. "Mitigating the Multicollinearity Problem and Its Machine Learning Approach: A Review," Mathematics, MDPI, vol. 10(8), pages 1-17, April.

    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. Linnenluecke, Martina K. & Chen, Xiaoyan & Ling, Xin & Smith, Tom & Zhu, Yushu, 2017. "Research in finance: A review of influential publications and a research agenda," Pacific-Basin Finance Journal, Elsevier, vol. 43(C), pages 188-199.
    2. Stefanescu, Razvan & Dumitriu, Ramona, 2015. "Conţinutul analizei seriilor de timp financiare [The Essentials of the Analysis of Financial Time Series]," MPRA Paper 67175, University Library of Munich, Germany.
    3. Bertrand Maillet & Thierry Michel, 2000. "Further insights on the puzzle of technical analysis profitability," The European Journal of Finance, Taylor & Francis Journals, vol. 6(2), pages 196-224.
    4. Adam Karp & Gary Van Vuuren, 2019. "Investment Implications Of The Fractal Market Hypothesis," Annals of Financial Economics (AFE), World Scientific Publishing Co. Pte. Ltd., vol. 14(01), pages 1-27, March.
    5. Taylor, Mark & Hsu, Po-Hsuan, 2014. "Forty Years, Thirty Currencies and 21,000 Trading Rules: A Large-scale, Data-Snooping Robust Analysis of Technical Trading in t," CEPR Discussion Papers 10018, C.E.P.R. Discussion Papers.
    6. Lukas Menkhoff & Mark P. Taylor, 2007. "The Obstinate Passion of Foreign Exchange Professionals: Technical Analysis," Journal of Economic Literature, American Economic Association, vol. 45(4), pages 936-972, December.
    7. Chiarella, Carl & He, Xue-Zhong & Hommes, Cars, 2006. "A dynamic analysis of moving average rules," Journal of Economic Dynamics and Control, Elsevier, vol. 30(9-10), pages 1729-1753.
    8. Kwon, Ki-Yeol & Kish, Richard J., 2002. "A comparative study of technical trading strategies and return predictability: an extension of Brock, Lakonishok, and LeBaron (1992) using NYSE and NASDAQ indices," The Quarterly Review of Economics and Finance, Elsevier, vol. 42(3), pages 611-631.
    9. Bong-Chan, Kho, 1996. "Time-varying risk premia, volatility, and technical trading rule profits: Evidence from foreign currency futures markets," Journal of Financial Economics, Elsevier, vol. 41(2), pages 249-290, June.
    10. Yochanan Shachmurove & Uri BenZion & Paul Klein & Joseph Yagil, 2001. "A Moving Average Comparison of the Tel-Aviv 25 and S&P 500 Stock Indices," Penn CARESS Working Papers 4731f3394c43bebf4d3191c81, Penn Economics Department.
    11. Fernando Rubio, 2005. "Eficiencia De Mercado, Administracion De Carteras De Fondos Y Behavioural Finance," Finance 0503028, University Library of Munich, Germany, revised 23 Jul 2005.
    12. Foort Hamelink, 2001. "Nonlinear analysis for forecasting currencies: are they useful to the portfolio manager?," The European Journal of Finance, Taylor & Francis Journals, vol. 7(4), pages 335-355.
    13. David McMillan, 2004. "Non-linear predictability of UK stock market returns," Money Macro and Finance (MMF) Research Group Conference 2003 63, Money Macro and Finance Research Group.
    14. Kadilli, Anjeza, 2015. "Predictability of stock returns of financial companies and the role of investor sentiment: A multi-country analysis," Journal of Financial Stability, Elsevier, vol. 21(C), pages 26-45.
    15. Cheol‐Ho Park & Scott H. Irwin, 2007. "What Do We Know About The Profitability Of Technical Analysis?," Journal of Economic Surveys, Wiley Blackwell, vol. 21(4), pages 786-826, September.
    16. Taufiq Choudhry & Ranadeva Jayasekera, 2015. "Level of efficiency in the UK equity market: empirical study of the effects of the global financial crisis," Review of Quantitative Finance and Accounting, Springer, vol. 44(2), pages 213-242, February.
    17. Stephan Schulmeister, 2000. "Technical Analysis and Exchange Rate Dynamics," WIFO Studies, WIFO, number 25857, February.
    18. Trifan, Emanuela, 2004. "Entscheidungsregeln und ihr Einfluss auf den Aktienkurs," Darmstadt Discussion Papers in Economics 131, Darmstadt University of Technology, Department of Law and Economics.
    19. Meredith Beechey & David Gruen & James Vickery, 2000. "The Efficient Market Hypothesis: A Survey," RBA Research Discussion Papers rdp2000-01, Reserve Bank of Australia.
    20. Sid Ghoshal & Stephen J. Roberts, 2018. "Thresholded ConvNet Ensembles: Neural Networks for Technical Forecasting," Papers 1807.03192, arXiv.org, revised Jul 2018.

    More about this item

    Statistics

    Access and download statistics

    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:plo:pone00:0212320. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.