Hackathon_Devcation

WASTE SEGREGATION DEEP LEARNING MODEL - Predicting the class of waste

Average Accuracy - 75%

Site Demo video - https://drive.google.com/file/d/19-HI_WcwDz2eVxrpojYX48DD0qljUuEf/view?usp=sharing

DEPLOYED PART -

The model has been successfully deployed using Flask, Streamlit and is live using ngrok. Initially, we considered hosting the model on render and pythonanywhere, but encountered challenges and opted for a different approach. The journey involved downloading a pickle file using the Pickle library, and later transitioning to an HDF5 file for model storage and retrieval. Spyder was explored as a potential option, leading to two days of experimentation with various frameworks. Despite reaching the final stages of deployment with PythonAnyWhere, render, and Streamlit community cloud unforeseen python and tensorflow version issues disrupted the process. We persistently pursued alternatives, highlighting our commitment to overcoming challenges and delivering a seamless user experience. Finally, the site is hosted on ngrok.

Site link: changes periodically

Problem : Ngrok free plans have a tunnel session timeout. We’ll need to restart ngrok periodically to maintain the tunnel.

SITE DEMO

Screenshot 2024-02-11 155804

Screenshot 2024-02-11 155848

image

fruits

when fruit image is uploaded to test the model, it is classified as organic waste.

organic

roll

when paper roll image is uploaded to test the model, it is classified as recyclable waste.

recycle

MODEL DEMO

image

Screenshot 2024-02-09 192856

Overview

The repository contains two deep-learning models designed for waste segregation, categorizing waste into organic and recyclable classes. The model leverages the ResNet50 architecture and VGG16 architecture and is implemented using TensorFlow and Keras. For deployment, we opted for the ResNet50 model due to its promising accuracy levels.

Tech Stack

Model Architecture

The model consists of several layers, including Input, Lambda, Dense, and Flatten, orchestrated to efficiently process and classify waste images. The Softmax activation function is employed for precise classification.

Training Details

This project was inspired by the need for efficient waste management and is a step towards creating a cleaner, more sustainable environment.