๐ŸŒ EcoScan AI โ€” Climate + Data = Action

Turning everyday decisions into climate action โ€” powered by open-source AI


๐Ÿงฉ The Problem

Every day, millions of individuals and small businesses make decisions that silently damage the climate โ€” but they never find out. Generic sustainability advice ("drive less, eat less meat") doesn't work because it isn't personal, isn't quantified, and doesn't tell you what exactly to do differently.

Meanwhile:

  • The average person emits ~10 tonnes of COโ‚‚ per year through consumption alone
  • UK small businesses waste an estimated ยฃ1.6 billion annually on avoidable energy costs
  • 80% of people want to act on climate change but don't know where to start

The gap isn't awareness. It's actionable, personalised intelligence.


๐Ÿ’ก The Solution

EcoScan AI is a two-in-one Streamlit application powered by Llama-3.1-8B-Instruct (open-source LLM via Hugging Face Inference Providers) that bridges the gap between climate data and real-world action.

๐Ÿ›’ Mode 1 โ€” Purchase Carbon Scanner

Paste your shopping list (groceries, travel, electronics โ€” anything). EcoScan:

  • Estimates the kg COโ‚‚e footprint of each item based on lifecycle data
  • Flags high / medium / low impact items
  • Suggests a specific, named lower-carbon alternative with exact % savings
  • Shows your total footprint vs. potential footprint if you make the switches

Example: 500g beef mince (6.8 kg COโ‚‚e) โ†’ Quorn mince (0.4 kg COโ‚‚e) = 94% reduction

๐Ÿข Mode 2 โ€” Business Energy Advisor

Input your business type, monthly energy bill, heating system, and lighting. EcoScan generates a personalised 5-step energy reduction plan with:

  • Specific action titles and explanations
  • Estimated monthly ยฃ savings per action
  • Payback period in months
  • Difficulty rating (easy / medium / hard)
  • COโ‚‚ impact level

Example: A restaurant spending ยฃ800/month could save ยฃ96/month just by switching to LED lighting โ€” payback in 8 months.


โš™๏ธ How It Works

User Input (Streamlit UI)
        โ”‚
        โ–ผ
Input Sanitization + Prompt Engineering
        โ”‚
        โ–ผ
Hugging Face Inference Providers Router
(meta-llama/Llama-3.1-8B-Instruct)
        โ”‚
        โ–ผ
Structured JSON Response Parsing
        โ”‚
        โ–ผ
Interactive Results Dashboard (Streamlit)

The app uses structured JSON prompting โ€” the LLM is given a strict system message instructing it to return only a valid JSON array with defined keys. A robust extract_json() parser handles edge cases like markdown fences, partial output, and nested objects.


๐Ÿ› ๏ธ Tech Stack

Layer Technology
Frontend & app framework Streamlit
LLM Llama-3.1-8B-Instruct (Meta, open-source)
LLM API Hugging Face Inference Providers (router.huggingface.co)
Language Python 3.10+
Dependencies streamlit, requests (minimal footprint)

No paid APIs. No proprietary models. Fully open-source stack.


๐ŸŒฑ Real-World Impact

Target Impact
Individual consumers Personalised carbon footprint breakdown per purchase with actionable swaps
Small businesses (5.5M in UK alone) AI energy audit replacing ยฃ500+ consultant visits
NGOs & educators Free tool to run carbon literacy workshops
Local governments Scalable citizen engagement tool for net-zero programmes

๐Ÿ† Why EcoScan AI Wins

Innovation

Not a dashboard โ€” a decision engine. Most climate apps show you data. EcoScan tells you exactly what to buy instead and exactly how much you'll save. Structured JSON prompting of an open-source LLM for real-time sustainability intelligence is a novel approach at this scale.

Functionality

Two fully working AI-powered modes. Live LLM inference. Parsed, structured output rendered as interactive metrics and cards. Handles edge cases gracefully with robust error handling.

Presentation

Clean, branded UI with a clear narrative arc: here's your footprint โ†’ here's what to change โ†’ here's the impact. Demo-ready in 30 seconds โ€” judges can use it live.

Problem Solving

Attacks climate change at two of its highest-leverage points simultaneously: individual consumption and small business energy waste โ€” both quantified, both actionable, both personalised.


๐Ÿš€ How to Run

# 1. Clone the repo
git clone https://github.com/khannakiran2001-beep/EcoScan-AI

# 2. Install dependencies (only 2 packages)
pip install -r requirements.txt

# 3. Launch
streamlit run app.py

Get a free Hugging Face token at huggingface.co/settings/tokens and paste it into the sidebar.


๐Ÿ”ฎ What's Next

  • Receipt OCR โ€” photograph a supermarket receipt, auto-extract every item
  • Energy meter API integration โ€” connect live smart meter data (UK SMETS2)
  • Community leaderboards โ€” compare footprints with friends or colleagues
  • Supply chain mode โ€” analyse B2B invoices for Scope 3 emissions
  • WhatsApp / Telegram bot โ€” bring EcoScan to where people already are

Built for the Tech Builders Program Hackathon 2026 ยท Climate & Sustainability Track Powered by Llama 3.1 on Hugging Face ยท Built with Streamlit

Built With

Share this project:

Updates