A Web-Based Gold Price Prediction Model Using Geopolitical Sentiment from Social Media and Gated Recurrent Unit (GRU)

Authors

  • Narendra Saputra Universitas Muria Kudus
  • Anteng Widodo Universitas Muria Kudus
  • Zainur Romadhon Universitas Muria Kudus

DOI:

https://doi.org/10.35870/ijmsit.v6i2.8297

Keywords:

Gold Price Prediction, Geopolitical Sentiment, X Social Media, Gated Recurrent Unit (GRU), Sentiment Analysis

Abstract

Gold is widely recognized as a safe-haven asset whose price is sensitive to economic and geopolitical uncertainty. This study develops a web-based international gold price prediction system using the Gated Recurrent Unit (GRU) algorithm and evaluates the contribution of geopolitical sentiment from the X social media platform. The study uses historical XAUUSD data and English-language posts related to the Iran–United States–Israel conflict. Text data were processed through cleaning, case folding, tokenization, stopword removal, lemmatization, TF-IDF transformation, and sentiment analysis using VADER. The resulting daily sentiment scores were integrated with historical gold price features and used as an additional input to the GRU model. Two experimental scenarios were evaluated: GRU without sentiment and GRU with sentiment. The results show that the GRU model without sentiment achieved an MAE of 55.07, RMSE of 69.81, MAPE of 1.17%, and R² of 0.9629, while the model with sentiment achieved an MAE of 80.87, RMSE of 92.93, MAPE of 1.72%, and R² of 0.9342. These findings indicate that incorporating daily aggregated social media sentiment did not improve prediction performance for the dataset used. The developed Flask-based web application provides prediction, sentiment analysis, visualization, and model evaluation features, demonstrating the practical implementation of the proposed approach.

Downloads

Download data is not yet available.

Author Biographies

  • Narendra Saputra, Universitas Muria Kudus

    Information Systems Study Program, Faculty of Engineering, Universitas Muria Kudus, Kudus Regency, Central Java, Indonesia

  • Anteng Widodo, Universitas Muria Kudus

    Information Systems Study Program, Faculty of Engineering, Universitas Muria Kudus, Kudus Regency, Central Java, Indonesia

  • Zainur Romadhon, Universitas Muria Kudus

    Information Systems Study Program, Faculty of Engineering, Universitas Muria Kudus, Kudus Regency, Central Java, Indonesia

References

Adams, T., Ajello, A., Silva, D., & Vazquez-Grande, F. (2023). More than Words: Twitter Chatter and Financial Market Sentiment. Finance and Economics Discussion Series 2023-034, Federal Reserve Board, Washington, DC. https://doi.org/10.17016/FEDS.2023.034

Agusmawati, N. K., Khoiriyah, F., & Tholib, A. (2023). Prediksi harga emas menggunakan metode LSTM dan GRU. JITET (Jurnal Informatika dan Teknik Elektro Terapan), 11(3), 620–628. https://doi.org/10.23960/jitet.v11i3.3250

Dalimunthe, R. A., Adek, R. T., & Agusniar, C. (2025). Gold price prediction using Long-Short Term Memory algorithm based on web application. International Journal of Engineering, Science and Information Technology, 5(1), 329–339. https://doi.org/10.52088/ijesty.v5i1.724

Ehsan, A., Habib, S., & Sohail, A. (2025). Financial news sentiment analysis using NLP and machine learning for asset price prediction: A systematic review. VFAST Transactions on Software Engineering, 13(3), 279–308. https://doi.org/10.21015/vtse.v13i3.2165

Hadinegoro, Y. S., & Sulistiyo, H. (2025). Analisis pengaruh sentimen publik di media sosial (Twitter) terhadap Indeks Harga Saham Gabungan (IHSG): Implikasi koperasi desa merah putih. Jurnal Ilmiah Wahana Pendidikan, 11(11C), 197–208.

Harmain, I. S. R., Nurwan, Hasan, I. K., Wungguli, D., & Yahya, N. I. (2025). Prediksi harga emas dunia menggunakan deep learning GRU dengan optimasi nadam. Jurnal Riset Mahasiswa Matematika, 4(6), 310–322. https://doi.org/10.18860/jrmm.v4i6.36007

Hendra, Z. V., Ramadhani, M. A., Chintya, I., Rahmatullah, Y., & Ismanto, E. (2026). Prediksi harga emas menggunakan algoritma Long Short-Term Memory (LSTM) & Gated Recurrent Unit (GRU). Journal of Software Engineering and Information System (SEIS), 31-37.

Kusuma, N. P. N., & Dewi, D. P. N. (2025). Analisis sentimen saham PT Antam Tbk di tengah kenaikan harga emas menggunakan metode VADER. JUTISI: Jurnal Ilmiah Teknik Informatika dan Sistem Informasi, 420–428. https://doi.org/10.35889/jutisi.v14i1.2630

Meriani, A. P., & Rahmatulloh, A. (2024). Perbandingan Gated Recurrent Unit (GRU) dan algoritma Long Short-Term Memory (LSTM) linear regression dalam prediksi harga emas menggunakan model time series. JITET (Jurnal Informatika dan Teknik Elektro Terapan), 12(1), 468–476. https://doi.org/10.23960/jitet.v12i1.3808

Septiana, R., Putri, A. R., Maharani, W. S., Gultom, G. D., Simanullang, E. D., Tania, K. D., Meiriza, A., & Rifai, A. (2025). Prediksi harga emas Indonesia menggunakan model CNN-LSTM. INFOMATEK: Jurnal Informatika, Manajemen dan Teknologi, 27(1), 131–138. https://doi.org/10.23969/infomatek.v27i1.24417

Downloads

Published

2026-08-13

How to Cite

Saputra, N., Widodo, A., & Romadhon, Z. (2026). A Web-Based Gold Price Prediction Model Using Geopolitical Sentiment from Social Media and Gated Recurrent Unit (GRU). International Journal of Management Science and Information Technology, 6(2), 1807-1816. https://doi.org/10.35870/ijmsit.v6i2.8297

Most read articles by the same author(s)