Algorithm Optimizer in GA-LSTM for Stock Price Forecasting

Open

Y.L. Sukestiyarno, Dian Tri Wiyanti, Lathifatul Azizah, Wahyu Widada, Khathibul Umam Zaid Nugroho

2024 Contemporary Mathematics (Singapore) Vol. 5 Issue 1 Article Cited by 7 Quartile

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 MAPE valuesbelow 10% in every optimizerused. A fairly stable and small value is generated by setting it using the Adam Optimizer. © 2024 YL Sukestiyarno, et al.

Affiliations

Universitas Negeri Semarang, Kelud Utara III Petompon Gajahmungkur, Semarang, 50229, Indonesia; Universitas Negeri Semarang, North Kelud III Petompon Gajahmungkur, Semarang, 50229, Indonesia; Bengkulu University, Jl. Kd. Limun, Bengkulu, 38371, Indonesia; Universitas PGRI Silampari, Jl. M. Toha, Lubuk Linggau, 31625, Indonesia