Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
96664aa
Add prompt generation query; add coach prompt
aschiffl Oct 4, 2025
71b79f7
Resource
vvishal123 Oct 4, 2025
0f90ea6
Create .DS_Store
vvishal123 Oct 4, 2025
52bec16
Update prompt
aschiffl Oct 4, 2025
81ca69e
Merge branch 'team-16/final' of https://github.com/grsrivathsan/Oct-4…
aschiffl Oct 4, 2025
079214e
Update .DS_Store
vvishal123 Oct 4, 2025
8c23c3d
Merge branch 'team-16/final' of https://github.com/grsrivathsan/Oct-4…
vvishal123 Oct 4, 2025
833c9b0
Add sample user input
aschiffl Oct 4, 2025
a0b65ff
user flow
vvishal123 Oct 4, 2025
9bde683
Add notebook to parse all sample user input and generate report for e…
aschiffl Oct 4, 2025
cc6e827
Merge branch 'team-16/final' of https://github.com/grsrivathsan/Oct-4…
vvishal123 Oct 4, 2025
0e65bb4
Add initial README.md for SustainIQ project
vvishal123 Oct 4, 2025
0ad4d53
code
Oct 4, 2025
d55d443
Add files via upload
vvishal123 Oct 4, 2025
56d0210
Merge branch 'team-16/final' of https://github.com/grsrivathsan/Oct-4…
Oct 4, 2025
3bdbe30
Add Sample habit loop notebook and output report
aschiffl Oct 4, 2025
525d34e
Merge branch 'team-16/final' of https://github.com/grsrivathsan/Oct-4…
aschiffl Oct 4, 2025
02b0912
submission
Oct 4, 2025
a52ef82
Merge branch 'team-16/final' of https://github.com/grsrivathsan/Oct-4…
Oct 4, 2025
c8ee258
Add files via upload
Srinivasan-gr Oct 4, 2025
a56d44f
submissions
grsrivathsan Oct 4, 2025
c227fb0
Merge branch 'team-16/final' of https://github.com/grsrivathsan/Oct-4…
grsrivathsan Oct 4, 2025
581607b
Add files via upload
vvishal123 Oct 4, 2025
45aa51d
Add files via upload
Srinivasan-gr Oct 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
120 changes: 120 additions & 0 deletions Resources/# 🌿 SustainIQ — AI Coach for a Greener You
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# 🌿 SustainIQ — AI Coach for a Greener You

> A personal AI sustainability coach that helps you understand, track, and improve the environmental impact of your daily choices — from your morning coffee to your commute.

---

## 🚀 Overview

**SustainIQ** goes beyond measuring your carbon footprint — it *guides* you toward sustainable decisions using AI-powered coaching, habit tracking, and adaptive feedback.

It combines:
- 🌍 **Real-time sustainability scoring**
- 🤖 **AI habit coaching**
- 💬 **Contextual suggestions**
- ⭐ **User feedback loops**
- 📊 **Cumulative impact dashboards**

Think of it as **MyFitnessPal for sustainability** — where every choice, big or small, counts toward a greener lifestyle.

---

## 🧠 Core Concept: The AI Habit Loop

Each user interaction forms a continuous feedback loop:

> **Choice → Suggestion → Rating → Decision → Feedback → Reward**

This loop allows the AI coach to understand your preferences and refine its recommendations over time — gently shaping sustainable habits through *positive reinforcement* instead of guilt.

---

## ⚙️ How It Works

### 1. Choice Awareness
You log or auto-sync your daily activities such as:
- ☕ Beverages (coffee, tea)
- 🚗 Commute (drive, EV, bus, walk)
- 🛒 Purchases (via bank APIs)
- 💡 Energy usage (via smart devices)

AI classifies these into sustainability-impact categories and calculates metrics like:
- **CO₂ footprint**
- **Water use**
- **Land impact**
- **Ethical sourcing**

---

### 2. Smart Suggestions

After each logged activity, SustainIQ offers a **contextual suggestion**:

> “Try oat milk next time – saves 0.4 kg CO₂ per cup.”
> “Switch to loose-leaf tea – 70 % lower water footprint.”

Suggestions appear at **relevant times** and adapt based on your goals, preferences, and location.

---

### 3. Decision & Feedback Loop

When you act on a suggestion, the app recognizes it and rewards you with:
- Real-time visual feedback (impact saved)
- Points, badges, or streaks
- Updated sustainability score

