Skip to content

dankimjw/PrepSense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯¦ PrepSense β€” Make Every Ingredient Count

Capstone Project Β· University of Chicago MS in Applied Data Science (2025)
Team: Akash Sannidhanam, Daniel Kim, Bonny Mathew, Prahalad Ravi


πŸ“‘ Table of Contents


🧭 Project Motivation

Food waste is a global challenge with both environmental and personal costs. In the United States alone, nearly 60 million tons of food are wasted annually β€” valued at $218 billion β€” enough to feed 120 million people for a full year. Beyond the waste of resources, this contributes significantly to greenhouse gas emissions and climate change.

At the same time, many individuals β€” like Lily, our user persona β€” want to eat healthier, cook more at home, and reduce waste, but face daily challenges: manual pantry tracking, forgotten expiry dates, and difficulty planning balanced meals. These challenges often lead to last-minute takeout, skipped meals, or nutritionally imbalanced choices.

PrepSense was created to solve these problems on both fronts. By combining a fully integrated AI-powered pantry scanning, expiry tracking, and personalized recipe recommendations, it not only helps reduce waste but also supports healthier eating habits. The app considers nutritional balance, dietary preferences, and portion control β€” making it easier for users to prepare wholesome, home-cooked meals using what they already have.

Our goal is to help people waste less, eat better, and live healthier, turning everyday meal preparation into a sustainable and health-conscious habit.

Built as a capstone project for the University of Chicago’s MS in Applied Data Science program, PrepSense combines computer vision, CrewAI-powered Agentic AI state management, and the use of Multimodal large language models (LLMs) to transform everyday household decisions into impactful actions.


πŸ‘©β€πŸ³ User Persona

Lily is a tech professional residing in San Diego. She is passionate about maintaining a healthy lifestyle, enjoys preparing nutritious home-cooked meals, and makes a weekly trip to the grocery store to stock her pantry. Lily is also deeply committed to sustainability and is mindful of how her daily choices impact the environment.

image

Her challenges:

  • Relies on manual pantry tracking β€” time-consuming and prone to error
  • Forgets items in pantry or fridge until they expire, leading to food waste
  • Struggles to plan balanced meals with what she has on hand
  • Occasionally resorts to less nutritious options when pressed for time
  • Feels her food waste conflicts with her sustainability values

Her ideal solution is one that is mobile-first, smart, and β€œjust works” without needing manual entry.

PrepSense was built for Lily.

image

πŸ“² Product Workflow

1. Pantry Updation Flow

User Input:

  1. Upload a photo of their pantry or receipt.

Our system:

  1. Image is processed by a Multimodal LLM
  2. Sequential Chain-of-Thought (CoT) logic to detect, classify, and then attribute extraction for brand, category, quantity, and expiry date.
  3. Output returned as a structured JSON object that is then parsed, and stored in a structured pantry database

User Output: Displays items in a color-coded, manually-editable inventory screen

image image image image image image image image

2. Recipe Generation Flow

Input:

  1. User Pantry Item list
  2. Saved user diet and cuisine preference
image image

Our system: Engages an Agent Orchestrator, which is a coordinated sequence of specialised agents β€” each with a distinct role:

Agent Role
Scanner Sage Reads pantry items from the database
Taster Tune Applies dietary restrictions/preferences stored in database
Filter Fresh Removes expired or unusable items
Recipe Rover Generates recipe suggestions
Health Ranker Scores meals based on dietary preferences and health guidelines
Judge Thyme Validates if recipe is feasible with current pantry inventory
Bite Cam Creates recipe image
Chef Parser Formats recipe output for UI

Each of these agents is orchestrated via CrewAI using memory tools, custom prompts, and response validation steps.

image

Once pantry items are captured, users can:

  1. Receive personalized recipe suggestions based on whats in their pantry.
  2. Filter by dietary goals (e.g., vegan, high-protein, low-sodium)
  3. Chat with an AI Chef to find ideas like β€œQuick lunch with tofu, no dairy”
  4. Manually update pantry based on items consumed
image image image image

3. Pantry Rundown Flow

Once a recipe is chosen to be made:

  • PrepSense removes ingredients used in that recipe from the live pantry db
  • Optionally, Users can choose to manually remove items they might have consumed from the pantry
image

4. Smart Shopping & Feedback

If an item is missing for a desired recipe:

  • PrepSense recommends adding it to a shopping list
  • Users can plan next grocery trips more intentionally

