Analyzing Sentiments on Twitter Using Deep Learning Techniques

PDF (880KB), PP.20-39

Views: 0 Downloads: 0

Author(s)

Aditya Bhushan 1 Devanshi Dwivedi 1 Ashutosh Kumar Singh 1,* Snehlata 1

1. Department of Computer Science and Engineering, United College of Engineering & Research, Prayagraj,211011, India

* Corresponding author.

DOI: https://doi.org/10.5815/ijmecs.2024.06.02

Received: 28 Feb. 2024 / Revised: 20 Mar. 2024 / Accepted: 16 May 2024 / Published: 8 Dec. 2024

Index Terms

Sentiment Analysis, Convolutional Neural Network, Deep Learning, Sentiment Classification, Hybrid Models, Machine Learning

Abstract

In today’s digital age dominated by social media, understanding public sentiment through Twitter analysis has become imperative. With a staggering 100 million active users on platforms like Twitter and an influx of 572,000 new accounts daily, the vast reservoir of user-generated content underscores the necessity for advanced sentiment analysis tools. This study delves into the realm of sentiment analysis techniques on Twitter, with a particular emphasis on employing Machine Learning (ML) methods. The proposed framework harnesses the power of Natural Language Processing (NLP) and Deep Learning architectures, specifically advocating for a synergistic blend of Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks. Additionally, it explores the efficacy of traditional ML algorithms such as Support Vector Machines (SVM), Random Forest, and Multi-Layer Perceptron (MLP) in this context. The study’s findings illuminate diverse performance metrics across the employed models. While SVM exhibits moderate accuracy, it grapples with challenges in recall and F1-score for sentiment class 1. Conversely, the CNN-LSTM model emerges as a standout performer, boasting impressive accuracy rates of 97% and 98% respectively. Notably, this model excels in sentiment classification across all classes, underscoring its efficacy in discerning nuanced sentiment nuances within tweets. Furthermore, the study underscores the critical importance of judiciously selecting ML algorithms tailored to the intricacies of Twitter sentiment analysis. By leveraging advanced NLP techniques and deep learning architectures, researchers and practitioners can glean deeper insights into the dynamic landscape of public sentiment on social media platforms like Twitter. Such insights hold significant implications for diverse domains, including marketing, brand management, and public opinion analysis.

Cite This Paper

Aditya Bhushan, Devanshi Dwivedi, Ashutosh Kumar Singh, Snehlata, "Analyzing Sentiments on Twitter Using Deep Learning Techniques", International Journal of Modern Education and Computer Science(IJMECS), Vol.16, No.6, pp. 20-39, 2024. DOI:10.5815/ijmecs.2024.06.02

Reference

