TO
tonumayworkspace-creator/waste-product-classification
End-to-end waste product classification system using transfer learning (VGG16) and Flask for real-time image inference.
โป๏ธ Waste Product Classification
Transfer Learning & Fine-Tuning | Flask Deployment
๐ Project Summary (ATS-Optimized)
An end-to-end computer vision and deep learning project that classifies waste images into multiple categories using transfer learning and fine-tuning of a pre-trained CNN (VGG16).
The trained model is deployed using a Flask web application that supports real-time image upload, preprocessing, prediction, and confidence scoring, enabling automation in waste management and sustainability systems.
๐ Key Skills Demonstrated (ATS Keywords)
- Computer Vision
- Deep Learning
- Transfer Learning
- Convolutional Neural Networks (CNN)
- TensorFlow / Keras
- Flask Deployment
- Image Classification
- Model Fine-Tuning
- Data Augmentation
- Model Inference Pipeline
- Sustainable AI Applications
๐ง Project Features
- Transfer learning using VGG16 pretrained on ImageNet
- CNN fine-tuning for domain-specific waste classification
- Automated dataset splitting (train / validation / test)
- Image preprocessing pipeline (resize, normalization, batching)
- Real-time inference via Flask web application
- Prediction confidence score output
- Modular, production-ready project structure
๐๏ธ Waste Categories
The model classifies waste images into the following categories:
- Cardboard
- Glass
- Metal
- Paper
- Plastic
- Trash
๐ ๏ธ Technology Stack
| Category | Tools |
|---|---|
| Programming Language | Python |
| Deep Learning Framework | TensorFlow / Keras |
| CNN Architecture | VGG16 (Transfer Learning) |
| Backend Framework | Flask |
| Frontend | HTML, CSS |
| Image Processing | OpenCV, Pillow |
| Dataset | TrashNet (Garbage Classification) |
๐ Project Structure
waste_product_classification/
โ
โโโ app.py
โโโ requirements.txt
โโโ README.md
โ
โโโ models/
โ โโโ model.h5
โ โโโ labels.txt
โ
โโโ data/
โ โโโ train/
โ โโโ val/
โ โโโ test/
โ
โโโ raw_dataset/
โ
โโโ static/
โ โโโ css/
โ โ โโโ style.css
โ โโโ uploads/
โ
โโโ templates/
โ โโโ index.html
โ
โโโ utils/
โ โโโ preprocess.py
โ โโโ model_loader.py
โ
โโโ notebooks/
โ โโโ training.ipynb
โ
โโโ split_dataset.py
โ๏ธ Workflow Overview
- User uploads a waste image through the web interface
- Image preprocessing (resizing, normalization, batching)
- CNN model performs inference
- Predicted waste class and confidence score are displayed
๐ Model Training Details
- Pre-trained VGG16 model initialized with ImageNet weights
- Custom dense classification head added
- Data augmentation to improve generalization
- Fine-tuning of upper convolutional layers
- Adam optimizer with categorical cross-entropy loss
๐ธ Application Screenshots
Home Page & Upload Interface
Image Preview
Prediction Output
โถ๏ธ How to Run
git clone <your-repo-url>
cd waste_product_classification
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python app.pyAccess the application at:
http://127.0.0.1:5000/
๐ Real-World Use Cases
- Smart waste segregation systems
- Recycling and sustainability automation
- AI-powered environmental monitoring
- Intelligent waste management pipelines
๐ Resume-Ready Highlights
- Built an end-to-end waste classification system using deep learning and computer vision
- Applied transfer learning and fine-tuning on real-world waste image datasets
- Deployed a CNN model using Flask for real-time image inference
- Designed a modular and production-ready ML deployment pipeline
๐ License
This project is intended for educational and portfolio purposes.
On this page
Languages
Jupyter Notebook86.6%Python9.3%HTML2.1%CSS2.0%
Created January 11, 2026
Updated January 11, 2026


