Skip to content
P

PlasticSense.ai

helps users dispose of waste using real-time camer

Created on 26th March 2026

•

P

PlasticSense.ai

helps users dispose of waste using real-time camer

The problem PlasticSense.ai solves

Waste sorting today is:

manual → slow, inconsistent, unsafe
error-prone → contamination reduces recyclability
inefficient → valuable recyclable material gets lost

There is no real-time intelligence layer that tells:

what material is present
how recyclable the batch is
how confident the system is
how much volume is being processed

Challenges we ran into

  1. Dataset Imbalance (LDPE issue)
    Problem: LDPE class had very few samples
    Impact: Model biased toward majority classes, poor LDPE recall
    Solution: Class-weighted loss + oversampling + augmentation
  2. Dataset Mismatch
    Problem: Combined datasets had different label structures (organic vs plastic-specific)
    Impact: Inconsistent training signals
    Solution: Unified label mapping + cleaned overlapping/ambiguous classes
  3. Image → Video Generalization
    Problem: Model trained on static images but deployed on live video
    Impact: Performance drop due to motion blur, lighting, occlusion
    Solution: Augmentation (blur, brightness, occlusion) + frame sampling
  4. Real-Time Latency
    Problem: Running detection + classification sequentially increased latency
    Impact: FPS drop, non-smooth live feed
    Solution: Mixed precision (FP16), threshold filtering, skipping redundant frames
  5. Detection–Classification Pipeline Sync
    Problem: YOLO outputs bounding boxes while classifier expects cropped images
    Impact: Misaligned crops → wrong classification
    Solution: Proper scaling, bounding box normalization, consistent preprocessing
  6. Overlapping Objects
    Problem: Waste items overlap on conveyor
    Impact: Missed or merged detections
    Solution: Tuned detection thresholds + accepted limitation of bounding-box approach
  7. Confidence vs Accuracy Misinterpretation
    Problem: Initially tried showing “correct vs incorrect” per frame
    Impact: Conceptually wrong (no ground truth in live feed)
    Solution: Switched to confidence-based “cleared vs flagged” system
  8. Live Dashboard Design
    Problem: Static UI didn’t reflect real-time inference
    Impact: Poor interpretability
    Solution: Built live stats pipeline (objects, confidence, alerts, class breakdown)
  9. Backend–Frontend Sync
    Problem: No real-time communication of inference stats
    Impact: UI not updating with model output
    Solution: Created /live_stats endpoint + polling mechanism
  10. Model Accuracy Plateau (~70–73%)
    Problem: Performance saturated early
    Impact: Limited reliability
    Solution: Fine-tuning (ConvNeXtV2), better augmentation, calibration (temperature scaling)
  11. Low-Confidence Handling
    Problem: Model forced predictions even when uncertain
    Impact: False positives
    Solution: Confidence thresholding + “flag for review” system
  12. Multi-Object Handling
    Problem: Multiple objects per frame
    Impact: Need per-object tracking and summarization
    Solution: Per-frame aggregation (counts, class distribution)
  13. Deployment Constraints
    Problem: Need to run on edge devices with limited compute
    Impact: Model too heavy initially
    Solution: Considered quantization, lighter inference pipeline
  14. Frame Redundancy in Video
    Problem: Consecutive frames nearly identical
    Impact: Wasted compute
    Solution: Frame skipping / sampling strategy
  15. Real-World Variability
    Problem: Dataset is clean, real waste is dirty, deformed
    Impact: Generalization gap
    Solution: Aggressive augmentation + acknowledging limitation
  16. Threshold Tuning
    Problem: Low threshold → too many false detections
    Impact: noisy predictions
    Solution: Tuned confidence threshold dynamically
  17. Integration Complexity
    Problem: Combining IP camera + backend inference + frontend display
    Impact: Synchronization issues
    Solution: Continuous streaming + polling-based updates

Discussion

Builders also viewed

See more projects on Devfolio