Journal
Bayesian Optimization for Stock Price Prediction Using LSTM, GRU, Hybrid LSTM-GRU, and Hybrid GRU-LSTM
Unnes Journal of Mathematics · Vol. 13 No. 2 (2025) · pp. 9–19
- ISSN
- 2460-5859, 2252-6943
- Published
- 2025-06-11
- Publisher
- Universitas Negeri Semarang
- Language
- eng
Abstract
Stocks have high price fluctuations, which include high risks and high potential returns for investors. This high potential return has attracted significant interest from investors. This study proposes the use of Bayesian optimization methods with Gaussian Process (GP), Random Forest (RF), Extra Trees (ET), and Gradient Boosted Regression Trees (GBRT) surrogate models to enhance the accuracy of stock price predictions using Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and hybrid models (LSTM-GRU and GRU-LSTM). This study tests the effectiveness of various combinations of hyperparameters optimized using the Bayesian optimization method. The model optimized with the Bayesian approach and the GP surrogate model demonstrates superior results compared to the others. Evaluation is conducted using Mean Square Error (MSE), Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and R-squared (R2) metrics. The results indicate that Bayesian optimization with the GP surrogate model for the GRU-LSTM hybrid model outperforms all other methods in terms of MSE, RMSE, MAE, MAPE, and R2. These findings provide significant contributions to parameter selection for stock price prediction and demonstrate the great potential of using Bayesian optimization methods to improve the accuracy of prediction models.
Keywords
Collaboration network of the authors
40 authors · 73 co-authorship links · 2 across different organisations · 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
- Universitas Airlangga
- 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 |
|---|---|---|
| Zaenuri Zaenuri | State University of Semarang | 3 |
| Fajar Sodik Pamungkas | Affiliation unknown | 3 |
| Dedy Kurnianto | Affiliation unknown | 3 |
| St. Budi Waluya | Affiliation unknown | 2 |
| Jannatun Khustia Lubis | Affiliation unknown | 2 |
| Alif Aulia Rahman | Affiliation unknown | 2 |
| Mohammad Asikin | Affiliation unknown | 2 |
| Muhammad Ashim | Affiliation unknown | 2 |
| Nur Hasanah | Universitas Halu Oleo | 2 |
| Rohimatul Azizah | Affiliation unknown | 2 |
| Bayu Dwi Prasetya | Affiliation unknown | 2 |
| Fatkhurokhman Fauzi | Affiliation unknown | 2 |
| Mulyono | Affiliation unknown | 1 |
| Noviana Dini Rahmawati | Affiliation unknown | 1 |
| Alfina Akmalina | Affiliation unknown | 1 |
| Elya Gita Astuti | Affiliation unknown | 1 |
| Nike Yustina Oktaviani | Affiliation unknown | 1 |
| Luthfiyah Astutiningtyas | Affiliation unknown | 1 |
| Riska Nur Fitrianingsih | Affiliation unknown | 1 |
| Annisa Ikrimah | Affiliation unknown | 1 |
| Supriyono Supriyono | Affiliation unknown | 1 |
| Mohammad Jefrie Ilham Akbar | Affiliation unknown | 1 |
| Faris Febri Rahanto | Affiliation unknown | 1 |
| Muhammad Nurul Muttaqin | Affiliation unknown | 1 |
| Iwan Junaedi | State University of Semarang | 1 |
| Sanianajiba Nugroho Putri | Affiliation unknown | 1 |
| Hendrik Sutrisno | Affiliation unknown | 1 |
| Yeni Nurochmah | Affiliation unknown | 1 |
| Wardono | Affiliation unknown | 1 |
| Muna | Affiliation unknown | 1 |
| Tri Sri Noor Asih | Affiliation unknown | 1 |
| Rizki Ahid Nurhasanah | Affiliation unknown | 1 |
| Petronela Ivoni Susanty | Affiliation unknown | 1 |
| Kartono Kartono | Universitas Airlangga | 1 |
| Luluk Ulfa Chasani | Affiliation unknown | 1 |
| Tri Sri Noor Asih | Affiliation unknown | 1 |
| Wardono Wardono | Affiliation unknown | 1 |
| Nurlaela Eka Cahyati | 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.