Nothing Special   »   [go: up one dir, main page]

skip to main content
research-article

Combining LSTM and CNN methods and fundamental analysis for stock price trend prediction

Published: 12 October 2022 Publication History

Abstract

Stock market trend prediction has always been a major challenge for investors. In this paper, the combination of Convolutional Neural Network and long short-term memory methods, as well as fundamental analysis components such as P/E ratio, profitability and the number of company transactions have been used to increase the performance and reduce the model error in stock price trend prediction. To evaluate the model, the parameters of evaluating mean absolute error and mean absolute percentage error in four groups of financial, petroleum, basic metals and non-metallic minerals were employed, the results of which indicated an increase in the performance and a reduction in error. According to the results, in the financial group, we obtained 0.49 for the mean absolute percentage error and 4.30 the for mean absolute error. In petroleum group, mean absolute percentage error is 0.33 and mean absolute error equals 3.64. In basic metals group, mean absolute percentage error is 0.29 and mean absolute error equals 2.39. Finally, in non-metallic minerals group, we achieved 0.73 for mean absolute percentage error and 6.16 for mean absolute error. The values obtained in the proposed method show the effect of the model on the performance and prediction of error.

References

[1]
Agarap AF (2018) Deep learning using rectified linear units (relu). arXiv preprint arXiv:1803.08375
[2]
Ariyo AA, Adewumi AO, Ayo CK (2014) "Stock price prediction using the ARIMA model," in 2014 UKSim-AMSS 16th International Conference on Computer Modelling and Simulation, IEEE, pp. 106–112
[3]
Baek Y and Kim HY ModAugNet: a new forecasting framework for stock market index value with an overfitting prevention LSTM module and a prediction LSTM module Expert Syst Appl 2018 113 457-480
[4]
Bahi M, Batouche M (2018) "Deep learning for ligand-based virtual screening in drug discovery," in 2018 3rd International Conference on Pattern Analysis and Intelligent Systems (PAIS), IEEE, pp. 1–5
[5]
Baldo A, Cuzzocrea A, Fadda E, Bringas PG (2021) "Financial forecasting via deep-learning and machine-learning tools over two-dimensional objects transformed from time series," in International conference on hybrid artificial intelligence systems, Springer, pp. 550–563
[6]
Behera RK, Das S, Rath SK, Misra S, and Damasevicius R Comparative study of real time machine learning models for stock prediction through streaming data J Univ Comput Sci 2020 26 9 1128-1147
[7]
Bhuvaneshwari M, Kanaga EGM (2021) "Convolutional Neural Network for Addiction Detection using Improved Activation Function," in 2021 5th International Conference on Computing Methodologies and Communication (ICCMC), IEEE, pp. 996–1000
[8]
Budiharto W Data science approach to stock prices forecasting in Indonesia during Covid-19 using Long short-term memory (LSTM) J Big Data 2021 8 1 1-9
[9]
Cai Q, Zhang D, Wu B, Leung SC (2013) A novel stock forecasting model based on fuzzy time series and genetic algorithm. Procedia Comput Science 18:1155–1162
[10]
Chen Y-J, Chen Y-M, and Lu CL Enhancement of stock market forecasting using an improved fundamental analysis-based approach Soft Comput 2017 21 13 3735-3757
[11]
Chen Y et al. (2021) "Stock price forecast based on CNN-BiLSTM-ECA model," Sci Program, vol. 2021
[12]
Chen K, Franko K, Sang R (2021) "Structured Model Pruning of Convolutional Networks on Tensor Processing Units," arXiv preprint arXiv:2107.04191
[13]
Chung H and Shin K-S Genetic algorithm-optimized long short-term memory network for stock market prediction Sustain 2018 10 10 3765
[14]
Chung H and Shin K-S Genetic algorithm-optimized multi-channel convolutional neural network for stock market prediction Neural Comput & Applic 2020 32 12 7897-7914
[15]
Coyle EJ and Lin J-H Stack filters and the mean absolute error criterion IEEE Trans Acoust Speech Signal Process 1988 36 8 1244-1254
[16]
Das SP and Padhy S A novel hybrid model using teaching–learning-based optimization and a support vector machine for commodity futures index forecasting Int J Mach Learn Cybern 2018 9 1 97-111
[17]
DeMark TR (1994) The new science of technical analysis. John Wiley & Sons, pp 1–243
[18]
Fischer T and Krauss C Deep learning with long short-term memory networks for financial market predictions Eur J Oper Res 2018 270 2 654-669
[19]
Ganster H, Pinz P, Rohrer R, Wildling E, Binder M, and Kittler H Automated melanoma recognition IEEE Trans Med Imaging 2001 20 3 233-239
[20]
Kim K-J and Han I Genetic algorithms approach to feature discretization in artificial neural networks for the prediction of stock price index Expert Syst Appl 2000 19 2 125-132
[21]
Hiransha M, Gopalakrishnan EA, Menon VK, and Soman K NSE stock market prediction using deep-learning models Procedia Comput Sci 2018 132 1351-1362
[22]
Hoseinzade E and Haratizadeh S CNNpred: CNN-based stock market prediction using a diverse set of variables Expert Syst Appl 2019 129 273-285
[23]
Lin Z Modelling and forecasting the stock market volatility of SSE composite index using GARCH models Futur Gener Comput Syst 2018 79 960-972
[24]
Liu Z A method of SVM with normalization in intrusion detection Procedia Environ Sci 2011 11 256-262
[25]
Livieris IE, Kotsilieris T, Stavroyiannis S, Pintelas P (2020) Forecasting stock price index movement using a constrained deep neural network training algorithm. Intell Decis Technol 14(3):313–323
[26]
Long J, Chen Z, He W, Wu T, and Ren J An integrated framework of deep learning and knowledge graph for prediction of stock price trend: an application in Chinese stock exchange market Appl Soft Comput 2020 91 106205
[27]
Merh N, Saxena VP, Pardasani KR (2010) A comparison between hybrid approaches of ANN and ARIMA for Indian stock trend forecasting. Bus Intell  J 3(2):23–43
[28]
Moghar A and Hamiche M Stock market prediction using LSTM recurrent neural network Procedia Comput Sci 2020 170 1168-1173
[29]
Nabipour M, Nayyeri P, Jabani H, Mosavi A, and Salwana E Deep learning for stock market prediction Entropy 2020 22 8 840
[30]
Olah C (2015) "Understanding lstm networks,"
[31]
Patel J, Shah S, Thakkar P, Kotecha K (2015) Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques. Expert Syst Appl 42(1):259–268
[32]
Pawar K, Jalem RS, Tiwari V (2019) "Stock market price prediction using LSTM RNN," in emerging trends in expert applications and security: Springer, pp. 493–503
[33]
Qian B and Rasheed K Stock market prediction with multiple classifiers Appl Intell 2007 26 1 25-33
[34]
Rostami M, Forouzandeh S, Berahmand K, and Soltani M Integration of multi-objective PSO based feature selection and node centrality for medical datasets Genomics 2020 112 6 4370-4384
[35]
Rostami M, Berahmand K, Forouzandeh S (2020) A novel method of constrained feature selection by the measurement of pairwise constraints uncertainty. J Big Data 7(1):1–21
[36]
Rostami M, Berahmand K, Forouzandeh S (2021) A novel community detection based genetic algorithm for feature selection. J Big Data 8(1):1–27
[37]
Rostami M, Berahmand K, Nasiri E, and Forouzande S Review of swarm intelligence-based feature selection methods Eng Appl Artif Intell 2021 100 104210
[38]
Saud AS, Shakya S (2020) Analysis of look back period for stock price prediction with RNN variants: a case study on banking sector of NEPSE. Procedia Comput Sci 167:788–798
[39]
Selvin S, Vinayakumar R, Gopalakrishnan E, Menon VK, Soman K (2017) Stock price prediction using LSTM, RNN and CNN-sliding window model. In: 2017 international conference on advances in computing, communications and informatics (icacci). IEEE, pp 1643–1647
[40]
Sharma S, Sharma S, Athaiya A (2017) Activation functions in neural networks. Towards Data Science 6(12):310–316
[41]
Sim HS, Kim HI, Ahn JJ (2019) Is deep learning for image recognition applicable to stock market prediction? Complexity 2019. 
[42]
Thakkar A and Chaudhari K CREST: cross-reference to exchange-based stock trend prediction using long short-term memory Procedia Comput Sci 2020 167 616-625
[43]
Tsantekidis A, Passalis N, Tefas A, Kanniainen J, Gabbouj M, Iosifidis A (2017) Forecasting stock prices from the limit order book using convolutional neural networks. In: 2017 IEEE 19th conference on business informatics (CBI), vol. 1. IEEE, pp 7–12
[44]
Valueva MV, Nagornov N, Lyakhov PA, Valuev GV, and Chervyakov NI Application of the residue number system to reduce hardware costs of the convolutional neural network implementation Math Comput Simul 2020 177 232-243
[45]
Wang W, Gang J (2018) "Application of convolutional neural network in natural language processing," in 2018 International Conference on Information Systems and Computer Aided Education (ICISCAE), IEEE, pp. 64–70
[46]
Wong WK, Manzur M, Chew BK (2003) How rewarding is technical analysis? Evidence from Singapore stock market. Appl Financial Econ 13(7):543–551
[47]
Wu JM-T, Sun L, Srivastava G, Lin JC-W (2021) A novel synergetic lstm-ga stock trading suggestion system in internet of things. Mob Inf Syst 2021
[48]
Yadav A, Jha C, and Sharan A Optimizing LSTM for time series prediction in Indian stock market Procedia Comput Sci 2020 167 2091-2100
[49]
Zhang Y and Wu L Stock market prediction of S&P 500 via combination of improved BCO approach and BP neural network Expert Syst Appl 2009 36 5 8849-8854
[50]
Zhou X, Pan Z, Hu G, Tang S, Zhao C (2018) "Stock market prediction on high-frequency data using generative adversarial nets," Math Probl Eng, vol. 2018

