Project builds a CNN-based deep learning model to classify waste images into categories such as cardboard, paper, plastic, and trash. The goal is to provide assistance for automated waste classification and improve recycling efficiency.
- Dataset: Garbage Classification Dataset
- Classes: cardboard, paper, plastic, trash
- Total images: 3071
- Image size used: 128×128 (resized during training)
- cardboard — 660
- paper — 1173
- plastic — 964
- trash — 274
- Architecture: Custom CNN
- Framework: TensorFlow/Keras
- Loss function: categorical_crossentropy
- Optimizer: Adam
- Learning rate: 0.001
- Conv2D (32 filters) + MaxPooling
- Conv2D (64 filters) + MaxPooling
- Conv2D (128 filters) + MaxPooling
- Flatten
- Dense (128, ReLU)
- Dropout (0.5)
- Output Dense (Softmax, 4 classes)
- cardboard: 211
- paper: 471
- plastic: 385
- trash: 109
- cardboard: 26
- paper: 58
- plastic: 48
- trash: 13
- cardboard: 27
- paper: 60
- plastic: 49
- trash: 15
- Test Accuracy: 80.13%
(Update validation accuracy after final training run)
pip install -r requirements.txt
python train_model.py
streamlit run app.py
Jayasri Munnaluri

