An AI-powered recommendation system that generates personalized 7-day meal plans based on clinical conditions, allergens, dietary preferences, and nutrient targets.
Open live demo ↗NutriAI aims to generate a personalized 7-day, 3-meal plan for a user based on their clinical conditions, allergens, dietary preference, and nutrient targets. It's built on an offline USDA FoodData Central snapshot of 10,400 food records, and was tested on four personas with different conditions, needs, and preferences.
Each food item carries several nutrients — calories, fiber, sugar, sodium, iron, calcium, vitamin B12, vitamin D, and zinc. Embeddings summarize each food's nutritional profile as a numerical vector, so foods are compared mathematically rather than by name, and FAISS retrieves the foods most similar to a user's goals.
A weighted multi-objective ranker then scores each food: sugar, sodium, and saturated fats lower a score, while vitamins, fiber, and protein raise it — so users with different needs get recommendations tailored to their profile. A Thompson-sampling bandit layers personalization on top, learning from user feedback (save/replace a meal) so favored meals surface more often, without needing retraining or large amounts of data.
Intake & validation → deduplication → clinical filtering (IBS, GERD, T2 diabetes, hypertension) → allergen exclusion → dietary filtering (vegan/vegetarian/pescatarian) → ranking (FAISS + weighted) → diversity optimization (MMR) → 7-day meal plan generation → RDA analysis → feedback loop.
Tested across four personas — IBS/vegetarian, GERD/gluten-free, type 2 diabetes/vegan, and hypertension/pescatarian — every plan avoided allergens, met clinical guidelines, and hit nutrient targets with zero violations.
The offline food database doesn't include branded products and some categories are rule-based, so they can be miscategorized. Health rules are simplified and don't reflect professional medical advice, the nutrient scope is limited, and the plan only covers breakfast, lunch, and dinner — no snacks or substitutions mid-week.