Currently accepted at: JMIR AI
Date Submitted: Jan 30, 2026
Open Peer Review Period: Feb 17, 2026 - Apr 14, 2026
Date Accepted: Nov 11, 2026
(closed for review but you can still tweet)
This paper has been accepted and is currently in production.
It will appear shortly on 10.2196/92515
The final accepted version (not copyedited yet) is in this tab.
Auditing Nutritional and Behavioral Risk in Large Language Model–Generated Dietary Recommendations: A Population-Aware Content Analysis
ABSTRACT
Background:
Large language models (LLMs) are increasingly integrated into consumer-facing dietary guidance and digital health applications. However, the safety of LLM-generated dietary recommendations and their alignment with evidence-based nutritional standards remain insufficiently evaluated, particularly for vulnerable populations with population-specific nutritional constraints.
Objective:
This study aimed to develop and evaluate a reproducible, model-agnostic auditing pipeline to systematically quantify nutritional and behavioral risks in LLM-generated dietary recommendations.
Methods:
Using OpenAI gpt-5 (temperature=1.0), we generated 2,464 three-day meal plans from a full-factorial design of 308 unique scenarios (11 user profiles × 7 dietary goals × 4 response tones), each submitted 8 times. Identical prompts were submitted to gpt-4o-mini and 3 open-weight models (Qwen3-32B, Qwen3-235B-A22B-2507, and Qwen3-30B-A3B-Instruct-2507). Model-declared daily energy and macronutrient distributions were extracted with an automated parser and compared against population-aware thresholds derived from international guidelines, and a behavioral lexicon captured risky framings (eg, “cheat day,” “detox”). Deviations were combined into a continuous composite risk score (nutritional weight=0.6, behavioral weight=0.4). Scenario means were compared with Kruskal-Wallis tests within models and Friedman and Wilcoxon signed-rank tests across models. Declared totals were checked against the listed foods in a 25-plan subsample using USDA food composition data.
Results:
For gpt-5, composite risk was generally low (median 0.000; mean 0.008; maximum 0.117, 11.7% of the theoretical ceiling), with a right-skewed long tail. Risk differed by user profile (H=142.83, P<.001) and dietary goal (H=76.77, P<.001) but not response tone (H=0.83, P=.84) and was highest for the type 2 diabetes profile (mean 0.033) and for weight-loss and glycemic-control goals. Overall risk differed across the 5 models (Friedman χ²=473.90, P<.001). Pregnant individuals in the second trimester were the highest-risk profile under 4 of the 5 models, driven by low declared energy (26.3% of gpt-5’s pregnant-profile plans below the 2200-kcal/day floor vs 54.0%-83.5% for the other models); each model’s highest-risk profile replicated in all 8 replicate sets for 4 models and in 6 of 8 for the fifth. Declared energy was within 10% of the listed foods in 13 of 23 evaluable plans but was overstated by a median of 21% and 42% for gpt-4o-mini and Qwen3-32B, respectively.
Conclusions:
Most model-declared energy and macronutrient targets were consistent with the guideline-derived thresholds applied here, but systematic long-tail deviations affected vulnerable groups, and which group was most affected differed by model. Because the composite score has not been validated against dietitian judgment, relies on model-declared rather than food-derived totals, and does not assess micronutrient adequacy, it should be interpreted as a screening signal for potential risk rather than a measure of nutritional safety, and audits should be repeated for each model.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.