Dynamic Representation and Evolutionary Characteristics of Social Media Sentiment in Stock Markets Based on Large Language Models A Case Study of Twitter Financial Corpus
Chuqing Wang and
Yanbo Hu
Simen Owen Academic Proceedings Series, 2026, vol. 5, 355-362
Abstract:
The rapid development of social media has generated massive amounts of timely and sentiment-rich textual data, which provides a new perspective for studying investor psychology and market behaviors in the stock market. Existing studies mostly rely on lexicon-based methods or shallow machine learning models, which are insufficient to capture complex semantics in financial contexts. Meanwhile, static sentiment analysis dominates current research, while the dynamic evolution of investor sentiment over time is largely overlooked. To address these limitations, this study adopts large language models (LLMs) to conduct fine-grained sentiment representation modeling on Twitter financial corpus. Using the publicly available Twitter Financial News Sentiment Dataset containing 500,000 annotated tweets related to the stock market, we design dedicated prompt templates to extract discrete sentiment labels and continuous sentiment scores ranging from -1 to 1. We further construct a multi-dimensional sentiment indicator system including mean sentiment index, sentiment volatility, and sentiment distribution entropy. Time-series analysis methods such as sliding window analysis, trend detection, and anomaly detection are employed to explore the evolutionary patterns of investor sentiment. Empirical results show that social media sentiment exhibits significant periodic fluctuations, distinct sentiment peaks around major market events, and heterogeneous evolutionary characteristics across different stocks. Compared with traditional approaches, the LLM-based method demonstrates stronger contextual understanding and higher accuracy in financial domain adaptation. This study enriches the methodology of financial text sentiment analysis and provides empirical evidence for behavioral finance research on investor sentiment dynamics.
Keywords: large language models; stock market; social media; sentiment analysis; time series (search for similar items in EconPapers)
Date: 2026
References: Add references at CitEc
Citations:
Downloads: (external link)
https://soapubs.com/index.php/SOAPS/article/view/2265/2079 (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:axf:soapsa:v:5:y:2026:i::p:355-362
Access Statistics for this article
More articles in Simen Owen Academic Proceedings Series from Scientific Open Access Publishing
Bibliographic data for series maintained by Yuchi Liu ().