Hybrid ARIMA-LSTM Model for Gold Price Forecasting at Pegadaian
Abstract
Accurate forecasting of digital gold prices at PT Pegadaian is essential for managing volatility driven by macroeconomic factors, including exchange rates, inflation, and global gold prices. Conventional models present limitations: ARIMA effectively captures linear trends but fails to model non-linear patterns, whereas LSTM handles non-linearity but is prone to overfitting and poor generalization. This study proposes a hybrid ARIMA-LSTM model based on a quantitative time series approach. The analysis uses secondary data comprising daily digital gold prices from PT Pegadaian (2024–2025) and related macroeconomic indicators obtained from BPS and Bank Indonesia. Data are preprocessed to ensure stationarity and quality prior to modeling. The hybrid model combines linear forecasts from ARIMA with LSTM modeling of the resulting non-linear residuals. The hybrid model achieved MSE = 54,294.23, MAE = 113.56, and RMSE = 233.01 on the test set, representing reductions of approximately 75% in MSE, 54% in MAE, and 50% in RMSE relative to the standalone LSTM on testing data. The hybrid model outperforms both individual ARIMA and LSTM models in terms of generalization and accuracy. A primary limitation is the use of manual hyperparameter tuning; implementation of automated methods, such as grid search or Bayesian optimization, could further improve performance and robustness.
Keywords
Full Text:
PDFReferences
V. M. Ngo, P. V. Nguyen, and Y. H. Hai, “The impacts of geopolitical risks on gold, oil and financial reserve management,” Resour. Policy, vol. 90, p. 104688, Mar. 2024, doi: 10.1016/j.resourpol.2024.104688.
A. A. Salisu, I. D. Raheem, and X. V. Vo, “Assessing the safe haven property of the gold market during COVID-19 pandemic,” Int. Rev. Financ. Anal., vol. 74, p. 101666, Mar. 2021, doi: 10.1016/j.irfa.2021.101666.
J. Li and Y. Huang, “Dynamic spillovers of geopolitical risks and gold prices: New evidence from 18 emerging economies,” Resour. Policy, vol. 70, p. 101938, Mar. 2021, doi: 10.1016/j.resourpol.2020.101938.
Özgür Ergül and Tuba Karakaş, “Analysis of the relationship of gold prices with inflation and bitcoin in the post-tapering period,” Borsa Istambul review, vol. 24, issue 4, p. 643-868, July, 2024, https://doi.org/10.1016/j.bir.2024.04.009.
A. Sulityowati , B. S. Pitoyo, & M. Handayani, “Pengaruh Tingkat Inflasi dan Nilai Tukar Rupiah Terhadap Penyaluran Kredit Rahn PT. Pegadaian Syariah Periode Tahun 2011-2022,” Jurnal Ilmiah Ekonomi Islam, vol. 9, no. 2, pp. 2510-2514, 2023, DOI: https://doi.org/10.29040/jiei.v9i2.9649.
A. B. Kusuma, “The Effect of Inflation Rate and Gold Price on Gold Pawn Financing at Bank Syariah Indonesia,” West Sci. J. Econ. and Entrepreneurship, vol. 3, no. 1, pp. 45–60, Feb. 2024, doi: https://doi.org/10.58812/wsjee.v2i01.542.
M.F.M. Nasution, N. Aslami, Kusmilawaty, “Digital Innovation Strategy to Foster Customer Satisfaction Growth at Pegadaian Syariah,” Indonesian Journal of Innovation Studies, vol. 26, no. 4, October, p. 1-19, 2025, doi: 10.12345/ijins.2025.4.2.1592.
K. Kashif and R. Ślepaczuk, “LSTM-ARIMA as a hybrid approach in algorithmic investment strategies,” Knowledge-Based Systems, vol. 320, art. no. 113563, 2025, doi: 10.1016/j.knosys.2025.113563.
J. Zhang, H. Liu, W. Bai, and X. Li, “A hybrid approach of wavelet transform, ARIMA and LSTM model for the share price index futures forecasting,” The North American Journal of Economics and Finance, vol. 69, art. no. 102022, 2024, doi: 10.1016/j.najef.2023.102022.
C. Zhang, N. N. A. Sjarif, and R. Ibrahim, “Deep learning models for price forecasting of financial time series: A review of recent advancements: 2020–2022,” WIREs Data Mining and Knowledge Discovery, vol. 14, no. 1, art. no. e1519, 2024, doi: 10.1002/widm.1519.
M. Elamine and A. Ben Abdallah, “Predicting cryptocurrency prices with a hybrid ARIMA and LSTM model,” Journal of Telecommunications and the Digital Economy, vol. 13, no. 1, pp. 98–117, 2025, doi: 10.18080/jtde.v13n1.1052.
F. Pokou, J. S. Kamdem, and F. Benhmad, “Hybridization of ARIMA with learning models for forecasting of stock market time series,” Computational Economics, vol. 63, no. 4, pp. 1349–1399, Apr. 2024, doi: 10.1007/s10614-023-10499-9.
A. A. Adebiyi, A. O. Adewumi, and C. K. Ayo, “Comparison of ARIMA and artificial neural networks models for stock price prediction,”Journal of Applied Mathematics., vol. 7, no. 1, pp1-7. 38–46, 2014, DOI:10.1155/2014/614342.
X. Wang, Y. Ma, and W. Li, “The prediction of gold futures prices at the Shanghai Futures Exchange based on the MEEMD-CS-Elman model,” SAGE Open, vol. 11, no. 1, pp. 1–12, Jan.–Mar. 2021, doi: 10.1177/21582440211001866.
A. Prasetyo, N. Nurdin, H. A. K. Aidilof, “Comparison of Triple Exponential Smoothing and ARIMA in Predicting Cryptocurrency Prices,” International Journal of Engineering, Science and InformationTechnology, vol. 4, no. 4, pp. 63-71, 2024, https://doi.org/10.52088/ijesty.v4i4.577.
Y. Liu, Y. Zhang, and J. Wang, “International gold price forecast based on CEEMDAN and Stacking ensemble learning,” Discrete Dyn. Nature Soc., vol. 2022, art. no. 1511479, pp. 1–15, 2022, doi: 10.1155/2022/1511479.
K. Alkhatib, H. Khazaleh, H. A. Alkhazaleh, A. R. Alsoud and L. Abualigah, “A New Stock Price Forecasting Method Using Active Deep Learning Approach,” Journal of Open Innovation: Technology, Market, and Complexity, vol. 8, issue. 2, pp. 7123–7140, June. 2022, https://doi.org/10.3390/joitmc8020096.
Bao W, Yue J, Rao Y, “A deep learning framework for financial time series using stacked autoencoders and long-short term memory,” PLoS ONE, vol. 12, no. 7, p. 1-14, Jul. 2017, doi :10.1371/journal.pone.0180944
S. Saleti, L. Y. Panchumarthi, Y. R. Kallam, V. K. Reddy, and G. Supriya, “Enhancing forecasting accuracy with a moving average-integrated hybrid ARIMA-LSTM model,” SN Comput. Sci., vol. 5, no. 5, art. no. 704, Aug. 2024, doi: 10.1007/s42979-024-03060-4.
X. Xiao, J. Xiao, and Y. Xiao, “Research on stock price time series prediction based on deep learning and autoregressive integrated moving average,” Sci. Program., vol. 2022, art. no. 4758698, pp. 1–11, Apr. 2022, doi: 10.1155/2022/4758698.
D. Li and Y. Li, “On the forecasting of high-frequency financial time series based on ARIMA model improved by deep learning,” J. Forecast., vol. 39, no. 6, pp. 953–966, Sep. 2020, doi: 10.1002/for.2677.
M. S. Kulkarni1, V. Bharathi, A Perdana, D. Kilari, “A quest for context-specific stock price prediction: A comparison between time series, machine learning and deep learning models,” SN Comput. Sci., vol. 6, no. 335, p. 1-24, 2025, doi: 10.1007/s42979-025-03848-y.
S. Setyowibowo, M. As’ad, Sujito, E. Farida, “Forecasting of Daily Gold Price using ARIMA-GARCH Hybrid Model,” Jurnal Ekonomi Pembangunan, vol. 19, no. 2, December. 2021, doi: 10.1016/j.resourpol.2022.102847.
C. Gil, A. Avishay, “Forecasting gold price using machine learning methodologies,” Chaos, Solitons and Fractals , vol. 175, article id. 114079, Okt. 2023, doi : 10.1016/j.chaos.2023.114079.
H. M. Zangana, S. R. Obeyd, “Deep Learning-based Gold Price Prediction: A Novel Approach using Time Series Analysis,” Sistemasi:Jurnal Sistem Informasi, vol 13, no. 6, 2024, https://sistemasi.ftik.unisi.ac.id/index.php/stmsi/article/view/4651.
S. Galeshchuk and S. Mukherjee, “Deep networks for predicting direction of change in foreign exchange rates,” Intell. Syst. Account. Finance Manage., vol. 27, no. 2, pp. 100–110, Apr.–Jun. 2020, doi:10.1002/isaf.1404.
T. C. Chiang and Z. Dai, “Time Series Analysis And Forecasting With ARIMA ModelGold Derivatives At MCX,” Educational Administration: Theory and Practice, vol. 29(3), p. 357-365, 2023, doi: 10.54254/2754-1169/2025.LH23823.
P. Garg1, R. Sharma, “Evaluation of ARIMA models for financial time series forecasting,” Int. J. Comput. Appl., vol. 43, no. 5, pp. 468–475, May 2021, doi: 10.53555/kuey.v29i3.4246.
M. S. Amin, Y. K. Wong, and M. A. Razzaque, “Stock-Price-Prediction-Using LSTM ARIMA,” J. King Saud Univ. - Comput. Inf. Sci., vol. 34, no. 9, pp. 7111–7122, Oct. 2022, doi: 10.1016/j.jksuci.2021.08.004.
H. Liu, Z. Liu, and X. Zhang, “Stock market forecasting using a multi-model architecture with XGBoost and LSTM,” Journal of Development Economics and Management Research Studies, vol. 9(11), pp. 55-66, January 2022, doi:10.53422/JDMS.2022.91106.
T. Chaudhary, S. Minirani , “Machine Learning and Time Series Approaches for Stock Price Prediction: A Case Study of Indian Banks,” Procedia Computer Science, vol. 260, pp. 626-634, 2025, doi: 10.1016/j.procs.2025.03.241.
M. Khani, S. Vahidnia, and A. Abbasi, “A deep learning based methods for forecasting gold price with respect to pandemics,” SN Comput. Sci., vol. 2, no. 4, art. no. 293, Jul. 2021, doi: 10.1007/s42979-021-00724-3.
R. Ghule, A. Gadhave, “Gold Price Prediction using Machine Learning,” International Journal of Scientific Research in Engineering and Management, vol. 6(6), June 2022, https://www.researchgate.net/profile/Jyoti-Kharade3/publication/362491642_Gold_Price_Prediction_using_Machine_Learning/links/62ecf7ee505511283e9102ce/Gold-Price-Prediction-using-Machine-Learning.pdf.
B. A. Memon, R. Tahir, H. M. Naveed, and S. Memon, “Forecasting gold and platinum prices with an enhanced GRU model using multi-headed attention and skip connection,” Miner. Econ., vol. 38, no. 1, pp. 1–18, Mar. 2025, doi: 10.1007/s13563-025-00520-y.
R. Elizabeth, S. Sitorus, “Forecasting The Indonesian Gold Price Using The ARIMA Method,” Jurnal Teknik Informatika dan Sistem Informasi, vol. 11, no. 4, pp. 79-89, Dec. 2024, doi: 10.35957/jatisi.v11i4.8393.
D. Li and Y. Li, “On the forecasting of high-frequency financial time series based on ARIMA model improved by deep learning,” J. Forecast., vol. 39, no. 6, pp. 953–966, Sep. 2020, doi: 10.1002/for.2677.
K. A. Althelaya, E. M. El-Alfy, and S. Mohammed, “ARIMA Model for Accurate Time Series Stocks Forecasting,” International Journal of Advanced Computer Science and Applications , vol. 11, no. 7, January 2020, doi:10.14569/IJACSA.2020.0110765.
X. Zhang, “Which uncertainty measure better predicts gold prices? New evidence from a CNN-LSTM approach,” N. Am. J. Econ. Finance, vol. 71, art. no. 102123, Jan. 2025, doi: 10.1016/j.najef.2024.102123.
X. Zhang, L. Zhang, Q. Zhou, X. Jin, “A novel bitcoin and gold prices prediction method using an LSTM-P neural network model,” Comput. Intell. Neurosci., volume 2022, Article ID 1643413, May 2022, doi: 10.1155/2022/1643413.
F. Bilgili, S. Kuşkaya, “Leveraging artificial intelligence for gold price forecasting: An LSTM-based analysis,” Research Article, Sept. 2025, doi:10.21203/rs.3.rs-7488323/v1.
K. Kashif and R. Ślepaczuk, “LSTM-ARIMA as a hybrid approach in algorithmic investment strategies,” Knowledge-Based Systems, vol. 320, art. no. 113563, Jun. 2025, doi: 10.1016/j.knosys.2025.113563.
F. Saâdaoui and H. Rabbouch, “Financial forecasting improvement with LSTM-ARFIMA hybrid models and non-Gaussian distributions,” Technological Forecasting and Social Change, art. no. 123539, 2024, doi: 10.1016/j.techfore.2024.123539.
M. H. Alharbi, “Prediction of the stock market using LSTM, ARIMA, and hybrid of LSTM-ARIMA models,” Journal of Knowledge Management Application and Practice, vol. 7, no. 1, pp. 15–22, 2025, https://www.naturalspublishing.com/files/published/5qr8c1687avb59.pdf.
U. Kalsum, R. Hidayat, and S. Oktaviani, “The Effect of Inflation, Interest Rates And World Oil Prices on Gold Prices in Indonesia With The US Dollar Exchange Rate as an Intermediary Variable,” Int. J. Finance Res., vol. 2, no. 1, pp. 1–12, Mar. 2021, doi: 10.47747/financeinvestmentderivative.v2i1.228.
I. C. Rahmansyah and L. N. Rani, “Gold Price, Inflation, and Dollar Exchange Rate: The Case of Gold Investment in Indonesia,” Indonesian Capital Market Rev., vol. 13, no. 1, pp. 37–47, 2021, doi: 10.21002/icmr.v13i1.13238.
D. M. Dewi, M. Z. Nafi’, and N. Nasrudin, “Analisis Peramalan Harga Emas Bulanan dengan Holt Winter Exponential Smoothing,” Mediastima, vol. 5, no. 2, pp. 38–50, Oct. 2023, doi: 10.36085/mediastima.v5i2.857.
M. Risnawati, W. Syafmen, and B. Mardhotillah, “Prediksi penjualan emas di PT. Pegadaian Area Jambi menggunakan Fuzzy Time Series Cheng,” Jurnal Ekonomi dan Statistik Indonesia, vol. 3, no. 1, pp. 70–84, Jun. 2023, doi: 10.11594/jesi.03.01.06.
J. T. Manu Joseph, Modern Time Series Forecasting with Python (Second Edition), Birmingham: Packt Publishing, 2024.
J. Brownlee, Deep Learning for Time Series Forecasting Predict the Future with MLPs, CNNs, and LSTMs in Python, Machine Learning Mastery, 2018.
DOI: http://dx.doi.org/10.30829/zero.v9i3.25962
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Publisher : Department of Mathematics Faculty of Science and Technology Universitas Islam Negeri Sumatera Utara Medan | |
✉️ Email: zero_journal@uinsu.ac.id 📱 WhatsApp:085270009767 (Admin Official) | |
| | | | |
