piri080901/smartplate
0
🍽️ SmartPlate — Personalized AI Meal Analyzer
SmartPlate turns a single meal photo into personalized, source-backed nutritional feedback by chaining three AI blocks into one pipeline.
Live demo: https://huggingface.co/spaces/piri080901/smartplate
Meal photo → [Computer Vision] dish → [USDA] nutrients
→ [ML] Nutri-Score → [NLP/RAG] personalized, cited explanationThe three blocks
Plus a health-coach chat for follow-up questions ("How can I make this healthier?").
Quick start
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # add OPENAI_API_KEY and USDA_API_KEY
python app.py # open http://127.0.0.1:7860Repository layout
app/ Gradio app (inference) + example images
src/nlp/ RAG explainer (ChromaDB + GPT-4o-mini)
src/utils/ USDA FoodData Central API client
notebooks/ 01 EDA-CV · 02 EDA-ML · 03 CV-train · 04 ML-train · 05 NLP-eval
data/raw/guidelines/ WHO / Harvard / EAT-Lancet (RAG knowledge base)
evaluation/ results + ethics & bias analysis
screenshots/ UI screenshots
documentation.md full project documentation (start here)Documentation
Full methodology, metrics, and evaluation are in `documentation.md`. Ethics & bias analysis in `evaluation/ethics_bias_analysis.md`.
ZHAW AI Applications — Final Project (Spring 2026). ⚠️ Educational use only — not medical advice.
