Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– AI Product Recommendation System

Project Banner

DecodeLabs Artificial Intelligence Internship โ€“ Project 3

An AI-powered Product Recommendation System built with Python that recommends products based on user preferences using content-based filtering, weighted similarity scoring, and pattern matching.

This project demonstrates the fundamentals of recommendation systems without requiring machine learning models, making it an excellent introduction to AI recommendation logic.


๐Ÿ“Œ Project Overview

The AI Product Recommendation System analyzes user preferences and compares them with historical e-commerce order data to recommend the most relevant products.

The recommendation engine uses a weighted similarity algorithm to rank products based on multiple factors such as:

  • Product
  • Payment Method
  • Coupon Code
  • Referral Source
  • Order Status
  • Purchase Quantity
  • Total Price

The system then displays the Top 5 personalized recommendations.


โœจ Features

  • Interactive command-line interface
  • Product recommendation based on user preferences
  • Weighted similarity scoring algorithm
  • Intelligent product ranking
  • Duplicate recommendation removal
  • Dataset validation and cleaning
  • Professional modular architecture
  • Error handling and input validation
  • Clean and readable output
  • Easy to extend with machine learning models

๐Ÿง  AI Concepts Used

This project demonstrates several core Artificial Intelligence concepts:

  • Recommendation Systems
  • Content-Based Filtering
  • Similarity Matching
  • Pattern Recognition
  • Decision Logic
  • Weighted Scoring Algorithm
  • Ranking and Sorting

๐Ÿ“‚ Project Structure

AI-Product-Recommendation-System/
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ””โ”€โ”€ ecommerce_dataset.xlsx
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ data_loader.py
โ”‚   โ”œโ”€โ”€ similarity.py
โ”‚   โ”œโ”€โ”€ recommender.py
โ”‚   โ””โ”€โ”€ utils.py
โ”‚
โ”œโ”€โ”€ screenshots/
โ”‚
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ main.py

โš™๏ธ Technologies Used

  • Python 3
  • Pandas
  • OpenPyXL
  • VS Code
  • Git
  • GitHub

๐Ÿ“Š Dataset

The project uses an e-commerce dataset containing historical customer orders.

Dataset fields include:

  • Order ID
  • Date
  • Customer ID
  • Product
  • Quantity
  • Unit Price
  • Shipping Address
  • Payment Method
  • Order Status
  • Tracking Number
  • Items in Cart
  • Coupon Code
  • Referral Source
  • Total Price

๐Ÿš€ Installation

1. Clone the repository

git clone https://github.com/YOUR_USERNAME/AI-Product-Recommendation-System.git

2. Navigate to the project

cd AI-Product-Recommendation-System

3. Create a virtual environment

Windows

python -m venv venv

Activate it

venv\Scripts\activate

4. Install dependencies

pip install -r requirements.txt

๐Ÿ“ฆ Dependencies

Install all required packages using:

pip install -r requirements.txt

โ–ถ๏ธ Run the Project

python main.py

๐Ÿ’ป Example Workflow

AI PRODUCT RECOMMENDATION SYSTEM

Select Product

Phone

Select Payment Method

Credit Card

Select Coupon Code

SAVE10

Select Referral Source

Facebook

Generating recommendations...

Top 5 Recommendations

Phone
Similarity Score : 95%

Monitor
Similarity Score : 90%

Tablet
Similarity Score : 86%

๐Ÿงฎ Recommendation Logic

The recommendation engine assigns weighted scores to different features.

Feature Weight
Product Match 40
Payment Method 15
Coupon Code 10
Referral Source 10
Successful Order 10
Popular Product 10
Affordable Price 5
Total 100

Products with higher scores are ranked first.


๐Ÿ“ท Screenshots

Home Screen

Home Screen


Product Selection

Product Selection


Payment Selection

Payment Selection


AI Recommendations

Recommendations


Complete Program Execution

Complete Execution

๐Ÿ—๏ธ System Architecture

System Architecture

๐Ÿ“ˆ Future Improvements

Possible future enhancements include:

  • Machine Learning Recommendation Models
  • Cosine Similarity
  • TF-IDF Recommendation
  • Collaborative Filtering
  • Hybrid Recommendation System
  • Streamlit Web Interface
  • Flask Web Application
  • User Authentication
  • Recommendation History
  • SQLite Database Integration

๐Ÿงช Testing

The project has been tested for:

  • Dataset loading
  • Missing file handling
  • Invalid user input
  • Similarity calculation
  • Recommendation ranking
  • Duplicate removal
  • Empty dataset handling

๐Ÿ“œ License

This project is licensed under the MIT License.

See the LICENSE file for details.


๐Ÿ‘จโ€๐Ÿ’ป Author

Syed Faran Ali

BS Robotics & Artificial Intelligence

The University of Lahore

GitHub: https://github.com/Faran70177784


๐Ÿ™ Acknowledgements

  • DecodeLabs
  • Artificial Intelligence Internship Program
  • Python Community
  • Pandas Documentation

โญ Support

If you found this project useful:

โญ Star this repository

๐Ÿด Fork the repository

๐Ÿ“ข Share it with others


๐Ÿ“ฌ Contact

For questions or collaboration:

GitHub: https://github.com/Faran70177784


Built with โค๏ธ using Python and Artificial Intelligence concepts as part of the DecodeLabs AI Internship Program.

About

AI-powered product recommendation system using content-based filtering and weighted similarity scoring, built with Python for the DecodeLabs AI Internship.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages