Comparative Deep Learning Analysis: Unveiling the Power of LSTM, BiLSTM, GRU, and BiGRU for Agricultural Stock Price Forecasting on the Indonesian Stock Exchange

This study aims to analyze the performance of deep learning algorithms in predicting agricultural sector stock prices on the Indonesia Stock Exchange (IDX) by comparing four models: Long Short-Term Memory (LSTM), Bidirectional LSTM (BiLSTM), Gated Recurrent Unit (GRU), and Bidirectional GRU (BiGRU). Daily historical data of six agricultural sector stock issuers (AALI, BISI, DSNG, LSIP, SIMP, SSMS) for the period 2017–2025 was used as the dataset. The research methods included data pre-processing (normalization, 80:20 training-test data split), model training with optimal hyperparameters (unit=512, dropout rate = 0.3, epoch = 50–150, learning rate = 0.0001), and evaluation using Root Mean Squared Error (RMSE), Mean Absolute Percentage Error (MAPE), R² Score , and computation time metrics. The results show that BiGRU is the most accurate model with the lowest RMSE (7.43–17.20) and the highest R² (0.99 on BISI and SSMS), thanks to the Bidirectional architecture that processes bidirectional data to capture complex temporal patterns. However, GRU is more efficient with a training time of 40–43 seconds, suitable for real-time applications . LSTM and BiLSTM have lower accuracy, especially on volatile stocks such as DSNG (RMSE LSTM = 130.51). This study provides practical recommendations: BiGRU for long-term investment strategies that prioritize accuracy, while GRU for quick decisions based on efficiency. Theoretical implications strengthen the effectiveness of the Bidirectional architecture in financial time series analysis

Authors

Publication Details

Journal
Jurnal Nasional Teknologi dan Sistem Informasi
Published
2026-04-30
DOI
https://doi.org/10.25077/teknosi.v12i1.2026.73-70
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Deep Learning Analysis: Unveiling the Power of LSTM, BiLSTM, GRU, and BiGRU for Agricultural Stock Price Forecasting on the Indonesian Stock Exchange

Armin Darmawan, Muhammad Fadhlurrahman
Jurnal Nasional Teknologi dan Sistem Informasi
Stock Market Forecasting Methods
article

Comparative Deep Learning Analysis: Unveiling the Power of LSTM, BiLSTM, GRU, and BiGRU for Agricultural Stock Price Forecasting on the Indonesian Stock Exchange

Armin Darmawan, Muhammad Fadhlurrahman
article en

Abstract

This study aims to analyze the performance of deep learning algorithms in predicting agricultural sector stock prices on the Indonesia Stock Exchange (IDX) by comparing four models: Long Short-Term Memory (LSTM), Bidirectional LSTM (BiLSTM), Gated Recurrent Unit (GRU), and Bidirectional GRU (BiGRU). Daily historical data of six agricultural sector stock issuers (AALI, BISI, DSNG, LSIP, SIMP, SSMS) for the period 2017–2025 was used as the dataset. The research methods included data pre-processing (normalization, 80:20 training-test data split), model training with optimal hyperparameters (unit=512, dropout rate = 0.3, epoch = 50–150, learning rate = 0.0001), and evaluation using Root Mean Squared Error (RMSE), Mean Absolute Percentage Error (MAPE), R² Score , and computation time metrics. The results show that BiGRU is the most accurate model with the lowest RMSE (7.43–17.20) and the highest R² (0.99 on BISI and SSMS), thanks to the Bidirectional architecture that processes bidirectional data to capture complex temporal patterns. However, GRU is more efficient with a training time of 40–43 seconds, suitable for real-time applications . LSTM and BiLSTM have lower accuracy, especially on volatile stocks such as DSNG (RMSE LSTM = 130.51). This study provides practical recommendations: BiGRU for long-term investment strategies that prioritize accuracy, while GRU for quick decisions based on efficiency. Theoretical implications strengthen the effectiveness of the Bidirectional architecture in financial time series analysis

Jurnal Nasional Teknologi dan Sistem InformasiVol. 12(1)
Openalex Percentile: Top 10%
Stock Market Forecasting Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.