GitHunt
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

Python
TensorFlow
Flask
Computer Vision
Deep Learning
Status
License


๐Ÿ“Œ 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

  1. User uploads a waste image through the web interface
  2. Image preprocessing (resizing, normalization, batching)
  3. CNN model performs inference
  4. 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

Home Page

Image Preview

Image Preview

Prediction Output

Prediction Result


โ–ถ๏ธ 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.py

Access 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.