arXiv:2607.07772cs.CL2026-07被引 1

用LSTM分析推特情感,比传统模型更准

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

  • 对比多种模型,用LSTM捕捉文本上下文与顺序
  • 测试准确率达80.00%,ROC-AUC达0.92
  • 适合想提升社交媒体情绪分析效果的研究者

在社交媒体时代,推特等平台成为人们实时表达观点和情绪的重要场所。情感分析作为自然语言处理的关键应用,因用户生成内容的激增而愈发重要,可从文本中提取有意义的洞察。推特情感分析通过计算技术将推文分类为正面、负面或中性情绪,不仅分析个体表达,还可追踪特定主题或事件的情绪趋势。本文评估了逻辑回归、随机森林、朴素贝叶斯、梯度提升及LSTM网络等多种机器学习与深度学习方法在情感分类中的表现。基于经过分词、词形还原和停用词去除预处理的Kaggle推特数据集,研究发现LSTM表现最优:训练准确率为90.98%,测试准确率为80.00%,微平均ROC-AUC得分为0.92。结果表明,该模型在捕捉文本上下文与序列特征方面优于传统方法。

原文摘要 · Abstract (English)

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.

情感分析LSTM推特文本分类

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。