Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Analyze Ecommerce Product Feedback Sentiment

EasyNLP00:00
Practice interviewer
In session
5 left
00:00

Your question is Analyze Ecommerce Product Feedback Sentiment. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Business Context

ShopSphere, an ecommerce marketplace, collects product reviews, post-purchase survey comments, and support feedback. The customer insights team wants a sentiment analysis system to automatically classify feedback so product and operations teams can detect issues faster.

Data

You have 420,000 labeled feedback records from the last 18 months.

  • Task: classify each feedback item as positive, neutral, or negative
  • Text sources: product reviews, app feedback, delivery comments, return reasons
  • Text length: 5-300 words, median 38 words
  • Language: English only
  • Label distribution: positive 61%, neutral 17%, negative 22%
  • Noise: emojis, repeated punctuation, misspellings, SKU codes, order IDs, and occasional HTML fragments

Success Criteria

A production-ready solution should achieve:

  • Macro-F1 >= 0.82 on a held-out test set
  • Negative-class recall >= 0.88 so critical complaints are not missed
  • Inference latency < 50 ms per record in batch scoring

Constraints

  • Must run on a single CPU service for baseline deployment
  • Predictions should be explainable enough for business users to inspect common drivers of negative sentiment
  • The pipeline should support weekly retraining with newly labeled feedback

Requirements

  1. Build a 3-class sentiment classifier for product feedback.
  2. Design a realistic preprocessing pipeline for noisy ecommerce text.
  3. Implement a strong baseline in modern Python using scikit-learn and compare it with a lightweight transformer approach.
  4. Address class imbalance and justify your modeling choices.
  5. Define evaluation metrics, validation strategy, and error analysis steps.
  6. Explain how you would package the model for batch and near-real-time inference.