Related Experiment Videos
Forecasting USD PKR exchange rates using Urdu social media sentiment
Abid Sohail1, Muhammad Rizwan1, Muhammad Salman Ali2
1Department of computer Science, COMSATS University Islamabad, Lahore Campus, Lahore, 57590, Pakistan.
Scientific Reports
|July 10, 2026
Summary
Forecasting the USD/PKR exchange rate is improved by combining historical data with public sentiment from Urdu tweets. A hybrid model using GPT-4o sentiment analysis achieved the best prediction accuracy.
Area of Science:
- Computational Finance
- Natural Language Processing
- Time Series Analysis
Background:
- Exchange rate forecasting traditionally relies on historical price data.
- Public sentiment, especially during instability, is an underutilized signal.
- The USD/PKR currency pair is crucial for Pakistan's economy.
Purpose of the Study:
- To develop a hybrid forecasting framework for the USD/PKR exchange rate.
- To integrate historical exchange rate data with sentiment analysis from Urdu tweets.
- To evaluate the effectiveness of different sentiment analysis models and forecasting architectures.
Main Methods:
- Collected 172,002 tweets from X (formerly Twitter) using trending hashtags.
- Filtered and processed 45,048 relevant Urdu-language tweets for sentiment analysis.
- Compared sentiment analysis models: Gemini 1.5 Flash, GPT-3.5 Turbo, GPT-4o, and XGBoost.
- Integrated sentiment scores with USD/PKR exchange rate data.
- Employed Long Short-Term Memory (LSTM), Xtreme Gradient Boosting (XGBoost), and a hybrid LSTM+XGBoost model for forecasting.
Main Results:
- The hybrid LSTM+XGBoost model incorporating GPT-4o sentiment scores achieved the best performance.
- Achieved a Root Mean Squared Error (RMSE) of 0.0831 and Mean Absolute Percentage Error (MAPE) of 0.03%.
- Outperformed the LSTM baseline model trained solely on historical data.
Conclusions:
- Urdu social media sentiment is a valuable predictor for exchange rate movements.
- Hybrid forecasting models are superior to standalone models for leveraging social media sentiment.
- The proposed framework offers improved accuracy for USD/PKR exchange rate forecasting.
Related Concept Videos
Group Polarization
Group polarization is the strengthening of an original group attitude following the discussion of views within a group (Teger & Pruitt, 1967). That is, if a group initially favors a viewpoint, after discussion the group consensus is likely a stronger endorsement of the viewpoint. Conversely, if the group was initially opposed to a viewpoint, group discussion would likely lead to stronger opposition.
Social Exchange Theory
As formulated by John Thibaut and Harold Kelley, Social Exchange Theory explains human relationships as economic-like exchanges that maximize rewards and minimize costs. This theory suggests that individuals engage in relationships to gain benefits and reduce burdens, similar to economic transactions. It has been widely applied to various types of relationships, including romantic, professional, and social interactions.Rewards and Costs in RelationshipsRelationship rewards include emotional...
Prediction Intervals
The interval estimate of any variable is known as the prediction interval. It helps decide if a point estimate is dependable.
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
The...
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
The...
Increasing Function
An increasing function exhibits a rise in output values as input values increase. This behavior is depicted graphically as a curve or line that slopes upward from left to right. Such a function satisfies the condition that if x1 < x2, then f(x1) < f(x2), indicating that the function values grow with increasing inputs. This concept is fundamental in understanding growth trends across various domains, such as population dynamics, financial investments, or resource consumption.The average...
Predicting Reaction Outcomes
Kinetics describes the rate and path by which a reaction occurs. In contrast, thermodynamics deals with state functions and describes the properties, behavior, and components of a system. It is not concerned with the path taken by the process and cannot address the rate at which a reaction occurs. Although it does provide information about what can happen during a reaction process, it does not describe the detailed steps of what appears on an atomic or a molecular level. On the other hand,...