Harmonizing Macro-Financial Factors and Twitter Sentiment Analysis in Forecasting Stock Market Trends

Md Shahedul Amin, Hossain Ayon, Bishnu Padh Ghosh, Md Salim Chowdhury, Mohammad Shafiquzzaman Bhuiyan, Rasel Mahmud Jewel, Ahmed Ali Linkon
{"title":"Harmonizing Macro-Financial Factors and Twitter Sentiment Analysis in Forecasting Stock Market Trends","authors":"Md Shahedul Amin, Hossain Ayon, Bishnu Padh Ghosh, Md Salim Chowdhury, Mohammad Shafiquzzaman Bhuiyan, Rasel Mahmud Jewel, Ahmed Ali Linkon","doi":"10.32996/jcsts.2024.6.1.7","DOIUrl":null,"url":null,"abstract":"The surge in generative artificial intelligence technologies, exemplified by systems such as ChatGPT, has sparked widespread interest and discourse prominently observed on social media platforms like Twitter. This paper delves into the inquiry of whether sentiment expressed in tweets discussing advancements in AI can forecast day-to-day fluctuations in stock prices of associated companies. Our investigation involves the analysis of tweets containing hashtags related to ChatGPT within the timeframe of December 2022 to March 2023. Leveraging natural language processing techniques, we extract features, including positive/negative sentiment scores, from the collected tweets. A range of classifier machine learning models, encompassing gradient boosting, decision trees and random forests, are employed to train on tweet sentiments and associated features for the prediction of stock price movements among key companies, such as Microsoft and OpenAI. These models undergo training and testing phases utilizing an empirical dataset gathered during the stipulated timeframe. Our preliminary findings reveal intriguing indications suggesting a plausible correlation between public sentiment reflected in Twitter discussions surrounding ChatGPT and generative AI and the subsequent impact on market valuation and trading activities concerning pertinent companies, gauged through stock prices. This study aims to forecast bullish or bearish trends in the stock market by leveraging sentiment analysis derived from an extensive dataset comprising 500,000 tweets. In conjunction with this sentiment analysis derived from Twitter, we incorporate control variables encompassing macroeconomic indicators, Twitter uncertainty index and stock market data for several prominent companies.","PeriodicalId":417206,"journal":{"name":"Journal of Computer Science and Technology Studies","volume":"43 3","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-01-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Computer Science and Technology Studies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.32996/jcsts.2024.6.1.7","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The surge in generative artificial intelligence technologies, exemplified by systems such as ChatGPT, has sparked widespread interest and discourse prominently observed on social media platforms like Twitter. This paper delves into the inquiry of whether sentiment expressed in tweets discussing advancements in AI can forecast day-to-day fluctuations in stock prices of associated companies. Our investigation involves the analysis of tweets containing hashtags related to ChatGPT within the timeframe of December 2022 to March 2023. Leveraging natural language processing techniques, we extract features, including positive/negative sentiment scores, from the collected tweets. A range of classifier machine learning models, encompassing gradient boosting, decision trees and random forests, are employed to train on tweet sentiments and associated features for the prediction of stock price movements among key companies, such as Microsoft and OpenAI. These models undergo training and testing phases utilizing an empirical dataset gathered during the stipulated timeframe. Our preliminary findings reveal intriguing indications suggesting a plausible correlation between public sentiment reflected in Twitter discussions surrounding ChatGPT and generative AI and the subsequent impact on market valuation and trading activities concerning pertinent companies, gauged through stock prices. This study aims to forecast bullish or bearish trends in the stock market by leveraging sentiment analysis derived from an extensive dataset comprising 500,000 tweets. In conjunction with this sentiment analysis derived from Twitter, we incorporate control variables encompassing macroeconomic indicators, Twitter uncertainty index and stock market data for several prominent companies.
在预测股市趋势时协调宏观金融因素和 Twitter 情绪分析
以 ChatGPT 等系统为代表的生成式人工智能技术的迅猛发展引发了人们的广泛兴趣,并在 Twitter 等社交媒体平台上引起了显著的讨论。本文将深入探讨讨论人工智能进步的推文中所表达的情感是否能预测相关公司股价的日常波动。我们的研究涉及对 2022 年 12 月至 2023 年 3 月期间包含 ChatGPT 相关标签的推文进行分析。利用自然语言处理技术,我们从收集到的推文中提取了包括正面/负面情绪分数在内的特征。我们采用了一系列分类器机器学习模型,包括梯度提升、决策树和随机森林,对推文情绪和相关特征进行训练,以预测微软和 OpenAI 等主要公司的股价走势。这些模型利用在规定时间内收集的经验数据集进行训练和测试。我们的初步研究结果揭示了一些耐人寻味的迹象,表明围绕 ChatGPT 和生成式人工智能的推特讨论所反映的公众情绪与随后通过股票价格衡量的相关公司的市场估值和交易活动之间存在可信的关联。本研究旨在利用从包含 50 万条推文的广泛数据集中获得的情感分析,预测股市的看涨或看跌趋势。在对 Twitter 进行情感分析的同时,我们还纳入了一些控制变量,包括宏观经济指标、Twitter 不确定性指数和几家著名公司的股票市场数据。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信