Sentiment Analysis of Twitter Comments Based on Deep Learning
Abstract
As the web continuously evolves, the information quantities online grow progressively. Therefore, the automatic processing of massive online data has become a research hotspot. Text classification serves as an effective method for analyzing unstructured web data. This study focuses on employing deep learning techniques for sentiment classification of textual information in social networks, aiming to develop an automated sentiment analysis tool. The primary objective is to analyze and process massive volumes of unstructured online data while overcoming the limitations of traditional text analysis methods, such as statistical or machine learning methods which heavily depend on manually engineered features. This paper constructs a sentiment classification model based on a Bidirectional Long Short-Term Memory network (Bi-LSTM) integrated with an attention mechanism, which classifies user comments into positive or negative categories. Experimental results demonstrate that, compared with single-layer LSTM, Bi-LSTM, and two-layer Bi-LSTM models, the proposed model achieves more accurate text classification performance.
References
- Minaee, S., Kalchbrenner, N., Cambria, E., Nikzad, N., Chenaghlu, M., & Gao, J. (2021). Deep learning--based text classification: a comprehensive review. ACM computing surveys (CSUR), 54(3), 1-40.
- Zulqarnain, M., Ghazali, R., Hassim, Y. M. M., & Rehan, M. (2020). A comparative review on deep learning models for text classification. Indones. J. Electr. Eng. Comput. Sci, 19(1), 325-335.
- Tan, K. L., Lee, C. P., & Lim, K. M. (2023). A survey of sentiment analysis: Approaches, datasets, and future research. Applied Sciences, 13(7), 4550.
- Wankhade, M., Rao, A. C. S., & Kulkarni, C. (2022). A survey on sentiment analysis methods, applications, and challenges. Artificial Intelligence Review, 55(7), 5731-5780.
- Lin, Y. (2022). Support vector machines and the Bayes rule in classification. Data Mining and Knowledge Discovery, 6(3), 259-275.
- Sun, X. (2024).Research on Classification Method of Online Sentiment Text Based on Deep Learning (Master's Thesis, Xi'an University of Technology).https: //link.cnki.net/doi/10.27398/d.cnki.gxalu.2024.001115doi: 10.27398/d.cnki.gxalu.2024.001115.
- Conneau, A., Schwenk, H., Barrault, L., & Lecun, Y. (2016). Very deep convolutional networks for text classification. arXiv preprint arXiv: 1606.01781.
- Kowsari, K., Brown, D. E., Heidarysafa, M., Meimandi, K. J., Gerber, M. S., & Barnes, L. E. (2017, December). Hdltex: Hierarchical deep learning for text classification. In 2017 16th IEEE international conference on machine learning and applications (ICMLA) (pp. 364-371). IEEE.
- Yao, T., Zhai, Z., & Gao, B. (2020, March). Text classification model based on fasttext. In 2020 IEEE International conference on artificial intelligence and information systems (ICAIIS) (pp. 154-157). IEEE.
- Sun, X., Li, X., Li, J., Wu, F., Guo, S., Zhang, T., & Wang, G. (2023). Text classification via large language models. arXiv preprint arXiv: 2305.08377.