Skip to main content
QUICK REVIEW

[Paper Review] Yelp Dataset Challenge: Review Rating Prediction

Nabiha Asghar|arXiv (Cornell University)|May 17, 2016
Sentiment Analysis and Opinion MiningComputer Science10 references35 citations
TL;DR

This paper proposes a multi-class classification approach to predict Yelp review ratings (1–5 stars) from free-text reviews using 16 models combining four feature extraction methods (unigrams, bigrams, trigrams, LSI) and four machine learning algorithms (logistic regression, Naïve Bayes, perceptrons, linear SVM). The best-performing model is logistic regression on top 10,000 unigram and bigram features, achieving 0.92 F1-score on the test set and outperforming all others in cross-validation.

ABSTRACT

Review websites, such as TripAdvisor and Yelp, allow users to post online reviews for various businesses, products and services, and have been recently shown to have a significant influence on consumer shopping behaviour. An online review typically consists of free-form text and a star rating out of 5. The problem of predicting a user's star rating for a product, given the user's text review for that product, is called Review Rating Prediction and has lately become a popular, albeit hard, problem in machine learning. In this paper, we treat Review Rating Prediction as a multi-class classification problem, and build sixteen different prediction models by combining four feature extraction methods, (i) unigrams, (ii) bigrams, (iii) trigrams and (iv) Latent Semantic Indexing, with four machine learning algorithms, (i) logistic regression, (ii) Naive Bayes classification, (iii) perceptrons, and (iv) linear Support Vector Classification. We analyse the performance of each of these sixteen models to come up with the best model for predicting the ratings from reviews. We use the dataset provided by Yelp for training and testing the models.

Motivation & Objective

  • To address the challenge of predicting star ratings from free-text reviews, a key problem in sentiment analysis and recommendation systems.
  • To evaluate the effectiveness of various feature extraction and machine learning combinations for rating prediction.
  • To identify the optimal model configuration for accurate, generalizable review rating prediction on real-world Yelp data.
  • To provide a baseline and framework for future work in automated rating prediction, especially in systems without explicit ratings.

Proposed method

  • Treats review rating prediction as a 5-class classification problem with star ratings as class labels.
  • Applies four feature extraction techniques: unigrams, bigrams, trigrams, and Latent Semantic Indexing (LSI) on text reviews.
  • Combines each feature method with four supervised learning algorithms: logistic regression, Naïve Bayes, perceptrons, and linear Support Vector Classification.
  • Uses k-fold cross-validation (3-fold) for model evaluation and hyperparameter tuning.
  • Selects top 10,000 features per method to reduce dimensionality and improve computational efficiency.
  • Evaluates models using F1-score, precision, recall, and confusion matrices, with test-set performance compared to validation results.

Experimental results

Research questions

  • RQ1Which combination of feature extraction and machine learning algorithm yields the highest predictive accuracy for Yelp review ratings?
  • RQ2How do different n-gram and LSI-based feature representations compare in capturing sentiment and rating-relevant signals from text?
  • RQ3To what extent does model performance degrade on the test set compared to cross-validation, indicating potential overfitting?
  • RQ4Can ordered/ordinal logistic regression improve performance by respecting the inherent order of star ratings (1 to 5)?
  • RQ5How do non-linear models or advanced feature engineering (e.g., POS tagging, topic modeling) compare to linear models on this task?

Key findings

  • The logistic regression model trained on the top 10,000 features from unigrams and bigrams achieved the highest F1-score of 0.92 on the test set and 0.95 in cross-validation.
  • The model's test performance (F1: 0.92) was slightly worse than its validation performance (F1: 0.95), suggesting mild overfitting.
  • Linear models, particularly logistic regression and linear SVM, outperformed Naïve Bayes and perceptrons across all feature sets.
  • LSI-based features did not yield superior performance compared to n-gram methods, and the model with LSI features showed lower F1-scores.
  • The best-performing model was robust and generalizable, with consistent performance across folds, indicating strong predictive power.
  • Future improvements such as regularization, non-linear models, and advanced feature engineering (e.g., POS tagging, topic modeling) are expected to further enhance performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.