CoolFace
Modelpublic

HrutikAdsare/waste-detection-yolov8

sourceHugging Facemitupdated 8mo agoView on Hugging Face
1likes160downloads
Model Card

Waste Detection & Classification โ€“ YOLOv8

This model detects and classifies different types of waste to support smart waste segregation, recycling automation, and sustainability projects. It was trained using Ultralytics YOLOv8 on a custom waste dataset with ~250 images per class.

๐Ÿ”Ž Detected Classes

  • โ€”Cardboard
  • โ€”E-waste
  • โ€”Glass
  • โ€”Medical waste
  • โ€”Metal
  • โ€”Organic waste
  • โ€”Paper
  • โ€”Plastic

๐Ÿง  Model Details

  • โ€”Architecture: YOLOv8
  • โ€”Framework: Ultralytics (PyTorch)
  • โ€”Task: Object Detection
  • โ€”Input: RGB images
  • โ€”Output: Bounding boxes + class labels
  • โ€”Training Data: ~250 images per class
  • โ€”Total Classes: 8

๐Ÿ“Š Evaluation (Validation Set โ€“ Normalized Confusion Matrix Insights)

  • โ€”Organic: ~96% recall
  • โ€”Metal: ~81% recall
  • โ€”Paper: ~83% recall
  • โ€”Plastic: ~63% recall
  • โ€”Medical waste: ~54% recall
  • โ€”Cardboard: ~76% recall
  • โ€”E-waste: ~75% recall
  • โ€”Glass: ~60% recall (approx)

The model performs strongly on organic, metal, and paper categories. Performance on medical waste and plastic can be improved with more diverse training samples.

๐Ÿ“ˆ Training Curves & Confusion Matrix

You can find:

  • โ€”Precision-Recall curves
  • โ€”F1 curve
  • โ€”Confusion matrix
  • โ€”Training visualizations

inside the repository files.

๐Ÿš€ How to Use

Install Ultralytics

bash
pip install ultralytics

Run Inference

bash
from ultralytics import YOLO

model = YOLO("best.pt")  # path to the downloaded weights
results = model("test.jpg", conf=0.25)
results[0].show()

Batch Inference

bash
results = model("path/to/images/", save=True)

๐Ÿงช Example Use Cases

  • โ€”Smart waste segregation systems
  • โ€”Recycling automation
  • โ€”Smart bins
  • โ€”Campus or city-level waste monitoring
  • โ€”Sustainability & eco-tech projects

โš ๏ธ Limitations

  • โ€”Performance may drop on blurry or low-light images
  • โ€”Medical and plastic waste classes may need more data for higher accuracy
  • โ€”Not suitable for safety-critical decisions without human verification

๐Ÿ“„ License

MIT License

๐Ÿ‘ค Author

Hrutik Adsare If you use this model, consider giving it a โญ