How rishvinreddy/ecobin-smart-waste-management-system works
EcoBin is a municipal waste-management system that combines simulated IoT bin data, fill forecasting, collection prioritization, vehicle routing, and operator dashboards. The documented main workflow runs from generated sensor history through feature engineering and prediction to route optimization and API delivery. The graph preserves major dashboard and field-operation capabilities. Some connections are documented only in the README; optional hardware linkage is shown as unverified because source excerpts do not establish it.
Main entry points: Dashboard.tsx Admin dashboard · main.py FastAPI services · db.py Waste database · features.py Feature engineering
Components 22
Waste Data
- Sensor data simulator
ml/data_generator/generator.py
Prediction and Routing
- Feature engineering
ml/preprocessing/features.py - Fill forecasting
ml/forecasting/models.py - Collection priority
backend/main.py - CVRP route solver
optimization/vrp_solver/solver.py
API and Persistence
- FastAPI services
backend/main.py - Waste domain models
database/models.py - Waste database
database/db.py
Operations Dashboard
- Admin dashboard
frontend/src/components/Dashboard.tsx - GIS map
frontend/src/components/MapComponent.tsx - Street routes
frontend/src/components/StreetRoutePanel.tsx - Analytics
frontend/src/components/Analytics.tsx - Bin inventory
frontend/src/components/BinsTable.tsx - Fleet management
frontend/src/components/FleetPanel.tsx - Prediction panel
frontend/src/components/PredictionPanel.tsx - Notifications
frontend/src/components/NotificationsPanel.tsx - Maintenance management
frontend/src/components/MaintenanceManagementPanel.tsx
Field Operations
- Driver dashboard
frontend/src/components/driver/DriverDashboard.tsx - QR scanner
frontend/src/components/SmartQRScanner.tsx - Maintenance dashboard
frontend/src/components/maintenance/MaintenanceDashboard.tsx - ESP32 sensor hardware
hardware/wokwi/wokwi.ino
Other components
- Municipal operators
Connections 22
- Sensor data simulator → Waste database: writes history
README.md - Waste database → Feature engineering: supplies records
README.md - Feature engineering → Fill forecasting: builds features
ml/forecasting/models.py - Fill forecasting → Collection priority: forecasts risk
README.md - Collection priority → CVRP route solver: selects bins
README.md - CVRP route solver → FastAPI services: returns routes
README.md - FastAPI services → Admin dashboard: serves JSON
README.md - FastAPI services → Waste database: reads and writes
backend/main.py - Waste database → Waste domain models: maps tables
database/db.py - Municipal operators → Admin dashboard: uses
README.md - Admin dashboard → GIS map: renders
frontend/src/components/Dashboard.tsx - Admin dashboard → Street routes: renders
frontend/src/components/Dashboard.tsx - Admin dashboard → Analytics: renders
frontend/src/components/Dashboard.tsx - Admin dashboard → Bin inventory: renders
frontend/src/components/Dashboard.tsx - Admin dashboard → Fleet management: renders
frontend/src/components/Dashboard.tsx - Admin dashboard → Prediction panel: renders
frontend/src/components/Dashboard.tsx - Admin dashboard → Notifications: renders
frontend/src/components/Dashboard.tsx - Admin dashboard → Maintenance management: renders
frontend/src/components/Dashboard.tsx - Municipal operators → Driver dashboard: uses
README.md - Municipal operators → Maintenance dashboard: uses
README.md - Driver dashboard → QR scanner: uses
frontend/src/components/driver/DriverDashboard.tsx - ESP32 sensor hardware → FastAPI services: sends sensor updates