NewGot a food science question? Ask a Food Scientist →
Mendocino Food ConsultingDr. Bryan Quoc Le · Food Scientist Services

Lab notebook · AI and food chemistry · S3

Does an ingredient's name know how much glutamate is in it?

Verdict
Dead It failed the rule set in advance. That's a result, not a gap.
How far it got
Pilot: A second, stricter test of a scout that passed.
Rule set first
Dead if the embedding adds less than 0.05 held-out R² over the baseline, if that gain's CI includes 0 after Holm correction, or if the full model doesn't beat every shuffled-label run.
Written down
Rule Nov 12, 2026, lab commit f223c9a. Result Nov 12, 2026, commit 3d0da9c.
Data
Human Flavorome Project ingredient table (Bryan's own data); USDA FoodData Central (CC0); all-MiniLM-L6-v2 and all-mpnet-base-v2 embedding models (Apache 2.0); Europe PMC (search metadata); OpenAlex (CC0)
Runs
2 runs, about $1.91 of compute

What we asked

This was the lab’s own pick. A language model has never tasted anything, yet it can say parmesan is savory. We wanted to know how much real chemistry sits inside the way people write about food.

The concrete test: Can a text embedding of an ingredient’s name predict its measured free glutamate better than simpler things like its category? If yes, that would be a cheap way to flag likely errors in the Flavorome table.

The rule we set first

The first plan, with a kill rule of less than 0.05 gain in held-out R², went into git on Nov 11 (commit 7880fa6). After the scout’s quick look came back marginal, we wrote a stricter pilot plan and committed it before any pilot code ran (commit f223c9a, Nov 12).

The pilot’s kill rule: Dead if the embedding adds less than 0.05 held-out R² over a baseline of category, dry matter and plain name words, if the gain’s interval includes 0 after Holm correction, or if the full model doesn’t beat every shuffled-label run.

The positive control: The same pipeline had to predict held-out protein from names. A note on the record: The pilot plan was written after the scout results were in (it summarizes them), and was committed 30 seconds before the scout-results commit. It was fixed before the pilot itself ran.

What we did

  • Used 353 Flavorome ingredients with measured free glutamate, grouped into 177 families so near-duplicates (three kinds of tomato) never sat in both training and test sets.
  • Embedded each name with a small pretrained sentence model (all-MiniLM-L6-v2) and fit ridge models with 20 repeats of 5-fold cross-validation.
  • Compared baseline B (category, log dry matter, bag-of-words on name tokens) against B plus the embedding.
  • Ran secondary tests on aspartate and on ranking within families, Holm-corrected together with the primary test.
  • Ran protein as a positive control and 20 shuffled-label runs.

What we found

The baseline alone reached a held-out R² of 0.44 for glutamate. Adding the embedding raised it to 0.49. That’s a gain of +0.048, 95% CI [−0.023, +0.120], Holm p = 0.54. It’s below the 0.05 bar and the interval includes zero, so it failed on two counts.

Most of the gain the scout had seen (+0.087 over category alone) turned out to be plain words. Adding bag-of-words and dry matter lifted the baseline from 0.37 to 0.44. Aspartate looked the same (+0.044, not significant).

The within-family ranking test came out “significant” (ρ 0.28, Holm p = 0.0075), but the baseline alone ranked better (ρ 0.39). So the information inside families lives in ordinary words like “aged,” not in the embedding.

The controls behaved. Protein was predicted well and the embedding added nothing to it. Shuffled labels gave nothing.

S3 is dead. Names know food families, not the chemistry within them.

What this doesn’t show

  • With 353 ingredients the intervals are wide. A true gain of about 0.05 to 0.10 can’t be ruled out, only not shown.
  • Only small sentence encoders were tested, not a large language model asked directly. That’s a different question.
  • The gain came from whole families moving together. Aged cheeses and cherry-tomato pulps were lifted as blocks, while mozzarella, feta and cottage cheese were pushed up wrongly.
  • The categories are the lab’s own keyword rules. FoodData Central’s categories were tried first and were too noisy (oyster came back as a vegetable).
  • One extra check, not in the plan: A second, larger embedding model (all-mpnet-base-v2) gave +0.054 [−0.000, +0.120]. The conclusion is the same.

Where a human lab could take this

  • For name embeddings, don’t pursue this. Two models gave the same answer, and plain words did the useful work. More embedding variants are unlikely to change that.
  • Measure within families, not across them. The weak spot is inside families: fresh vs aged cheese, raw vs cooked tomato. A lab with free amino acid analysis (HPLC or LC-MS) could measure glutamate in one food across ageing or processing steps. That’s the data that would teach any model, text or not, what “aged” means chemically.
  • More measured ingredients. The table has 353 glutamate values, which is why the intervals are wide. Measured free amino acid data from published or licensed food composition sets, checked by a person, would tighten any future test.

Data and code

  • Human Flavorome Project ingredient table (Bryan’s own data; only aggregate statistics shown here).
  • USDA FoodData Central (CC0), tried for categories.
  • all-MiniLM-L6-v2 and all-mpnet-base-v2 sentence embedding models (Apache 2.0).
  • Europe PMC and OpenAlex (CC0) for the novelty check, abstracts only.

Code lives in the lab repo under projects/S3-what-language-knows-about-food-chemistry/code/. The main script is pilot.py, and the scout’s quick look is quick_look.py.

Lab entries are exploratory research, not professional advice for a specific product, and not medical, legal or regulatory advice. Spot a mistake? Email me, and I'll post the correction here with a date.

More from the lab

Every investigation →