Skip to content
Ashish Ranjan
Resume (PDF)
All work

Fake review detection

TrustReview

Flags fake product reviews using a fine-tuned DistilBERT model, served as an API.

  • Python
  • DistilBERT
  • scikit-learn
  • Hugging Face
  • FastAPI

Problem

Fake reviews distort what shoppers see, and they are hard to spot by reading one review at a time.

What I built

  • A fine-tuned DistilBERT classifier for fake review detection.
  • A FastAPI service for single and batch predictions, deployed on Hugging Face Spaces.
  • A test suite of more than 60 unit tests.

Architecture

  1. Data preparation

    Cleaning and preprocessing of labelled reviews.

  2. Model

    DistilBERT fine-tuned for fake or genuine classification.

  3. API

    FastAPI endpoints for one review or a batch.

  4. Hosting

    Hugging Face Spaces.

Outcome

  • 90.88% accuracy.
  • 60+ unit tests.
Next projectStadiumSentinel