Published: 2026-08-13
A Web-Based Gold Price Prediction Model Using Geopolitical Sentiment from Social Media and Gated Recurrent Unit (GRU)
DOI: 10.35870/ijmsit.v6i2.8297
Narendra Saputra, Anteng Widodo, Zainur Romadhon
- Narendra Saputra: Universitas Muria Kudus
- Anteng Widodo: Universitas Muria Kudus
- Zainur Romadhon: Universitas Muria Kudus
Article Metrics
- Scopus Citations
- Google Scholar
- Crossref Citations
- Semantic Scholar
- DataCite Metrics
-
If the link doesn't work, copy the DOI or article title for manual search (API Maintenance).
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.
Keywords
Gold Price Prediction; Geopolitical Sentiment; X Social Media; Gated Recurrent Unit (GRU); Sentiment Analysis
Peer Review Process
This article has undergone a double-blind peer review process to ensure quality and impartiality.
Indexing Information
Discover where this journal is indexed at our indexing page.
Open Science Badges
This journal supports transparency in research and encourages authors to meet criteria for Open Science Badges.
How to Cite
Article Information
This article has been peer-reviewed and published in the International Journal of Management Science and Information Technology. The content is available under the terms of the Creative Commons Attribution 4.0 International License.
-
Issue: Vol. 6 No. 2 (2026)
-
Section: Articles
-
Published: 2026-08-13
-
License: CC BY 4.0
-
Copyright: © 2026 Authors
-
DOI: 10.35870/ijmsit.v6i2.8297
AI Research Hub
This article is indexed and available through various AI-powered research tools and citation platforms. Our AI Research Hub ensures that scholarly work is discoverable, accessible, and easily integrated into the global research ecosystem.
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
-
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
-
-
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
-
-
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

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
1. Copyright Retention and Open Access License
Authors retain copyright of their work and grant the journal non-exclusive right of first publication under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
This license allows unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
2. Rights Granted Under CC BY 4.0
Under this license, readers are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, including commercial use
- No additional restrictions — the licensor cannot revoke these freedoms as long as license terms are followed
3. Attribution Requirements
All uses must include:
- Proper citation of the original work
- Link to the Creative Commons license
- Indication if changes were made to the original work
- No suggestion that the licensor endorses the user or their use
4. Additional Distribution Rights
Authors may:
- Deposit the published version in institutional repositories
- Share through academic social networks
- Include in books, monographs, or other publications
- Post on personal or institutional websites
Requirement: All additional distributions must maintain the CC BY 4.0 license and proper attribution.
5. Self-Archiving and Pre-Print Sharing
Authors are encouraged to:
- Share pre-prints and post-prints online
- Deposit in subject-specific repositories (e.g., arXiv, bioRxiv)
- Engage in scholarly communication throughout the publication process
6. Open Access Commitment
This journal provides immediate open access to all content, supporting the global exchange of knowledge without financial, legal, or technical barriers.