Back to articles
THE KEXBI DIFFERENCE

Are AI Nutrition Plans Safe? The Danger of LLM Coaching

Why KEXBI uses deterministic nodes for safety-critical numbers like energy availability and hydration ceilings, reserving language models for creative synthesis only.

~6 MIN · KEXBI RESEARCH

The Numbers Are Never Hallucinated

The new wave of chatbot-first AI nutrition tools is handing safety-critical numbers to a language model. Calorie floors. Hydration ceilings. Sodium targets. KEXBI's architecture refuses that choice. Safety-critical calculations are fully deterministic, bounded by peer-reviewed physiology. AI is used for creative synthesis only. Here is exactly where the line is drawn, and why it is the only line that matters.

// AT A GLANCE

The argument in five lines

  1. An LLM that invents a hydration target or a calorie floor is a health incident waiting to happen. Probability distributions have no place in safety-critical physiology.
  2. KEXBI splits the pipeline in two. Safety-critical calculations are fully deterministic. Creative synthesis is the only layer where a language model is trusted.
  3. The deterministic layer covers energy availability, hydration ceilings, the metabolic brake, macro arithmetic, and constraint resolution. These are bounded physiological maths with peer-reviewed thresholds, not prompts.
  4. The synthesis layer covers meal assembly, coaching narrative, and dish naming. Creative, auditable, and gated by Bouncer before anything reaches the athlete.
  5. This split is the regulatory moat. It is also a deliberate rejection of the chatbot-first design pattern that an increasing share of new AI nutrition tools have adopted.

The AI-nutrition market is not one category. It is three.

There are the established tracking apps (MyFitnessPal, Cronometer, Lifesum) whose core logic is deterministic and which have begun layering AI features on top. There are data-first coaches (Zoe, Levels, MacroFactor) built on specifically trained models over microbiome data, continuous glucose, or adaptive expenditure. And then there is a third category, the chatbot-first cohort, where the nutrition plan itself is generated by a frontier language model on demand, reasoned-to rather than computed.

It is this third category we are arguing against.

The specific problem inside that cohort is not what most people worry about. It is not that the advice is bland. It is not that the meal plans are generic. It is not that the onboarding is slow.

The problem is that the numbers themselves are being generated by a language model. The calorie floor. The sodium target. The hydration ceiling. The protein dose.

The model has no concept of what happens to an endurance athlete whose energy availability drops below a physiological floor. It has no model of gastric emptying. It has no concept of sleep-adjusted insulin sensitivity. It produces plausible-sounding text that is statistically close to the training corpus, and then it stops.

That is fine when the answer is “a recipe for roast aubergine.” It is not fine when the answer is “how many calories you can cut this week before your cycle stops arriving,” or “how much sodium to consume across a 3-hour ride in 28°C heat.” These questions have real physiological floors and ceilings. Cross them, and people get hurt.

KEXBI was built on one engineering conviction, stated plainly: the numbers are never hallucinated. Only the language is modelled. Here is exactly how that split is implemented, and why every peer-reviewed threshold it rests on is one we can name.

A language model with no safety layer is one plausible sentence away from a health incident. The fix is not a better prompt. The fix is a deterministic floor underneath the prompt.

// Chapter 01 · The splitWhere the Line Is Drawn

Inside the KEXBI pipeline, every calculation that can harm an athlete if it is wrong runs through a deterministic node. Every calculation that can be creative without consequence runs through a language model. The two layers are not mixed. The outputs of the synthesis layer are bounded at runtime by the outputs of the deterministic layer.

If the language model tries to plate a 420 kcal breakfast on a day where the deterministic engine has calculated a 620 kcal target, the Bouncer rejects the plate. The meal gets rebuilt until the constraint is satisfied. The athlete never sees the rejected version.

Deterministic · bounded maths

Never AI

  • Energy availability floor
  • Basal metabolic rate
  • Macro arithmetic
  • Sleep-adjusted insulin sensitivity
  • Metabolic brake enforcement
  • Hydration ceilings & timing
  • Electrolyte balance
  • Constraint resolution
  • Safety Sentinel gates
Synthesis · creative, gated

