Prediction of Nutritional Content in Peruvian Lunch Meals by Large Language Models: A One-Shot Evaluation

preprint OA: closed CC-BY-4.0
📄 Open PDF Full text JSON View at publisher
AI-generated deep summary by claude@2026-07, 2026-07-03 · read from full text

This paper evaluated whether large language models can predict nutritional content of Peruvian lunch meals using a one-shot approach, leveraging 510 lunch images from a nationally representative Peruvian cookbook. Three LLMs (Gemma-3 4B, 12B, and 27B) were given each meal name and photo, asked to generate narrative meal descriptions, and then used only those descriptions to estimate six nutrients (energy, protein, carbohydrates, iron, vitamin A, zinc) compared against recipe-based ground truth. The 27B model showed the highest overall agreement for most nutrients and the lowest mean absolute error for calories, carbohydrates, iron, and zinc, while the 12B model performed best for protein and vitamin A; the 4B model had the poorest performance across metrics. A key limitation noted is that accuracy remains insufficient for clinical or consumer-facing applications, despite the ability to generate estimates. The paper does not explicitly discuss endometriosis or adenomyosis; it was included in the corpus via a keyword match in the upstream search index.

Read from the paper's body, not the abstract. Not a substitute for reading the paper. No clinical advice. How this works

Abstract

ABSTRACT BACKGROUND Various artificial intelligence applications have been developed to predict the nutrient content of meals. However, none have been evaluated in the context of Peruvian cuisine, characterized by diverse ingredients and recipes across geographical regions. We assessed whether large language models (LLMs) could predict the nutritional content of Peruvian lunch meals. METHODS Using a dataset of 510 unique lunch images extracted from a nationally representative Peruvian cookbook, we compared nutrient values from recipe data (ground truth) against predictions generated by three LLMs (Gemma-3 4B, 12B, and 27B). The LLMs were given the meal name and a photograph and prompted to produce narrative descriptions of the meal. Using only the descriptions, the same LLMs were prompted to estimate six nutrients: energy (kcal/serving), protein (g/serving), carbohydrates (g/serving), iron (mg/serving), vitamin A (μg/serving), and zinc (mg/serving). Agreement proportions and errors metrics were calculated against ground truth. RESULTS The 27B LLM achieved the highest agreement proportions across most nutrients—calories (45%), carbohydrates (31%), iron (15%), vitamin A (19%), and zinc (31%)—while the 12B model performed best for protein (70% agreement). The 27B model yielded the lowest mean absolute error (MAE) for calories (108 kcal), carbohydrates (26 g), iron (4 mg), and zinc (1 mg). The 12B LLM had the lowest MAE for protein (6 g) and vitamin A (667 μg). The 4B LLM showed the poorest performance across metrics. CONCLUSIONS LLMs can generate estimates of nutrient content from narrative descriptions of Peruvian lunch meals, but current performance levels fall short of the accuracy needed for clinical or consumer-facing applications.
Full text 3,402 characters · extracted from oa-doi-fallback · 4 sections · click to expand

Abstract

BACKGROUND Various artificial intelligence applications have been developed to predict the nutrient content of meals. However, none have been evaluated in the context of Peruvian cuisine, characterized by diverse ingredients and recipes across geographical regions. We assessed whether large language models (LLMs) could predict the nutritional content of Peruvian lunch meals.

Methods

Using a dataset of 510 unique lunch images extracted from a nationally representative Peruvian cookbook, we compared nutrient values from recipe data (ground truth) against predictions generated by three LLMs (Gemma-3 4B, 12B, and 27B). The LLMs were given the meal name and a photograph and prompted to produce narrative descriptions of the meal. Using only the descriptions, the same LLMs were prompted to estimate six nutrients: energy (kcal/serving), protein (g/serving), carbohydrates (g/serving), iron (mg/serving), vitamin A (μg/serving), and zinc (mg/serving). Agreement proportions and errors metrics were calculated against ground truth.

Results

The 27B LLM achieved the highest agreement proportions across most nutrients—calories (45%), carbohydrates (31%), iron (15%), vitamin A (19%), and zinc (31%)—while the 12B model performed best for protein (70% agreement). The 27B model yielded the lowest mean absolute error (MAE) for calories (108 kcal), carbohydrates (26 g), iron (4 mg), and zinc (1 mg). The 12B LLM had the lowest MAE for protein (6 g) and vitamin A (667 μg). The 4B LLM showed the poorest performance across metrics.

Conclusions

LLMs can generate estimates of nutrient content from narrative descriptions of Peruvian lunch meals, but current performance levels fall short of the accuracy needed for clinical or consumer-facing applications. Competing Interest Statement The authors have declared no competing interest. Funding Statement None. Author Declarations I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained. Yes I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals. Yes I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance). Yes I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable. Yes Data Availability The original recipes are at available at: https://www.gob.pe/institucion/ins/colecciones/19559-recetarios-saludables-por-regiones The original photographs were obtained through a Freedom of Information request to CENAN. Consequently, we are unable to further distribute these photographs. Interested parties are encouraged to make a similar request to CENAN.

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: oa-doi-fallback

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-22T02:00:06.705733+00:00
License: CC-BY-4.0