The key idea behind this project was to encode information about nutrition for various foods in a graph database, so we wouldn’t have to figure out the macronutrient breakdown of every single dish we supported. Then, we could do a top-down traversal of the graph database and follow each breakdown of a dish into its component ingredients, and then follow the breakdown of those component ingredients into macronutrients. This lets us scale up better to more foods using less storage space and in the future, we could automate adding foods to our database by scraping recipes online, since we already have data for component ingredients.
Below are our end-of-semester showcase slides: