Next Article in Journal
The Determinants of Implementing and Completing Share Repurchases
Next Article in Special Issue
Role of Bank Credit and External Commercial Borrowings in Working Capital Financing: Evidence from Indian Manufacturing Firms
Previous Article in Journal
Predicting the Non-Return of Chonsei Lease Deposits in the Republic of Korea
Previous Article in Special Issue
Proposing Credit- and Sensitivity-Risk-Based Methodology to Address Corporate Bond Illiquidity Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Lightweight Scheme to Capture Stock Market Sentiment on Social Media Using Sparse Attention Mechanism: A Case Study on Twitter

1
School of Accountancy, Shanghai University of Finance and Economics, Shanghai 200433, China
2
Department of Computing, Xi’an Jiaotong-Liverpool University, Suzhou 215123, China
*
Author to whom correspondence should be addressed.
J. Risk Financial Manag. 2023, 16(10), 440; https://doi.org/10.3390/jrfm16100440
Submission received: 24 August 2023 / Revised: 4 October 2023 / Accepted: 5 October 2023 / Published: 10 October 2023
(This article belongs to the Special Issue Emerging Markets II)

Abstract

Over through the years, people have invested in stock markets in order to maximize their profit from the money they possess. Financial sentiment analysis is an important topic in stock market businesses since it helps investors to understand the overall sentiment towards a company and the stock market, which helps them make better investment decisions. Recent studies show that stock sentiment has strong correlations with the stock market, and we can effectively monitor public sentiment towards the stock market by leveraging social media data. Consequently, it is crucial to develop a model capable of reliably and quickly capturing the sentiment of the stock market. In this paper, we propose a novel and effective sequence-to-sequence transformer model, optimized using a sparse attention mechanism, for financial sentiment analysis. This approach enables investors to understand the overall sentiment towards a company and the stock market, thereby aiding in better investment decisions. Our model is trained on a corpus of financial news items to predict sentiment scores for financial companies. When benchmarked against other models like CNN, LSTM, and BERT, our model is “lightweight” and achieves a competitive latency of 10.3 ms and a reduced computational complexity of 3.2 GFLOPS—which is faster than BERT’s 12.5 ms while maintaining higher computational complexity. This research has the potential to significantly inform decision making in the financial sector.
Keywords: sentiment analysis; stock market; transformer; social media; text mining; sparse attention sentiment analysis; stock market; transformer; social media; text mining; sparse attention

Share and Cite

MDPI and ACS Style

Wu, S.; Gu, F. Lightweight Scheme to Capture Stock Market Sentiment on Social Media Using Sparse Attention Mechanism: A Case Study on Twitter. J. Risk Financial Manag. 2023, 16, 440. https://doi.org/10.3390/jrfm16100440

AMA Style

Wu S, Gu F. Lightweight Scheme to Capture Stock Market Sentiment on Social Media Using Sparse Attention Mechanism: A Case Study on Twitter. Journal of Risk and Financial Management. 2023; 16(10):440. https://doi.org/10.3390/jrfm16100440

Chicago/Turabian Style

Wu, Sihan, and Fuyu Gu. 2023. "Lightweight Scheme to Capture Stock Market Sentiment on Social Media Using Sparse Attention Mechanism: A Case Study on Twitter" Journal of Risk and Financial Management 16, no. 10: 440. https://doi.org/10.3390/jrfm16100440

APA Style

Wu, S., & Gu, F. (2023). Lightweight Scheme to Capture Stock Market Sentiment on Social Media Using Sparse Attention Mechanism: A Case Study on Twitter. Journal of Risk and Financial Management, 16(10), 440. https://doi.org/10.3390/jrfm16100440

Article Metrics

Back to TopTop