Methodology

Scoring Methodology

How we calculate Health Scores, clinical badges, and Daily Value percentages using USDA FoodData Central data.

Scoring Methodology

Every recipe's Health Score is computed deterministically using a multi-component algorithm. This page documents exactly how scores are calculated so you can verify and reproduce our results.

Health Score (0โ€“100)

The raw score is a weighted sum of five components, then mapped to 0โ€“100 via a sigmoid function:

ComponentMax PointsWhat It Measures
Nutrient Density25Coverage of key micronutrients (vitamins A, C, E, folate, iron, calcium, potassium, magnesium, omega-3) relative to FDA Daily Values per serving.
Healthy Fats10Ratio of mono+polyunsaturated to saturated fat. Rewards olive oil, fish, nuts; penalizes butter, cream.
Protein Quality10Protein per serving (grams) with a bonus for high density per calorie.
Mediterranean Alignment10Adherence to Mediterranean diet principles: olive oil, legumes, whole grains, fish, vegetables.
Penaltiesโˆ’15Deductions for excess sodium (>600 mg), saturated fat (>7 g), and added sugar (>6 g) per serving.

The raw sum (range roughly โˆ’5 to +55) is passed through a sigmoid: score = 100 / (1 + e^(โˆ’0.08 ร— (raw โˆ’ 22))), producing the 0โ€“100 Health Score.

Clinical Badges

Eight deterministic pass/fail badges are evaluated per variant per serving:

BadgeCriteria
๐Ÿง‚ Low SodiumSodium < 140 mg per serving
โค๏ธ Heart HealthySaturated fat < 2 g AND sodium < 480 mg per serving
๐Ÿ’‰ Diabetic FriendlyFiber > 5 g AND added sugar = 0 g AND carbs < 45 g per serving
๐Ÿ’ช High ProteinProtein โ‰ฅ 20 g per serving
๐ŸŒพ High FiberFiber โ‰ฅ 7 g per serving
๐Ÿ”ฅ Under 500 kcalEnergy < 500 kcal per serving
๐Ÿซ’ MediterraneanSaturated fat < 4 g AND fiber > 3 g AND added sugar < 5 g per serving
๐ŸŒ Potassium RichPotassium โ‰ฅ 700 mg per serving

Daily Value Reference

All % Daily Value (%DV) figures use the FDA's 2020 reference intakes for a 2,000 kcal diet:

NutrientDaily Value
Protein50 g
Total Fat78 g
Saturated Fat20 g
Carbs275 g
Fiber28 g
Added Sugar50 g
Sodium2,300 mg
Potassium4,700 mg
Calcium1,300 mg
Iron18 mg
Magnesium420 mg
Vitamin A900 mcg RAE
Vitamin C90 mg
Vitamin E15 mg
Folate400 mcg DFE
Omega-31.6 g ALA

"Lighter" Variant Generation

Each recipe's lighter version is generated by an AI pipeline that applies ingredient substitutions (e.g., Greek yogurt for sour cream, olive oil for butter in appropriate cuisines) while enforcing constraints:

Ingredient Mapping

Each ingredient string (e.g., "300 g cod") is mapped to a USDA FoodData Central entry using a multi-pass pipeline: exact match โ†’ fuzzy match โ†’ AI-assisted match. The mapped_ratio field on each recipe shows what fraction of ingredients were successfully resolved (average: ~94%).

Limitations