How RigMacro estimates your burn
Your burn is the calories your body uses in a day. We work it out from what you eat and how your weight changes: what you ate, minus what your body stored, is what you burned.
Your stable weight is your weight without the water that comes and goes from day to day. We work it out from your weigh-ins, by separating the slow, steady change from the daily swings.
Working out both from noisy inputs, like scale weight and logged food, follows the shape of a class of surprisingly well-studied problems. The usual tool is a Kalman filter, the same method behind GPS, aircraft navigation and spacecraft guidance. This page shows how we do it, step by step, and what each step buys.
We compared our method with a much simpler one: take your last 3 weeks of eating and weight change, and work out your burn from that. We ran both on the same 600 simulated people for six months.
How far each estimate is from the real burn, averaged over 600 simulated people. The closer to the real-burn line, the better. In the first few weeks ours is briefly worse: a new diet shifts water and glycogen, and our filter takes a little longer to settle than a short average. The bump at 3 months comes from one of the six situations, where burn jumps by 300 a day (see Part 3).
- Improve our assumptions with real data. Check our predicted weight change against what really happened, and use it to set water swing size, logging drift and how much bigger skipped days are. These are informed guesses today, tagged "to learn from real data" in each step below.
- Catch activity changes sooner. Use RigLift workouts and Apple Health data so a new routine shows up in days, not weeks.
- Better estimate water and glycogen swings. Use the carbs and salt you log, so a salty dinner or a refeed stops surprising the filter.
- Account for body composition. A pound of change holds less energy for lean people, so the burn number gets more accurate when we account for it.
The idea, before any of our details
A Kalman filter tracks something you can't measure directly, from measurements that are noisy. Think of a ship's navigator: they work out the ship's position from its speed and heading, then correct it whenever a landmark comes into view. In our case, your food log is the speed and heading, and your scale is the landmark. The method has guided spacecraft and GPS since the 1960s. The two short sections below cover everything the rest of the page builds on.
Two numbers, two steps
A Kalman filter keeps two things for everything it tracks: a best guess, and how sure it is of that guess. Every day it runs the same two steps.
The gain is the only clever part. It's a number from 0 to 1: how much of the surprise to believe. If the guess is shaky and the measurement is solid, the gain is close to 1 and you mostly believe the measurement. If the measurement is noisy, the gain is close to 0 and you barely move.
Try it: one guess, one weigh-in move the sliders
Learning burn from a scale that never sees it
The scale only shows weight, yet the filter learns burn. That's because the two are linked: what you eat minus what you burn changes your weight.
Neither of those inputs is exact. Logged calories are estimates: food labels can be off by 10–20%, and portions are often guesses. Scale weight carries the scale's own error on top of the water that comes and goes. That's normal for a Kalman filter. A car's GPS, a phone's motion sensors and a rocket's gyroscopes are all noisy in the same way. The filter's job is to weigh each source by how far it can be trusted.
So if our burn guess is too low, your weight keeps coming in under what we predicted, morning after morning. One surprise could just be water. A run of surprises in the same direction can't be, so burn moves. Step through a simulated person below and watch it happen.
Watch it learn, one morning at a time simulated person
Their real burn is 3,055 a day. The formula guesses 2,755, so we start 300 too low and unsure. They eat around 2,550 a day, log most days and weigh in most mornings, with a week away on days 31–37. Their scale weight swings about ±0.9 lb with water.
Each weigh-in shrinks the ± and each day without one lets it grow. Stable weight shows it most: it gets much less certain during the week away, then snaps back within a few weigh-ins. Burn changes slowly, so it hardly loses any certainty in a week. It mostly keeps narrowing as evidence builds.
That's the whole engine. Everything in Part 2 is about feeding it better: deciding what counts as a surprise, and how sure to be.
Each step fixes something specific
We started from the simplest possible estimate and added one piece at a time. Every step received the same 600 simulated people: 100 in each of six situations, from starting a cut to skipping weekend logging to two weeks away. Each one gets the same scorecard, and lists every setting it uses and where that number comes from.
| Scorecard | What it means |
|---|---|
| Error | How far the estimate is from the person's real burn, on average, at 1, 3 and 6 months. |
| ± | The range we show next to the number at 6 months: how far off we think we typically are. |
| Honesty | How often the real burn actually falls inside the ±. It should be about 50% of days, and inside the wider band about 80%. Lower means we're claiming more certainty than we have. |
| Wobble | How much the estimate moves from one day to the next. |
All the steps side by side
Averages over 100 simulated people per situation, or 600 for "All situations". Honesty is measured from day 30 to day 180.
A real change in burn takes weeks to show
Suppose you start a new training block and burn 300 more a day. That changes the scale by less than a tenth of a pound a day, while water moves it a pound or more. Even a filter told the exact day of the change needs about three weeks to catch up from the scale alone. Our filter doesn't know the day, so it takes longer, and for those weeks the real burn sits outside the ±. None of the steps above fix this, because they all work from the same two inputs: food and the scale.
Burn rises 300 at 3 months final filter
What we'd add next, and why
Each of these brings in information the scale can't provide, or replaces one of our guesses with something measured.
1 · Improve our assumptions with real data
Check the weight change we predicted against what really happened, and use it to set the water swing size, how much logging drifts and how much bigger skipped days are, so the filter matches real people rather than our guesses.
These are the biggest unknowns. How much people's logging accuracy drifts mattered most of anything we tested.
2 · Catch activity changes sooner
Use RigLift workouts and Apple Health data. When activity changes, let burn move the same day, and let the scale confirm how much. This fixes the problem in Part 3 for any change we can measure.
In an earlier simulation, a new walking habit was caught about 10 days in (error 117) instead of about 6 weeks (error 247). Lifters who logged sessions saw about 40% less error.
3 · Better estimate water and glycogen swings
Carbs and salt both shift water in predictable ways. If we use the carbs and salt you log, a salty dinner or a refeed stops surprising the filter.
In simulation, carbs helped most around big diet changes. Salt was a smaller gain.
4 · Account for body composition
A pound of change holds less energy for lean people. Accounting for it makes the burn number itself more accurate. Your targets already account for it.
Worth up to about 125 kcal on the displayed burn for lean people losing 1 lb a week.
Where a setting in Part 2 rests on published work, it links here. Settings marked as our own estimate have no source yet; they are the ones we most want to learn from real data.