Icon

July2026-Nutrition

<p><strong>KNME MONTHLY CHALLENGE: JULY 2026</strong></p><p></p><p><strong>Optimizing Nutrition on a Budget</strong></p><p><strong>Description:</strong>&nbsp;</p><p>You are a data analyst working for nutrition counseling. Your client shared two datasets with you: One containing nutrition facts of various foods (kcal, protein, fat, carbs) per serving size; The other containing a list with food items and their local store prices (in $).</p><p>Your client is on a budget but still wants to improve their fitness goal. You were asked to create a budget friendly high protein meal. The meal should consist of four items:</p><ul><li><p><strong>one protein item</strong> (must be a high-protein (&gt;25g proteins) and low-fat (&lt;5g fats) source),</p></li><li><p><strong>one carbohydrate item</strong> (must be a low-carb source with &lt;50g carbs), and</p></li><li><p><strong>two different vegetables</strong> (must be less than 100 kcal and ideally as much protein as possible).</p></li></ul><p>Clean and process the two datasets. Your client wants to know:</p><ol><li><p>What are the top 5 foods that offer the best value for money in terms of protein (i.e. with the highest protein per dollar ratio)?</p></li><li><p>Which 4 food items should they buy for their next meal to get a high protein on a tight budget?</p></li></ol><p><strong>Author: </strong>Nur Sena Alici</p><p><strong>Dataset:</strong> Nutrition facts and price list on KNIME Community Hub</p>

Optimizing Nutrition on a Budget

PROJECT DESCRIPTION

In this challenge, lists of food prices and nutritional values are joined to put together meals with budgetary and nutritional constraints of a customer.

The client wants to know:

  1. What are the top 5 foods that offer the best value for money in terms of protein (i.e. with the highest protein per dollar ratio)?

  2. Which 4 food items should they buy for their next meal to get a high protein on a tight budget? (Best meal combination for price and proteins intake)

CUSTOMER MEALS CONSTRAINTS
  • one protein item (must be a high-protein (>25g proteins) and low-fat (<5g fats) source),

  • one carbohydrate item (must be a low-carb source with <50g carbs), and

  • two different vegetables (must be less than 100 kcal and ideally as much protein as possible).

EXTRACT AND TRANSFORM

After data cleaning, food items satisfying meals criterias are put in a pool.

1) To answer client's questions, 4 Items are selected based on lower Price per serving. Vegetables are selected on protein values first, price per serving next.

2) Meals are suggested to the customer based on a maximum Price per serving for the meal. To promote food diversity, meal combinations are selected randomly, but with a price cap.

VISUALIZING RESULTS

Customer can select a maximum price for meal suggestions.

CREATE RANDOM MEALS

This part of the workflow generates 200 combinations of 4 food items.

Some constraints are applied on the meal combination instead

of the food items for better food diversity.

Food macro
CSV Reader
Food prices
CSV Reader
Food item is transformed to join the price list
Expression
joins on food item
Joiner
Veggies pool for mealsKcal <100g
Row Filter
Protein pool for mealsproteins>15 and proetins per dollar >15
Row Filter
Pool of vegetables and fruits
Row Filter
Cients questions
Component
remove missing prices
Row Filter
Calculates mean nutritional values for food items duplicatees
GroupBy
Row Sampler
Row Sampler
200 iterations
Counting Loop Start
Row Filter
Loop End
GroupBy
Carbs pool for meals Carbs <50g
Row Filter
Calculates Price per serving and Protein per dollar.
Expression
Row Sampler
Protein pool for mealsproteins >25 & fat <5
Row Filter
Concatenate

Nodes

Extensions

  • No modules found

Links