Back to search

University of Strathclyde

Leveraging machine learning for financial forecasting : a dual approach for meme stock price and GDP prediction

Abstract

dc:description.abstract

This dissertation explores the adoption of machine learning in financial analysis through a systematic investigation of stock price prediction and GDP forecasting. The first study examines the relationship between online sentiment and meme stock price movements. This is done by conducting sentiment analysis on Reddit’s WallStreetBets discussion thread and identifying daily popular stock tickers and their sentiment scores. The study then uses several recurrent neural networks, including variations of Long Short-Term Memory (LSTM) models such as single-layered LSTM, regular stacked LSTM, bidirectional LSTM model and Gated Recurrent Unit (GRU) model. These models were trained on five years of historical and technical data, highlighting the impact of online sentiment on Meme stock price fluctuations and the potential of AI-driven models to capture these dynamics. Models were tested for real-time applications for three consecutive days. Results demonstrated that the single-layered LSTM model outperformed other models with low error rates. For example, NVDA with average RMSE: 4.64, MAE: 3.38, MAPE: 0.035, and similar performance observed for ASTS with average RMSE 2.03, MAE: 0.92, MAPE 0.091 and LUNR (RMSE: 0.41, MAE 0.28, MAPE 0.066). However, by the third day regular stacked LSTM model slightly outperformed for NVDA, while single-layered LSTM dominated with better predictive power for other stocks (SMCI – RMSE 112.726, MAE: 86.946, MAPE: 0.111; AI – RMSE: 1.6, MAE: 1.197, MAPE: 0.036). The second study extends the use of AI in macroeconomic forecasting, focusing on the prediction of the GDP of the United Kingdom (UK) using vital macroeconomic variables, including energy prices, unemployment rate, inflation, net migration and Real Effective Exchange Rate (REER) from 1990-2018. For the prediction, several machine learning models, such as Support Vector Regression (SVR), Random Forest (RF) and Gradient Boosting Machines (GBM), were implemented and compared together with Shapley Additive exPlanantions (SHAP). The models were assessed using evaluation metrics such as Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE) and R2 score. The findings underscored the significant role of macroeconomic variables in economic forecasting and illustrated the potential of AI-driven models to provide valuable insight into financial markets and economic indicators. Among them scaled SVR model achieved best performance with RMSE: 83,492. 048, MAE: 77, 219.274, MAPE: 4.2% and R2 score of 0.042. Together, these studies demonstrate the adoptability and potential of machine learning in addressing complex financial and economic prediction tasks and underline practical implications. The integration of sentiment analysis for stock price prediction and macroeconomic modelling for GDP forecasting showcases machine learning’s ability to handle diverse data types, from unstructured textual data in online platforms to structured economic indicators. By combining these approaches, the research highlights how AI can uncover hidden patterns and relationships that traditional financial models might overlook, providing a more nuanced understanding of market behaviors and economic trends.

Degree

thesis:*
Name dc:type.qualificationname
mphil
Level dc:type.qualificationlevel
masters-pg
Grantor dc:publisher.institution
University of Strathclyde
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Perera, Piyumi
Advisor dc:contributor.advisor
  • Fernando, Anil
Author Identifier dc:creator.authoridentifier
  • 202260979

Rights

Identifiers

dc:identifier.*
Identifier
T17333

Chain of custody

source
Harvested from
University of Strathclyde
Base URL
stax.strath.ac.uk/catalog/oai
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Perera, Piyumi. Leveraging machine learning for financial forecasting : a dual approach for meme stock price and GDP prediction. masters-pg thesis, University of Strathclyde, 2025. https://stax.strath.ac.uk/concern/theses/2r36tz16j