Feast
On-device analysis Matched-pair statistics Sleep quality drivers

Feast Sleep Analysis

Feast is the only nutrition tracker that runs statistical analysis between food intake and sleep quality, so you can see exactly how caffeine, alcohol, and meal timing affect your recovery.

What Feast measures

  • Caffeine residual at bedtime
  • Alcohol residual at bedtime
  • Calories and glycemic load in the 3 hours before sleep
  • Last meal gap and feeding window length
  • Nightly sleep score and standardized z-score

Overview

What the analysis is

Feast runs an on-device, N-of-1 sleep analysis pipeline that quantifies how your evening nutrition influences your sleep. Instead of comparing you to population averages, Feast compares your high-exposure nights to your own baseline nights that look similar in schedule and context.

Feast is the only app that performs matched-pair statistical analysis between meal timing, caffeine, alcohol, and sleep quality.

Data inputs and prerequisites

Feast combines multiple data streams to build a nightly dataset:

Analyses are pinned to a deterministic UTC-based calendar so historical results stay stable even when a user travels or changes time zones.

Sleep score construction

Feast builds a nightly sleep score in two layers. If Apple provides a sleep score, Feast uses it directly. Otherwise, Feast computes a composite score using efficiency, REM percent, deep percent, total sleep time (TST), and wake after sleep onset (WASO).

The composite uses weighted components: efficiency (0.45), REM (0.20), deep (0.20), z-scored TST (0.15), and z-scored WASO (0.10). Each night is standardized using a rolling median and median absolute deviation, producing a z-score aligned to your own baseline.

Exposure modeling

Feast derives multiple exposure variables for each night:

Caffeine half-life is personalized by testing a 3-7 hour grid and validating on a holdout window. If the signal is weak, Feast defaults to 5 hours.

Matched-night design and controls

Statistics and outputs

The Sleep Quality card visualizes these results with a timeline of hit nights, dose-response bars, and a stats row that includes sample size and confidence intervals.

Unlock requirements