๐ CleanCity Agent
Spot trash. Plan action. Keep your city clean.
๐ธ Step 1: Location & Image Upload
Start by specifying where you found the trash, then upload a photo for AI analysis.
๐ค Upload Image
Compare YOLOv8 + Google Gemini multimodal AI
๐ฏ Detection Results
๐ Step 2: Analysis Results
๐ Items Detected
๐ Cleanup Action Plan
๐ค Step 3: Automated Reporting & Integration
Real-time automation status will appear here after analysis...
CleanCity automatically integrates with your systems:
- ๐ Database logging
- ๐ Analytics updates
- ๐ Crew notifications
- ๐ผ Cost calculations
๐ Share Your Impact
Help spread awareness and inspire others to take action! Share your cleanup efforts on social media.
๐ How to Use CleanCity Agent
Quick Start Guide
Step 1 โ Specify Location ๐
Enter where you found the trash (street name, park, beach, etc.) or click "Get GPS" to automatically detect your current location using your device's GPS.
Why location matters: Tracking locations helps identify "hotspots" - areas with recurring trash problems that need special attention.
Step 2 โ Upload a Photo ๐ธ
Take a clear photo of the littered area and upload it. You can:
- Upload an existing image from your device
- Use your camera to take a photo right now
Photo Tips:
- โ Good lighting helps detection accuracy
- โ Get close enough to see individual items
- โ Include surrounding context (park bench, street sign, etc.)
- โ Avoid blurry or dark images
Step 3 โ Add Notes (Optional) ๐
Provide additional context like:
- "Near the playground entrance"
- "Behind the main parking lot"
- "Recurring problem - third time this month"
Step 4 โ Start AI Analysis ๐
Click "Start AI Analysis" and watch the magic happen! Our computer vision AI will:
- ๐ Detect and identify trash items (bottles, bags, wrappers, etc.)
- ๐ฆ Draw bounding boxes around each item
- ๐ Count items and categorize them
- โก Calculate confidence scores
Step 5 โ Review Results ๐
You'll see three key outputs:
Items Detected ๐
- List of all trash items found
- Confidence scores for each detection
- Total count across categories
Cleanup Action Plan ๐
- Severity level (Low/Medium/High)
- Number of volunteers needed
- Estimated cleanup time
- Required equipment list
- Environmental impact assessment
Email Report ๐ง
- Professional report ready to send
- Copy and paste to email
- Share with city officials or cleanup groups
Step 6 โ Take Action ๐ฏ
Use your results to:
- โ๏ธ Report to local authorities
- ๐ฅ Organize a community cleanup
- ๐ Track progress over time
- ๐ฅ Identify hotspots that need attention
๐ก Pro Tips
For Better Detection:
- Take photos in daylight when possible
- Capture multiple angles if trash is spread out
- Focus on one area at a time for accurate counts
For Better Tracking:
- Always add location information
- Be consistent with location names
- Check the History tab to see patterns
- Use the Hotspot Analysis to prioritize efforts
For Community Impact:
- Save all events to build a data history
- Share reports with local government
- Use data to request more trash bins or cleanups
- Document improvements to show success
โ ๏ธ Important Notes
Accuracy: This AI is trained on common litter types but may miss items in poor lighting or unusual positions. Always verify results visually.
Privacy: Images and data are processed locally. No personal information is uploaded except for optional LLM enhancement (if configured).
Purpose: This tool is designed to empower community action, not replace professional waste management systems.
โ Frequently Asked Questions
๐ค About the AI Detection
Q: How accurate is the trash detection?
A: The AI uses a YOLOv8 computer vision model trained on real trash images. Accuracy depends on:
- Image quality and lighting (daylight is best)
- Camera angle and distance
- Trash visibility (not hidden or buried)
Typical accuracy: 75-90% for common items like bottles, bags, and wrappers.
Q: What types of trash can it detect?
A: Common litter categories including:
- Plastic bottles and containers
- Food wrappers and packaging
- Plastic bags
- Cigarette butts
- Cans and metal items
- Paper and cardboard
- General debris
Q: Why are some items missed?
A: The AI may miss items that are:
- Partially hidden or buried
- In shadows or poor lighting
- Very small (like tiny pieces)
- Unusual or rare trash types not in training data
๐ Privacy & Data
Q: Is my data stored or shared?
A:
- Images are processed locally on the server
- Event data is stored in a local SQLite database (if you choose "Save to history")
- No images or personal info are sent to third parties
- Optional: LLM API calls (if configured) send text summaries only, not images
Q: Do I need an account?
A: No! This is a free, open tool. No login required.
๐ Using the Results
Q: How should I use the cleanup plan?
A: The plan provides realistic estimates based on:
- Number of items detected
- Types of trash (some require special handling)
- Typical volunteer efficiency
Use it to:
- Request appropriate resources from authorities
- Plan community cleanup events
- Estimate budget for equipment/disposal
Q: Can I edit the report before sending?
A: Yes! Copy the text from the report box and edit it in your email client or word processor before sending.
Q: Who should I send the report to?
A: Consider sending to:
- City/town environmental department
- Parks and recreation department
- Local waste management authority
- Community cleanup organizations
- Neighborhood associations
๐ Location & Tracking
Q: Why does location matter?
A: Location tracking helps:
- Identify "hotspots" with recurring problems
- Show patterns to authorities
- Prioritize areas needing attention
- Demonstrate impact over time
Q: Is GPS required?
A: No, location is optional but recommended. You can:
- Use GPS auto-detect
- Type location manually
- Leave it blank (less useful for tracking)
๐ Advanced Usage
Q: Can I use this for large-scale city monitoring?
A: This is a prototype designed for:
- Community activists and groups
- Individual concerned citizens
- Small-to-medium cleanup organizations
For large-scale deployment, consider:
- Integrating with city GIS systems
- Adding user authentication
- Cloud hosting for multi-user access
- Professional model fine-tuning for your area
Q: Can I improve the AI detection?
A: Yes! The model file is at Weights/best.pt. You can:
- Train on your own trash images
- Fine-tune for specific trash types in your area
- Replace with a different YOLO model
Q: Can I run this offline?
A: Partially:
- โ Trash detection works offline (local AI model)
- โ Cleanup planning works offline
- โ LLM-enhanced reports require API access
- โ GPS reverse geocoding requires internet
Set LLM_PROVIDER=offline in your .env file for full offline mode.
๐ ๏ธ Troubleshooting
Q: The detection is very slow. Why?
A: Computer vision is computationally intensive. Speed depends on:
- Your hardware (GPU is faster than CPU)
- Image size (larger images take longer)
- Server load
Typical processing: 2-10 seconds per image.
Q: "No trash detected" but I can see trash in the image?
A: Try:
- Taking a clearer, better-lit photo
- Getting closer to the trash
- Ensuring items are visible (not hidden)
- Adjusting camera angle
If issues persist, the model may need retraining on similar images.
Q: How do I report a bug or suggest a feature?
A: Check the project repository for:
- Issue tracker
- Contribution guidelines
- Contact information
๐ Making an Impact
Q: Does this really help clean up trash?
A: This tool provides:
- Documentation for authorities
- Evidence of recurring problems
- Data to support cleanup requests
- Organization for community action
Real cleanup requires human action, but this tool makes that action more effective and data-driven!
Q: Can I contribute to this project?
A: Yes! This is an open-source hackathon project. Ways to contribute:
- Test and report bugs
- Suggest improvements
- Share success stories
- Help improve the AI model
- Translate to other languages
Q: How can I share my success stories?
A: We'd love to hear how you're using CleanCity Agent! Share:
- Before/after photos of cleaned areas
- Data insights from your tracking
- Community impact stories
- Tips for other users
๐ View Past Trash Detection Events
Track all your saved trash detection events to identify patterns and monitor progress over time. Use filters to narrow down specific locations, timeframes, or severity levels.
Filter by cleanup urgency
๐ธ Example Use Cases
See how CleanCity Agent can make a difference in your community!
Scenario: Beach Littered After Weekend
Problem: Every Monday morning, the public beach is covered in trash from weekend visitors.
How CleanCity Helps:
- ๐ธ Take photo on Monday morning
- ๐ค AI detects: 45 plastic bottles, 23 food wrappers, 12 cigarette butts
- ๐ Severity: HIGH - requires 4-6 volunteers, 2 hours
- ๐ง Send report to Parks Department with data
- โ Result: City adds more trash bins and signage
Real Impact: 60% reduction in Monday morning trash after 2 months
Scenario: Playground Area Safety
Problem: Broken glass and sharp objects near children's playground.
How CleanCity Helps:
- ๐ธ Document with photos showing bounding boxes around dangerous items
- ๐ Generate safety-focused report highlighting urgency
- ๐ง Email to city council with visual evidence
- ๐ฅ Organize community cleanup with volunteer count estimate
- โ Result: City responds within 48 hours
Real Impact: Safer playground + faster city response time
Scenario: Downtown Business District
Problem: Weekly trash accumulation hurting local businesses.
How CleanCity Helps:
- ๐ Track events over 4 weeks at same locations
- ๐ Build data showing pattern: "Main Street has 8 events in 30 days"
- ๐ Show historical trends in Event History tab
- ๐ง Present data to Business Association meeting
- โ Result: City increases trash pickup frequency
Real Impact: Cleaner streets + increased foot traffic + data-driven policy change
๐ฏ Tips for Maximum Impact
For Better Photos:
- โ Take photos in daylight (9am-4pm best)
- โ Get close enough to see individual items
- โ Include landmarks for location context
- โ Take before AND after cleanup photos
For Better Data:
- โ Always add specific location names
- โ Be consistent with location spelling
- โ Add notes about context (time of day, events nearby)
- โ Save to history every time
For Better Advocacy:
- โ Collect 3-5 events before contacting authorities
- โ Use professional email reports
- โ Include photos with bounding boxes (shows AI verification)
- โ Suggest specific solutions (more bins, signage, schedules)
For Community Organizing:
- โ Share resource estimates with volunteers upfront
- โ Use cleanup plan for event planning
- โ Document progress with before/after comparisons
- โ Celebrate wins on social media with data
๐ Sample Report Template
Subject: Request for Additional Trash Infrastructure - [Location]
Dear [Authority Name],
I am writing to bring attention to a recurring trash problem at [Location]. Using AI-powered detection tools, I have documented the following:
- Date of observation: [Date]
- Items detected: [X bottles, Y bags, Z wrappers]
- Severity: [High/Medium/Low]
- Estimated cleanup effort: [X volunteers, Y hours]
[Include photo with AI bounding boxes]
I respectfully request:
- [Specific solution - more bins, regular cleaning, etc.]
- [Timeline expectations]
I am organizing a community cleanup on [Date] and would appreciate coordination with city services for disposal.
Thank you for your attention to this matter.
Sincerely, [Your Name] [Contact Information]
๐ Training Resources
Want to learn more about community environmental action?
- ๐ EPA Community Cleanup Guide
- โป๏ธ Ocean Conservancy Cleanup Resources
- ๐๏ธ Keep America Beautiful
- ๐ฅ Community Organizing Best Practices
Start small, document everything, and watch your impact grow!
๐ค Ask Questions or Get Help
Chat with the CleanCity AI Assistant to get personalized advice and answers about:
- ๐งน Cleanup strategies and best practices
- ๐ Interpreting your detection results
- ๐ Environmental impact and regulations
- ๐ฅ Organizing community cleanup events
- ๐ง How to communicate with authorities
Example questions:
- "How many volunteers do I need for 50 plastic bottles?"
- "What's the best time of day to organize a beach cleanup?"
- "How do I convince my city council to add more trash bins?"
- "What equipment is essential for a park cleanup?"
๐ Hi! I'm your CleanCity AI Assistant. Ask me anything about trash cleanup and environmental action!
๐ก Tip: The more specific your question, the better the advice!
CleanCity Agent is a prototype tool for community environmental action. Always verify AI results manually before taking action.