Sustain Smart: Recycle with Insight
Waste management has become a global environmental challenge, with large amounts of recyclable materials being sent to landfills due to inefficient sorting processes. This research paper presents the development of an automated waste classification system using YOLOv5 for real-time waste detection and sorting. Leveraging the TACO dataset, the model was trained to identify different types of waste, such as plastic bottles, cans, and other recyclable materials.
A real-time system was deployed using Streamlet, allowing for both video/image input and real-time camera-based waste classification. The model achieved a mean Average Precision (mAP50) of 0.301 across multiple categories, demonstrating the viability of automated waste sorting systems in reducing environmental waste and improving recycling efficiency.
Waste management is a crucial environmental issue that affects public health, resource conservation, and climate change. In many developing countries, like Pakistan, the inefficiency of current waste sorting systems results in recyclable materials ending up in landfills. According to the World Bank report, global waste generation will increase by 70% by 2050, further stressing the need for efficient waste management systems. Automating the waste sorting process can significantly reduce the environmental burden by accurately identifying recyclable materials. This research focuses on building a waste classification system using YOLOv5, a state-of the-art object detection algorithm that is both fast and accurate. Our system aims to assist in real-time waste sorting for smart bins or industrial recycling plants.
Waste classification systems use machine learning algorithms to identify and categorize waste items into recyclable and non-recyclable materials. The TACO dataset, which contains labeled images of various waste types, serves as the foundation for training such models. The dataset includes classes such as plastic, metal, paper, and glass.
The need for real-time detection is crucial in waste sorting systems, especially in industrial settings. YOLOv5’s ability to process images and detect objects quickly makes it an ideal choice for this application. The model can classify waste items and provide instant feedback, facilitating the automation of waste sorting.
YOLOv5, compared to other object detection algorithms like Faster-RCNN and SSD, provides an optimal balance between speed and accuracy. Its real-time capabilities make it suitable for use in automated waste sorting systems.
The use of deep learning models for waste classification has been an emerging research area. Early approaches using traditional computer vision techniques like image segmentation and feature extraction lacked the robustness and flexibility needed for diverse waste types. With the advent of convolutional neural networks (CNNs), models such as Faster R-CNN, SSD, and YOLO have shown significant improvements in both speed and accuracy for object detection tasks.
YOLO (You Only Look Once) models have become particularly popular for real-time object detection due to their ability to process images in one pass. YOLOv5, the latest version, provides a balance between accuracy and computational efficiency, making it a suitable choice for real-time waste classification applications.
The TACO Dataset was used, comprising 1,500 labeled images across 10 waste categories (e.g., plastic bottles, glass bottles).
waste categories:
1. Annotation Conversion:
Converted COCO-format annotations to YOLO format, normalizing bounding box
coordinates to improve compatibility with YOLOv5.
2. Data Augmentation:
Applied horizontal flipping, brightness adjustment, and rotation to increase data
diversity and prevent overfitting.
3.Image Resizing:
Resized images to 640x640 pixels to match YOLOv5’s input requirements.
We trained a YOLOv5 model on the preprocessed TACO dataset. Key configurations used for training were:
The model’s performance was evaluated using the following metrics:
Confusion Matrix
The confusion matrix provides a breakdown of the model's performance across different categories by showing the number of true positives, false positives, true negatives, and false negatives for each class. This allows a deeper analysis of how well the model is performing in identifying the correct class and where it might be
making errors.
This section presents the performance of the YOLOv5-based automated waste classification system, highlighting quantitative metrics, class-wise analysis, error analysis, and real-time deployment results.
The YOLOv5 model was evaluated on the test set using industry-standard object detection metrics. The results are as follows:
Overall performance (all classes):
Class-Wise Performance
The model's detection capabilities varied across waste categories:
Class-wise analysis showed strong performance for categories such as glass bottles (Precision: 0.824, Recall: 0.556) and clear plastic bottles (Precision: 0.56, Recall: 0.593). However, smaller and visually ambiguous items, like plastic film and cigarette butts, had lower precision and recall scores, highlighting areas for improvement.
The trained model was deployed using a Streamlit-based application for real-time waste classification. Two modes of operation were tested:
Check out here [https://ecovision-0.streamlit.app/)
The system demonstrated its efficacy in identifying recyclable materials, achieving high accuracy for distinct categories like glass bottles and drink cans. A confusion matrix revealed that misclassifications commonly occurred between visually similar classes, such as plastic film and plastic wrappers. These errors were attributed to overlapping features under certain lighting conditions.
Checkout for video result: [https://drive.google.com/file/d/1bzONLKUkE49Qt5uOJv4wpQIm_a6rzdxv/view?usp=sharing)
The real-time waste classification system demonstrated significant potential for improving waste sorting efficiency. By automating the identification and categorization of recyclable materials, the system can reduce human error, lower operational costs, and improve recycling outcomes. While the model performed well for larger and distinct waste categories, future work will focus on improving its detection of smaller and visually similar waste items.
This research successfully developed an automated waste classification system using YOLOv5, trained on the TACO dataset, and deployed for real-time analysis using Streamlit. The model achieved a mean Average Precision (mAP50) of 0.301, and its real-time deployment opens up opportunities for smart waste bins and industrial sorting applications. Future work will focus on enhancing the model's accuracy and extending its deployment to edge devices for broader use cases.
There are no models linked
There are no models linked