Journal
Comparison Of Long Short-Term Memory and Gated Recurrent Unit Methods with RMSProp Optimization in Forecasting Stock Closing Prices
Unnes Journal of Mathematics · Vol. 14 No. 2 (2026) · pp. 1–10
- ISSN
- 2460-5859, 2252-6943
- Published
- 2026-10-21
- Publisher
- Universitas Negeri Semarang
- Language
- eng
Abstract
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, and macroeconomic-sensitive nature of retail stocks makes them difficult to predict using conventional methods. This study aims to compare the performance of the Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) methods with RMSprop optimization in forecasting the closing price of PT Sumber Alfaria Trijaya Tbk shares. The data used consists of daily stock prices from January 2, 2020, to December 30, 2024. Evaluation was conducted using the RMSE and MAPE metrics. The results of the study indicate that the optimal architecture for LSTM is achieved with a combination of a time step of 60, batch size of 8, units of 100, and epochs of 50, yielding an RMSE of 56.948 and a MAPE of 1.409%. Meanwhile, GRU showed better performance at a time step of 30, batch size of 8, units of 50, and epoch of 150 with an RMSE of 52.689 and MAPE of 1.343%. Thus, GRU with RMSprop optimization is considered more effective in capturing dynamic and nonlinear patterns.
Keywords
Collaboration network of the authors
40 authors · 134 co-authorship links · showing the 40 most connected
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
- State University of Semarang
- Universitas Halu Oleo
- Affiliation unknown
- Different organisations
- Same organisation
- Affiliation unknown
- Thicker line = more joint articles · bigger circle = more articles
Show as table
| Co-author | Organisation | Joint articles |
|---|---|---|
| Rochmad Rochmad | Affiliation unknown | 8 |
| Putriaji Hendikawati | Affiliation unknown | 5 |
| Ary Woro Kurniasih | Affiliation unknown | 5 |
| Masrukan Masrukan | State University of Semarang | 3 |
| Mashuri Mashuri | Affiliation unknown | 3 |
| Muhammad Kharis | Affiliation unknown | 3 |
| YL Sukestiyarno | Affiliation unknown | 3 |
| Nur Karomah Dwidayati | Affiliation unknown | 3 |
| Sugiman Sugiman | Affiliation unknown | 3 |
| Putri Maharani | Affiliation unknown | 3 |
| Raisa Sevina | Affiliation unknown | 3 |
| Anna Anggraini | Affiliation unknown | 3 |
| Kholifatu Ulil Azmi | Affiliation unknown | 2 |
| Scolastika Mariani | State University of Semarang | 2 |
| Mulyono Mulyono | Affiliation unknown | 2 |
| Endang Retno Winarti | Affiliation unknown | 2 |
| Muhammad Zuhair Zahid | Affiliation unknown | 2 |
| Isnarto Isnarto | Affiliation unknown | 2 |
| Kresni Winanti | Affiliation unknown | 2 |
| Kamta Agus Sajaka | Affiliation unknown | 2 |
| Bella Dwi Pasca | Affiliation unknown | 2 |
| Satiti Kawuri Putri | Affiliation unknown | 2 |
| Tri Rizki | Affiliation unknown | 2 |
| Muhammad Amrullah Pagala | Universitas Halu Oleo | 1 |
| La Karimuna | Affiliation unknown | 1 |
| Rembulan Permata Octalia | Affiliation unknown | 1 |
| St. Budi Waluya | Affiliation unknown | 1 |
| Annisa Salma Zakiyyah | Affiliation unknown | 1 |
| Puput Relitasari | Affiliation unknown | 1 |
| Mashuri | Affiliation unknown | 1 |
| Chitra Ayu Nevtianingsi | Affiliation unknown | 1 |
| Fitri Novita Sari | Affiliation unknown | 1 |
| Zuyun Khoiriyah | Affiliation unknown | 1 |
| Vinda Khasmarawati | Affiliation unknown | 1 |
| Roudlotin Ni’mah | Affiliation unknown | 1 |
| Noviesag Artanto | Affiliation unknown | 1 |
| SELY AGUSTINA | Affiliation unknown | 1 |
| RIZA SILVIA FAUSTINA | Affiliation unknown | 1 |
Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.