WASTENET
Computer vision waste classification system comparing Deep CNNs and Vision Transformers.
The Problem Space
Municipal and domestic recycling pipelines fail due to manual sorting errors and varying real-world lighting, reflections, and angles.
Systemized Implementation
Trained and fine-tuned deep visual classifiers capable of differentiating complex recyclable materials with sub-second inference and high generalization.
How It Operates in Production
Constructed a modular training and evaluation harness in PyTorch. Trained a custom convolutional baseline, fine-tuned pretrained ResNet-50 and MobileNetV2 backbones, and evaluated a Vision Transformer (ViT-B/16) utilizing self-attention across image patches.
Implemented custom PyTorch Dataset loaders, learning rate schedulers, and confusion matrix visualizers to diagnose cross-class ambiguities.
WASTENET // COMPUTER VISION INFERENCE PIPELINE (CNN VS. VIT)
Custom 4-Layer ConvNet
Standard 3x3 convolution kernels with batch normalization extracting localized edges with sub-25ms inference.
ResNet-50 & MobileNetV2
Residual shortcut connections fine-tuned on ecological waste datasets to overcome vanishing gradients.
Vision Transformer (ViT-B/16)
Linear projection of 16x16 flattened patches with multi-head self-attention resolving complex specular glare.
Data Flow & Infrastructure
Images enter through an OpenCV preprocessing pipeline, undergo normalization, and pass into TorchScript-serialized model weights. The Flask microservice exposes a lightweight REST endpoint returning category probabilities, inference timestamps, and class confidence intervals.
Benchmarked baseline CNNs against Vision Transformers (ViT) to quantify spatial attention vs. localized convolution on diverse lighting conditions.
Core System Features
Flask REST Microservice & Real-Time Inference
Local edge evaluation console displaying confidence scores and classification distributions across 6 categories.
Comparative Neural Architecture: Deep CNN vs. ViT-B/16
Architectural benchmark contrasting standard convolutional kernels against Vision Transformer self-attention.