File size: 4,277 Bytes
6d8dba0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58a072a
6d8dba0
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
 
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
 
6d8dba0
37db0fd
 
 
 
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
 
 
 
 
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
 
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
 
 
 
 
 
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
 
58a072a
37db0fd
58a072a
37db0fd
 
58a072a
37db0fd
 
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
 
 
 
 
 
 
 
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
 
58a072a
37db0fd
58a072a
37db0fd
58a072a
 
37db0fd
58a072a
 
37db0fd
58a072a
 
 
 
37db0fd
58a072a
37db0fd
58a072a
37db0fd
58a072a
37db0fd
 
58a072a
37db0fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
license: mit
language:
- en
- id
metrics:
- recall
- precision
- f1
base_model:
- Ultralytics/YOLOv8
pipeline_tag: object-detection
tags:
- waste-classification
- sustainability
- yolov8
---
# πŸ—‘οΈ Real Time Waste Classification – YOLOv8 Large (High Resolution)

A high-resolution real time waste-classification model built using **YOLOv8-Large**, fine-tuned to detect and categorize **12 types of waste** use camera.
This model was developed as a Capstone Mini-Project for the **REA AI Engineering Bootcamp**.

---

## πŸ“Œ Overview

This project provides a custom object-detection model designed to support:

* ♻️ **Automated waste-sorting systems**
* πŸ“± **Recycling education applications**
* 🌍 **Environmental monitoring tools**

The model was trained on 1280Γ—1280 high-resolution images to better capture fine-grained details common in trash and recyclables.

---

## 🧠 Model Details

| Property              | Value                  |
| --------------------- | ---------------------- |
| **Architecture**      | YOLOv8-Large (yolov8l) |
| **Task**              | Object (Real Time) Detection|
| **Input Size**        | 1280 Γ— 1280            |
| **Number of Classes** | 12                     |
| **Base Model**        | `ultralytics/yolov8l`  |
| **License**           | MIT                    |

---

## 🎯 Classes

The model detects 12 waste categories, including:

* Clothes
* Brown-Glass
* Shoes
* Plastic
* Biological
* (and others)

---

## πŸ“Š Evaluation Results

The model was evaluated on **1,935 validation images**.

### **Overall Performance**

| Metric     | Score     | Description                          |
| ---------- | --------- | ------------------------------------ |
| **mAP@50** | **0.783** | Strong overall detection performance |

---

### **Performance by Class**

The model performs extremely well on rigid, well-shaped objects but struggles with amorphous organic materials.

| Class           | mAP@50 | Status              | Insight                         |
| --------------- | ------ | ------------------- | ------------------------------- |
| **Clothes**     | 0.987  | 🌟 Excellent        | Consistent shape and texture    |
| **Brown-Glass** | 0.905  | βœ… Very Good         | Strong geometric patterns       |
| **Shoes**       | 0.847  | βœ… Good              | High recall and precision       |
| **Plastic**     | 0.706  | ⚠️ Moderate         | Transparency/deformation issues |
| **Biological**  | 0.580  | ❌ Needs Improvement | Blends into background          |

---

## πŸ” Deep Dive: Key Insights

### **1. Biological Waste Challenge**

* **Recall:** 0.445
* **Missed detections:** 741 biological items labeled as background
* **Cause:** Organic waste lacks distinct shape or edges, making it harder for YOLO to detect.

### **2. False Positives**

* **540 biological false positives** on plain backgrounds
* Possibly caused by:

  * Noisy labels
  * Complex textures that resemble organic material

### **3. Background Confusion**

* Cardboard items have **159 false positives** due to color similarity with ground surfaces.

---

## βš™οΈ Training Configuration

| Setting           | Value                                               |
| ----------------- | --------------------------------------------------- |
| **Hardware**      | NVIDIA A100-SXM4-40GB                               |
| **Training Time** | 6.26 hours                                          |
| **Epochs**        | 50                                                  |
| **Batch Size**    | 8                                                   |
| **Optimizer**     | AdamW (lr = 0.000625)                               |
| **Image Size**    | 1280                                                |
| **Augmentations** | Standard YOLOv8 + Mosaic (disabled final 10 epochs) |

---

## πŸ’» Usage

Install Ultralytics:

```bash
pip install ultralytics
```

Run inference:

```python
from ultralytics import YOLO

# Load model
model = YOLO("path/to/best.pt")

# Run inference
results = model("path/to/image.jpg")

# Display results
results[0].show()
```

---

## πŸ‘¨β€πŸ’» Author

**Kendrick**
Alumni β€” REA AI Engineering Bootcamp

This README and model card were generated with training logs and evaluation outputs.