Team 6 - Green Prep. Project Synopsis. Project Description. Introduction. Problem: Objective:

Similar documents
Your Meal Prep Tool-kit

My Fitness Pal Health & Fitness Tracker A User s Guide

Double Your Weight Loss By Using A Journal

THE FRESH 180 WELCOME TO THE FRESH 180. Success Guide

PAGE 1 of 6. Summative Assessment - Dietary Analysis Report Data Worksheets

MEAT CONTENT CALCULATION

mehealth for ADHD Parent Manual

How to use FitDay.com to track your calories (v1.0)

MY FITNESS PAL USER GUIDE

KETO40 PROGRAM GUIDE TABLE OF CONTENTS

MYFITNESSPAL: SETTING UP AN ACCOUNT

Cost: Free. Category: Weight loss. Purpose: To help someone get fit by exercise and healthy eating habits. Lauren Maines. Mrs. Burns.

FLEXIBLE DIETING. What it means is, you ll have the choice to take a flexible (yet still calculated) approach to your diet. THE MACRONUTRIENT BASICS

University of Toronto. Final Report. myacl. Student: Alaa Abdulaal Pirave Eahalaivan Nirtal Shah. Professor: Jonathan Rose

IMPORTANT!!! Please read the FAQ document BEFORE you step through this tutorial.

Muscle Monsters LLC 2015

Agenda. MyFitnessPal.com Introduction Finding the Site & Signing Up Navigating the Site Tracking Foods & Exercise Printing Information

Macro tracking 101. But before we get into all that the big question: What is a macro?

1. Find your BMR (basal metabolic rate) formula: 2. Calculating your TDEE (total daily energy expenditure):

Excel Kitchen. Macronutrients are essentially a substance a living thing needs to consume in order to live and repair the body from daily activities.

Power Hour (Nutrition 101) User Guide

User Guide: The Thrifty Food Plan Calculator

Eat Well Live Well. Making Healthy Choices

Biohouse Journal of Computer Science ISSN

Improve Your Success with Food Logging in the dotfit Program

Offseason Training: Nutritional Troubleshooting and FAQ Section

From Here To Macros: 4 Steps To Better Nutrition

IIFYM & Flexible Dieting: The Easy Way To Burn Fat & Build Muscle Eating The Foods You Love Includes Over 40 Macro-Friendly Recipes!

The Vitality HealthyFood benefit

Welcome to the Strength Workouts for Fat Loss Challenge!

Menu Planning Made Easy

RenalSmart (diabetic) Instruction Manual

Instructions for the ECN201 Project on Least-Cost Nutritionally-Adequate Diets

2. What are the two to three biggest barriers to achieving these goals?

Food labels made easy

a. This is the same as for the general public, but people with diabetes, like the rest of the public, often eat more salt than they need.

If you are brand new to the ketogenic diet, you may want to know where exactly to start and what to do next.

Digestive Project Part 1

Nutrition Plan. We wanted to keep this guide short and sweet, so here it is. Please do not hesitate to get back to us with any questions.

September 21, 18. If adaptations were made or activity was not done, please describe what was changed and why. Please be as specific as possible.

Diabetes Management App. Instruction Manual

Eating out o Avoid ALL fast food restaurants. o Choose restaurants that have your health in mind. Lunches o Left overs o Salads in a Jar o Simple

Quick-Start Guide TeamUnify, LLC

Preparation Worksheet

New Food Label Pages Diabetes Self-Management Program Leader s Manual

What a Family Needs to Know. About Eating Well. And Being Clever with Food

MyPlate.gov Assignment

Just relax while we run it.

STUDENT'S BOOKLET. Staying Healthy. Contents. Meeting 4 Student s Booklet. May 3 UCI. 1 Exercising. 2 Sugary drinks. 3 A Balanced Dinner

Instructor Guide to EHR Go

TOP TEN NUTRITION TIPS

14 Day Test Drive Focus Meeting

VACCINE REMINDER SERVICE A GUIDE FOR SURGERIES

University of Alaska Connected! FAQs

11. NATIONAL DAFNE CLINICAL AND RESEARCH DATABASE

JEFIT ios Manual Version 1.0 USER MANUAL. JEFIT Workout App Version 1.0 ios Device

CyberSoft, Incorporated 3851 E. Thunderhill Place Phoenix AZ

How NOT to Gain Weight in the United States. A Vocabulary Lesson

Success Manual. Yes you can!!!

LET US HELP YOU FIND YOUR HEALTHIEST WEIGHT

ARE YOU READY TO FEEL AMAZING?

Wellness Central your personal hub for health and wellness.

