
(2) K Castaño

*corresponding author
AbstractAccurate stock price prediction remains a significant challenge in financial forecasting, particularly for emerging market stocks. This study investigates the efficacy of Long Short-Term Memory (LSTM) networks in forecasting the stock prices of Ecopetrol (EC), Colombia's largest oil and gas company. Using historical stock data from Yahoo Finance spanning September 18, 2018, to September 18, 2023, we developed an LSTM model to capture complex temporal patterns in the stock market. The model's performance was evaluated using a range of metrics including Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Percentage Error (MAPE), and Mean Absolute Scaled Error (MASE). The results demonstrate that the LSTM model achieves low MAE (0.2509652), MSE (0.11678666), and RMSE (0.34174064), alongside a MAPE of 2.071206, indicating high accuracy and reliability in predicting stock prices. Although the MASE of 1.125679 suggests that the model performs similarly to a naive forecasting approach, it still provides valuable insights into stock price movements. This study highlights the effectiveness of LSTM in handling sequential data and capturing intricate stock price patterns, while suggesting that future improvements could be made by optimizing the model further and integrating additional relevant features.
|
DOIhttps://doi.org/10.33292/ijarlit.v2i2.36 |
Article metrics10.33292/ijarlit.v2i2.36 Abstract views : 84 | PDF views : 44 |
Cite |
Full Text![]() |
References
P. Khuwaja, S. A. Khowaja, I. Khoso, and I. A. Lashari, “Prediction of stock movement using phase space reconstruction and extreme learning machines,” J. Exp. Theor. Artif. Intell., vol. 32, no. 1, pp. 59–79, 2020.
A. Doshi, A. Issa, P. Sachdeva, S. Rafati, and S. Rakshit, “Deep Stock Predictions,” Research Papers in Economics. 2020.
A. Kaur, M. Bhadauria, and M. Monika, “Heuristic approach for forecasting stock price using LSTM and technical indicators,” 2022, pp. 1–6. doi: 10.1109/AIST55798.2022.10064776.
B. J. Galli, “Enhanced Stock Market Prediction Using Hybrid LSTM Ensemble,” 2022, pp. 49–61. doi: 10.1007/978-981-16-9416-5_4.
I. Kalbandi, A. Jare, O. Kale, H. Borole, and S. Navsare, “Stock Market Prediction Using LSTM,” pp. 123–128, 2021, doi: 10.48175/IJARSCT-877.
S. Selvin, R. Vinayakumar, E. A. Gopalakrishnan, V. K. Menon, and K. P. Soman, “Stock price prediction using LSTM, RNN and CNN-sliding window model,” in 2017 international conference on advances in computing, communications and informatics (icacci), 2017, pp. 1643–1647.
J. Yin and Z. Chuanrui, “Stock price prediction method and system based on improved LSTM.” 2019.
L. Brown, “Predicting Stocks with LSTM-based DRNN and GAN.” 2022. doi: 10.31979/etd.fjsz-y926.
M. Hiransha, E. A. Gopalakrishnan, V. K. Menon, and K. P. Soman, “NSE Stock Market Prediction Using Deep-Learning Models,” Procedia Comput. Sci., vol. 132, no. Iccids, pp. 1351–1362, 2018, doi: 10.1016/j.procs.2018.05.050.
V. Deshpande, “Implementation of Long Short-Term Memory (LSTM) Networks for Stock Price Prediction,” Res. J. Comput. Syst. Eng., vol. 4, no. 2, pp. 60–72, 2023.
Q. Wu, J. Lu, and H. Zhang, “An improved LSTM stock price prediction model based on multiple basis function expansion and two-layer Bagging algorithm,” Highlights Business, Econ. Manag., vol. 10, pp. 227–235, 2023, doi: 10.54097/hbem.v10i.8043.
X. Liu, “A modified LSTM neural network model for stock price prediction based on auxiliary information and model average,” Highlights Sci. Eng. Technol., vol. 22, pp. 92–100, 2022, doi: 10.54097/hset.v22i.3296.
A. Lawi, H. Mesra, and S. B. H. Amir, “Implementation of Long Short-Term Memory and Gated Recurrent Units on grouped time-series data to predict stock prices accurately,” J. Big Data, vol. 9, no. 1, 2022, doi: 10.1186/s40537-022-00597-0.
A. W. Li and G. S. Bastos, “Stock Market Forecasting Using Deep Learning and Technical Analysis: A Systematic Review,” IEEE Access, vol. 8, pp. 185232–185242, 2020, doi: 10.1109/ACCESS.2020.3030226.
F. Kamalov, “Forecasting significant stock price changes using neural networks,” Neural Comput. Appl., vol. 32, no. 23, pp. 17655–17667, 2020, doi: 10.1007/S00521-020-04942-3.
G. Li, M. Xiao, and Y. Guo, “Application of Deep Learning in Stock Market Valuation Index Forecasting,” 2019. doi: 10.1109/ICSESS47205.2019.9040833.
I. K. Nti, A. F. Adekoya, and B. A. Weyori, “A novel multi-source information-fusion predictive framework based on deep neural networks for accuracy enhancement in stock market prediction,” J. Big Data, vol. 8, no. 1, pp. 1–28, 2021, doi: 10.1186/S40537-020-00400-Y.
J. Zhao, D. Zeng, S. Liang, H. Kang, and Q. Liu, “Prediction model for stock price trend based on recurrent neural network,” J. Ambient Intell. Humaniz. Comput., vol. 12, no. 1, pp. 745–753, 2021, doi: 10.1007/S12652-020-02057-0.
P. Mehta, S. Pandya, and K. Kotecha, “Harvesting social media sentiment analysis to enhance stock market prediction using deep learning,” PeerJ, vol. 7, 2021, doi: 10.7717/PEERJ-CS.476.
S. Garcia-Vega, X.-J. Zeng, and J. A. Keane, “Stock returns prediction using kernel adaptive filtering within a stock market interdependence approach,” Expert Syst. Appl., vol. 160, 2020, doi: 10.1016/J.ESWA.2020.113668.
A. Peivandizadeh et al., “Stock market prediction with transductive long short-term memory and social media sentiment analysis,” IEEE Access, doi: 10.1109/access.2024.3399548.
X. Zhang and Y. Tan, “Deep Stock Ranker: A LSTM Neural Network Model for Stock Selection,” 2018, pp. 614–623. doi: 10.1007/978-3-319-93803-5_58.
Z. Ying et al., “Predicting stock market trends with self-supervised learning,” Neurocomputing, 2023, doi: 10.1016/j.neucom.2023.127033.
Z. An, Y. Wu, F. Hao, Y. Chen, and X. He, “A novel hierarchical feature selection with local shuffling and models reweighting for stock price forecasting,” Expert Syst. Appl., 2024, doi: 10.1016/j.eswa.2024.123482.
Refbacks
- There are currently no refbacks.