Example:
> “👏 You switched to organic coffee! That’s 120 liters of water and 0.25 kg CO₂ saved.”

---

### 4. Cumulative Dashboard

Track progress with:
- **Daily & Weekly Scores**
- **Top Sustainable Choices**
- **Impact Equivalence:** “You’ve saved 70 kg CO₂ — equal to 4 trees planted 🌲”
- **Category Insights:** Food, Travel, Energy, Shopping

---

### 5. Long-Term Coaching

The AI coach adapts over time:
- “You’ve made sustainable coffee choices 4 of 7 days this week — great job!”
- “Let’s aim to reduce your commute footprint by 15 % next month.”
- Celebrates streaks and milestones.

---

## ⭐ Suggestion Rating System

The **Suggestion Rating System** helps SustainIQ learn from real-world feedback to refine future recommendations.

### Step 1 – User Rates a Suggestion

| Input | Options |
|:------|:--------|
| Quick Rating | 👍 / 👎 or ⭐ (1–5) |
| Reason | “Too expensive”, “Hard to find”, “Taste”, “Time”, “Already do this”, “Other” |
| Remind Later | ✅ Toggle to resurface similar suggestions |

Example Prompt:
> “Was this suggestion helpful?” 👍 👎
> “Why?” → Too expensive / Taste / Already doing it

---

### Step 2 – Data Model

