Algorithm Optimizer in GA-LSTM for Stock Price Forecasting

Authors

  • YL Sukestiyarno Department of Mathematics, Semarang State University, North Kelud III Petompon Gajahmungkur Semarang 50229, Indonesia
  • Dian Tri Wiyanti Department of Mathematics, Semarang State University, North Kelud III Petompon Gajahmungkur Semarang 50229, Indonesia
  • Lathifatul Azizah Department of Mathematics, Semarang State University, North Kelud III Petompon Gajahmungkur Semarang 50229, Indonesia
  • Wahyu Widada Department of Mathematics Education, Bengkulu University, Jl. Kd. Lemonade, Bengkulu 38371, Indonesia
  • Khathibul Umam Zaid Nugroho Department of Mathematics Education, PGRI Silampari University, Jl. M. Toha, Lubuk Linggau 31625, Indonesia

DOI:

https://doi.org/10.37256/cm.5220243367

Keywords:

time series, forecasting, deep learning, GA, LSTM

Abstract

The training and success of deep learning is strongly influenced by the selection of hyperparameters. This research uses a hybrid method between the genetic algorithm (GA) and long short-term memory (LSTM) to find a suitable model for predicting stock prices. GA is used to optimize the architecture, such as the number of epochs, window size, and LSTM units in the hidden layer. Tuning optimizer is also carried out using several optimizers to achieve the best value. The method that has been applied shows that the method has a good level of accuracy with mean absolute percentage error (MAPE) values below 10% in every optimizer used. A fairly stable and small value is generated by setting it using the Adam optimizer.

Downloads

Published

2024-06-25

How to Cite

1.
Sukestiyarno Y, Wiyanti DT, Azizah L, Widada W, Nugroho KUZ. Algorithm Optimizer in GA-LSTM for Stock Price Forecasting. Contemp. Math. [Internet]. 2024 Jun. 25 [cited 2024 Dec. 21];5(2):2185-97. Available from: https://ojs.wiserpub.com/index.php/CM/article/view/3367