摘要
Upgrade Your Meal helps you find healthier ingredient swaps. Add foods to build a meal, then select an optimisation goal — more protein, fewer calories, more fiber, lower glycemic index, or a balanced combination. The calculator suggests alternatives from the same or related food categories, showing exactly what improves and what you trade off.
工作原理
The substitution algorithm follows three principles drawn from nutrition science and food substitution research:
-
Same-category matching — Substitutes come from the same food group or a closely related one (e.g., grains and legumes, meat and poultry). This ensures the swap is culinarily plausible, following the approach recommended by the NHS and academic food knowledge graph research.
-
Goal-directed scoring — Each candidate food is scored against the original based on your chosen goal. The highest-scoring alternatives appear first.
-
Transparent trade-offs — Every suggestion shows both improvements (green badges) and trade-offs (amber badges), so you can make an informed decision.
The scoring formula
Each optimisation goal uses a different scoring function. All nutritional values are compared per 100g.
Where
Goal-specific scoring
| Goal | Formula | What wins |
|---|---|---|
| More Protein | (candidate.protein / candidate.cal) − (original.protein / original.cal) | Higher protein-to-calorie density |
| Fewer Calories | original.calories − candidate.calories | Largest calorie reduction |
| More Fiber | candidate.fiber − original.fiber | Largest fiber increase |
| Lower GI | original.GI − candidate.GI | Largest GI reduction |
| Balanced | 0.4 × proteinScore + 0.3 × calorieScore + 0.3 × fiberScore | Weighted improvement across all three |
Related food categories
Substitutions are allowed within these category pairings:
| Category | Can substitute with |
|---|---|
| Grain | Grain, Legume |
| Legume | Legume, Grain |
| Meat | Meat, Poultry |
| Poultry | Poultry, Meat |
| Egg | Egg, Dairy |
| All others | Same category only |
计算示例
Swap chicken thigh for a lower-calorie alternative
Original: Chicken thigh (per 100g)
= 209 kcal
Candidate: Chicken breast (per 100g)
= 120 kcal
Fewer-calories score
= Score: 89
Delta badges
= 2 improvements, 1 trade-off
Result
Chicken breast suggested: −89 kcal, −8.6g fat (trade-off: −2.8g protein)
输入说明
- Foods — search and add any food from the 142-item USDA database to build your meal. Each food uses its default serving size.
- Optimisation goal — choose what you want to improve: more protein, fewer calories, more fiber, lower GI, or a balanced combination of all three.
- Find upgrades — click on any food in your meal to see up to 5 substitution suggestions from the same or related food category.
输出说明
- Meal totals — live-updating calories, protein, carbs, fat, and fiber totals for your entire meal.
- Substitution cards — each suggestion shows the food name, its calorie density, green improvement badges, and amber trade-off badges.
- Click to swap — tapping a suggestion instantly replaces the food in your meal, updating all totals.
假设与局限
- Per-100g comparison — all scoring uses nutritional values per 100g, not per serving. A food that looks better per 100g may not be better at typical serving sizes.
- Category-limited — suggestions only come from the same or related food categories. You won’t see a vegetable suggested to replace a grain, even if it would meet the goal.
- No taste or texture modelling — the algorithm optimises for nutrition only. A legume may score well as a grain substitute nutritionally but won’t always work in a recipe.
- GI data is sparse — many foods in the database have no glycemic index value. Foods without GI data are excluded from “lower GI” suggestions.
- Data quality — all nutritional data comes from USDA FoodData Central (SR Legacy). Some entries may reflect raw vs. cooked state differences.
验证
| Test case | Goal | Original | Top suggestion | Expected improvement | Verified? |
|---|---|---|---|---|---|
| Poultry swap | fewer-calories | Chicken thigh (209 kcal) | Chicken breast (120 kcal) | −89 kcal, −8.6g fat | ✅ |
| Grain fiber | more-fiber | White rice (1.3g fiber) | Barley (+16g fiber) | Significant fiber increase | ✅ |
| Grain GI | lower-gi | White rice (GI 73) | Soybeans (GI 18) | −55 GI points | ✅ |
| Meat protein | more-protein | Ground beef 85/15 | Chicken ground (+10.4g pro) | Better protein density | ✅ |
| No alternatives | more-protein | Salmon (only fish) | No results | Empty list | ✅ |
Sources
Related calculators
Meal Builder
Build meals from real foods and see live macro and micronutrient totals. Adjust portions with sliders, track calories, protein, vitamins, and minerals against daily targets.
Food Database
Search and compare nutritional profiles for 200+ whole foods. Filter by category, sort by any nutrient, and explore full vitamin and mineral data. Sourced from USDA FoodData Central.
Macros
Calculate your daily protein, carbs, and fat targets based on your calorie goal and body weight. 6 presets from NHS to athletic performance, with per-meal breakdown.
Calorie Deficit
Calculate your daily calorie target for weight loss or muscle gain. See projected weight over time, macro split, and safety warnings.