# d-niteesh/smart-waste-analyzer architecture

> Architecture diagram of the GitHub repository d-niteesh/smart-waste-analyzer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/d-niteesh/smart-waste-analyzer
- Repository: https://github.com/d-niteesh/smart-waste-analyzer

## Overview

SmartWaste Analyzer is a notebook-based computer-vision workflow for detecting waste, assessing contamination, and estimating economic and environmental value. Users load or explore the dataset, train a YOLOv8 detector and a contamination CNN, then run inference and generate a valuation report. The README documents these stages and their intended sequence; the repository provides no source excerpts to verify implementation-level calls or data handoffs, so the graph reflects documented relationships only.

Main entry points: [`Code/main_code.ipynb`](https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb) (Notebook Workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_training["Model Training"]
  node_dataset[("Waste Dataset")]
  node_detector["YOLOv8 Training<br/>[main_code.ipynb]"]
  node_cnn["Contamination CNN<br/>[main_code.ipynb]"]
end

subgraph group_analysis["Waste Analysis"]
  node_notebook["Notebook Workflow<br/>[main_code.ipynb]"]
  node_detection["Waste Detection<br/>[main_code.ipynb]"]
  node_contamination["Contamination Assessment<br/>[main_code.ipynb]"]
end

subgraph group_valuation["Impact Valuation"]
  node_valuation["Economic And CO₂ Valuation<br/>[main_code.ipynb]"]
  node_report["Valuation Report<br/>[main_code.ipynb]"]
end

node_user(("Analyst"))

node_user -->|"runs"| node_notebook
node_dataset -->|"trains"| node_detector
node_dataset -->|"trains"| node_cnn
node_notebook -->|"trains"| node_detector
node_notebook -->|"trains"| node_cnn
node_notebook -->|"runs inference"| node_detection
node_notebook -->|"runs inference"| node_contamination
node_detection -->|"provides waste types"| node_valuation
node_contamination -.->|"provides score"| node_valuation
node_notebook -->|"generates"| node_report
node_valuation -.->|"summarizes"| node_report

click node_detector "https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb"
click node_cnn "https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb"
click node_notebook "https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb"
click node_detection "https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb"
click node_contamination "https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb"
click node_valuation "https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb"
click node_report "https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dataset,node_detector,node_cnn toneBlue
class node_notebook,node_detection,node_contamination toneAmber
class node_valuation,node_report toneMint
class node_user toneIndigo
```

## Components

### Model Training

- **Waste Dataset**
- [YOLOv8 Training](https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb): `Code/main_code.ipynb`
- [Contamination CNN](https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb): `Code/main_code.ipynb`

### Waste Analysis

- [Notebook Workflow](https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb): `Code/main_code.ipynb`
- [Waste Detection](https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb): `Code/main_code.ipynb`
- [Contamination Assessment](https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb): `Code/main_code.ipynb`

### Impact Valuation

- [Economic And CO₂ Valuation](https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb): `Code/main_code.ipynb`
- [Valuation Report](https://github.com/d-niteesh/smart-waste-analyzer/blob/main/Code/main_code.ipynb): `Code/main_code.ipynb`

### Other components

- **Analyst**

## Connections

- Analyst → Notebook Workflow: runs (evidence: `README.md`)
- Waste Dataset → YOLOv8 Training: trains (evidence: `README.md`)
- Waste Dataset → Contamination CNN: trains (evidence: `README.md`)
- Notebook Workflow → YOLOv8 Training: trains (evidence: `README.md`)
- Notebook Workflow → Contamination CNN: trains (evidence: `README.md`)
- Notebook Workflow → Waste Detection: runs inference (evidence: `README.md`)
- Notebook Workflow → Contamination Assessment: runs inference (evidence: `README.md`)
- Waste Detection → Economic And CO₂ Valuation: provides waste types (evidence: `README.md`)
- Contamination Assessment → Economic And CO₂ Valuation: provides score
- Notebook Workflow → Valuation Report: generates (evidence: `README.md`)
- Economic And CO₂ Valuation → Valuation Report: summarizes