[1]Harleen Kaur, Shafqat Ul Ahsaan, Bhavya Alankar, and Victor Chang. A proposed sentiment analysis deep learning algorithm for analyzing covid-19 tweets. Information Systems Frontiers, pages 1–13, 2021.
[2]Sepideh Kaffash, An Truong Nguyen, and Joe Zhu. Big data algorithms and applications in intelligent transportation system: A review and bibliometric analysis. International Journal of Production Economics, 231:107868, 2021.
[3]Prabhsimran Singh, Surleen Kaur, Abdullah M Baabdullah, Yogesh K Dwivedi, Sandeep Sharma, Ravinder Singh Sawhney, and Ronnie Das. Is# sdg13 trending online? insights from climate change discussions on twitter. Information Systems Frontiers, 25(1):199–219, 2023.
[4]Thanveer Shaik, Xiaohui Tao, Christopher Dann, Haoran Xie, Yan Li, and Linda Galligan. Sentiment analysis and opinion mining on educational data: A survey. Natural Language Processing Journal, 2:100003, 2023.
[5]Soujanya Poria, Devamanyu Hazarika, Navonil Majumder, and Rada Mihalcea. Beneath the tip of the iceberg: Current challenges and new directions in sentiment analysis research. IEEE Transactions on Affective Computing, 2020.
[6]Patricia LV Ribeiro, Li Weigang, and Tiancheng Li. A unified approach for domain-specific tweet sentiment analysis. In 2015 18th International Conference on Information Fusion (Fusion), pages 846–853. IEEE, 2015.
[7]Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012.
[8]Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In 2013 IEEE international conference on acoustics, speech and signal processing, pages 6645–6649. Ieee, 2013.
[9]Raj P Mehta, Meet A Sanghvi, Darshin K Shah, and Artika Singh. Sentiment analysis of tweets using supervised learning algorithms. In First International Conference on Sustainable Technologies for Computational Intelligence: Proceedings of ICTSCI 2019, pages 323–338. Springer, 2020.
[10]Ishaani Priyadarshini and Chase Cotton. A novel lstm–cnn–grid search-based deep neural network for sentiment analysis. The Journal of Supercomputing, 77(12):13911–13932, 2021.
[11]Mia Gerber and Nelishia Pillay. Automated design of the deep neural network pipeline. Applied Sciences, 12(23):12215, 2022.
[12]Milan Tripathi. Sentiment analysis of nepali covid19 tweets using nb svm and lstm. Journal of Artificial Intelligence, 3(03):151–168, 2021.
[13]Imane Lasri, Anouar Riadsolh, and Mourad Elbelkacemi. ‘self-attention-based bi-lstm model for sentiment analysis on tweets about distance learning in higher education. Int. J. Emerg. Technol. Learn, 18(12):119–141, 2023.
[14]Shanta H Biradar, JV Gorabal, and Gaurav Gupta. Machine learning tool for exploring sentiment analysis on twitter data. Materials Today: Proceedings, 56:1927–1934, 2022.
[15]Marouane Birjali, Mohammed Kasri, and Abderrahim Beni-Hssane. A comprehensive survey on sentiment analysis: Approaches, challenges and trends. Knowledge-Based Systems, 226:107134, 2021.
[16]Suraksha Gupta, David Gallear, John Rudd, and Pantea Foroudi. The impact of brand value on brand competitiveness. Journal of Business Research, 112:210–222, 2020.
[17]Abdullah Alsaeedi and Mohammad Zubair Khan. A study on sentiment analysis techniques of twitter data. International Journal of Advanced Computer Science and Applications, 10(2):361–374, 2019.
[18]Yin Zhang, Jinyang Du, Xiao Ma, Haoyu Wen, and Giancarlo Fortino. Aspect-based sentiment analysis for user reviews. Cognitive Computation, 13(5):1114–1127, 2021.
[19]Nal Kalchbrenner, Edward Grefenstette, and Phil Blunsom. A convolutional neural network for modelling sentences. arXiv preprint arXiv:1404.2188, 2014.
[20]Kai Sheng Tai, Richard Socher, and Christopher D Manning. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075, 2015.
[21]Usha Devi Gandhi, Priyan Malarvizhi Kumar, Gokulnath Chandra Babu, and Gayathri Karthick. Sentiment analysis on twitter data by using convolutional neural network (cnn) and long short term memory (lstm). Wireless Personal Communications, pages 1–10, 2021.
[22]Jin Zheng and Limin Zheng. A hybrid bidirectional recurrent convolutional neural network attention-based model for text classification. IEEE Access, 7:106673–106685, 2019.
[23]Faliang Huang, Xuelong Li, Changan Yuan, Shichao Zhang, Jilian Zhang, and Shaojie Qiao. Attention-emotionenhanced convolutional lstm for sentiment analysis. IEEE transactions on neural networks and learning systems, 33(9):4332–4345, 2021.
[24]Mehmet Umut Salur and Ilhan Aydin. A novel hybrid deep learning model for sentiment classification. IEEE Access, 8:58080–58093, 2020.
[25]Manoochehr Ghiassi, James Skinner, and David Zimbra. Twitter brand sentiment analysis: A hybrid system using n-gram analysis and dynamic artificial neural network. Expert Systems with applications, 40(16):6266–6282, 2013.
[26]Akshi Kumar and Ritu Rani. Sentiment analysis using neural network. In 2016 2nd International Conference on Next Generation Computing Technologies (NGCT), pages 262–267. IEEE, 2016.
[27]Amira Samy Talaat. Sentiment analysis classification system using hybrid bert models. Journal of Big Data, 10(1):1–18, 2023.
[28]Gagandeep Kaur and Amit Sharma. A deep learning-based model using hybrid feature extraction approach for consumer sentiment analysis. Journal of Big Data, 10(1):5, 2023.
[29]Peerapon Vateekul and Thanabhat Koomsubha. A study of sentiment analysis using deep learning techniques on thai twitter data. In 2016 13th International joint conference on computer science and software engineering (JCSSE), pages 1–6. IEEE, 2016.
[30]Arnab Roy and Muneendra Ojha. Twitter sentiment analysis using deep learning models. In 2020 IEEE 17th India Council International Conference (INDICON), pages 1–6. IEEE, 2020.
[31]Arepalli Peda Gopi, R Naga Sravana Jyothi, V Lakshman Narayana, and K Satya Sandeep. Classification of tweets data based on polarity using improved rbf kernel of svm. International Journal of Information Technology, 15(2):965–980, 2023.
[32]P Karthika, R Murugeswari, and R Manoranjithem. Sentiment analysis of social media network using random forest algorithm. In 2019 IEEE international conference on intelligent techniques in control, optimization and signal processing (INCOS), pages 1–5. IEEE, 2019.
[33]Satyabrata Aich, Sabyasachi Chakraborty, and Hee-Cheol Kim. Convolutional neural network-based model for web-based text classification. International Journal of Electrical & Computer Engineering (2088-8708), 9(6), 2019.
[34]Anushree Goud and Bindu Garg. Sentiment analysis using long short-term memory model in deep learning. In 2nd EAI International Conference on Big Data Innovation for Sustainable Cognitive Computing: BDCC 2019, pages 15–23. Springer, 2021.
[35]Deepak Chowdary Edara, Lakshmi Prasanna Vanukuri, Venkatramaphanikumar Sistla, and Venkata Krishna Kishore Kolli. Sentiment analysis and text categorization of cancer medical records with lstm. Journal of Ambient Intelligence and Humanized Computing, 14(5):5309–5325, 2023.
[36]Guixian Xu, Yueting Meng, Xiaoyu Qiu, Ziheng Yu, and Xu Wu. Sentiment analysis of comment texts based on bilstm. Ieee Access, 7:51522–51532, 2019.
[37]Hao Sun, Hongyi Wang, Jiaqing Liu, Yen-Wei Chen, and Lanfen Lin. Cubemlp: An mlp-based model for multimodal sentiment analysis and depression estimation. In Proceedings of the 30th ACM International Conference on Multimedia, pages 3722–3729, 2022.
[38]Shafiul Hasan Rafi, Shohana Rahman Deeba, Eklas Hossain, et al. A short-term load forecasting method using integrated cnn and lstm network. IEEE Access, 9:32436–32448, 2021.
[39]Qingfeng Lan, Yangchen Pan, Alona Fyshe, and Martha White. Maxmin q-learning: Controlling the estimation bias of q-learning. arXiv preprint arXiv:2002.06487, 2020.