Complete documentation of all mathematical formulas and algorithms used in HealthSpan AI for metabolic calculations, body composition analysis, and weight change projections.
1. BMR (Basal Metabolic Rate)
Basal Metabolic Rate is the number of calories your body burns at complete rest to maintain basic physiological functions like breathing, circulation, and cell production.
Mifflin-St Jeor Equation (Primary Formula)
Well-validated for general populations. Default formula in HealthSpan AI.
Where Calorie_Delta is:
• Negative for weight loss (e.g., −500 kcal/day)
• Zero for maintenance
• Positive for weight/muscle gain (e.g., +300 kcal/day)
Minimum Advertised Trial of weight loss Achieved by Dietary Overhaul with Recovery
Based on Byrne et al. (2018) research showing intermittent dieting produces greater fat loss and less metabolic adaptation than continuous energy restriction.
Protocol Structure
Parameter
Default
Range
Diet Phase
14 days
7-56 days
Break Phase
14 days
7-28 days
Total Duration
24 weeks
Configurable
MATADOR Adaptation
The research found 12% less metabolic adaptation compared to continuous dieting:
Reference: Byrne NM, et al. (2018). "Intermittent energy restriction improves weight loss efficiency in obese men: the MATADOR study." International Journal of Obesity
8. Diet Profiles
Pre-configured macronutrient ratios for different dietary approaches:
All constants used in calculations with their exact values and purposes:
Unit Conversion (NIST Standard)
Constant
Value
Reference
LB_TO_KG
0.45359237
NIST exact
KG_TO_LB
2.20462262185
1/0.45359237
IN_TO_CM
2.54
NIST exact
CM_TO_IN
0.393700787402
1/2.54
Body Fat Limits
Constant
Male
Female
Essential Fat %
5%
12%
Min Healthy Fat %
8%
15%
Max Body Fat %
70%
Caloric Limits (Safety Guardrails)
Limit
Value
Purpose
MIN_DAILY_CALORIES
1200 (F) / 1500 (M)
Conservative minimum (non-clinical)
MAX_DAILY_DEFICIT
1000 kcal
Conservative maximum deficit
CALORIES_PER_KG_FAT
7,716 kcal
Adipose tissue energy density
CALORIES_PER_LB_FAT
3,500 kcal
Common approximation
MAX_WEEKLY_LOSS_PCT
1.5%
Maximum % body weight loss/week
Metabolic Adaptation
Constant
Value
Description
MAX_ADAPTATION
15%
Maximum BMR reduction
TIME_CONSTANT (τ)
12 weeks
Exponential approach time
GLP-1_REDUCTION
10%
Medication modifier (optional)
Protein Requirements
Activity Level
g/kg Lean Mass
Sedentary
1.2
Light
1.4
Moderate
1.6
Active
1.8
Very Active
2.0
Athlete
2.2
Note: During caloric deficit, protein increases by 10% for muscle preservation.
Simulation Limits
Parameter
Value
MAX_SIMULATION_WEEKS
104 (2 years)
DEFAULT_WEEKS
16
MIN_BMR
800 kcal
MAX_BMR
4000 kcal
11. Scientific References
All formulas are based on peer-reviewed research:
Mifflin MD, et al. (1990). "A new predictive equation for resting energy expenditure in healthy individuals." American Journal of Clinical Nutrition 51(2):241-7
Harris JA, Benedict FG (1918). "A Biometric Study of Human Basal Metabolism." Proceedings of the National Academy of Sciences 4(12):370-3
Roza AM, Shizgal HM (1984). "The Harris Benedict equation reevaluated: resting energy requirements and the body cell mass." American Journal of Clinical Nutrition 40(1):168-82
Katch VL, et al. (1996). "Essentials of Exercise Physiology." Lippincott Williams & Wilkins
Hall KD, et al. (2011). "Quantification of the effect of energy imbalance on bodyweight." The Lancet 378(9793):826-37
Thomas DM, et al. (2013). "Time to correctly predict the amount of weight loss with dieting." Journal of the Academy of Nutrition and Dietetics 113(2):235-42
Rosenbaum M, Leibel RL (2010). "Adaptive thermogenesis in humans." International Journal of Obesity 34:S47-S55
Trexler ET, et al. (2014). "Metabolic adaptation to weight loss: implications for the athlete." Journal of the International Society of Sports Nutrition 11(1):7
Byrne NM, et al. (2018). "Intermittent energy restriction improves weight loss efficiency: the MATADOR study." International Journal of Obesity 42(2):129-138
ACSM (2017). "ACSM's Guidelines for Exercise Testing and Prescription" - 10th Edition
ISSN Position Stand (2017). "International Society of Sports Nutrition Position Stand: protein and exercise"
ACSM/AND/DC Joint Position Statement (2016). "Nutrition and Athletic Performance"
Calibration & Validation Notes
All formulas are population-based estimates. For scientific defensibility:
BMR Validation: Compare predictions against measured RMR (indirect calorimetry) for your user population