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

No Cover Available
Article Metrics
Share:

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.

Most read articles by the same author(s)

More From The Same Author