arXiv:2608.12007cs.LGcs.AI2026-08

对比机器学习与深度学习在咖啡零售评论情感分析中的效果。

Dual-Model Sentiment Analysis of Consumer Reviews in the Retail Coffee Sector Using Machine Learning and Deep Learning Approaches

  • 用评分二值化生成情感标签,构建了超700条评论数据集。
  • 双向LSTM在深度学习模型中表现最佳,准确率达91%。
  • 数据不平衡影响正面情感识别,需注意模型选择与预处理。

消费者评论在零售咖啡等服务型行业对品牌认知和商业策略具有重要影响。本研究基于ConsumerAffairs平台收集的超过700条星巴克用户评论,构建了比较性情感分析框架,采用经典机器学习与深度学习方法进行分析。通过数据预处理与探索性分析,识别出时间与地理分布模式。将4-5星评价定义为正向,1-3星为负向,导致数据集严重偏向负面情感。评估了五种机器学习模型(逻辑回归、SVM、决策树、随机森林、朴素贝叶斯)与五种深度学习模型(LSTM、RNN、双向LSTM、GRU、CNN),使用准确率、精确率、召回率与F1分数进行性能比较。其中SVM在机器学习模型中表现最佳,准确率为91.0%;双向LSTM在深度学习模型中表现最优,且对未见数据具有良好泛化能力。研究发现,类别不平衡显著降低多个模型对正向情感的召回率。总体而言,该研究为零售咖啡领域客户体验分析提供了机器学习与深度学习方法的实证比较,强调了模型选择与预处理的重要性。

原文摘要 · Abstract (English)

Consumer reviews play an important role in shaping brand perception and business strategies, particularly in service-driven industries such as retail coffee. This study presents a comparative sentiment analysis framework for Starbucks customer reviews using classical machine learning and deep learning approaches. The dataset, collected from ConsumerAffairs, contains more than 700 reviews and was analyzed through preprocessing and exploratory data analysis to identify temporal and geographic patterns. Sentiment labels were generated by binarizing star ratings, with ratings of 4 and 5 classified as positive and ratings of 1 to 3 as negative. The resulting dataset was substantially imbalanced toward negative sentiment. Five machine learning classifiers, including Logistic Regression, Support Vector Machine (SVM), Decision Tree, Random Forest, and Naive Bayes, were evaluated alongside five deep learning models: LSTM, RNN, Bidirectional LSTM, GRU, and CNN. Model performance was assessed using accuracy, precision, recall, and F1-score. SVM achieved the highest accuracy among the machine learning models at 91.0 percent, while Bidirectional LSTM showed the strongest performance among the deep learning models and demonstrated good generalization on unseen data. The findings also show that class imbalance negatively affected positive sentiment recall across several models. Overall, this study provides a comparative evaluation of machine learning and deep learning approaches for real-world consumer sentiment analysis and highlights the importance of appropriate model selection and preprocessing for customer experience analytics in the retail coffee sector.

情感分析零售业深度学习数据不平衡

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