Users can also get useful summary stats on their consumption, food saved and impact on the environment.

image image image

πŸ† Competitive Advantage: How PrepSense Stands Out

PrepSense is both your Pantry Manager and Personal AI Chef. By integrating a fully AI-powered platform it intelligently bridges the gap between household food visibility, personalized nutrition, and environmental impact.

The table below compares PrepSense to several leading apps in the market:

Feature / Capability PrepSense NoWaste Yummly Whisk PantryCheck
Pantry Scanning βœ… βœ… ❌ ❌ βœ…
Pantry Expiry Tracking βœ… βœ… ❌ ❌ βœ…
Smart Grocery List βœ… βœ… βœ… βœ… βœ…
Personalized Recipe Generation βœ… ❌ βœ… βœ… ❌
Adaptive to User Preferences 🟒 Emerging ❌ βœ… 🟠 Basic ❌
Sustainability Gamification 🟑 Roadmap βœ… ❌ ❌ ❌
Grocery Store API Integration 🟑 Roadmap ❌ βœ… ❌ 🟠 Basic

βœ… = Fully implemented | 🟠 = Basic version | 🟒 = In development | 🟑 = On roadmap


πŸ” Why PrepSense Wins

  • Vision-Language Integration: Photo-based pantry tracking using GPT-4o + Vision API is intuitive and reduces user burden.
  • Agent-Oriented Design: PrepSense’s modular agent system (CrewAI) handles every stage from scanning to scoring, making it future-proof and extensible.
  • Health-first Personalization: Nutrition-aware recipe generation prioritizes dietary needs, not just popularity.
  • Sustainability Intelligence: By quantifying food waste, meal recovery, and COβ‚‚ offsets, PrepSense uniquely empowers users to make an impact.
  • Gamification & Feedback Loops: A planned sustainability dashboard and engagement features aim to keep users mindful and motivated.

PrepSense doesn’t just help users decide what to eat β€” it transforms how they think about food, health, and the planet.


🧠 Architecture:

image

At the heart of PrepSense is an agentic pipeline powered by CrewAI, which enables modular, memory-aware, and task-specific collaboration across AI agents.


βš™οΈ Tech Stack

Component Technology
Mobile Frontend React Native, Expo
Backend API FastAPI, Python
Database PostgreSQL (prod-ready)
LLM Integration GPT-4o, chain-of-thought prompting, Claude
Vision Processing OpenAI Vision API, OCR & preprocessing
Agent Orchestration CrewAI
External API Spoonacular API
Image Generation OpenAI
Infrastructure GitHub Actions, Docker (planned), Cloud Run


🌍 Impact Projections

PrepSense is designed not just to make meal planning easier but to drive measurable sustainability and cost-saving outcomes.

Estimated per Household Impact (based on pilot data & market research):

  • 5% lower food waste per household
  • ~60 lbs of food saved annually through pantry-based planning and expiry alerts
  • $1,250 saved per year (~75 meals rescued)
  • ~120 kg of COβ‚‚ emissions prevented

These figures compound significantly as PrepSense adoption grows. For example, with 10,000 active households:

  • 600,000 lbs of food saved
  • $12.5 million in total savings
  • 1.2 million kg of COβ‚‚ emissions prevented

πŸ›€ Roadmap (Post-Capstone)

  • ⏳ Grocery API integration (Instacart, Amazon Fresh)
  • πŸ‘ͺ Family and household sharing mode
  • πŸ“Š Built-in analytics for users’ waste/savings
  • 🧠 Offline mode with cached pantry state and recipes
  • 🌍 Multilingual & cultural dietary support

πŸš€ Setup & Configuration

git clone https://github.com/dankimjw/PrepSense.git
cd PrepSense

# Backend setup
pip install -r requirements.txt

# Frontend setup
cd ios-app
npm install
npx expo start

πŸ§‘β€πŸ’» Team & Contributions

  • Akash Sannidhanam
  • Daniel Kim
  • Bonny Mathew
  • Prahalad Ravi

We worked collaboratively using GitHub Projects and CI workflows.


πŸ“œ License & Acknowledgements

Gratitude to:

  • University of Chicago MSADS Faculty
  • OpenAI (GPT-4o, Vision API)
  • RTS Food Waste Research
  • Expo/React Native Community
  • The CrewAI Project

PrepSense empowers people to waste less, eat better, and live healthier, turning everyday meal preparation into a sustainable and health-conscious habit


About

Capstone project for University of Chicago

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5