AI Calorie and Nutrition Estimator Development

Venkata Anirudh

Venkata Anirudh Parakala

🧠 Intelligent AI Calorie Estimator

A smart, image-based food calorie and nutrition estimator built using Gemini 1.5 Pro. Upload a photo of your meal, and the AI will analyze it, identify food items, estimate quantities, and ask only the most essential questions before delivering a personalized calorie and macronutrient breakdown.

πŸ“Έ Demo

πŸš€ Features

βœ… Upload a photo of any meal βœ… Gemini 1.5 Pro performs visual analysis + inference βœ… Chain-of-thought reasoning with follow-up questioning βœ… Fat-smart estimation logic (pan-frying, deep-frying attribution) βœ… Clean, interactive Streamlit interface βœ… Final JSON-based macro breakdown per item βœ… Total meal calories, protein, carbs, and fat βœ… Optimized prompt engineering for Gemini's strengths

πŸ”§ Tech Stack

Frontend: Streamlit
AI Backend: Google Gemini 1.5 Pro API
Language: Python 3.11
Model Prompting: Chain-of-Thought + Few-shot examples
Deployment Ready: Streamlit Sharing

πŸ§ͺ How It Works

Upload Meal Photo: The app uses Streamlit to capture an image.
Visual Analysis (Gemini 1.5 Pro): The AI:
Identifies food components
Estimates portions using visual scale cues
Assigns confidence scores
Generates clarifying questions only when needed
User Answers Questions: You provide additional context (e.g., how much chicken was used, type of oil, etc.).
Final Nutritional Breakdown: The AI calculates:
Calories
Protein
Carbohydrates
Fat for each item and totals them.
Like this project

Posted Aug 10, 2025

Developed an AI-based food calorie estimator using Gemini 1.5 Pro and Streamlit.