Sebastian van der Chijs

lab2clock

Read a blood-test report with an LLM, and pass a biological-age clock only numbers you can trust.

October 2026. Code on GitHub, with full methods.

The problem

Longevity services want to estimate a person's biological age from the blood tests they already have. Clocks such as PhenoAge turn routine blood markers into an estimated age, but they expect each marker in the units of the US data they were built on, while labs in Asia report in SI units and often in Chinese. A clock is only as good as the numbers fed into it: one missed conversion, CRP in mg/L where the clock expects mg/dL, adds 2.4 years to every user's PhenoAge.

The design

The model only copies the page. Names, units and arithmetic live in tested code, because reports from different countries follow different standards and that part has to be deterministic.

  1. Claude reads the report, a PDF or one photo per page, and copies every result as printed: name, value, unit and page. It doesn't convert, translate or rename anything.
  2. Code matches the names, normalises the units, parses the values and converts them to the clock's units.
  3. Code checks the result: plausibility limits, duplicates, missing markers, and a cross-check of lymphocyte percentage against lymphocyte count divided by white cells.
  4. Each clock input comes out with the row it was read from. Anything that fails a check is withheld and listed, never guessed.

Results

I tested it on real Chinese lab reports from MedRepBench, a public dataset. I tuned the code on 39 reports and held back 142. On the held-out reports, scored with the code as it was before I looked at them, 66% of markers reached the clock correctly and 5% got through wrong. The rest went missing (27%) or came through only as a limit or unchecked.

Claude copies 94 to 96% of printed numbers exactly. With the current code, 77% of markers reach the clock correctly on the 39 tuning reports with Haiku, 79% with Opus, and 69% on the 142 held-out reports after four fixes made from them. The rest are withheld or missing rather than wrong.
Scroll sideways to see the whole figure. Each bar is one set of real reports, scored with the current code, three runs per set. The held-out bar comes after four fixes made from that set, so it is no longer a clean test; the 66% above is the clean one.

Where wrong values got through

A copying score can't see these errors, because the wrong values were copied exactly or guessed. My first end-to-end scorer missed the urine counts too: it checked labels with the code's own rules.

These fixes block every wrong value seen, but they were made from the held-out set, which uses it up. That is why the clean numbers above come from the code before the fixes.

What I would tell someone building something similar

Limits

Next

How I built it

I wrote the plan and split it into small tasks, each built with Claude Code or by hand and checked before the next. The design rule came first: the model only copies the page, and everything that has to be right every time lives in tested code. Models also checked me: a Claude pass over my hand-checked labels found four unit errors I had missed, and a critique of the published results by another model found gaps I then closed.