AI, within limits

  • Meal assembly from pantry
  • Dish naming
  • Coaching narrative
  • Recipe sequencing
  • Cultural & palate framing
  • FlavorKit selection logic
  • Explanations of the day
  • Tone & adherence copy

The four calculations below are representative, not exhaustive. Each one sits on a peer-reviewed physiological threshold. Each one would be unsafe to delegate to a language model. Each one is, in KEXBI, a closed-form equation or rule that runs the same way every time and can be audited line-by-line.

// Chapter 02 · The floorEnergy Availability & RED-S

Energy availability (EA) is the single most important number in endurance nutrition. It is also the one most likely to be wrong in a chatbot-generated plan.

EA is defined as dietary energy intake minus the energy cost of exercise, divided by fat-free mass. When it drops below about 30 kcal per kilogram of fat-free mass per day, the body enters the cluster of symptoms now formalised as Relative Energy Deficiency in Sport, or RED-S.

The consequences are not subtle: suppressed reproductive function, thyroid downregulation, bone-mineral-density loss, impaired immunity, and elevated cortisol [1][2][3].

// Calculation 01 · Energy Availability

EA = (Intake − Exercise) ÷ FFM

EA_kcal_per_kg_FFM = (dietary_intake_kcal − exercise_energy_cost_kcal) ÷ fat_free_mass_kg HARD_FLOOR = 30 kcal/kg FFM/day OPTIMAL = 45 kcal/kg FFM/day

The 30 kcal/kg FFM threshold is the most robust number in the entire field. It is the point below which luteal-phase suppression, T3 suppression, and bone turnover markers shift in controlled feeding studies. The 45 kcal/kg figure is the eumenorrheic optimum. KEXBI's engine refuses to build a day below the hard floor. A language model, by contrast, has no reason to refuse. It will cheerfully output a 1,600 kcal target for a 65 kg runner burning 900 kcal a day, because nothing in its weights objects.

Cites: Loucks & Thuma 2003 [1]; Mountjoy et al. 2014/2018/2023 IOC consensus [2]; De Souza et al. 2014 [3].

// Chapter 03 · The ceilingHydration & Gastric Emptying

Hydration is the other place a hallucinated number becomes a medical problem.

Under-drink in the heat and you cook. Over-drink and you dilute plasma sodium into exercise-associated hyponatraemia, which is a hospitalisable event. The corridor is not a matter of taste. It is bounded by three numbers with decades of peer-reviewed characterisation: gastric emptying, intestinal absorption, and sweat sodium.

// Calculation 02 · Peri-session fluid

Gastric ceiling & post-exercise replacement

DURING_EXERCISE_CEILING = 1.5 – 2.4 L/hr (Beyond this, fluid pools in the stomach and absorption falls off a cliff.) POST_EXERCISE_REPLACEMENT = 1.5 × body_mass_deficit_kg (150% of weight lost, to account for ongoing obligatory urine and sweat losses.) CARBOHYDRATE_CEILING = 60 g/hr single-transporter 90 g/hr glucose + fructose mix

Gastric emptying is rate-limited. The stomach cannot hand off fluid faster than about 1.5 to 2.4 L/hr in most trained adults, with individual variation [4][5]. The 150% post-exercise replacement figure is the Shirreffs & Maughan finding that has stood for two decades: drink only what you lost and you are still in negative water balance two hours later [6]. The carbohydrate ceilings come from Jeukendrup's multi-transportable carb work [7]. An LLM asked to “plan hydration for a 3-hour ride” has no guarantee it will respect any of these. KEXBI's Hydration Architect does, because the ceilings are hard-coded, not prompted.

Cites: Rehrer et al. 1990 [4]; Jeukendrup & Moseley 2010 [5]; Shirreffs & Maughan 1998 [6]; Jeukendrup 2014 [7].

// Chapter 04 · The brakeThe Sleep-Adjusted Metabolic Brake

Sleep is not a wellness variable. It is a metabolic variable, and KEXBI treats it as one.

