MODEL DEEP LEARNING LSTM DAN GRU UNTUK PREDIKSI VALUTA ASING
Abstract
Currency exchange rates are one of the most important variables in macroeconomics because changes in exchange rates can affect economic stability and activity. The uncertainty of exchange rates is an important problem in finance, so accurate predictions are needed to design strategic steps in dealing with foreign exchange fluctuations. This research aims to explain the process of implementing the LSTM and GRU deep learning models in predicting foreign exchange against the Rupiah and US Dollar exchange rates and analyzing the evaluation results and prediction results of the LSTM and GRU models. The data used is the daily closing price of the USD/IDR exchange rate for the period August 29, 2014, to August 28, 2024, obtained from the global financial platform investing.com, totaling 2,554 data points. Predictions are made for a one-step forward horizon (t+1) with a chronological data division scheme of 80% as training data and 20% as testing data. Before the model training process, the data is normalized using the Z-score normalization method to improve data stability against outliers and aid the model learning process. The results showed that the LSTM and GRU models were able to learn historical data patterns well during the training and testing processes. During testing, the LSTM model produced an MAE of 0,133; RMSE of 0,159; and of 0.932. After denormalization, the LSTM model has a mean prediction error (MAE) of approximately Rp65 and a RMSE of approximately Rp89 relative to the actual value. Meanwhile, the GRU model produced an MAE of 0.102; RMSE of 0.124; and of 0.958. The denormalization results show that the GRU model has an average prediction error (MAE) of approximately Rp54 and an RMSE of approximately Rp70 relative to the actual value. The evaluation results show that the GRU model performs better than the LSTM model because it produces a smaller error value and the value that is closest to 1.
Keywords
Full Text:
PDFReferences
Aji, H. W. (2019). Prediksi Harga Bitcoin Dengan Menggunakan Metode Gated Recurrent Unit (Gru). Skripsi ULM, 112035.
Arfan, A., & Lussiana ETP. (2019). Prediksi Harga Saham Di Indonesia Menggunakan Algoritma Long Short-Term Memory. Seminar Nasional Teknologi Informasi Dan Komunikasi STIK (SeNTIK), 3(1), 2581–2327.
Arifin, S., & Mayasya, S. (2018). Faktor - Faktor Yang Mempengaruhi Nilai Tukar Rupiah Terhadap Dolar Amerika Serikat. Jurnal Ekonomi-Qu, 8(1), 82–96. https://doi.org/10.35448/jequ.v8i1.4965
ArunKumar, K. E., Kalaga, D. V., Mohan Sai Kumar, C., Kawaji, M., & Brenza, T. M. (2022). Comparative Analysis of Gated Recurrent Units (GRU), Long Short-Term Memory (LSTM) Cells, Autoregressive Integrated Moving Average (ARIMA), Seasonal Autoregressive Integrated Moving Average (SARIMA) for Forecasting COVID-19 Trends. Alexandria Engineering Journal, 61(10), 7585–7603. https://doi.org/10.1016/j.aej.2022.01.011
Arwansyah, A., Suryani, S., SY, H., Usman, U., Ahyuna, A., & Alam, S. (2022). Time series Forecasting Menggunakan Deep Gated Recurrent Units. Digital Transformation Technology, 4(1), 410–416. https://doi.org/10.47709/digitech.v4i1.4141
Ayyadevara, V. K. (2018). Pro Machine Learning Algorithms. Apress. https://doi.org/10.1007/978-1-4842-3564-5_10
Brownlee, J. (2018). Deep learning for time series forecasting. Machine Learning Mastery.
Chicco, D., Warrens, M. J., & Jurman, G. (2021). The Coefficient of Determination R-squared is More Informative than SMAPE, MAE, MAPE, MSE and RMSE in Regression Analysis Evaluation. PeerJ Computer Science, 7, 1–18. https://doi.org/10.7717/peerj-cs.623
Fischer, T., & Krauss, C. (2018). Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research, 270(2), 654–669. https://doi.org/10.1016/j.ejor.2017.11.054
Giarsyani, N. (2020). Komparasi Algoritma Machine Learning dan Deep Learning untuk Named Entity Recognition : Studi Kasus Data Kebencanaan. Indonesian Journal of Applied Informatics, 4(2), 138. https://doi.org/10.20961/ijai.v4i2.41317
Lee, K. (2018). Systematic exchange rate variation: Where does the dollar factor come from? International Review of Economics & Finance, 56, 288–307. https://doi.org/10.1016/j.iref.2017.10.030
Mokodongan, Z. Z. ., Rotinsulu, T. O., & Mandeij, D. M. (2018). Analisis Fluktuasi Tingkat Kurs Rupiah (Idr) Terhadap Dollar Amerika (Usd) Padasistem Kurs Mengambang Bebas Di Indonesia Dalam Periode 2007.1-2014.4. Jurnal Berkala Ilmiah Efisiensi, 18(2), 135–145.
Olah, C. (2015). Understanding LSTM Networks.
Srisulistiowati, D. B., Khaerudin, M., & Rejeki, S. (2021). Sistem Informasi Prediksi Penjualan Alat Tulis Kantor Dengan Metode Fp-Growth (Studi Kasus Toko Koperasi Sekolah Bina Mulia). Jurnal Sistem Informasi Universitas Suryadarma, 8(2). https://doi.org/10.35968/jsi.v8i2.739
Yusuf, A. (2022). Prediksi Indeks Harga Saham Gabungan (IHSG) Menggunakan Long Short-Term Memory. Jurnal Epsilon, 15, 124–132.
DOI: https://doi.org/10.20527/epsilon.v20i1.16263
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 EPSILON: JURNAL MATEMATIKA MURNI DAN TERAPAN (EPSILON: JOURNAL OF PURE AND APPLIED MATHEMATICS)
Indexed by:

EDITORIAL OFFICE

All articles published in "Epsilon: Jurnal Matematika Murni dan Terapan" are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


