The Waste Recognition Model is a deep-learning-based solution designed to classify various types of waste materials with high accuracy. By integrating AI-powered waste classification, this project aims to enhance waste management efficiency, reduce environmental pollution, and promote sustainable waste disposal practices.
- Accurate Waste Classification: Identifies waste materials across multiple categories.
- Disposal Recommendations: Suggests proper disposal methods to minimize environmental impact.
- Real-Time Processing: Provides quick and efficient waste recognition for seamless integration into waste management systems.
- User-Friendly Interface: Accessible via a web-based application.
- Versatile Deployment: Can be used in homes, offices, and industrial waste management systems.
- Environmental Impact: Reduces contamination and promotes sustainable waste disposal.
The model is trained to classify waste into the following categories:
- Plastic Waste - Bottles, wrappers, straws, bags.
- Metal Waste - Aluminum, copper, iron, steel.
- Organic Waste - Food waste, yard waste.
- Glass Waste - Bottles, jars, containers.
- Electronic Waste - Computers, phones, appliances.
- Textile Waste - Clothing, fabric materials.
- Medical Waste - Clinical and medical items.
- Wood Waste - Construction wood, furniture.
- Paper Waste - Newspapers, magazines, cardboard.
- Shoes Waste - Footwear and related items.
- Python
- Fastai
- Gradio
- Hugging Face
- HTML/CSS/JavaScript
- Tailwind CSS
- DaisyUI
Experience the model in action:
Screenshots of the website
The model demonstrates high accuracy in waste classification with:
- Real-time waste identification
- Appropriate bin recommendations
- Proper disposal guidance
epoch train_loss valid_loss error_rate accuracy time
0 0.299003 0.159227 0.046041 0.953959 29:14
epoch train_loss valid_loss error_rate accuracy time
0 0.491925 0.258303 0.073665 0.926335 03:01
- Dataset Collection: Waste images are gathered from multiple sources, ensuring diverse and well-distributed data.
- Preprocessing: Images undergo resizing, normalization, and augmentation to enhance model generalization.
- Labeling: Data is labeled into predefined categories.
- Splitting: The dataset is divided into training, validation, and testing sets for model evaluation.
- Architecture: The model is built using Fastai with a ResNet34 backbone for transfer learning.
- Optimization: Fine-tuned using techniques such as learning rate finder and gradual unfreezing.
- Training: The model undergoes multiple epochs of training to minimize loss and improve accuracy.
- Evaluation Metrics: Accuracy, loss, and confusion matrix are used to assess performance.
- Model Deployment: The trained model is deployed on Gradio and Hugging Face for easy accessibility.
- User Interaction: Users upload waste images, and the model predicts the waste category and provides disposal guidance.
- Real-Time Testing: The inference pipeline processes new images with minimal latency, making it efficient for practical applications.
WASTE-RECOGNIZER/
βββ app/
β βββ test_images/ # Sample images for validation
β βββ app.py # Main application file
β βββ gradio.png # Application preview image
β βββ README.md # Application documentation
β
βββ data/
β βββ dataloaders/ # Utilities for data handling
β β βββ README.md # Documentation for dataloaders
β βββ README.md # Data-related documentation
β
βββ docs/
β βββ images/ # Documentation images
β βββ .nojekyll # Jekyll configuration
β βββ index.html # Main webpage content
β
βββ models/
β βββ README.md # Documentation for the model
β
βββ notebook/
β βββ DataPrep.ipynb # Data preprocessing notebook
β βββ DataTraining.ipynb # Model training notebook
β βββ Inference.ipynb # Inference and evaluation notebook
β
βββ LICENSE # License file
βββ README.md # Project documentation
βββ requirements.txt # Dependencies
git clone https://github.com/AuvroIslam/wasteRecognizer.git
cd wasteRecognizerpip install -r requirements.txtcd app
python app.pycd notebook
jupyter notebookOpen and run DataPrep,dataTraining,Inference.ipynb to train and test the model.
- Upload an image of waste material.
- The model predicts the waste category.
- It provides disposal recommendations.
- Use images from
test_images/to validate model performance. - Run inference using
DataPrep,dataTraining,Inference.ipynbfor real-world evaluation.
This project is licensed under the MIT License. See the LICENSE file for details.
We welcome contributions! Feel free to fork the repository and submit a pull request.
- π§ Email: oitijya2002@gmail.com
- π LinkedIn: Oitijya Islam Auvro
- π» GitHub: AuvroIslam



