The Story of E-Meal.ai: Engineering Nutrition

The Inspiration

One day after a workout, I was at the gym with my friends trying to figure out what to eat. We all wanted something high in protein to recover, so naturally, we started looking at nearby food spots. Everything looked good: protein bowls, grilled meals, & shakes. But once I checked the prices, I realized I couldn’t afford any of it.

I didn’t want to say anything because it was embarrassing to admit I couldn’t afford the same meals everyone else was casually ordering. So I just went along with it, but it didn’t sit right with me.

That experience made me realize the problem wasn’t just money, it was access to the right information. I didn’t need fancy meals. I needed something that fit both my dietary goals (high protein) and my budget constraints.

That’s when the idea for E-Meal.ai clicked:
What if an AI could source meals and groceries tailored to your nutrition and budget in real time?


How I Built It

I designed E-Meal.ai as a system that connects biometric needs with real-world pricing data through an automated pipeline:

  • Data Acquisition: A Google Form collects user inputs like age, weight, height, fitness goals, budget, and location. Responses are linked to a Google Spreadsheet
  • Intelligence Layer: Integrated Gemini 2.5 Flash with Google Search Grounding to pull real-time pricing from stores like Aldi, Walmart, and Giant.
  • Optimization Engine: The AI filters and selects foods that maximize protein and calories per dollar.
  • Output Engine: Generates a structured “Meal Optimization Plan” using the Google Docs API and delivers it via Gmail.

The Math of Nutrition

To ensure users are not just eating cheap, but eating enough, the system calculates Total Daily Energy Expenditure (TDEE).

For example, Basal Metabolic Rate is computed using:

$$ BMR = (10 \times \text{weight in kg}) + (6.25 \times \text{height in cm}) - (5 \times \text{age}) + 5 $$

This allows E-Meal.ai to align food recommendations with energy needs and fitness goals.

We then optimize for cost efficiency:

$$ \text{Cost Efficiency} = \frac{\text{Protein (g)} + \text{Calories}}{\text{Price (\$)}} $$


Challenges Faced

  • Price Volatility: Grocery prices fluctuate frequently, requiring real-time validation.
  • Nutritional Constraints: Balancing protein intake, calories, and cost without compromising health.
  • User Psychology: Designing around the reality that people may feel uncomfortable admitting budget constraints.

What I Learned

E-Meal.ai showed me that AI is most powerful when it acts as a decision-making tool, not just a chatbot.

This wasn’t just about saving money — it was about removing the friction and embarrassment around food decisions. By combining AI, real-time data, and human-centered design, I learned that small systems can solve very real, everyday problems.

At its core, E-Meal.ai is about one thing:
Helping people eat right without feeling left out.

Built With

Share this project:

Updates