Research Article

Sentiment analysis of Twitter texts using Machine learning algorithms

Volume: 9 Number: 3 September 30, 2021
EN

Sentiment analysis of Twitter texts using Machine learning algorithms

Abstract

Since the two last decades, social media networks have become a part of our daily life. Today, getting information from social media, tracking trends in social media, learning the feelings and emotions of people on social media is very essential. In this study, sentiment analysis was performed on Twitter text to learn about the subjective polarities of the writings. The polarities are positive, negative, and neutral. At the first stage of the sentiment analysis, a public data set has been obtained. Secondly, natural language processing techniques have been applied to make the data ready for machine learning training procedures. Lastly, sentiment analysis is performed by using three different machine learning algorithms. We reached 89% accuracy with Support Vector Machines, 88% accuracy with Random Forest, and 72% accuracy with Gaussian Naive Bayes classifier.

Keywords

References

  1. [1] Duncombe, Constance. "The politics of Twitter: emotions and the power of social media." International Political Sociology 13.4 (2019): 409-429.
  2. [2] Akram, Waseem, and Rekesh Kumar. "A study on positive and negative effects of social media on society." International Journal of Computer Sciences and Engineering 5.10 (2017): 347-354.
  3. [3] Ajjoub, Carl, Thomas Walker, and Yunfei Zhao. "Social media posts and stock returns: The Trump factor." International Journal of Managerial Finance (2020).
  4. [4] Social Blade Organization, “Twitter Stats Summary,” User Statistics for RealDonalTrump. https://socialblade.com/twitter/user/realdonaldtrump (accessed Dec. 7, 2020).
  5. [5] Wells, Chris, et al. "Trump, Twitter, and news media responsiveness: A media systems approach." New Media & Society 22.4 (2020): 659-682.
  6. [6] Clarke, Isobelle, and Jack Grieve. "Stylistic variation on the Donald Trump Twitter account: A linguistic analysis of tweets posted between 2009 and 2018." PloS one 14.9 (2019): e0222062.
  7. [7] Yaqub, Ussama, et al. "Analysis of political discourse on twitter in the context of the 2016 US presidential elections." Government Information Quarterly 34.4 (2017): 613-626.
  8. [8] Kaggle Data science Company, “Datasets,” Datasets. https://www.kaggle.com/austinreese/trump-tweets (accessed Nov.7, 2020).

Details

Primary Language

English

Subjects

Engineering

Journal Section

Research Article

Publication Date

September 30, 2021

Submission Date

May 19, 2021

Acceptance Date

July 19, 2021

Published in Issue

Year 2021 Volume: 9 Number: 3

APA
Barzenjı, H. (2021). Sentiment analysis of Twitter texts using Machine learning algorithms. Academic Platform - Journal of Engineering and Science, 9(3), 460-471. https://doi.org/10.21541/apjes.939338
AMA
1.Barzenjı H. Sentiment analysis of Twitter texts using Machine learning algorithms. APJES. 2021;9(3):460-471. doi:10.21541/apjes.939338
Chicago
Barzenjı, Hawar. 2021. “Sentiment Analysis of Twitter Texts Using Machine Learning Algorithms”. Academic Platform - Journal of Engineering and Science 9 (3): 460-71. https://doi.org/10.21541/apjes.939338.
EndNote
Barzenjı H (September 1, 2021) Sentiment analysis of Twitter texts using Machine learning algorithms. Academic Platform - Journal of Engineering and Science 9 3 460–471.
IEEE
[1]H. Barzenjı, “Sentiment analysis of Twitter texts using Machine learning algorithms”, APJES, vol. 9, no. 3, pp. 460–471, Sept. 2021, doi: 10.21541/apjes.939338.
ISNAD
Barzenjı, Hawar. “Sentiment Analysis of Twitter Texts Using Machine Learning Algorithms”. Academic Platform - Journal of Engineering and Science 9/3 (September 1, 2021): 460-471. https://doi.org/10.21541/apjes.939338.
JAMA
1.Barzenjı H. Sentiment analysis of Twitter texts using Machine learning algorithms. APJES. 2021;9:460–471.
MLA
Barzenjı, Hawar. “Sentiment Analysis of Twitter Texts Using Machine Learning Algorithms”. Academic Platform - Journal of Engineering and Science, vol. 9, no. 3, Sept. 2021, pp. 460-71, doi:10.21541/apjes.939338.
Vancouver
1.Hawar Barzenjı. Sentiment analysis of Twitter texts using Machine learning algorithms. APJES. 2021 Sep. 1;9(3):460-71. doi:10.21541/apjes.939338

Cited By