Project · Custom AI Agents
NovaNutri
From a food photo to the next meal: an AI agent built end to end on AWS.
An AI agent that reads a photo of a meal, works out the foods, grams and nutrition, and suggests a balanced next meal with sources from the U.S. Dietary Guidelines. Built from the data pipeline and model training to a deployed service on Amazon Web Services.
Demo video, 2:03. Real screens of the public demo and of each stage on AWS.
The problem
Photo food apps usually show one calorie number without the foods and amounts behind it, and general chat models can state numbers that are not on the plate. NovaNutri treats this as an agent problem: a model makes the first guess, the guess is corrected, numbers come from code and reference data, and every suggestion is grounded in a cited source.
Own vision model for foods and grams, with its test error published (about 26 percent calorie error)
Nutrition calculated by code, never by a language model
Two models side by side, each sentence checked against the plate and the cited guidelines
Agent tools through an MCP server; data, model, agent and service each built and verified on AWS
What was built

Data pipeline
Apache Airflow on an on-premise server cleans each day's records by documented rules and lands them in Amazon S3. EventBridge starts Step Functions, AWS Glue writes Apache Iceberg tables with Data Quality rules, and Athena checks the counts.
Model
A vision model on DINOv2 features predicts foods and grams. It was evaluated once on an untouched test split; SageMaker Pipelines reproduced it and registered it in the Model Registry.
Agent
A LangGraph workflow corrects the plate, calculates nutrition in code and asks two models on Amazon Bedrock for the next meal. The models choose their own tools on a NovaNutri MCP server; a Bedrock Knowledge Base holds the guidelines and a Guardrail scores each sentence.
Service
One container image runs the API and the MCP server on Amazon ECS behind API Gateway with a Cognito sign-in. GitHub Actions tests the shipped image and deploys it without stored keys. The same services also ran on Amazon EKS with Helm.
Web demo
A React page on CloudFront replays recorded results for every visitor; a signed-in live mode runs real photos through the service.
Results
About 26%
calorie error of the vision model on the untouched test split
2 models
gpt-oss-120b and Amazon Nova 2 Lite, answering side by side
About $0.02
per live recommendation from both models, measured on AWS
0 stored keys
OIDC for CI/CD, IAM roles and tokens for the service
The sample photos on the demo were chosen from dishes the model predicted well, so they do not show its typical accuracy; the published error comes from the whole test split.
Built with cost and security in mind
- About $0.014 to $0.019 per live recommendation, both models together, measured on AWS.
- No stored keys. GitHub Actions deploys through OpenID Connect roles; the service signs in to its database with short-lived IAM tokens.
- Protected entry. The public demo sits behind AWS WAF; the live API answers only the owner's sign-in.
- Nothing runs without a reason. Every stage was priced before it was built; experiment stacks were removed after they were proven, and the live service stops itself after an hour without requests.
Stack: Python · LangGraph · MCP · FastAPI · React · Amazon Bedrock · Amazon ECS · Amazon EKS · SageMaker · AWS Glue · Step Functions · Aurora PostgreSQL · Apache Airflow · Terraform · GitHub Actions
Disclaimer, credits and trademarks
NovaNutri is a technology demonstration. It gives general healthy eating information only and is not medical, nutrition, or dietary advice. Results come from AI models and may be wrong; calories and nutrients are estimates. Meal pictures are AI illustrations.
Food photos: Nutrition5k, Google Research, licensed under CC BY 4.0. Nutrient values: Nutrition5k and USDA FoodData Central (public domain).
NovaNutri runs on Amazon Web Services as a regular paying customer. AWS, Amazon Bedrock and other product and model names are trademarks of their owners. NovaPunk LLC is not affiliated with, sponsored by, or endorsed by Amazon Web Services or any other company named here.