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.
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.
- 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
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
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
- Python 3
- Pandas
- OpenPyXL
- VS Code
- Git
- GitHub
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
git clone https://github.com/YOUR_USERNAME/AI-Product-Recommendation-System.gitcd AI-Product-Recommendation-SystemWindows
python -m venv venvActivate it
venv\Scripts\activatepip install -r requirements.txtInstall all required packages using:
pip install -r requirements.txtpython main.pyAI 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%
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.
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
The project has been tested for:
- Dataset loading
- Missing file handling
- Invalid user input
- Similarity calculation
- Recommendation ranking
- Duplicate removal
- Empty dataset handling
This project is licensed under the MIT License.
See the LICENSE file for details.
Syed Faran Ali
BS Robotics & Artificial Intelligence
The University of Lahore
GitHub: https://github.com/Faran70177784
- DecodeLabs
- Artificial Intelligence Internship Program
- Python Community
- Pandas Documentation
If you found this project useful:
โญ Star this repository
๐ด Fork the repository
๐ข Share it with others
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.






