Skip to main content
FastAPI React PyTorch Redis Docker BERT

AI Sentiment Analyser

Production-grade NLP pipeline processing 100K+ customer reviews daily at sub-80ms latency.

AI Sentiment Analyser — ProjectsHub
94.2%
Accuracy
<80ms
Avg Latency
100K+
Daily Reviews
4.8★
Client Rating
Overview

What is this project?

This project implements a production-ready NLP sentiment analysis pipeline. A domain-fine-tuned BERT-base model classifies customer reviews as positive, negative, or neutral with 94% accuracy. The async FastAPI backend handles both single-text and batch inference, while Redis queuing smooths out traffic spikes. The React dashboard visualises sentiment trends over time with interactive filters by product, date range, and confidence score.

The biggest engineering challenge was latency — naive BERT inference was 350ms per request. By switching to ONNX Runtime with 8-bit quantisation and implementing intelligent request batching, average latency dropped to under 80ms while GPU memory usage fell by 40%. The result is a system that can handle bursts of 500+ concurrent users without degradation.

Process

Build Timeline

Phase 01 Aug 2025
Data Collection & EDA
Scraped and cleaned 500K customer reviews across e-commerce domains. Conducted EDA on class distribution, text length, and domain vocabulary shift.
Phase 02 Sep 2025
Model Fine-tuning & Optimisation
Fine-tuned BERT-base on domain data, compared DistilBERT and RoBERTa, then applied ONNX quantisation to cut latency from 350ms to 80ms.
Phase 03 Oct 2025
API & Dashboard Build
Built async FastAPI server with batch queuing and Redis caching. Built React dashboard with live sentiment charts, product filters, and CSV export.
Phase 04 Nov 2025
Deployment & Monitoring
Dockerised and deployed on AWS ECS Fargate. Set up CloudWatch alarms, load-tested to 500 concurrent users, and implemented automated rollbacks.
Get This Project

What's Included

₹2,999
one-time payment · lifetime access
  • Complete source code (FastAPI + React frontend)
  • Fine-tuned BERT model weights (ONNX format)
  • Docker Compose for local development
  • AWS ECS Fargate deployment guide (PDF)
  • 60-minute video walkthrough
  • 30-day email support