NutrientGraph Beta

How we check accuracy

We do not publish an accuracy percentage yet. This page describes how the data is built and checked, and shows the results of the code checks of the current release.

Where the numbers come from

  1. Code copies every value from the USDA and CIQUAL source files, with the source record, nutrient id and retrieval date. No model types a number.
  2. AI makes only recorded judgments: matching records of the same food, the preparation state of a food, density references for drinks, cooking-yield references for dishes and translations of names. Two independent passes; disagreements are settled against the source; the method and a confidence are stored with the result.
  3. Code checks run on every generic food, every branded record and every dish. Records that fail an error-level check are held back and not served.
  4. Re-checks: AI verifiers re-check random and targeted samples against the sources between releases; every fix is logged, and every response carries the dataset version.

What the code checks look for

Results of the code checks

Warnings on shipped records (served, with the note attached)
record typecheckseverityrecords
brandedlabel roundingwarning12,080
brandedcore presentwarning8,976
brandedgtin conflictwarning8,088
brandedportion presentwarning5,338
brandedfallback recordwarning625
brandedbasis ml nonliquidwarning246
genericsalt sodium consistencyerror14
genericfiber animalerror9
genericsugars le carberror6
genericatwatererror3
genericmacro sum watererror3
genericportion presentwarning3,977
genericcore presentwarning571
genericsalt sodium mismatchwarning168
genericfiber animal tracewarning26
Records held back (not served)
record typecheckrecords
brandedgtin valid3,991
brandedatwater3,610
brandedmacro sum1,819
brandedenergy max1,212
brandedsugars le carb686
brandedsodium physical max575
brandedcore absent470
brandedsatfat le fat320
brandedfiber le carb267
brandedfat max266
brandedsodium range57
brandedsodium unit error34
brandedfiber animal22
brandedkj kcal consistency4
genericsalt sodium consistency14
genericfiber animal9
genericsugars le carb6
genericmacro sum water3
genericatwater3

Read from the dataset's QA report for release 1.0.0.

Known limits

Found an error? Write to support@nutrientgraph.com with the food id and meta.dataset_version.