NutriPredict

An open-source nutrition coach that measures what you really burn from your weigh-ins.

Install NutriPredict

The real number,not the formula.

2 630kcal a day, measured over 46 weigh-ins. The formula said 2,890.
Engraving of a Portuguese cabbage, Vilmorin-Andrieux album

From noise to the real number

Your weight moves by a kilo from one day to the next. NutriPredict keeps the trend, checks it against what you eat and works out what you really burn, with its margin of error.

Weigh

One weigh-in each morning. Weight moves with water, salt and digestion: that's noise.

Filter

A Kalman filter separates the trend from the noise and checks it against your food log.

Know

What you really burn, with a margin of error that narrows with every weigh-in.

Your formula, and its error

This is what the most used formula, Mifflin-St Jeor, predicts for you. What you really burn is often 10 to 20% away from it: that's the gap your weigh-ins close.

The calculation runs in your browser. Nothing is sent.

Sex
2 290 kcal a day according to the formula, for a 34-year-old woman, 168 cm, 72 kg, lightly active.
1010303050507070Measured by DXA (%)Estimated (%)
Each dot is a person from the 2017-2018 survey, never seen during training: their body fat measured by the scanner (across) and estimated (up). On the diagonal, the estimate is perfect.

Trained on real body scans

11,707 adults from the US NHANES survey whose body fat was measured by DXA. The model only ships if it beats the published formula on 2,426 people it has never seen.

2,68 points of average error against the scan

A coach that doesn't guess

It calculates, it doesn't make things up

Expenditure, target, body fat, forecast: every number comes from one of the app's tested tools. The language model only puts them into words.

The coach answers with the user's real expenditure, then cites the page of the guidelines

It runs on your computer

Gemma 4 26B, picked from seven models tested on the coach's questions. With a graphics card, nothing leaves your machine.

Engraving of a Bossin lettuce

It knows your medical history

Diabetes, hypertension, thyroid, pregnancy, a past eating disorder: optional and encrypted, they adapt the target and the advice.

The medical history form, with hypertension ticked

It knows when to say no

Losing ten kilos in two weeks, eating 800 kcal a day: guardrails answer before the language model does, and point to a professional.

Engraving of perennial artichokes

It cites its sources

Advice comes from the French public health guidelines, with the page. A page it didn't read is removed from its answer.

Engraving of a bunch of leeks

Measured, not simulated

AreaWhat is measuredOn whatResult
ModelBody fat11,707 adults scanned by DXA (NHANES)2.68 points of error, 15% better than the RFM formula
Real expenditureWeigh-ins and food log2,630 ± 208 kcal, where the formula said 2,890
Weight forecastHall's dynamic model (NIH)Weight loss that slows down, as it really does
DataFoodsCiqual 2025 (ANSES) and Open Food Facts30,222 foods, by name or barcode
CoachLanguage model7 models, 8 questions, one RTX 4070Gemma 4 26B: right tool 8 times out of 8, exact numbers 8 out of 8
QualityTestsContinuous integration on PostgreSQL114 tests, 89% of the code covered
MonitoringA simulated outage in DockerAlert received in 30 seconds; two incidents fixed

Why this project

Portrait of Valentin Périès in green pixelsI'm Valentin Périès. I built NutriPredict for my AI developer certification, then rebuilt it from scratch so that it learns from real measurements.

Its first version, in October 2026, predicted weight from simulated data. This one is open source under the MIT license: install it and use it. Everything runs on your machine, and your health data never leaves it. The app itself is in French.

Install it

Install it, read the code, or make it yours.

On Windows with a graphics card, one command starts everything, language model included. Anywhere else, Docker is enough. The README covers the setup.

git clone https://github.com/Rateur/nutri-predict
.\scripts\demo.ps1             # Windows, graphics card
docker compose up -d --build    # anywhere else