Developed a recommendation system to predict and suggest relevant electronic products to Amazon users based on historical user-item interactions, using collaborative filtering and matrix factorization techniques.
This project applies collaborative filtering methods and matrix factorization to recommend products to users on the basis of previous purchase and rating behaviors. By accurately predicting user preferences, the system enhances customer experience and supports business growth through personalized recommendations.
The dataset consists of Amazon product ratings with the following key fields:
user_id
: Unique identifier for each user.prod_id
: Unique identifier for each product.rating
: User’s rating of the product (1–5 scale).
- Build and compare different recommendation algorithms to predict user ratings.
- Optimize models for better performance through hyperparameter tuning.
- Identify and recommend top products for individual users.
- Provide insights into model performance and suggest further improvement strategies.
- Data preprocessing and filtering of users/products with low interaction counts.
- Model development and comparison:
- Popularity-based Recommendation System
- User-User Collaborative Filtering (KNN with Mean Squared Difference and Cosine similarity)
- Item-Item Collaborative Filtering (KNN with hyperparameter tuning)
- Matrix Factorization using Singular Value Decomposition (SVD)
- Hyperparameter tuning using GridSearchCV for KNN and SVD models.
- Evaluation metrics:
- Root Mean Squared Error (RMSE)
- Precision
- Recall
- F1-Score
Model | RMSE | F1-Score |
---|---|---|
User-User Collaborative (Tuned) | ~1.01 | 0.829 |
Item-Item Collaborative (Tuned) | 0.969 | 0.816 |
SVD (Tuned) | 0.8995 | 0.827 |
- User-User Collaborative Filtering showed the best F1-score for capturing relevant recommendations.
- SVD achieved the lowest RMSE, indicating superior prediction accuracy.
- Tuned models significantly outperformed baseline versions.
- Personalized product recommendations to enhance the user experience.
- Increased potential sales by recommending highly rated, relevant products.
- Delivered optimized recommendation strategies through model comparison and tuning.
- Suggested further improvements including hybrid recommendation systems and real-time feedback integration.
- Python
- Pandas
- Scikit-learn
- Surprise (KNNBasic, SVD, GridSearchCV)
- Matplotlib
- Seaborn
-
Clone the repository:
git clone https://github.com/yourusername/amazon-product-recommendation.git
-
Install required dependencies:
pip install -r requirements.txt
-
Launch Jupyter Notebook:
jupyter notebook
-
Open and run the notebook to train models and generate product recommendations.
- Integrate real-time recommendation capabilities.
- Implement hybrid recommendation systems combining collaborative filtering with content-based methods.
- Explore deep learning-based recommendation architectures for improved accuracy.
- Incorporate user feedback loops to continuously refine recommendations.