Clean2Earn is an AI-powered sustainability platform that rewards users with digital coins for performing real-world environmental activities like cleaning surroundings.
Users submit before & after images, and our AI verification system ensures authenticity before rewarding them.
- 📸 Upload Before/After Cleanup Images
- 🤖 AI-based Cleaning Verification
- 🪙 Earn Eco-Coins for verified actions
- 📊 User Dashboard (coins, impact, activities)
- 🔐 JWT Authentication System
- 📍 Location tagging using geolocation
- 🚫 Fraud Detection using AI
- 📈 Impact Score Tracking
People want to contribute to the environment but lack:
- Motivation
- Reward systems
- Trust-based validation
Fake claims also reduce the credibility of such systems.
Eco-Coins solves this by:
- Providing incentives (coins) for eco-actions
- Using AI to verify authenticity
- Building a trust-based ecosystem
- React (Vite)
- Tailwind CSS
- Node.js
- Express.js
- MongoDB
- JWT Authentication
- Groq API (LLaMA / Vision Model)
- Image-based verification system
Eco-Coins/
│
├── frontend/ # React frontend
├── backend/
│ ├── src/
│ │ ├── controllers/
│ │ ├── routes/
│ │ ├── models/
│ │ ├── middleware/
│ │ ├── services/ # AI logic (Groq)
│ │ └── config/
│ │
│ └── server.js
│
└── README.md
- User registers / logs in
- JWT token is generated
- Token is used to access protected routes
- Middleware verifies user identity
User uploads:
- Before Image
- After Image
- Location metadata
Request goes to:
POST /api/verify-cleaning
-
Images are sent to Groq AI service
-
AI analyzes:
- Difference between images
- Whether actual cleaning happened
- Signs of manipulation
AI returns:
{
"verdict": "CLEANED | FRAUD_DETECTED",
"confidence": "HIGH | MEDIUM | LOW",
"details": "Explanation"
}-
If verdict = CLEANED:
- ✅ User earns 25 coins
- 📈 Impact score increases
- 🧹 Cleanup count increments
-
Else:
- ❌ No reward
⚠️ Marked as fraud
-
Verification stored in
Verificationcollection -
User stats updated:
- ecoCoins
- cleanups
- impactScore
- activity history
- Max 2 cleanups per day
- Prevents abuse/spam
- Uses OpenStreetMap Reverse Geocoding
- Converts coordinates → readable city name
- Stored with each activity
- 🎁 Reward redemption (NGO tie-ups)
- 📱 Mobile app
- 🌍 Community challenges
- 🔗 Blockchain-based proof
- Real-world + AI integration
- Fraud-resistant reward system
- Scalable sustainability model
- Social impact + tech innovation
Bhumika Tyagi
If you like this project:
- Star ⭐ the repo
- Share 🚀
- Contribute 🤝