Research Article

Optimizing Stock Price Prediction Based on Triangular Topology Aggregation Optimizer Using Long Short-term Memory Network

Yulin Jin*
Department of Economics, University of California, Berkeley, State of California, Berkeley, 94704, USA

* Corresponding author: [email protected]

Abstract

Stock price prediction has always been a complex and challenging task in the financial field. This article proposes a novel method to optimize long short-term memory networks (LSTM) through a triangular topology aggregation optimizer, in order to improve the accuracy of stock price prediction. This method combines deep learning and advanced optimization techniques, aiming to provide more effective support for investment decisions in the stock market. We first introduced an optimized LSTM model and used a dataset for predicting stock prices. By observing the changes in loss between the training and validation sets, we found that the loss value of the training set gradually decreased from 0.04 to below 0.005 and approached convergence. Meanwhile, the loss value of the validation set remained below 0.005. This indicates that the performance of this model in stock price prediction is quite outstanding during both the training and validation phases. After analyzing the test set, the results showed that the predicted stock prices of this model were very close to the actual values, and could accurately predict market trends both numerically and trendwise. In addition, the MSE (mean square error) results obtained through the evaluation indicators of the model show that the MSE of the training set is 1.938, the MSE of the testing set is 1.944, and the RMSE (root mean square error) of the training set is 1.392, and the RMSE of the validation set is 1.394. These results indicate that the evaluation metrics of the training set and the test set are not significantly different, further proving that the model has strong generalization ability and can continue to demonstrate good predictive performance on new datasets. In summary, this article proposes an effective stock price prediction method by combining a triangular topology aggregation optimizer with an LSTM model, and verifies its efficiency and practicality in the training, validation, and testing stages. This type of research not only provides new ideas for analyzing the stock market, but also provides strong support for investors to make more reasonable decisions in a dynamic market environment.

Keywords: Triangle topology aggregation optimizer; LSTM; Stock price
Published: February 21, 2025
DOI: 10.54254/2755-2721/2025.20999
Volume: ACE Vol.136
pp. 27-34
Download PDF

References

  1. Jiyang C ,Sunil T ,Djebbouri K , et al.Forecasting Bitcoin prices using artificial intelligence: Combination of ML, SARIMA, and Facebook Prophet models[J].Technological Forecasting Social Change,2024,198122938-.
  2. Harish K ,Sudhir S ,P. N , et al.A two level ensemble classification approach to forecast bitcoin prices[J].Kybernetes,2023,52(11):5041-5067.
  3. Ruchi G ,E. J N .Metaheuristic Assisted Hybrid Classifier for Bitcoin Price Prediction[J].Cybernetics and Systems,2023,54(7):1037-1061.
  4. Tyson M .Use TensorFlow to predict Bitcoin prices[J].InfoWorld.com,2023.
  5. Sina F .Designing a forecasting assistant of the Bitcoin price based on deep learning using market sentiment analysis and multiple feature extraction[J].Soft Computing,2023,27(24):18803-18827.
  6. Moinak M ,B. D V ,Michael F .Quantifying the asymmetric information flow between Bitcoin prices and electricity consumption[J].Finance Research Letters,2023,57.
  7. Xiangling W ,Shusheng D .The impact of the Bitcoin price on carbon neutrality: Evidence from futures markets[J].Finance Research Letters,2023,56.
  8. W. J G ,Sami J B ,Foued S , et al. Explainable artificial intelligence modeling to forecast bitcoin prices[J].International Review of Financial Analysis,2023,88.
  9. Brahim G ,Sahbi M N ,Jean-Michel S , et al.Interactions between investors’ fear and greed sentiment and Bitcoin prices[J].North American Journal of Economics and Finance,2023,67.
  10. Zaman S ,Yaqub U ,Saleem T .Analysis of Bitcoin’s price spike in context of Elon Musk’s Twitter activity[J].Global Knowledge Memory and Communication,2023,72(4/5):341-355.