Skip to content

Example report 16 · Consumer brands · Text Classification

Understand sentiment in product reviews

Does a written product review express positive, neutral or negative sentiment?

All examples

Recommended by Impulse AI

Impulse AI result

Selected model: Impulse AI custom model

Standard algorithms and custom models are candidates within the Impulse AI workflow—not competing services.

Illustrative test result · Accuracy
84.2%

Identify product-feedback themes for human review, rather than sorting support tickets into teams.

Records
25,000 fictional review texts
Training / test
20,000 / 5,000
Metric
Accuracy · higher is better
Models evaluated
8

01The business question

Does a written product review express positive, neutral or negative sentiment?

Each record represents one review text. The target to predict is review_sentiment.

What you would do with it

Identify product-feedback themes for human review, rather than sorting support tickets into teams.

02The input data

Input messages or descriptions and their category labels, plus the six numeric descriptors below. Text comparison methods use the original text as well as the applicable descriptors.

  • review_lengthinput
  • word_countinput
  • language_confidenceinput
  • sentiment_term_countinput
  • punctuation_ratioinput
  • verified_purchase_flaginput
  • review_sentimenttarget

Group-held-out 80/20 split; repeated entities stay in the same partition.

03Models evaluated

This illustrative recommendation represents model selection on training/validation data. The separate test scores below show how the candidates compare; a real workflow must not use its final test set to choose a model. Higher is better for Accuracy.

Candidates within the Impulse AI workflow; fictional test scores, not a ranking of competing services
Candidate modelTest Accuracy (illustrative)
Impulse AI custom modelSelected by Impulse AI84.2%
CatBoost82.9%
LightGBM81.5%
Random Forest80%
Multinomial Naive Bayes78.5%
Linear SVM (TF-IDF)77.1%
Logistic Regression (TF-IDF)75.7%
Most frequent classbaseline62%

04Practical takeaway

In this fictional report, Impulse AI selects Impulse AI custom model, with an illustrative test result of 84.2%, compared with 62% for the Most frequent class baseline. Impulse AI’s role is to evaluate candidates and deliver the selected model, whether it uses a standard algorithm or a custom model. The prediction supports one decision: identify product-feedback themes for human review, rather than sorting support tickets into teams.

05Limitations

  • Exclude star ratings when predicting text sentiment to avoid leaking the label. Sarcasm, mixed sentiment and language differences require review.
  • All rows and scores are invented for illustration; a real table would need its own evaluation.
  • A single test split gives one estimate; scores on new data will vary.

06Source of inspiration

Kaggle Datasets · Dataset catalog; historical product reviews through October 2012

Amazon Fine Food Reviews(opens in new tab)

The linked sources inspired this fictional problem; the report may simplify or adapt the original task. No source datasets were downloaded or evaluated, and no competition results were copied.

07Exploratory data profile

A compact illustrative profile of the 6 inputs, not the full checks a real engine run performs. 600 missing values appear across the table. All ranges are fictional.

Illustrative column profile, fictional values
ColumnTypeValidMissingMissing %UniqueMeanStd devMin25%Median75%MaxZeros %
review_lengthNumeric25,00000.0%8522.515011.2522.533.751801.0%
word_countNumeric25,00000.0%20634.523017.2534.551.752602.5%
language_confidenceNumeric24,5504501.8%1210.640.2400.460.640.8214.0%
sentiment_term_countNumeric25,00000.0%42158.539029.2558.587.754201.0%
punctuation_ratioNumeric24,8501500.6%1210.640.2400.460.640.8212.5%
verified_purchase_flagBinary25,00000.0%20.640.480011136.0%

08Use your model

Download model

Take a reusable model package to run predictions in your own environment.

Host for inference

Have Impulse AI host your model so you can send new data for predictions.