🔗 App Link: https://review-sentiment-analysis-system.streamlit.app/
🔗 Model Link: https://huggingface.co/Mathusan0912/sentiment-final-model
This project is a full-stack AI-powered sentiment analysis system designed to analyze customer reviews in real time.
It helps companies understand whether customers feel Positive, Neutral, or Negative about their services.
Users submit reviews → AI model predicts sentiment instantly → Review is stored in MongoDB →
Admin dashboard shows overall sentiment and latest processed reviews.
This project demonstrates real-world machine learning deployment, combining:
- Fine-tuned BERT (DistilBERT)
- Streamlit web app
- MongoDB Atlas cloud database
- HuggingFace Hub model hosting
- Streamlit Cloud deployment
- Clean UI for users to submit any review.
- AI model predicts:
- 👍 Positive
- 😐 Neutral
- 👎 Negative
- Shows prediction instantly with a simple thank-you message.
- Review is stored in MongoDB for backend analysis.
The admin panel provides real-time insights:
Shows:
- Total reviews processed
- Positive count
- Neutral count
- Negative count
Useful for understanding customer satisfaction quickly.
- Displays a live table with the 20 most recent reviews.
- Includes predicted sentiment for each.
- Helps companies understand trends & customer issues immediately.
- Backend automatically processes all unprocessed reviews.
- Ensures no review is missed.
- Base model: distilbert-base-uncased
- Fine-tuned on 30,000 balanced sentiment samples
- Label mapping:
0 → Negative1 → Neutral2 → Positive
- Model is hosted on HuggingFace Hub
- Loaded by Streamlit using:
AutoTokenizer.from_pretrained("Mathusan0912/sentiment-final-model")
AutoModelForSequenceClassification.from_pretrained("Mathusan0912/sentiment-final-model")