```json
{
"user_id": "u_123",
"baseline_action": {"category": "beverage", "item": "latte", "context": "starbucks_8am"},
"suggestion": {"id": "s_oat_milk_swap", "version": "v3.2", "explore": false},
"rating": {"stars": 4, "thumbs": "up", "reason": "taste"},
"decision": {"accepted": true, "time_to_adopt_days": 1},
"impact": {"delta_co2_kg": 0.25, "delta_water_l": 80},
"meta": {"geo": "home", "device": "ios", "ts": "2025-10-04T10:15:00-07:00"}
}
132 changes: 132 additions & 0 deletions Resources/SampleHabitLoopPlan/HabitLoopPlan_20251004_144115.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personalized Habit Loop Plan - SustainIQ</title>
<link rel="stylesheet" href="habit_loop_styles.css">
</head>
<body>
<div class="plan-container">
<div class="plan-card">
<h1 class="plan-title">
🌱 Review this plan with your sustainability coach
</h1>
<div class="title-divider"></div>

<div class="plan-content">
<h3>Personalized Sustainable Habit Loop Plan</h3>
<h4><strong>Step 1: Identify Common Themes/Patterns</strong></h4>
<p>From the scenarios provided, here are the recurring patterns in your behavior:<br />
1. <strong>Convenience over sustainability:</strong> You often default to the easiest or most familiar option (e.g., driving, using disposable cups, buying bottled water).<br />
2. <strong>Forgetting reusable items:</strong> You occasionally forget to bring a reusable bottle or cup, which leads to single-use consumption.<br />
3. <strong>Energy/resource inefficiency:</strong> Some actions, like using full-speed server fans or opting for a larger moving truck, suggest room for optimization.<br />
4. <strong>Sustainability awareness exists but needs reinforcement:</strong> You’ve received recommendations for sustainable actions, indicating you're open to change but need consistent cues and routines.</p>
<hr />
<h4><strong>Step 2: Habit Loop Framework</strong></h4>
<p>For each scenario, we’ll create a habit loop with the following elements:<br />
1. <strong>Cue:</strong> A trigger that reminds you to act sustainably.<br />
2. <strong>Routine:</strong> The sustainable action to take.<br />
3. <strong>Reward:</strong> A meaningful benefit to encourage habit formation.</p>
<hr />
<h3><strong>Scenario-Specific Habit Loops</strong></h3>
<h4><strong>1. Moving Across State</strong></h4>
<ul>
<li><strong>Cue:</strong> When booking a moving truck, think about the size of your belongings.</li>
<li><strong>Routine:</strong> Choose the smallest truck possible and plan your packing strategy to maximize space (e.g., use boxes of similar sizes, disassemble furniture).</li>
<li><strong>Reward:</strong> Celebrate the cost savings of renting a smaller truck and the satisfaction of reducing your environmental footprint. Share your efficient packing success with friends or family.</li>
</ul>
<hr />
<h4><strong>2. Printing Board Meeting Reports</strong></h4>
<ul>
<li><strong>Cue:</strong> When preparing reports, ask yourself, <strong>"Do all recipients need physical copies?"</strong></li>
<li><strong>Routine:</strong> Send digital copies to all attendees and print only for those who request them. Use double-sided printing and recycled paper for physical copies.</li>
<li><strong>Reward:</strong> Enjoy the reduced stress of carrying fewer printed materials and the cost savings on ink and paper. Visualize the trees and energy saved as a motivator.</li>
</ul>
<hr />
<h4><strong>3. Driving Kids to School</strong></h4>
<ul>
<li><strong>Cue:</strong> When checking the weather and morning schedule, ask, <strong>"Can we walk or bike today?"</strong></li>
<li><strong>Routine:</strong> Walk or bike to school if the weather and schedule allow. For days when driving is necessary, consider carpooling with other families.</li>
<li><strong>Reward:</strong> Turn the walk/bike ride into quality bonding time with your kids, and enjoy the health benefits of physical activity.</li>
</ul>
<hr />
<h4><strong>4. Fixing Your Phone</strong></h4>
<ul>
<li><strong>Cue:</strong> When your phone breaks or slows down, think, <strong>"Repair before replacing."</strong></li>
<li><strong>Routine:</strong> Research certified repair services or reliable DIY kits and choose the most feasible option. Alternatively, check warranties or repair programs from your phone’s manufacturer.</li>
<li><strong>Reward:</strong> Celebrate the extended life of your phone and the money saved by avoiding a new purchase. Consider tracking how long you’ve avoided upgrading to inspire continued repairs.</li>
</ul>
<hr />
<h4><strong>5. Server Fan Optimization</strong></h4>
<ul>
<li><strong>Cue:</strong> When monitoring server performance, check room temperature and energy usage.</li>
<li><strong>Routine:</strong> Install an energy-efficient cooling system or set fans to adjust dynamically based on temperature. Conduct periodic checks to ensure optimal settings.</li>
<li><strong>Reward:</strong> Track your energy savings monthly and reinvest them into improving your workspace or donating to a sustainable cause.</li>
</ul>
<hr />
<h4><strong>6. Starbucks Iced Coffee in a Disposable Cup</strong></h4>
<ul>
<li><strong>Cue:</strong> When leaving home or packing your bag, think, <strong>"Do I have my reusable cup?"</strong></li>
<li><strong>Routine:</strong> Keep a reusable cup/tumbler in your bag, car, or workplace. If you forget it, reuse the Starbucks cup throughout the day to minimize waste.</li>
<li><strong>Reward:</strong> Enjoy the discount many coffee shops offer for reusable cups. Feel proud knowing you’ve reduced waste with every cup you bring.</li>
</ul>
<hr />
<h4><strong>7. Bottled Water from the Vending Machine</strong></h4>
<ul>
<li><strong>Cue:</strong> When leaving home, think, <strong>"Do I have my reusable water bottle?"</strong></li>
<li><strong>Routine:</strong> Keep a reusable water bottle in your bag or car. If you forget it, reuse the purchased bottle throughout the day and commit to refilling it from water fountains instead of buying another.</li>
<li><strong>Reward:</strong> Feel satisfied knowing you’ve avoided contributing more plastic waste. Use a tracking app or journal to count how many bottles you’ve avoided using over time.</li>
</ul>
<hr />
<h4><strong>8. Coffee at the Local Café</strong></h4>
<ul>
<li><strong>Cue:</strong> When you feel the urge for coffee, ask, <strong>"Do I have my reusable cup?"</strong></li>
<li><strong>Routine:</strong> Bring your reusable cup to the café and request your coffee in it. If you forget it, consider skipping the coffee or savoring it in the café using their ceramic mugs.</li>
<li><strong>Reward:</strong> Enjoy the satisfaction of reducing waste and the possibility of discounts. Treat yourself to a more sustainable coffee blend or a small indulgence with the money saved.</li>
</ul>
<hr />
<h3><strong>Step 3: Structured Approach for Adoption</strong></h3>
<h4><strong>Phase 1: Build Awareness (Weeks 1-2)</strong></h4>
<ul>
<li><strong>Action:</strong> Identify your most frequent unsustainable habits (e.g., coffee cups, driving short distances) and focus on those first.</li>
<li><strong>Tool:</strong> Use sticky notes or phone reminders with cues like, <strong>“Reusable cup?”</strong> or <strong>“Walk instead of drive?”</strong></li>
<li><strong>Goal:</strong> Start with 1-2 changes per week to avoid overwhelm.</li>
</ul>
<h4><strong>Phase 2: Create Systems (Weeks 3-4)</strong></h4>
<ul>
<li><strong>Action:</strong> Set up systems that make sustainable choices easier:</li>
<li>Keep a reusable cup and water bottle in your bag, car, or office.</li>
<li>Designate a day to repair or donate old electronics.</li>
<li>Automate reminders for actions like digital distribution of reports.</li>
<li><strong>Tool:</strong> Use apps like Habitica or Loop Habit Tracker to track progress.</li>
</ul>
<h4><strong>Phase 3: Reinforce Habits (Weeks 5-6)</strong></h4>
<ul>
<li><strong>Action:</strong> Reflect on the positive impact of your changes:</li>
<li>Track cost savings from using reusable items.</li>
<li>Calculate the CO2 emissions avoided by walking/biking.</li>
<li>Share your progress with friends or social media to amplify accountability.</li>
<li><strong>Tool:</strong> Keep a journal or log for visual motivation, marking milestones like "5 cups avoided this week!"</li>
</ul>
<h4><strong>Phase 4: Expand and Maintain (Weeks 7+)</strong></h4>
<ul>
<li><strong>Action:</strong> Gradually adopt more sustainable practices:</li>
<li>Explore advanced options like optimizing server energy use.</li>
<li>Research broader sustainability initiatives like composting or renewable energy.</li>
<li><strong>Tool:</strong> Set long-term goals (e.g., "Reduce single-use waste by 50% in 3 months").</li>
</ul>
<hr />
<h3><strong>Conclusion</strong></h3>
<p>By integrating these habit loops into your daily routine, you’ll gradually build more sustainable behaviors. Start small, focus on consistency, and reward yourself for progress. Over time, these actions will become second nature, helping you live a more environmentally conscious life while inspiring those around you.</p>
</div>

<div class="next-steps">
<p>
💡 <strong>Next Steps:</strong> Schedule a session with your sustainability coach to discuss this personalized plan and start your journey toward more sustainable habits!
</p>
</div>
</div>
</div>
</body>
</html>
115 changes: 115 additions & 0 deletions Resources/SampleHabitLoopPlan/HabitLoopPlan_20251004_144115.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
PERSONALIZED HABIT LOOP PLAN
======================================================================
Generated: 2025-10-04 14:41:15
Based on 8 sample scenarios
======================================================================

### Personalized Sustainable Habit Loop Plan

#### **Step 1: Identify Common Themes/Patterns**
From the scenarios provided, here are the recurring patterns in your behavior:
1. **Convenience over sustainability:** You often default to the easiest or most familiar option (e.g., driving, using disposable cups, buying bottled water).
2. **Forgetting reusable items:** You occasionally forget to bring a reusable bottle or cup, which leads to single-use consumption.
3. **Energy/resource inefficiency:** Some actions, like using full-speed server fans or opting for a larger moving truck, suggest room for optimization.
4. **Sustainability awareness exists but needs reinforcement:** You’ve received recommendations for sustainable actions, indicating you're open to change but need consistent cues and routines.

---

#### **Step 2: Habit Loop Framework**

For each scenario, we’ll create a habit loop with the following elements:
1. **Cue:** A trigger that reminds you to act sustainably.
2. **Routine:** The sustainable action to take.
3. **Reward:** A meaningful benefit to encourage habit formation.

---

### **Scenario-Specific Habit Loops**

#### **1. Moving Across State**
- **Cue:** When booking a moving truck, think about the size of your belongings.
- **Routine:** Choose the smallest truck possible and plan your packing strategy to maximize space (e.g., use boxes of similar sizes, disassemble furniture).
- **Reward:** Celebrate the cost savings of renting a smaller truck and the satisfaction of reducing your environmental footprint. Share your efficient packing success with friends or family.

---

#### **2. Printing Board Meeting Reports**
- **Cue:** When preparing reports, ask yourself, **"Do all recipients need physical copies?"**
- **Routine:** Send digital copies to all attendees and print only for those who request them. Use double-sided printing and recycled paper for physical copies.
- **Reward:** Enjoy the reduced stress of carrying fewer printed materials and the cost savings on ink and paper. Visualize the trees and energy saved as a motivator.

---

#### **3. Driving Kids to School**
- **Cue:** When checking the weather and morning schedule, ask, **"Can we walk or bike today?"**
- **Routine:** Walk or bike to school if the weather and schedule allow. For days when driving is necessary, consider carpooling with other families.
- **Reward:** Turn the walk/bike ride into quality bonding time with your kids, and enjoy the health benefits of physical activity.

---

#### **4. Fixing Your Phone**
- **Cue:** When your phone breaks or slows down, think, **"Repair before replacing."**
- **Routine:** Research certified repair services or reliable DIY kits and choose the most feasible option. Alternatively, check warranties or repair programs from your phone’s manufacturer.
- **Reward:** Celebrate the extended life of your phone and the money saved by avoiding a new purchase. Consider tracking how long you’ve avoided upgrading to inspire continued repairs.

---

#### **5. Server Fan Optimization**
- **Cue:** When monitoring server performance, check room temperature and energy usage.
- **Routine:** Install an energy-efficient cooling system or set fans to adjust dynamically based on temperature. Conduct periodic checks to ensure optimal settings.
- **Reward:** Track your energy savings monthly and reinvest them into improving your workspace or donating to a sustainable cause.

---

#### **6. Starbucks Iced Coffee in a Disposable Cup**
- **Cue:** When leaving home or packing your bag, think, **"Do I have my reusable cup?"**
- **Routine:** Keep a reusable cup/tumbler in your bag, car, or workplace. If you forget it, reuse the Starbucks cup throughout the day to minimize waste.
- **Reward:** Enjoy the discount many coffee shops offer for reusable cups. Feel proud knowing you’ve reduced waste with every cup you bring.

---

#### **7. Bottled Water from the Vending Machine**
- **Cue:** When leaving home, think, **"Do I have my reusable water bottle?"**
- **Routine:** Keep a reusable water bottle in your bag or car. If you forget it, reuse the purchased bottle throughout the day and commit to refilling it from water fountains instead of buying another.
- **Reward:** Feel satisfied knowing you’ve avoided contributing more plastic waste. Use a tracking app or journal to count how many bottles you’ve avoided using over time.

---

#### **8. Coffee at the Local Café**
- **Cue:** When you feel the urge for coffee, ask, **"Do I have my reusable cup?"**
- **Routine:** Bring your reusable cup to the café and request your coffee in it. If you forget it, consider skipping the coffee or savoring it in the café using their ceramic mugs.
- **Reward:** Enjoy the satisfaction of reducing waste and the possibility of discounts. Treat yourself to a more sustainable coffee blend or a small indulgence with the money saved.

---

### **Step 3: Structured Approach for Adoption**

#### **Phase 1: Build Awareness (Weeks 1-2)**
- **Action:** Identify your most frequent unsustainable habits (e.g., coffee cups, driving short distances) and focus on those first.
- **Tool:** Use sticky notes or phone reminders with cues like, **“Reusable cup?”** or **“Walk instead of drive?”**
- **Goal:** Start with 1-2 changes per week to avoid overwhelm.

#### **Phase 2: Create Systems (Weeks 3-4)**
- **Action:** Set up systems that make sustainable choices easier:
- Keep a reusable cup and water bottle in your bag, car, or office.
- Designate a day to repair or donate old electronics.
- Automate reminders for actions like digital distribution of reports.
- **Tool:** Use apps like Habitica or Loop Habit Tracker to track progress.

#### **Phase 3: Reinforce Habits (Weeks 5-6)**
- **Action:** Reflect on the positive impact of your changes:
- Track cost savings from using reusable items.
- Calculate the CO2 emissions avoided by walking/biking.
- Share your progress with friends or social media to amplify accountability.
- **Tool:** Keep a journal or log for visual motivation, marking milestones like "5 cups avoided this week!"

#### **Phase 4: Expand and Maintain (Weeks 7+)**
- **Action:** Gradually adopt more sustainable practices:
- Explore advanced options like optimizing server energy use.
- Research broader sustainability initiatives like composting or renewable energy.
- **Tool:** Set long-term goals (e.g., "Reduce single-use waste by 50% in 3 months").

---

### **Conclusion**
By integrating these habit loops into your daily routine, you’ll gradually build more sustainable behaviors. Start small, focus on consistency, and reward yourself for progress. Over time, these actions will become second nature, helping you live a more environmentally conscious life while inspiring those around you.
Loading