Skip to main content
QUICK REVIEW

[Paper Review] Deep Learning and NLP in Cryptocurrency Forecasting: Integrating Financial, Blockchain, and Social Media Data

Vincent Gurgul, Stefan Lessmann|arXiv (Cornell University)|Nov 23, 2023
Stock Market Forecasting MethodsDecision Sciences7 citations
TL;DR

This paper proposes a deep learning framework that integrates financial, blockchain, and social media data—particularly from Twitter and Reddit—for cryptocurrency price forecasting. By treating price movement and local extrema as classification tasks and leveraging pre-trained NLP models like BART MNLI and Twitter-RoBERTa, the study demonstrates that NLP-enhanced models significantly improve forecasting accuracy and consistently generate profits across time, with zero-shot models outperforming even fine-tuned LLMs in sentiment detection.

ABSTRACT

We introduce novel approaches to cryptocurrency price forecasting, leveraging Machine Learning (ML) and Natural Language Processing (NLP) techniques, with a focus on Bitcoin and Ethereum. By analysing news and social media content, primarily from Twitter and Reddit, we assess the impact of public sentiment on cryptocurrency markets. A distinctive feature of our methodology is the application of the BART MNLI zero-shot classification model to detect bullish and bearish trends, significantly advancing beyond traditional sentiment analysis. Additionally, we systematically compare a range of pre-trained and fine-tuned deep learning NLP models against conventional dictionary-based sentiment analysis methods. Another key contribution of our work is the adoption of local extrema alongside daily price movements as predictive targets, reducing trading frequency and portfolio volatility. Our findings demonstrate that integrating textual data into cryptocurrency price forecasting not only improves forecasting accuracy but also consistently enhances the profitability and Sharpe ratio across various validation scenarios, particularly when applying deep learning NLP techniques. The entire codebase of our experiments is made available via an online repository: https://anonymous.4open.science/r/crypto-forecasting-public

Motivation & Objective

  • To investigate whether integrating social media and news sentiment from Twitter and Reddit improves cryptocurrency price forecasting beyond traditional financial and on-chain data.
  • To evaluate the effectiveness of zero-shot and fine-tuned large language models (LLMs) in capturing nuanced market sentiment for BTC and ETH.
  • To compare the predictive performance of various machine learning models—especially deep learning architectures—when incorporating NLP features versus when relying solely on price and on-chain data.
  • To assess whether forecasting local extrema (local minima/maxima) yields better performance and profitability than predicting daily price movements.
  • To examine the long-term stability of market efficiency and the sustained impact of NLP data over time, especially as textual data becomes more prevalent.

Proposed method

  • The study employs a multi-modal approach combining time series data (BTC and ETH prices, on-chain metrics, GitHub activity, Google Trends) with textual data from Twitter and Reddit.
  • Textual sentiment is extracted using pre-trained NLP models, including Twitter-RoBERTa and BART MNLI, with the latter used in a zero-shot classification setting to detect bullish and bearish sentiment.
  • Forecasting is framed as a binary classification task: predicting daily price direction (up/down) and identifying local extrema over varying time windows (e.g., 21-day extrema).
  • A range of machine learning models are evaluated, including Long Short-Term Memory (LSTM), Gated Recurrent Units (GRU), Temporal Fusion Transformers (TFT), and feed-forward networks, with and without NLP features.
  • Model performance is assessed using standard metrics such as AUC-ROC, Mean Squared Error (MSE), and Binary Cross-Entropy (BCE), alongside a backtested trading simulation to evaluate profitability.
  • Granger causality tests are applied to determine the temporal lag of NLP features’ predictive power, identifying that sentiment signals up to one week in advance are statistically significant.

Experimental results

Research questions

  • RQ1Can integrating NLP-extracted sentiment from social media and news improve the accuracy of cryptocurrency price forecasts compared to models using only financial and on-chain data?
  • RQ2How do pre-trained zero-shot models like BART MNLI compare to fine-tuned LLMs in capturing market sentiment for financial forecasting tasks?
  • RQ3Does forecasting local extrema (e.g., 21-day highs/lows) yield better predictive performance and higher profitability than predicting daily price movements?
  • RQ4Is the predictive impact of NLP data stable over time, or does its effectiveness diminish as market efficiency evolves?
  • RQ5What is the optimal target variable (daily movement vs. extrema) for maximizing profitability in a backtested trading environment?

Key findings

  • Incorporating NLP data significantly improves forecasting performance across all evaluation metrics, with consistent gains in AUC-ROC and profitability over time.
  • The BART MNLI zero-shot classifier outperforms many fine-tuned LLMs in detecting bullish and bearish sentiment, demonstrating strong generalization to financial text without task-specific fine-tuning.
  • Text features lagged by up to one week are Granger causal, indicating that sentiment has predictive power with a measurable lead time, especially for 21-day extrema forecasting.
  • Models trained on local extrema as targets achieve high classification accuracy and generate decent profits with significantly fewer trades, making them suitable for high-transaction-cost environments.
  • All models consistently generate profits across all cross-validation splits, with no decline in performance or NLP impact over time, suggesting sustained market inefficiency exploitable via text data.
  • Non-linear models (e.g., LSTM, TFT) outperform linear models (e.g., OLS), but even linear models yield commendable results, indicating that while non-linearities exist, linear relationships remain dominant in financial time series.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.