When sleep efficiency drops below about 85%, insulin signalling is measurably impaired the following day. The KEXBI internal model applies a 23% penalty, consistent with the Spiegel and Donga literature showing 25 to 30% drops in peripheral insulin sensitivity after a single night of restricted sleep [8][9]. Resting metabolic rate drops by roughly 3%. Free T3 is suppressed by about 5% [10]. Cortisol rises. Hunger-regulating hormones (leptin, ghrelin) swing sharply against the athlete.

Handing these adjustments to a language model and asking it to “modify today's plan for a bad night's sleep” is not engineering. It is vibes.

// Calculation 03 · Metabolic brake

Sleep-triggered daily adjustment

IF sleep_efficiency < 85% THEN insulin_sensitivity ×= 0.77 RMR ×= 0.97 T3_free ×= 0.95 cortisol_AUC ×= 1.13 carbohydrate_timing = push toward peri-workout training_intensity = cap at RPE 7

Every coefficient here is a closed-form multiplier derived from the controlled-sleep-restriction literature. They are not prompted. They are applied. The downstream effect propagates deterministically through the day's blueprint: shifted macro timing, a softer session cap, a tighter evening carbohydrate bias. A user can audit the adjustment. A regulator can audit the adjustment. An LLM-only competitor cannot, because no such fixed chain exists in their system.

Cites: Spiegel et al. 1999 [8]; Donga et al. 2010 [9]; Nedeltcheva et al. 2010 [10].

// Chapter 05 · The arithmeticMacros, BMR & Protein

The least glamorous deterministic layer is also the one most often botched by LLM nutrition tools: the basic arithmetic of calories and macros.

KEXBI uses Mifflin-St Jeor for resting metabolic rate. It derives a physical activity factor (PAL) from the training-block detector. It applies a protein floor from the Helms and Phillips consensus on athletic populations, 1.6 to 2.2 g per kilogram of body mass per day, with the upper end reserved for energy-restricted or hypertrophy blocks [11][12][13][14].

// Calculation 04 · Daily macro targets

BMR × PAL → macros

BMR = 10·weight_kg + 6.25·height_cm − 5·age + s (s = +5 male, −161 female) [Mifflin-St Jeor] TDEE = BMR × PAL (PAL from training-block detector, 1.4 rest day → 2.4 race block) protein_g = 1.6 – 2.2 × body_mass_kg fat_g ≥ 0.8 × body_mass_kg cho_g = (TDEE − protein_kcal − fat_kcal) ÷ 4

None of this is novel. That is the point. These are the same equations a registered sports dietitian has used for decades, implemented exactly, every time, with no drift. An LLM will approximate them. It will occasionally forget to subtract protein calories before computing carbohydrate. It will round in ways that move protein under the floor. KEXBI does not approximate. It calculates once, and hands the fixed numbers to the synthesis layer to build meals within.

Cites: Mifflin et al. 1990 [11]; FAO/WHO/UNU PAL tables [12]; Helms et al. 2014 [13]; Phillips & Van Loon 2011 [14].

// Chapter 06 · The synthesis layerWhere AI Earns Its Keep

None of the above means KEXBI is anti-AI. The opposite is true. AI is indispensable exactly where deterministic logic fails: in the creative, culturally-rich, palate-sensitive act of building a meal an athlete will actually eat.

Once the deterministic engine has produced a constraint set (“this meal must be 620 kcal, 45 g protein, 80 g carbohydrate, ≤18 g fat, draws only from the Shadow Pantry, uses FlavorKit 04, lands between 13:30 and 14:15”), a language model does exactly what it is good at. It assembles a plausible, appealing, cohesive dish. It names it. It writes the three-sentence coach narration. It explains why this plate fits the biological window the athlete is in.

Then the output passes through Bouncer, the final deterministic check. Bouncer re-verifies macro totals, FlavorKit integrity, pantry availability, and safety-sentinel flags. Anything that drifted during the synthesis step is rebuilt. The athlete only sees plates that survive both layers.

In practice, the synthesis layer is where personality, cuisine, and variety live. The deterministic layer is the reason that personality cannot kill anyone.

LLMs are brilliant at language and terrible at unit conversions. Deterministic systems are brilliant at arithmetic and terrible at voice. The only honest answer is to use each for what it is actually good at.

// Chapter 07 · The takeawayWhy This Is the Moat

