arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.07772cs.CL
收藏

揭示公众舆论:使用LSTM和传统模型的情感分析研究

Unveiling Public Opinion: A Study of Sentiment Analysis Using LSTM and Traditional Models

Atiq Ur Rehman

AI总结:

研究社交媒体时代Twitter的情感分析,评估逻辑回归、随机森林等多种算法,用预处理的Kaggle Twitter数据集确定最优模型,结果显示LSTM方法性能更佳,在捕捉文本方面优于传统机器学习技术。

摘要:

在社交媒体时代,像Twitter这样的网站成为人们实时分享对各种问题和时事的看法与感受的场所。情感分析作为自然语言处理的关键应用,因用户生成内容的大量涌入变得不可或缺。Twitter上的情感分析利用复杂计算技术将推文分类为积极、消极或中性情感,不仅检查个体表达,还分析相关数据库。本文研究多种机器学习和深度学习方法的有效性,使用经预处理的Kaggle Twitter数据集评估多种算法,确定最优情感分析模型。结果表明LSTM方法性能更佳,训练准确率达90.98%,测试准确率达80.00%,微平均ROC - AUC分数为0.92,优于传统机器学习技术在捕捉上下文和顺序文本方面的表现。

英文摘要:

In this age of social media, sites like Twitter have become meeting places for people to share their views and feelings on a wide range of issues and current events as they unfold in real time. Sentiment analysis, a critical application of NLP, has become indispensable due to the massive influx of user-generated content, enabling the extraction of meaningful insights from the opinions and emotions expressed in textual data. Sentiment analysis on Twitter employs sophisticated computational techniques to categorize tweets into positive, negative, or neutral sentiments. This method not only examines individual expressions but also analyzes vast databases related to specific subjects or events. By spotting these emotions, machine learning models help improve public opinion interpretation and trend forecasting. This paper examines the effectiveness of various machine learning and deep learning approaches. Designed for this use, the system evaluates logistic regression, random forest, naïve bayes, gradient boosting, and LSTM networks, among other algorithms applied in sentiment classification. This work identifies the optimal sentiment analysis model using a Kaggle Twitter dataset that has been preprocessed through tokenization, lemmatization, and stopword elimination. Emphasizing the better performance of the LSTM approach, the model attained a training accuracy of 90.98%, a testing accuracy of 80.00%, and a micro-average ROC- AUC score of 0.92. These results show that the model outperforms conventional machine learning techniques in capturing contextual and sequential textual aspects.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