Article contents
The Influence of Social Media on Stock Market: A Transformer-Based Stock Price Forecasting with External Factors
Abstract
This paper introduces an innovative approach to forecasting stock prices. Forecasting stock prices is crucial in assisting investors in making informed decisions. Our research presents a unique method that utilizes transformer-based machine learning approach for stock price forecasting. This method exploits self-attention mechanisms to grasp intricate patterns and dynamics within historical stock price data. To bolster our model performance, we integrate investors’ sentiment collected from social media by using sentiment analysis with the help of natural language processing. Utilizing the variation caused by investors’ sentiment over time, as well as external macroeconomic factors, our proposed model outperforms benchmark models. Through extensive comparisons with various benchmark machine-learning algorithms, results produced by our proposed method are favorably comparable to those produced by conventional approaches. Across multiple machine learning models, our preferred model demonstrates superior performance, achieving an RMSE value of 0.96 compared to the RMSE value of 1.58 obtained from LSTM model.
Article information
Journal
Journal of Computer Science and Technology Studies
Volume (Issue)
6 (1)
Pages
189-194
Published
Copyright
Open access
This work is licensed under a Creative Commons Attribution 4.0 International License.