This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend
What I Built
I built NutriScan.AI for my close friend Dave, an undergraduate university student who set an earnest personal goal to reduce his weight from 82.4 kg down to a healthy, lean 75.0 kg (165.3 lbs) before midterm exams.
Managing weight loss on a modern college campus sounds simple on paper, but when I watched Dave try to do it, I realized the current software ecosystem failed him at every turn:
- The $35/Month Student Budget Toll: Commercial calorie scanning apps (such as Cal AI and MyFitnessPal Premium) demanded $35/month ($400+/year) just to snap a photo of a lunch bowl or scan a barcode. For a college student juggling tuition, rent, textbooks, and groceries, paying $400/year to track basic nutrition felt predatory and impossible to sustain.
- Dining Hall & Dorm Kitchen Chaos: Between cafeteria mystery stir-fries, rushed dorm-room hotplate cooking, and grabbing bites between lecture halls, Dave had no fast, accurate way to identify portion weights or know what was really fueling his body.
- The "Static Math" Fallacy & Campus Metabolism: Dave walked 10,000 to 14,000 steps every day across campus between lecture halls, pulled late-night study sessions at the library, and lifted weights at the campus gym. Standard 1990s static calculators (Mifflin-St Jeor) claimed his maintenance expenditure was only 2,587 kcal/day. In reality, his active campus commute and fluctuating student schedule burned over 3,150 kcal/day. Following textbook static formulas left Dave chronically fatigued, battling brain fog during afternoon exams, and hitting sudden weight plateaus due to unmodeled metabolic adaptation.
- The Biological Surveillance & Generative Hallucination Trap: When Dave tried free "AI calorie" apps, they prompted LLMs to guess calories directly, hallucinating numbers off by ±35%. Furthermore, Dave hated the idea of uploading intimate photos of his dorm meals and personal scale weigh-ins to closed corporate clouds that harvest and monetize student health records.
I built NutriScan.AI as a sovereign, mathematically grounded nutrition studio that solves all four dilemmas. It combines multimodal computer vision with an offline USDA FoodData Central database, dynamic metabolic forecasting via Prior Labs' TabPFN tabular foundation model, and an AI voice coach that gives him an audio debrief on his walk across campus.
Demo
Live Production Application: https://nutriscan-ai-fwn8.onrender.com/
Mobile & Desktop Interactive Studio: https://nutriscan-ai-fwn8.onrender.com/scan
Video Demo: Watch the Full Walkthrough on GitHub
Key Features I Built for Dave:
- 1-Tap Camera Plate Scanner: Snap or upload a photo of any cafeteria or dorm meal to extract segmented ingredients, estimated gram weights, and confidence scores.
- Audit-Grade USDA Nutrition Ledger: Deterministic arithmetic calculating calories, protein, carbs, and fats without generative hallucination.
- Dynamic 28-Day Metabolic Trajectory Studio: Powered by TabPFN with an interactive caloric deficit slider (1,600 to 3,000 kcal/day) showing Dave the exact day he will reach 75.0 kg.
-
Mobile-First Cal AI Studio: Interactive calorie progress ring, 3 radial macro cards (drumstick for protein, wheat for carbs, avocado for fat), quick-tap hydration tracker (
+250ml/+500ml), and a 16:8 intermittent fasting timer. - ElevenLabs AI Voice Coach: Synthesizes an encouraging 30-second personalized audio debrief directly to Dave's headphones as he walks between classes.
Code
🥗 NutriScan.AI
Autonomous Food Vision, 100% Deterministic USDA Grounding, Prior Labs TabPFN In-Context Metabolic Forecasting, and ElevenLabs Auditory Debriefs.
NutriScan AI eliminates the "Calorie Guesswork Crisis", the dangerous "AI Vision Hallucination Trap", and the "Static Math Fallacy". Commercial food tracking applications charge $35/month while sending intimate meal photos and biological logs to centralized corporate clouds, all while relying on 1990s static formulas (like Mifflin-St Jeor) that completely fail to account for metabolic adaptation, non-exercise activity thermogenesis (NEAT), and water retention. NutriScan AI pairs open-weight Google Gemma 2 Vision with 100% deterministic USDA FoodData Central grounding and Prior Labs' TabPFN—the world's leading tabular foundation model—to discover a user's true dynamic daily energy expenditure (TDEE) and project their exact 28-day weight trajectory with Bayesian confidence intervals.
Watch the demo
A real-device walkthrough of the NutriScan.AI companion, demonstrating live camera scanning, deterministic USDA FoodData Central macronutrient grounding, TabPFN dynamic metabolic forecasting, and…
🥗 NutriScan.AI
Autonomous Food Vision, 100% Deterministic USDA Grounding, Prior Labs TabPFN In-Context Metabolic Forecasting, and ElevenLabs Auditory Debriefs.
NutriScan AI eliminates the "Calorie Guesswork Crisis", the dangerous "AI Vision Hallucination Trap", and the "Static Math Fallacy". Commercial food tracking applications charge $35/month while sending intimate meal photos and biological logs to centralized corporate clouds, all while relying on 1990s static formulas (like Mifflin-St Jeor) that completely fail to account for metabolic adaptation, non-exercise activity thermogenesis (NEAT), and water retention. NutriScan AI pairs open-weight Google Gemma 2 Vision with 100% deterministic USDA FoodData Central grounding and Prior Labs' TabPFN—the world's leading tabular foundation model—to discover a user's true dynamic daily energy expenditure (TDEE) and project their exact 28-day weight trajectory with Bayesian confidence intervals.
Watch the demo
A real-device walkthrough of the NutriScan.AI companion, demonstrating live camera scanning, deterministic USDA FoodData Central macronutrient grounding, TabPFN dynamic metabolic forecasting, and…
How I Built It
When I sat down with Dave to design NutriScan.AI, I established a strict architectural invariant:
Large Language Models must NEVER do calorie math.
Computer vision must ONLY segment food portions in grams.
USDA tables must compute deterministic arithmetic.
Tabular foundation models must forecast human metabolism.
I architected the platform around five core open-source AI and engineering pillars:
1. Google Gemma 2 Multimodal Vision (Open Weights)
I used open-weight vision models (running locally via Ollama or hosted) strictly for geometric scene decomposition: identifying food boundaries, item classes, and portion volume estimations in grams without routing private meal photos to commercial ad networks.
2. Deterministic USDA FoodData Central Grounding
Instead of letting an AI guess nutritional values, I mapped Gemma's food detections to an offline slice of USDA FoodData Central. The system matches recognized items against verified reference IDs (FDC IDs) and multiplies nutritional density by the portion gram weight using pure Python arithmetic:
$$\text{Nutrient}{\text{total}} = \sum{i=1}^{N} \left( \frac{\text{Portion Grams}_i}{100} \times \text{USDA Density per 100g}_i \right)$$
Zero generative hallucinations. 100% verifiable clinical truth.
3. Prior Labs' TabPFN (Tabular Prior-Data Fitted Network)
This is the technological crown jewel of NutriScan.AI. Rather than forcing Dave onto static 1990 population averages, TabPFN ingests Dave's rolling 30-day biological check-in dataset (dave_metabolic_log.csv tracking daily calories, protein, carbs, fat, campus step count, sleep hours, and morning scale weight). In a single forward pass without backpropagation loops or fine-tuning TabPFN evaluated Dave's non-linear weight changes and discovered that his true dynamic expenditure was 3,152 kcal/day nearly 600 kcal higher than textbook formulas predicted! It then outputs a 28-day Bayesian trajectory forecast complete with confidence envelopes.
4. ElevenLabs Neural Voice Coach
To keep Dave motivated on his walk across campus, I integrated ElevenLabs' neural text-to-speech API (Rachel voice model) to synthesize an intelligent 30-second audio debrief analyzing his daily macros and celebrating milestone achievements.
5. Sentry Full-Trace Observability
Every pipeline stage from visual inference to TabPFN in-context evaluation and ElevenLabs audio buffers—is instrumented with distributed tracing to guarantee sub-second reliability.
Why Does Open Innovation Matter?
Open innovation is the entire reason NutriScan.AI exists. Here is why open models made possible what closed APIs never could:
- Eliminating the Student Paywall: Closed platforms lock basic macro tracking behind $35/month paywalls. By building with open weights and open datasets, I was able to give Dave a tool that completely outclasses commercial apps for $0.
- Biological Data Sovereignty: Closed fitness platforms monetize student health data, selling weigh-in records and dietary patterns to insurers and data brokers. Open innovation allowed me to design a system that runs entirely on sovereign infrastructure with zero data leakage.
- Scientific Grounding vs. Stochastic Guesswork: Closed AI apps use black-box prompts that hallucinate nutrition facts. Open innovation allowed me to decouple perception (Gemma 2), arithmetic (USDA), and tabular foundation modeling (TabPFN) to create an explainable, clinically sound tool.
Dave's Unfiltered Reaction
When I deployed the web application to Render and handed Dave the phone over a quick dining hall lunch, his reaction was instantaneous:
"Are you serious? You built this in a weekend? The camera scanner picked up my cafeteria grilled chicken and rice bowl instantly, and the calories match the USDA label to the gram. But the crazy part is the 28-Day Trajectory chart: when I dragged the slider to 2,100 kcal, it told me I'd reach 75.0 kg on Day 21 fitting right before midterm week. And the voice debrief on my walk back to the dorm literally sounded like a personal fitness coach in my pocket!"
My Agent Session
I built and iterated on NutriScan.AI with my coding assistant using advanced agentic AI pair programming. You can explore the complete, interactive development session below:
(If the interactive widget doesn't load in your browser, you can also view the session transcript directly at dev.to/agent_sessions/nutriscanai-full-end-to-end-build-for-hacktoberfest-build-for-a-friend-baxn6p)
Prize Categories
I am entering NutriScan.AI into the following partner categories:
Featured Categories ($200)
-
Best Use of Render: NutriScan.AI is deployed as an automated web service runtime on Render (
https://nutriscan-ai-fwn8.onrender.com), serving both the responsive web studio frontend and the asynchronous AI endpoints with sub-second response times. -
Best Use of TabPFN: I used Prior Labs' TabPFN tabular foundation model to analyze Dave's 30-day historical check-in dataset (
dave_metabolic_log.csv) via in-context learning. TabPFN discovered Dave's true dynamic TDEE (3,152 kcal) and predicted his 28-day Bayesian weight trajectory with 95% confidence intervals. - Best Use of Gemma: I integrated Google's open-weight Gemma 2 model to visually segment plate meals and estimate portion weights in grams without leaking student meal photos to commercial ad networks.
Partner Categories ($100)
-
Best Use of ElevenLabs: NutriScan.AI uses ElevenLabs' neural text-to-speech API (
Rachelvoice model) to give the application an auditory coaching personality, delivering an empathetic 30-second metabolic debrief directly to Dave's headphones as he walks across campus. -
Best Use of Sentry Agent Tracing: Every pipeline stage from Gemma multimodal inference to TabPFN tabular in-context learning and ElevenLabs audio generation is instrumented with custom Sentry tracing spans (
app/services/tracing.py), monitoring latency, execution performance, and failure boundaries.
Top comments (0)