bit-Tech
Vol. 8 No. 3 (2026): bit-Tech - IN PROGRESS

Hyperparameter Optimization of Hybrid LSTM-GRU using Genetic Algorithm for Stock Price Prediction

Mordekhai Gerin Lumangkun (Universitas Pembangunan Nasional "Veteran" Jawa Timur)
Made Hanindia Prami Swari (Universitas Pembangunan Nasional "Veteran" Jawa Timur)
Andreas Nugroho Sihananto (Universitas Pembangunan Nasional "Veteran" Jawa Timur)



Article Info

Publish Date
10 Apr 2026

Abstract

Predicting stock prices in the banking sector, particularly for high-capitalisation stocks such as Bank Rakyat Indonesia (BBRI), remains challenging amid market volatility. While Hybrid LSTM-GRU models have demonstrated capability in capturing temporal dependencies in time-series data, prior studies have predominantly focused on manual tuning or optimization of single recurrent architectures, with limited application of Genetic Algorithms for optimizing hybrid recurrent networks in emerging stock markets (R1). This research aims to address this gap by implementing an evolutionary optimization framework using a Genetic Algorithm (GA) to automatically tune the hyperparameters of a Hybrid LSTM-GRU model for enhanced stock price forecasting accuracy. Historical BBRI data from November 2020 to June 2025 were preprocessed through normalization and transformed into supervised time-series sequences before being divided into training, validation, and testing sets. The GA was configured with a population size of 20, 80 generations, and a crossover rate of 0.8 to search for optimal learning rates, batch sizes, and hidden units. The optimized configuration identified 64 units for LSTM and GRU layers, a learning rate of 0.002, and a batch size of 16. The resulting model achieved an RMSE of 82.11 and an MAPE of 1.51%, representing a 20% error reduction compared to baseline hybrid models and outperforming benchmark approaches reported in prior studies (R1). Achieving a 1.51% MAPE indicates reliability for financial forecasting, supporting risk-sensitive investment decision-making (A). Overall, this study demonstrates that evolutionary hyperparameter optimization enhances hybrid deep learning architectures.

Copyrights © 2026






Journal Info

Abbrev

bt

Publisher

Subject

Computer Science & IT

Description

The bit-Tech journal was developed with the aim of accommodating the scientific work of Lecturers and Students, both the results of scientific papers and research in the form of literature study results. It is hoped that this journal will increase the knowledge and exchange of scientific ...