Skip to content
Open access

Comparison of LSTM, GRU, Bi-LSTM, and XGBoost for BRIS Stock Price Prediction with Lookback Period Variations

Aug 2026 · JOURNAL OF APPLIED INFORMATICS AND COMPUTING · Vol 10, pp. 3826-3836 · 0 citations · 18 references

TL;DR

The analysis reveals that the shorter lookback window consistently provides superior predictive performance across all evaluated models, whereas extending the lookback period to 20 or 30 days does not lead to consistent performance improvements.

Abstract

Stock price forecasting remains a challenging task due to the nonlinear and non-stationary characteristics of financial time series, particularly for Islamic banking stocks such as Bank Syariah Indonesia (BRIS), which exhibit highly dynamic price movements. This study compares the performance of four prediction models Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), Bidirectional Long Short-Term Memory (Bi-LSTM), and XGBoost in forecasting BRIS closing stock prices using OHLCV data collected from August 2020 to December 2025. To investigate the influence of historical observation windows, three lookback periods (10, 20, and 30 trading days) were evaluated. Model performance was assessed using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R²). The experimental results demonstrate that the GRU model with a 10-day lookback period achieved the best overall performance, yielding an RMSE of 78.0643 IDR, a MAPE of 2.13%, and an R² value of 0.8438. It outperformed Bi-LSTM, XGBoost, and LSTM, all of which also achieved their highest accuracy using the 10-day lookback period. Furthermore, the analysis reveals that the shorter lookback window consistently provides superior predictive performance across all evaluated models, whereas extending the lookback period to 20 or 30 days does not lead to consistent performance improvements. Residual analysis further indicates a relatively unbiased distribution of prediction errors. These findings suggest that the simplified gating mechanism of GRU enables better stability and generalization than more complex architectures for forecasting Islamic bank stock prices. This study contributes to the understanding of the relationship between model complexity and historical time window selection in deep learning-based financial forecasting and provides practical guidance for selecting appropriate prediction models for Indonesian Islamic banking stocks.

Read PDF

Similar papers

Open access Sep 2026

Implementation Of LSTM, GRU, And BI-LSTM Algorithms For LQ45 Index Prediction

The Indonesian capital market, particularly the LQ45 Index and its leading sectoral stocks, exhibits high volatility and complex non-linear price patterns. This complexity renders conventional statistical methods insufficient for accurate forecasting and risk mitigation. This study aims to develop and compare three Dee...

Anggaza Galih, Binastya Anggara Sekti · 0 citations
Open access Oct 2026

Comparative Performance of LSTM and GRU in Forecasting NVIDIA Stock Prices: Insights from the Digital Financial Market

The rapid evolution of artificial intelligence and digital technologies has transformed financial forecasting, enabling more accurate and data-driven decision-making in digital markets. This study investigates the comparative performance of two deep learning architectures, Long Short-Term Memory (LSTM) and Gated Recurr...

Richard Berlien · 0 citations
Open access Oct 2026

A Comparative Analysis of the Long Short-Term Memory (LSTM) and Prophet Models in Gold Price Forecasting Using Time Series Data

Gold price forecasting is crucial for investors in mitigating financial risk, particularly due to high market volatility. This study aims to evaluate and compare the performance of two distinct time series modeling approaches, representing additive statistical models. The research utilizes 4,733 daily closing price rec...

Faqih Rifaldy, Reza Ade Putra · 0 citations
Open access Nov 2026

Performance Comparison of LSTM and NHITS for Forecasting the Indonesian Rupiah–US Dollar Exchange Rate

The exchange rate of the rupiah against the US dollar plays a crucial role in Indonesia’s economy. Exchange rates fluctuate nonlinearly according to market prices, creating challenges for accurate forecasting. Various machine learning methods address these challenges, including Long Short-Term Memory (LSTM) and Neural...

Deswita Nur Alpharofi, Akbar Rizki, L. Abdul Rahman · 0 citations
Open access Oct 2026

Comparison Of Long Short-Term Memory and Gated Recurrent Unit Methods with RMSProp Optimization in Forecasting Stock Closing Prices

Retail sector stocks are one of the key indicators supporting consumer growth. PT Sumber Alfaria Trijaya Tbk, as the operator of the Alfamart minimarket chain, is one of the leading retail issuers on the Indonesia Stock Exchange, listed in the LQ45 index with a Return on Equity (ROE) of 23.5%. The seasonal, volatile, a...

Rani Anggraini, A. Agoestanto · 0 citations
Open access Nov 2026

COMPARATIVE ANALYSIS OF LONG SHORT-TERM MEMORY (LSTM) AND GATED RECURRENT UNIT (GRU) MODELS FOR DAILY STOCK CLOSING-PRICE FORECASTING

Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) networks are widely reported to forecast stock prices accurately, yet published comparisons of the two rarely hold the experimental setup constant, and few evaluate them against a naive random-walk forecast. This paper compares the two architectures on eight...

Ibrahim Bisallah Hashim, M. M. Usman, Uche Laura Nduka · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.