LSTM Based Sentiment Analysis for Cryptocurrency Prediction

Xin Huang, Wenbin Zhang, Xuejiao Tang, Mingli Zhang, Jayachander Surbiryala, Vasileios Iosifidis, Zhen Liu, Ji Zhang

Abstract

Predicting cryptocurrency price movements is challenging due to extreme volatility and the influence of social sentiment. This study introduces a specialized sentiment analysis pipeline tailored for the Chinese market, utilizing data from Sina-Weibo. By integrating a custom-built "crypto-slang" dictionary with a Long Short-Term Memory (LSTM) network, the researchers demonstrate that localized social sentiment serves as a powerful leading indicator for digital asset trends, significantly outperforming traditional time-series models.

Introduction

Cryptocurrency markets are heavily driven by "crowd psychology." While English-language platforms like Twitter and Reddit are frequently studied, the Chinese market—a major hub for trading and mining—remains under-analyzed. Standard Natural Language Processing (NLP) tools often struggle with Chinese crypto-discourse due to language barriers and highly specific metaphors. Terms like "韭菜" (Leek/Bag Holder) or "下车" (Abandon Ship) are frequently misinterpreted by general-purpose sentiment dictionaries, leading to inaccurate market predictions. This paper addresses these gaps by developing a domain-specific architecture for sentiment-based price prediction.

System Architecture

The researchers developed an end-to-end architecture to bridge the gap between social media noise and market signals. The process begins with a specialized web crawler and culminates in a majority-vote prediction based on analyzed sentiment.

System Architecture Flowchart

The pipeline consists of three primary stages:

  1. Data Collection: A crawler captures posts and comments from Sina-Weibo, focusing on major assets like Bitcoin, Ethereum, and Ripple (XRP).
  2. Crypto-Specific Vocabulary: A custom dictionary was built using expert-identified "seed" words and bootstrapping to map informal slang to financial sentiments (e.g., mapping "profit loss" or "selling off").
  3. LSTM Sentiment Analyzer: A Recurrent Neural Network (RNN) with LSTM cells processes word embeddings. LSTMs are ideal for this task as they can capture long-term dependencies in textual data, allowing the model to understand context across entire posts.

Data and Methodology

The study utilized a dataset of 24,000 posts and 70,000 comments from Sina-Weibo, collected over an eight-day period. To ensure high signal-to-noise ratios, the researchers focused on the top 100 influential crypto investor accounts. Posts were manually labeled as positive, neutral, or negative to provide a ground truth for training the LSTM model. This focus on influencers effectively filters out noise from bots and casual users, centering the analysis on individuals most likely to move the market.

Results and Discussion

The LSTM-based approach was compared against a standard Auto Regression (AR) time-series model. The results show a significant performance advantage for the sentiment-aware model across both precision and recall metrics.

Performance Comparison: LSTM vs. Auto Regression

The LSTM model achieved a precision of 87.0% and a recall of 92.5%, representing improvements of 18.5% and 15.4%, respectively, over the AR model. These findings suggest that informal social media sentiment acts as a precursor to price movements, providing a temporal advantage in market prediction by capturing trends before they manifest in historical price data.

Conclusion

This research underscores the importance of domain-specific slang in sentiment analysis for volatile markets. While the current model is limited by a short evaluation window and a single social platform, it provides a robust foundation for future work. Expanding data sources to other Chinese platforms and automating dictionary updates could further enhance the model's predictive power in the fast-evolving cryptocurrency landscape.

Summary updated

Abstract

Recent studies in big data analytics and natural language processing develop automatic techniques in analyzing sentiment in the social media information. In addition, the growing user base of social media and the high volume of posts also provide valuable sentiment information to predict the price fluctuation of the cryptocurrency. This research is directed to predicting the volatile price movement of cryptocurrency by analyzing the sentiment in social media and finding the correlation between them. While previous work has been developed to analyze sentiment in English social media posts, we propose a method to identify the sentiment of the Chinese social media posts from the most popular Chinese social media platform Sina-Weibo. We develop the pipeline to capture Weibo posts, describe the creation of the crypto-specific sentiment dictionary, and propose a long short-term memory (LSTM) based recurrent neural network along with the historical cryptocurrency price movement to predict the price trend for future time frames. The conducted experiments demonstrate the proposed approach outperforms the state of the art auto regressive based model by 18.5% in precision and 15.4% in recall.
BibTeX
@inproceedings{huang2021lstm,
  author = {Xin Huang and Wenbin Zhang and Xuejiao Tang and Mingli Zhang and Jayachander Surbiryala and Vasileios Iosifidis and Zhen Liu and Ji Zhang},
  title = {{LSTM Based Sentiment Analysis for Cryptocurrency Prediction}},
  booktitle = {DASFAA},
  year = {2021},
  url = {https://openreview.net/forum?id=C_YFbdSGrNy},
}
Figure