THE PROJECTS INTENTION AND WHY IT WAS CREATED.

From my very childhood, i kept hearing this phrase... that the only real way to solve a problem is to know the roots of the problem and then you destroy those roots.... otherwise no matter your effort... it will come back again ...

The same goes for the India's waste management system., now as of Feb 2026 , India alone produces about 62 million ton and out of which only 20 %to 25 % is recycled. Many attempts have been made to increase this number since past years , but just like i said to solve a problem ,"YOU NEED TO IDENTIFY AND DESTROY THE ROOTS"

And the root here is people's mindset towards garbage and Bharabin with the help of Gemini 3 pro gives a way to solve it. It doesn't just try to help solving the problem but also provide a way to advise some financial decisions for the government ,based on the data collected.

                                           WORKING OF THE PROJECT : BHARATBIN

BharatBin is a tokenized waste management economy. It gamifies waste segregation for citizens (Citizen), provides AI-powered tools for waste collectors (Sahayak), and generates strategic intelligence for the government (Official) using Google Gemini 3 Pro.

The Brain: Gemini 3 Pro Integration

The app relies heavily on services/geminiService.ts. This is the engine that powers the entire ecosystem. Multimodal Input: It accepts both Images and 5-second Video Clips. The Prompt Strategy: The system sends a complex prompt to Gemini asking it to act as an "AI Auditor". Structured Output: Gemini doesn't just "talk"; it returns strict JSON data containing: Validation: Is it Wet/Dry/Hazardous? Is it mixed (invalid)? Gov Data: Identifies brands (e.g., "Amul", "Amazon"), specific food waste, and estimates weight and give its audit on how the financial decision can be made.

                                      Workflow 1: The Sahayak (Collector) :The Operational Backbone

Login & Dashboard: The Sahayak logs in and sees their Sector (e.g., Sector 7-B). They see a live counter of Houses Verified and Total Waste Collected (KG). The Scan Process (Scanner.tsx): The Sahayak arrives at a house and opens the Scanner. Video Mode: They record a 5-second clip of the bin contents. This allows the AI to see depth and hidden items. AI Analysis: The video is sent to Gemini. The app displays a "Thought Log" (e.g., "Identifying brands...", "Estimating mass..."). Verification & Weighing: AI Result: Gemini returns an estimated weight and a cleanliness score. Manual Override: The Sahayak places the bag on their physical scale. If the AI says "1.2kg" but the scale says "1.5kg", the Sahayak inputs 1.5kg manually. Reward Calculation: The app calculates the reward for the Citizen using this formula: Base Reward (10) + Weight Bonus (2 * kg) + Cleanliness Bonus (5 if score > 8). Sync: On confirmation, the data updates the specific household's ledger.

                                                              Workflow 2: The Citizen

The Token Economy User The Wallet (WalletCard.tsx): The user sees their Bharat Token (BT) balance. Swachh Score: A live, fluctuating ticker (like a stock price) representing their civic reputation. Earning Tokens: Passive: When the Sahayak scans their bin successfully, the citizen receives a notification and tokens automatically. Active: They can enter the Eco-Academy (Education.tsx), watch videos, or take quizzes (e.g., "Plastic Life Cycle") to earn instant rewards. Spending Tokens (Marketplace.tsx): Citizens can redeem BT for real-world value. Bill Pay: ₹50 off electricity bills. Civic: Fast-track pass for passport/RTO offices. Goods: Compost kits, bamboo products. Leaderboard: They can compare their ranking against neighbors, their society, or the whole town.

                                                     Workflow 3: The Government Official

The Strategic Analyst Command Center (OfficialDashboard.tsx): This dashboard aggregates data from thousands of scans (simulated in the geminiService). Strategic AI Advisor: Gemini analyzes macro-trends. Example Output: "High volume of tomato wastage detected in Indiranagar. Recommendation: Subsidize home composting kits in this sector." Supply Chain: "40% increase in Amazon cardboard boxes. Action: Alert recycling units to expect high paper load." Wastage Heatmap: Visualizes exactly what the city is throwing away (e.g., 30% Cooked Rice, 20% Plastic Wrappers).

                                                              CONCLUSION: 

The Motive of the project was to touch the very thinking of the people and try to change it, via taking the advantage of the Gemini's 3 pro analyzing ability to give financial adivces.
Thank you .

Built With

  • 19
  • ai
  • and
  • css
  • deepmind's
  • for
  • framework:
  • google
  • google/genai
  • icons:
  • local
  • lucide
  • management:
  • react
  • react.
  • sdk).
  • sdk:
  • state
  • styling:
  • tailwind
  • the
  • useeffect
  • usestate
  • utility-first).
  • vite).
Share this project:

Updates