Cited By

View all
  • (2024)Compare the Accuracy of the LSTM Algorithm and the Linear Regression Algorithm in Predicting Stock PricesProceedings of the 2024 Guangdong-Hong Kong-Macao Greater Bay Area International Conference on Digital Economy and Artificial Intelligence10.1145/3675417.3675583(994-999)Online publication date: 19-Jan-2024
  • (2024)Enhanced Multi-variate Time Series Prediction Through Statistical-Deep Learning Integration: The VAR-Stacked LSTM ModelSN Computer Science10.1007/s42979-024-02950-x5:5Online publication date: 23-May-2024
  • (2023)A novel hybrid model for stock price forecasting integrating Encoder Forest and InformerExpert Systems with Applications: An International Journal10.1016/j.eswa.2023.121080234:COnline publication date: 30-Dec-2023

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Multimedia Tools and Applications
Multimedia Tools and Applications  Volume 82, Issue 12
May 2023
1535 pages

Publisher

Kluwer Academic Publishers

United States

Publication History

Published: 12 October 2022
Accepted: 13 September 2022
Revision received: 11 January 2022
Received: 22 August 2021

Author Tags

  1. Long short term memory
  2. Convolutional neural network
  3. Stock trend Price
  4. Stock exchange
  5. Deep learning
  6. Fundamental analysis

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 14 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Compare the Accuracy of the LSTM Algorithm and the Linear Regression Algorithm in Predicting Stock PricesProceedings of the 2024 Guangdong-Hong Kong-Macao Greater Bay Area International Conference on Digital Economy and Artificial Intelligence10.1145/3675417.3675583(994-999)Online publication date: 19-Jan-2024
  • (2024)Enhanced Multi-variate Time Series Prediction Through Statistical-Deep Learning Integration: The VAR-Stacked LSTM ModelSN Computer Science10.1007/s42979-024-02950-x5:5Online publication date: 23-May-2024
  • (2023)A novel hybrid model for stock price forecasting integrating Encoder Forest and InformerExpert Systems with Applications: An International Journal10.1016/j.eswa.2023.121080234:COnline publication date: 30-Dec-2023

View Options

View options

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media