[Paper Review] A Tweet-based Dataset for Company-Level Stock Return Prediction
This paper introduces a publicly available, company-level dataset of 862,231 English tweets labeled for one-, two-, three-, and seven-day stock return directions, enabling machine learning models to predict stock price movements using social media sentiment. The study demonstrates that multi-view learning combining BERT, fastText, and bag-of-words features improves prediction accuracy, particularly for three-day returns, with a peak F1-score of 0.61 using a multi-view approach.
Public opinion influences events, especially related to stock market movement, in which a subtle hint can influence the local outcome of the market. In this paper, we present a dataset that allows for company-level analysis of tweet based impact on one-, two-, three-, and seven-day stock returns. Our dataset consists of 862, 231 labelled instances from twitter in English, we also release a cleaned subset of 85, 176 labelled instances to the community. We also provide baselines using standard machine learning algorithms and a multi-view learning based approach that makes use of different types of features. Our dataset, scripts and models are publicly available at: https://github.com/ImperialNLP/stockreturnpred.
Motivation & Objective
- To address the gap in company-specific stock return prediction by leveraging social media sentiment from Twitter.
- To provide a labeled, publicly accessible dataset for fine-grained, company-level stock movement forecasting.
- To evaluate the predictive power of textual features from tweets using diverse NLP and machine learning techniques.
- To benchmark both single-view and multi-view learning approaches for improved stock return direction prediction.
Proposed method
- The dataset comprises 862,231 labeled English tweets linked to company-level stock returns over 1-, 2-, 3-, and 7-day horizons.
- Textual features are extracted using bag-of-words, fastText, and BERT embeddings to capture lexical, subword, and contextual information.
- Sentiment polarity is measured using TextBlob and a custom LSTM-based sentiment classifier.
- A multi-view learning framework combines multiple feature representations via canonical correlation analysis (CCA) before feeding into an automated machine learning pipeline.
- The study employs an 80:20 train-test split and evaluates performance using accuracy across different return horizons.
- Baseline models include standard machine learning algorithms and a multi-view learning approach that concatenates projections from different feature views.
Experimental results
Research questions
- RQ1Can tweet-level sentiment and textual content predict directional stock returns at the company level for short to medium horizons?
- RQ2How does the inclusion of multi-view textual features (e.g., BERT, fastText, BoW) improve stock return prediction compared to single-view models?
- RQ3What is the optimal prediction horizon (1-, 2-, 3-, or 7-day) for tweet-based stock return forecasting using NLP features?
- RQ4To what extent do financial metrics, news volume, and social media volume alone predict stock return direction compared to sentiment-informed models?
- RQ5Does combining multiple NLP feature representations through multi-view learning yield better predictive performance than individual representations?
Key findings
- The multi-view learning approach combining fastText and BERT features achieved the highest accuracy of 0.64 for predicting seven-day stock return direction.
- For three-day return prediction, the multi-view model using BoW and fastText features reached an accuracy of 0.61, outperforming single-view baselines.
- The best-performing single-view model using BERT achieved 0.53 accuracy for one-day return prediction, slightly outperforming BoW and fastText.
- The inclusion of sentiment information in the third benchmark improved prediction accuracy compared to models relying only on volume metrics (Benchmark 2).
- The results suggest that multi-view learning effectively captures complementary information from different NLP representations, enhancing predictive power for medium-term stock direction forecasting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.