Cookbooks/Infinit Plus
Jun 4, 2026 - Saved notebook export

Infinit Plus

TLDR: this cookbook recycles the data, models, and charts from the Infinit Plus project into a technical catalogue. It covers what the NHANES data looked like, how missing values were handled, why training a model to predict chronological age backfires, and how the Klemera-Doubal Method (KDM) fixes it. Every chart runs on the same numbers as the original project. Trained to predict chronological age, the first model just learned to guess birthdays.

Sourceinfinit-plus.html
RuntimeSaved HTML
LongevityBiomarkersResearch

Interactive notebook

00 / THE SOURCE

NHANES, and why only two cycles.

The National Health and Nutrition Examination Survey (NHANES) samples the US population every two years, pairing a home interview with a physical exam and a full laboratory blood panel. It is one of the few public datasets that links biomarkers to the same person's exam results.

This catalogue only uses the 2013-2014 and 2017-2018 cycles. Earlier cycles did not collect every biomarker this model needs, since markers such as albumin and alkaline phosphatase were only added to the panel later. The 2019-2020 cycle was interrupted mid-collection by COVID-19, so its sample is not treated as a reliable population baseline.

Restricting to adults 18 to 45 across two consistent cycles trades sample size for consistency. The numbers below are what survives that trade-off.

DROP MISSING ROWS7.27

years of root mean squared error, with only 2,200 people left

ITERATIVE IMPUTATION6.99

years of error, with 5,170 people recovered

KNN IMPUTATION7.60

years of error, despite the more intuitive approach

01 / THE DATA

Missing is a pattern.

The original file had 113,249 rows. It also had 69 percent missing glucose and 91 percent missing insulin. A clean looking subset could quietly turn into a different population.

Dropping incomplete rows does not only reduce the data. It changes who gets represented.
Missing data catalogue NHANES sample loaded

Choose a cleaning method

Select a tab to see its stats and tradeoffs; the diagram, code, and output update with it. The raw tab shows the missingness as-is.

No cleaning method applied yet. The diagram shows the raw overlap between the three biomarkers with the most missingness.

4,057of 4,057 people, no method applied
clean_biomarkers.pyraw data, no cleaning
Output
02 / THE TRAP

Predicting age with age.

The model's inputs were biomarkers that already drift with age. Its target was chronological age. Training it to shrink the gap between prediction and calendar age can just teach it to reconstruct the calendar, which is circular reasoning, also known as petitio principii: assuming the very answer you set out to find.

If the gap between predicted and actual age is the biological signal we want, minimizing that gap destroys the thing we are looking for.

Switch the tab below to see how changing the training target changes what the model is allowed to discover.

Objective catalogue Same people, different question

Blood panel values feed an XGBoost regressor rewarded whenever its output matches chronological age.

6.99years RMSE, best case
circulartarget reconstructs its own input signal

Pros

  • Simple to train and validate
  • Good for catching data quality bugs

Cons

  • Rewards mimicking age, not detecting biology
  • Flattens the acceleration signal we actually want
04 / THE MODEL

Open the black box.

The KDM target lowered the error, but a lower number is not enough on its own. A useful model also needs stable residuals and biomarker effects a clinician would recognize.

Use the tabs to inspect the evidence from three angles. Each tab explains the term below.

Opening the model
...RMSE in years
...less squared error
05 / TRY IT

Biological age calculator: test a blood panel

The complete trained forest lives in this page. Change a value and your panel walks through 2,000 decision trees in the browser. No blood data is uploaded.

Start with a profile or adjust the six common values. The remaining markers stay at the population mean unless you open them.

Adjust eight more biomarkers

Where each value sits

Green bands mark the model's neutral range for each biomarker. The dot is your current input, and it turns red once a value sits outside that band. Extreme outliers are excluded from each axis so the scale stays readable.

This calculator is a research instrument, not medical advice, and is provided for educational purposes only. It uses cookies to remember that you accepted this notice.

03

Risk, not resemblance.

KDM asks a better question, but it is still age shaped. The next generation is PhenoAge. It predicts mortality risk first, then translates that risk back into years.

That needs linked mortality records and CRP data. Until they arrive, the honest place to stop is the edge of the evidence.

Read the complete Infinit Plus project story

Source data: NHANES 2013 to 2014 and 2017 to 2018. Browser sample: 1,800 deterministic rows. Model: XGBoost trained on a KDM target.

Explore next cookbook

Infinit Plus