Adaptive TDEE
Measure actual TDEE from a logged history of daily weight and/or calorie intake. Default method (kalman) is a joint Kalman filter over true weight and TDEE — handles missing days, gates outliers, and reports uncertainty (CI95) alongside denoised true weight; regression/endpoints are simple window-based estimates kept for comparison. Use instead of formula TDEE once real logged data exists. Each entry needs at least one of weight/kcal (not necessarily both). Entry dates must span 10 years or less (earliest to latest). Note: all methods need at least one weigh-in (kalman) or two (regression/endpoints) — a history with zero weight entries throws under the kalman default; pass methods:‘all’ to get a graceful empty/skipped result instead.
Request Body required
Section titled “Request Body required ”object
object
object
Optional starting TDEE estimate, e.g. from the tdee tool; speeds early convergence.
Example
{ "entries": [ { "date": "2026-01-01", "weight": { "value": 80, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-02", "weight": { "value": 79.95, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-03", "weight": { "value": 79.9, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-04", "weight": { "value": 79.85, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-05", "weight": { "value": 79.8, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-06", "weight": { "value": 79.75, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-07", "weight": { "value": 79.7, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-08", "weight": { "value": 79.65, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-09", "weight": { "value": 79.6, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-10", "weight": { "value": 79.55, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-11", "weight": { "value": 79.5, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-12", "weight": { "value": 79.45, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-13", "weight": { "value": 79.4, "unit": "kg" }, "kcal": 2500 }, { "date": "2026-01-14", "weight": { "value": 79.35, "unit": "kg" }, "kcal": 2500 } ]}Responses
Section titled “ Responses ”Adaptive TDEE result
object
object
object
object
object
Inputs valid but semantically impossible, or a required method’s inputs are missing.
object
object
Input failed validation (Zod).