Melola Discovery

← Melola Discovery

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

DOI
10.15294/ujm.v14i2.28271
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-authorOrganisationJoint articles
Rochmad RochmadAffiliation unknown8
Putriaji HendikawatiAffiliation unknown5
Ary Woro KurniasihAffiliation unknown5
Masrukan MasrukanState University of Semarang3
Mashuri MashuriAffiliation unknown3
Muhammad KharisAffiliation unknown3
YL SukestiyarnoAffiliation unknown3
Nur Karomah DwidayatiAffiliation unknown3
Sugiman SugimanAffiliation unknown3
Putri MaharaniAffiliation unknown3
Raisa SevinaAffiliation unknown3
Anna AnggrainiAffiliation unknown3
Kholifatu Ulil AzmiAffiliation unknown2
Scolastika MarianiState University of Semarang2
Mulyono MulyonoAffiliation unknown2
Endang Retno WinartiAffiliation unknown2
Muhammad Zuhair ZahidAffiliation unknown2
Isnarto IsnartoAffiliation unknown2
Kresni WinantiAffiliation unknown2
Kamta Agus SajakaAffiliation unknown2
Bella Dwi PascaAffiliation unknown2
Satiti Kawuri PutriAffiliation unknown2
Tri RizkiAffiliation unknown2
Muhammad Amrullah PagalaUniversitas Halu Oleo1
La KarimunaAffiliation unknown1
Rembulan Permata OctaliaAffiliation unknown1
St. Budi WaluyaAffiliation unknown1
Annisa Salma ZakiyyahAffiliation unknown1
Puput RelitasariAffiliation unknown1
MashuriAffiliation unknown1
Chitra Ayu NevtianingsiAffiliation unknown1
Fitri Novita SariAffiliation unknown1
Zuyun KhoiriyahAffiliation unknown1
Vinda KhasmarawatiAffiliation unknown1
Roudlotin Ni’mahAffiliation unknown1
Noviesag ArtantoAffiliation unknown1
SELY AGUSTINAAffiliation unknown1
RIZA SILVIA FAUSTINAAffiliation unknown1

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.

Metadata source: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/journals/ujm/oai, first harvested 6 Nov 2026, last seen 8 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">Comparison Of Long Short-Term Memory and Gated Recurrent Unit Methods with RMSProp Optimization in Forecasting Stock Closing Prices</dc:title>
	<dc:creator xml:lang="en">Rani Anggraini</dc:creator>
	<dc:creator xml:lang="en">Arief Agoestanto</dc:creator>
	<dc:subject xml:lang="en">Forecasting</dc:subject>
	<dc:subject xml:lang="en">Long Short Term Memory</dc:subject>
	<dc:subject xml:lang="en">Gated Recurrent Unit</dc:subject>
	<dc:description xml:lang="en">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.</dc:description>
	<dc:publisher xml:lang="en">Universitas Negeri Semarang</dc:publisher>
	<dc:date>2026-10-21</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/journals/ujm/article/view/28271</dc:identifier>
	<dc:identifier>10.15294/ujm.v14i2.28271</dc:identifier>
	<dc:source xml:lang="en">Unnes Journal of Mathematics; Vol. 14 No. 2 (2025): Unnes Journal of Mathematics Volume 2, 2025; 1-10</dc:source>
	<dc:source>2460-5859</dc:source>
	<dc:source>2252-6943</dc:source>
	<dc:source>10.15294/ujm.v14i2</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/journals/ujm/article/view/28271/11839</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2026 Unnes Journal of Mathematics</dc:rights>
</oai_dc:dc>