Research Article

Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter

Volume: 13 Number: 3 July 31, 2025
TR EN

Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter

Abstract

In recent years, discussions about cryptocurrencies, particularly on platforms such as Twitter, have become increasingly prevalent. This study focuses on conducting a sentiment analysis (SA) of tweets related to cryptocurrencies, applying machine learning (ML) and deep learning (DL) methodologies based on natural language processing (NLP). This research used a total of 10,000 tweets collected from open sources between 2020 and 2021. Prior to analysis, the dataset underwent detailed pre-processing, during which non-textual elements such as emojis, links, and HTML codes were removed. TF-IDF was initially employed to generate text representations. Various traditional ML models were applied, including Naïve Bayes (NB), Decision Tree (DT), Support Vector Machine (SVM). Advanced DL models were also used, including Bidirectional Long Short-Term Memory (BiLSTM) and Bidirectional Gated Recurrent Unit (BiGRU). To capture contextual relationships more effectively, text embeddings generated by the Bidirectional Encoder Representations from Transformers (BERT) model were also utilised. When performance was evaluated, the BERT-based BiGRU model achieved the highest Accuracy (Acc) of 93% and the best F1 score. This demonstrates the effectiveness of combining deep contextual embeddings with models capable of learning from sequential patterns. Overall, the findings suggest that DL approaches, particularly those that incorporate advanced representation methods such as BERT, can significantly outperform traditional models in sentiment classification tasks.

Keywords

Cryptocurrency, sentiment analysis, text representation, ML, DL

Project Number

yok

References

  1. [1] S. Nakamoto, "Bitcoin: A peer-to-peer electronic cash system," Bitcoin. Accessed: Apr. 9, 2025. [Online]. Available: https://bitcoin.org/bitcoin.pdf.
  2. [2] J. Bollen, H. Mao and X. Zeng, “Twitter mood predicts the stock market,” Journal of Computational Science, vol. 2, no. 1, pp. 1–8, 2011.
  3. [3] Y. Liu and A. Tsyvinski, “Risks and returns of cryptocurrency,” The Review of Financial Studies, vol. 34, no. 6, pp. 2689–2727, 2021.
  4. [4] F. Mai, Z. Shan, Q. Bai, X. (Shane) Wang and R. H. L. Chiang, “How does social media impact bitcoin value? A test of the silent majority hypothesis,” Journal of Management Information Systems, vol. 35, no. 1, pp. 19–52, 2018.
  5. [5] A.-U. Islam, "Crypto tweets," Accessed: Apr. 9, 2025. [Online]. Available: https://www.kaggle.com/datasets/leoth9/crypto-tweets
  6. [6] G. Salton and C. Buckley, “Term-weighting approaches in automatic text retrieval,” Information Processing & Management, vol. 24, no. 5, pp. 513–523, 1988.
  7. [7] J. R. Quinlan, “Induction of decision trees,” Machine Learning, vol. 1, no. 1, pp. 81–106, 1986.
  8. [8] J. Devlin, M. W. Chang, K. Lee and K. Toutanova, “BERT: Pre-training of deep bidirectional transformers for language understanding,”in NAACL HLT 2019 - 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies - Proceedings of the Conference, vol. 1, Minneapolis, USA, 2019, pp. 4171–4186.
  9. [9] K. I. Roumeliotis, N. D. Tselikas and D. K. Nasiopoulos, "LLMs and NLP models in cryptocurrency sentiment analysis: a comparative classification study," Big Data and Cognitive Compututing, vol. 8, no. 6, 2024, Art. no. 63.
  10. [10] K. Byc, S. C. Ilinca and R. R. Mukkamala, "The relationship between social media sentiment and Bitcoin price volatility," M.S. thesis, Copenhagen Bus. Sch., Copenhagen, Denmark, 2021. [Online]. Available: https://research.cbs.dk/files/71300950/1303955_Master_Thesis_Sep_2021.pdf
APA
Ateş, M., & Başarslan, M. S. (2025). Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter. Duzce University Journal of Science and Technology, 13(3), 1431-1444. https://doi.org/10.29130/dubited.1673097
AMA
1.Ateş M, Başarslan MS. Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter. DUBİTED. 2025;13(3):1431-1444. doi:10.29130/dubited.1673097
Chicago
Ateş, Melisa, and Muhammet Sinan Başarslan. 2025. “Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter”. Duzce University Journal of Science and Technology 13 (3): 1431-44. https://doi.org/10.29130/dubited.1673097.
EndNote
Ateş M, Başarslan MS (July 1, 2025) Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter. Duzce University Journal of Science and Technology 13 3 1431–1444.
IEEE
[1]M. Ateş and M. S. Başarslan, “Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter”, DUBİTED, vol. 13, no. 3, pp. 1431–1444, July 2025, doi: 10.29130/dubited.1673097.
ISNAD
Ateş, Melisa - Başarslan, Muhammet Sinan. “Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter”. Duzce University Journal of Science and Technology 13/3 (July 1, 2025): 1431-1444. https://doi.org/10.29130/dubited.1673097.
JAMA
1.Ateş M, Başarslan MS. Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter. DUBİTED. 2025;13:1431–1444.
MLA
Ateş, Melisa, and Muhammet Sinan Başarslan. “Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter”. Duzce University Journal of Science and Technology, vol. 13, no. 3, July 2025, pp. 1431-44, doi:10.29130/dubited.1673097.
Vancouver
1.Melisa Ateş, Muhammet Sinan Başarslan. Performance Comparison of Traditional and Contextual Representations for Cryptocurrency Sentiment Analysis on Twitter. DUBİTED. 2025 Jul. 1;13(3):1431-44. doi:10.29130/dubited.1673097