AI Calorie and Nutrition Estimator Development by Venkata Anirudh ParakalaAI Calorie and Nutrition Estimator Development by Venkata Anirudh Parakala

AI Calorie and Nutrition Estimator Development

Venkata Anirudh Parakala

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.