In the next eighteen months, the number of nutrition apps claiming “AI coaching” will continue to multiply. A significant share of them will be a single API call to a frontier model, a system prompt, and a subscription page.

The margin of error on those products is exactly the margin of error on the underlying language model. For the calculations that matter, that margin is not bounded by anything physiological. One hallucinated sodium target in a heat-wave training block is one product-ending event.

KEXBI's position is not that AI is dangerous. It is that AI is incorrectly scoped in the chatbot-first segment of the market.

Safety-critical calculations belong in deterministic nodes with peer-reviewed thresholds that can be named, cited, and audited. Creative synthesis belongs in a language model with its outputs gated. The moat is not a secret algorithm. It is the discipline of having drawn that line in the first place, and of having built the twenty-six-node pipeline that enforces it.

The numbers are never hallucinated. Only the language is modelled. That is the entire argument. And it is the only argument that survives regulatory contact.

References

  1. Loucks AB, Thuma JR. Luteinizing hormone pulsatility is disrupted at a threshold of energy availability in regularly menstruating women. J Clin Endocrinol Metab. 2003;88(1):297–311.
  2. Mountjoy M, Sundgot-Borgen J, Burke L, et al. IOC consensus statement on Relative Energy Deficiency in Sport (RED-S): 2018 update. Br J Sports Med. 2018;52(11):687–697. (See also 2014 original and 2023 update.)
  3. De Souza MJ, Nattiv A, Joy E, et al. 2014 Female Athlete Triad Coalition consensus statement on treatment and return to play of the female athlete triad. Br J Sports Med. 2014;48(4):289.
  4. Rehrer NJ, Beckers EJ, Brouns F, et al. Effects of dehydration on gastric emptying and gastrointestinal distress while running. Med Sci Sports Exerc. 1990;22(6):790–795.
  5. Jeukendrup AE, Moseley L. Multiple transportable carbohydrates enhance gastric emptying and fluid delivery. Scand J Med Sci Sports. 2010;20(1):112–121.
  6. Shirreffs SM, Maughan RJ. Volume repletion after exercise-induced volume depletion in humans: replacement of water and sodium losses. Am J Physiol. 1998;274(5):F868–F875.
  7. Jeukendrup AE. A step towards personalized sports nutrition: carbohydrate intake during exercise. Sports Med. 2014;44(Suppl 1):S25–S33.
  8. Spiegel K, Leproult R, Van Cauter E. Impact of sleep debt on metabolic and endocrine function. Lancet. 1999;354(9188):1435–1439.
  9. Donga E, van Dijk M, van Dijk JG, et al. A single night of partial sleep deprivation induces insulin resistance in multiple metabolic pathways in healthy subjects. J Clin Endocrinol Metab. 2010;95(6):2963–2968.
  10. Nedeltcheva AV, Kilkus JM, Imperial J, et al. Insufficient sleep undermines dietary efforts to reduce adiposity. Ann Intern Med. 2010;153(7):435–441.
  11. Mifflin MD, St Jeor ST, Hill LA, et al. A new predictive equation for resting energy expenditure in healthy individuals. Am J Clin Nutr. 1990;51(2):241–247.
  12. FAO/WHO/UNU. Human energy requirements: Report of a Joint FAO/WHO/UNU Expert Consultation. Food and Nutrition Technical Report Series. 2004.
  13. Helms ER, Aragon AA, Fitschen PJ. Evidence-based recommendations for natural bodybuilding contest preparation: nutrition and supplementation. J Int Soc Sports Nutr. 2014;11:20.
  14. Phillips SM, Van Loon LJC. Dietary protein for athletes: from requirements to optimum adaptation. J Sports Sci. 2011;29(Suppl 1):S29–S38.

All physiological thresholds and coefficients in this article are drawn from peer-reviewed primary literature and major consensus statements. KEXBI's internal implementation uses these same sources as its ground truth. The numerical coefficients shown in the calculation boxes (0.77, 0.97, 0.95, 1.13) are the KEXBI metabolic-brake multipliers, calibrated against the cited sleep-restriction literature and subject to ongoing refinement as new data arrives.

BETA UNDERWAY

Ready to apply the science?

Home Experience Engine About Notify