Sentiment Analysis on Product Reviews: Amazon

Our project is based on machine learning. We will analyze the sentiments that user gave in comments of any amazon product reviews. This is basically natural language processing. We will get labelled data which has two features. First one is review comment the next is the label (positive or negative)

2025-06-28 16:34:58 - Adil Khan

Project Title

Sentiment Analysis on Product Reviews: Amazon

Project Area of Specialization Artificial IntelligenceProject Summary

Our project is based on machine learning. We will analyze the sentiments that user gave in comments of any amazon product reviews. This is basically natural language processing. We will get labelled data which has two features. First one is review comment the next is the label (positive or negative). We will preprocess data and apply feature extraction and convert words in vector representation. Then we will train our model and evaluate it and select the best parameters for it. Then we will integrate this model in website platform in which user enter the URL of any product. Our web scrapping model will fetch the reviews of that product and then predict the sentiments of users by applying our trained model and then our platform will show the result to user. In this Project, we will make sense of the sentiment expressed in product review section of Amazon. We will help the seller through our model that how customers are feeling about their product, in this way seller can improve the area of product which needs to be improvised or think of ways to make it better for customer use. On customer point of view, Customer will know what are the general sentiments of the product are.

Project Objectives Project Implementation Method

Some key deliverables before Phase – I are:

Phase I (Machine Learning Model)

    1. Download Data set Labelled

First we have to download a supervised data available on the internet. So that our learning be supervised. There are numerous sources from where data can be gathered but we came across a dataset of 1.6 Gb that was not specifically directed towards one category of the products rather it was kind of a universal type of data with entries in train data more than 10 lac and in the test data it was around or maybe near 05 lac. The link to the data is given as https://figshare.com/articles/dataset/Amazon_Review_Polarity/13232501/1

    1. Cleaning and feature extraction of the dataset

Cleaning the data is not a simple step it requires time, effort and energy. Also some of the feature extraction techniques is also in this step in our case is the vocabulary of words. Now that we have downloaded the data now our next step would be to clean the data in the most effective way.

    1. Transfer Learning For (Word Embedding)

We can use any pre-trained models but we’ll use Google’s word2vec model because as per internet research we came to know that the google model is very well trained than any other model also it can be one of the best source of transfer learning this model is also robust and perform wells on any of the natural language processing dataset. This will require high computation and processing power to load this much data into the model.

    1. Model Selection RNN:

The next step is the model selection. So we have decided to use the “Recurrent Neural Network”.

    1. Train/Test split

Then the model will be divided into two part train and test 80% will be used in training and 20% be used in testing.

    1. Save model

Model will be saved on the local machine.

Phase II (Web Scrapping Model)

2.1 Web Scrapping

We have scrape the reviews data from Amazon.com. One will write a program that queries internet servers, requests and retrieves information, parses it to extract info and stores it in a csv file.  

2.2 Preprocessing

After the data is being scraped the next is step is to clean the data. If any missing values etc are present then remove it. As Scrapped data may be unstructured or not good for the model so clean and check the data before feeding into the model. Save the data in csv.

Phase III (Website building and ML - Model Integration)

3.1 Let the input of saved model be the scrapped csv file

3.2 Dashboard creation using flask or Django and website building

Tools and techniques

Python, Numpy, Pandas, Jupyter lap, Tensorflow, beautiful soup, flask, web hosting , a workstation with high computation and processing power and enough space in memory to save and run the model

Benefits of the Project Technical Details of Final Deliverable Final Deliverable of the Project Software SystemCore Industry ITOther IndustriesCore Technology Artificial Intelligence(AI)Other TechnologiesSustainable Development GoalsRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 80000
512 GB SSD Equipment11500015000
intel Core i-7 8th gen Processor Equipment14500045000
16 GB Ram DDR4 3200 MHz Equipment11000010000
Web Hosting Miscellaneous 150005000
Co Lab paid cloud functions Miscellaneous 150005000

More Posts