Firstly, there are no magic ratios, techniques or programmes that will create the Holy Grail macronutrient split. So stop looking.

First Steps for BodyTrace Scale. Learn about all the awesome things your BodyTrace Scale can do for you!

Response to Advertising

Step-by-Step Guide to Using Salesforce ( to Request an Interpreter

Spring - Restore Your Liver

Spring - Restore Your Liver

5 World Class Basics For Crossfit Nutrition Nutrition is for life. Make sure you understand the basics and make them a habit.

2017 and Beyond Kill Mode Training Co., Inc. / All Rights Reserved.

In a world of confusion, fads, and temptation sometimes it s best to just keep things simple. Greg Glassman, the founder of CrossFit, boiled his

@2004-Beyond. BodyweightPilates.com. All Rights Reserved

about Eat Stop Eat is that there is the equivalent of two days a week where you don t have to worry about what you eat.

2010 March of Dimes Foundation

NUTRITIONAL ANALYSIS PROJECT

Medical Disclaimer. Quick Start Guide. Bikini Belly Diet

EATING HEALTHY ON A BUDGET

Let s Get This Show On The Road.. Why am I sharing this with you then?

Ohio SNAP-Ed Adult & Teen Programs Eat a Rainbow of Snacks

How did you hear about Nutrition Performance?

Student Orientation 2010, Centricity Enterprise EMR Training, and netlearning.parkview.com Instructions for Nursing Students

LEVEL: INTERMEDIATE HIGH

Department of Health and Human Services Food and Drug Administration 5600 Fishers Lane (HFI-40) Rockville, MD February 2000 (FDA)

DOWNLOAD OR READ : MY MEAL TRACKER PDF EBOOK EPUB MOBI

Session 0A: Welcome to the Look AHEAD Lifestyle Program. Session 0B: Welcome to the Look AHEAD Lifestyle Program

Notes. Class # 3: Are You a Product of the Product? Rev

Lesson 8 Setting Healthy Eating & Physical Activity Goals

MYLIFE MYPLAN STAYING HEALTHY. Eating for Life

Assessment Schedule 2011 Home Economics: Examine New Zealand food choices and eating patterns (90246)

SMART POINTS FAQs This document is a reference for you to answer any questions you may have about the new SmartPoints

SAMPLE. Instead of giving myself reasons why I can t, I give myself reasons why I can.

FSN 603 Nutrients & Food Processing

DESIGN PRINCIPLES. i Save

amy.howe.fit IF IT FITS YOUR MACROS STARTUP GUIDE Welcome to your guide to IIFYM Guide provided by Amy Howe.

What does the Nutrition Facts table tell you about this packaged food?

Program Instructions and User Guide

Spring Natural Liver Cleanse

What is Keto-ish Nutrition

EMERGENCY ESSENTIALS FOOD STORAGE

Transcription:

Team 6 - Green Prep Jules Garrett, Coltyn Gatton, Katie Hrenchir, Austin Juhl, Menita Vedantam Project Synopsis Meal preparation web application that determines the optimal serving sizes of user selected foods in order to meet nutrient goals for a meal. Our tool will make dieting easy, enjoyable, and maintainable. Project Description Introduction The three main nutrients in all foods are called macronutrients and include protein, carbohydrates, and fat. To maintain a healthy diet, you want to have a meal plan based on your specific macronutrient goals. Your macronutrient goals can be calculated using your gender, age, height, weight, activity level and your fitness goal for your diet whether it be losing fat, maintaining weight, or gaining muscle. Problem: Maintaining a healthy and balanced diet is difficult for many reasons. Most people are unaware of the nutritional makeup of the foods they eat everyday. Without knowing the nutritional value of the food you eat it is impossible to determine your daily nutrient intake and equally as difficult to determine what your body actually needs in a day. For those who are aware of the nutritional makeup of the foods they eat, determining the appropriate serving sizes depending on your personal needs is challenging and time consuming. Also, a byproduct of the difficulty related to meal preparation is the absence of variety and the miscalculation of quantity. Both of which can lead to last minute take-out or food waste. If eating healthy is tedious, unenjoyable, and wasteful you re not putting yourself in a position to achieve your nutritional goals. Objective: Current Products: Currently, there are nutrient apps that will tell you whether or not you met your goals after journaling what you ate at the end of the day. This reactive approach to dieting does not give you a plan to eat well rather it informs you whether or not your ate poorly. The main function of our nutrition app will be to optimize meals that meet the user s nutrient goals. This will be accomplished by creating a system of equations that corresponds to the nutrient break down of each food and includes lower and upper bounds. Once the system is defined we will use the Simplex Method to generate the optimal meal. Secondary functions:

Macronutrient calculator. Produce accurate grocery lists based on generated meal plans. Make food recommendations to create more optimal meals and utilize leftover food. Dynamic plans that adjust when deviation occurs. Restrict food bank for dietary restrictions. Share plans. Project Milestones First Semester: o Choose tech stack - September 21, 2018 o Front-end design workflows - October 2018 o Back-end design workflows - October 2018 o Define Database structure - October 2018 o Wireframes for UI design - November 2018 Second Semester: o Set up database - January 2019 o Front-end implementation - January 2019 o Back-end implementation - January 2019 o User Testing - February 2019 o Revisions and bug-fixes - March 2019 o Deployment - April 2019 Project Budget Domain Name: $12 from Google Domains Webpage Hosting: free plan with Heroku Work Plan Katie: Front-end, Team Status Reporter Menita: Core Development, Testing Jules: Core Development, Database Austin: Core Development, Database Coltyn: Front-end, Security

Preliminary Project Design User Interactions When the user first uses the application, they will be prompted to create an account. While creating an account the user will create a username and password as well as provide their name, weight, height, age, current activity level and their physical goal while using the application (i.e. lose weight). Based on this information, the application will give the user a recommended macro amount. The user can also decide to input their own Macros instead of going based off the suggestion. The user will be able to change these values later, allowing for their Macro plan to adapt based on the user s progress or if the user changes their goal. While the app is designed to build meals based around macronutrient goals, we allow the user flexibility to choose any three nutrients to optimize. Once the user has established their daily nutrient goals they will determine how many meals they would like to eat in a single day. Green prep will then evenly divide the daily nutrients amongst the determined number of meals. The user may continue with an even distribution of nutrients or they can choose to redistribute how they see fit. For example, a user may want to concentrate more carbs around their workout and less carbs before bed. Next, the user will select the foods they wish to eat by searching the food database. The user also has the option to put upper bounds on the foods they select. This can be helpful if the user is under financial constraints or if they simple wish to create a meal with more variety. Once the user has selected the foods they wish to eat for every meal Green Prep will calculate the optimal serving size of each food for each meal in order to achieve the established nutrient goals. In addition, Green Prep will rate the quality of each meal on a scale from 1 to 100 based on how close the nutrient composition of the meal is to the set goals. If a meal rating is below the user established quality minimum, Green Prep will make a food suggestion to improve the meal. Once the user is happy with the meal plan they ve created they can save it and add it to their calendar. After the user has compiled their meal plan, a grocery list will be generated based upon the meals they have selected. Users can select the time frame for which they want their grocery list to be generated - for a single day, for a handful of days, or for multiple weeks, assuming they have completed meal plans for those day. Foods that are used across multiple meals/recipes will be consolidated in the shopping list. For example, both chicken salad and chicken kebabs involve chicken, so the individual measurements of chicken those recipes call for would be added together. This also allows users to gauge the amount of an ingredient their plan requires compared to common packaging sizes and adjust their purchases accordingly. This will minimize waste from over-purchasing ingredients.

Explanation of Calculations - Simplex Method Green Prep calculates the optimal serving size of each food using the Simplex Method. Generally, how the Simplex Method works is by starting at the origin of the polytope defined by the constraints on the system. In our case, the nutrient composition of each food and the nutrient goals serve as both the constraints and objective equations. Next, we move along the edges of the polytope while staying in the feasible region. As we move along the polytope edges we observe the neighboring corners and move to the one that best improves the solution. Once we find the most optimal corner of the feasible region we have our solution. It s important to note that any Linear Programming Problem must have an optimal solution that corresponds to a corner, but there may be alternative optimal solutions. Programmatically we represent moving about the polytope using a tableau and Gaussian Elimination. To create the tableau we start by turning the linear inequalities constraints into equalities using slack variables as well as assigning the objective equations to their own variable. For example... Pizza: 8.63p, 30.22c, 10.79f Chicken: 18.75p, 0c, 3.57f Slack Variables: Goal: 50p, 40c, 20f 8.63 18.75 1 0 0 0 0 0 50 30.22 0 0 1 0 0 0 0 40 10.79 3.57 0 0 1 0 0 0 20-8.63-18.75 0 0 0 1 0 0 0-30.22 0 0 0 0 0 1 0 0-10.79-3.57 0 0 0 0 0 1 0 Figure 1 - Initial Tableau Next, find the pivot column by selecting the most negative value in the objective functions located at the bottom half of the tableau. In our example we would select column 1 with a minimum value of -30.22. Then, we find the pivot row by traversing the constraint values in the pivot column and if the value is positive we find the quotient of last column value and pivot column value. The minimum quotient gives us the pivot. In our example we find minimum quotient 1.3236 in the

second row. Then we divide the pivot row by the pivot value and perform Gaussian Elimination to make every other value in the pivot column zero. We repeat these steps until all non slack values in the objective functions are positive. The final tableau will have the optimal serving size of each food in the top right corner and the nutrient composition of the optimized meal in the bottom right corner. 0 0 1 1.5897-5.2521 0 0 0 8.5452 1 0 0 0.0331 0 0 0 0 1.3236 0 1 0-0.1 0.2801 0 0 0 1.6017 0 0 0-1.5897 5.2521 1 0 0 41.4548 0 0 0 1 0 0 1 0 40 0 0 0 0 1 0 0 1 20 Database Figure 2 - Final Tableau The database for our application will consist of eleven tables utilizing a SQL server. One of the main tables is tbluser. In this table general information that the user inputs when they first create an account will be stored. The user s activity level and physical goal ( i.e. lose weight) will be selected by the user based off the options provided in tblactivitylevel and tblphysicalgoal. The user will also access tblmeal. The meal table will contain the meals that the user has created. TblMeal is connected to tblmealfood where food is associated with the meal it is contained in. TblMealFood will access two tables to gather all the nutritional information needed for our algorithm. The first table it will access is the tblunit. TblUnit will contain all the different measurements of food. The second table tblmealfood will access is tblfood. TblFood will be a table containing all the food the user can choose to add to their meal, along with all the nutritional information for the food. TblFood will be created based off the USDA s food database that contains an extensive list of different food and all the nutritional information related to the food. The user will also have access to tblgrocery. TblGrocery is where any grocery lists the user has made will be stored. TblGrocery will have access to the tblgrocerymeal. This table associates meals with the groccery lists it is contained in. Using the meal id we can compile the foods stored in tblmealfood to create an accurate grocery list.

TblUser also accesses tblnutrientgoal. TblNutrientGoal will contain the three nutrients the user wants to optimize when building their meals as well as the goal value of that nutrient and the unit of measurement for the nutrient. TblNutrientGoal will access tblnutrient, where the names of all the nutrients that the user can optimize are stored. Figure 3 - Database structure Front-end Design The front-end of this project will be implemented using Javascript and React. React is a Javascript library for building web-based user interfaces using components, which are small chunks of code that are combined to form a cohesive interface. React works in combination with traditional web-programming technologies like HTML and CSS to create modern, extensible web projects. Each component takes in parameters, called props and returns a vi ew to display on the screen using renders. Our project will consist of four main views, in which a user can: amend their dietary preferences or profile information, create or edit their meal plans, view completed

meal plans, or generate their shopping list. To access these views, a user must first complete the initial profile information - this short quiz will be displayed to users immediately after creating an account. The diagram below shows the flow of views. Figure 4 - Flow chart of user views These four views make up the main functionality of the program. Within each view, users will be able to interact with with their meal plan, grocery list, or dietary goals. Ethical and Intellectual Property Issues In order for our project to work well we will have to request some rather personal information. For example, we will be collecting names, emails, ages, height, weight, and a few other things so users can create an account and have a more personalized experience. With this information comes a lot of ethical responsibility especially with so many account breaches happening recently. We will be spending some time making sure this information is safe and well kept. Another ethical issue is that we are not nutritionists and our tool might not work for everyone. To help prevent people from assuming this we will be creating a disclaimer that goes with our web application. We do not expect to have many intellectual property issues within our project. This is because we plan on writing all of the code from scratch and using free open source software to help us with our project. To help protect our code and ideas from infringement we as a team decided that we are going to register a copyright as well as a patent for our software. This is as easy as sending in a small bit of our code and an application to the U.S. Copyright office in Washington D.C. for the copyright. For the patent, we must file an application with the USPTO.

The patent will be a little more difficult to acquire because the idea needs to be unique, but our team believes that this application is a new and unique way to look at nutrition calculation. Change Log Timeline We altered our timeline to accommodate for our course schedules and other commitments. We also lengthened our design process to allow for more thorough designs. Macronutrient/general nutrient tracking In brainstorming use-cases, we decided that we could easily extend our program s functionality to allow users to track any three nutrients, not just the three macronutrients (carbs, protein, and fat). Defined main and stretch goals We defined the main and stretch goals of the project. Gantt Chart https://docs.google.com/spreadsheets/d/1syd-vrhoylzcifmpyxuhkl9tucscphritit79kthbe I/edit?usp=sharing