Accuracy & methodology

Updated 2026-11-03 · Last tested 25 Sep 2026

We test the pipeline on published figures, against the statistics their authors printed, and on simulated trials where the truth is known. The first 40 papers were used to find and fix bugs, so they are a development set. The next 96 papers were read after the code was frozen: that is the real test.

97%of printed hazard ratios within 10% (205 of 211)
88%within 5% (185 of 211)
94%of printed medians within 10% (235 of 250)
2.9%mean absolute difference from printed hazard ratios

Our own benchmark, not peer reviewed. 96 papers. Read the limits below before quoting these.

0.10.10.20.20.50.51122Figure printed the direction (86)Direction inferred (125)Within 10%Hazard ratio printed on the figureReconstructed from the curve

Each dot is one printed hazard ratio. On the line, reconstruction and print agree. All 461 checks as a CSV.

What these numbers are, and are not

MeasureResult95% CI (Wilson)By-paper bootstrap
Test set: 96 papers, read after the code was frozen
HRs within 10%205/211 = 97.2%93.9–98.793.9–99.6 (62 papers)
HRs within 5%185/211 = 87.7%82.6–91.583.0–91.9
Medians within 10%235/250 = 94.0%90.3–96.388.0–98.8 (35 papers)
Mean signed HR difference0.0001−0.0036 to 0.0038
Mean / median absolute HR difference2.89% / 1.63%
HRs with direction printed, within 10% / 5%82/86 = 95.3%, 78/86
Development set: the first 40 papers, used to find and fix bugs
HRs within 10%133/141 = 94.3%89.2–97.189.8–98.6 (35 papers)
HRs within 5%116/141 = 82.3%75.1–87.774.5–90.4
Medians within 10%125/128 = 97.7%93.3–99.292.2–100.0 (23 papers)
Simulated: 80 figures with known truth, also used for model selection
HR within 5% of the truth73/80 = 91.2%83.0–95.7
HR within 10% of the truth77/80 = 96.2%89.5–98.7

All checks re-scored on engine 0.2.0 from the same stored readings. The three test-set headline counts did not change. Development set: 258 of 269 checks on printed hazard ratios and medians passed. N and event counts printed on a figure are used as inputs, so they are consistency checks and are not counted here. Printed values are rounded.

What the remaining differences are. On the development set, figures with a flagged check were read again by another model (Claude Fable 5.1). It reproduced all 14 flagged differences to within 5%. That points to the figure or to a shared method, not a one-off misreading. Two came from our own median rule and cleared when we adopted R's. The rest include printed hazard ratios that are adjusted or stratified, medians in arms of 8 to 17 patients, where one event moves the median, and event counts that do not match the plotted curve.

Checked against R

The calculators and the engine's statistics, run against real R on known datasets: R 4.5.1 with survival 3.8.6, survRM2 1.0.4, gsDesign 3.9.0 and rpact 4.4.0, in November 2026. The calculator code is public at /survcalc.js, so you can rerun any of it.

QuantityTested onAgainstResult
Kaplan–Meier S(t), n and d21 datasets: aml, Freireich, Pike rats, lung, pbc in years and in months, 15 edge cases. 543 event timessurvfit0 mismatches
Median and log-log CI42 armssurvfit(conf.type="log-log")Match. lung: male 270 (210–306), female 426 (345–524)
Log-rank χ², O, E, V and p20 datasetssurvdiffMatch. aml 3.3964 / 0.0653; lung 10.3267 / 0.00131; rats 3.1227 / 0.0772
Cox HR and CI, Efron ties16 datasetscoxphMatch. 5 more say "not estimable" where coxph warns of no convergence or gives NA
RMST, SE, difference and CI23 comparisons: 21 at the default τ, pbc τ 10, lung τ 365survRM2::rmst2Match
Events (Schoenfeld)8 scenarios, 14 table cellsgsDesign::nEventsMatch
PatientsDefault and 2:1 allocationgsDesign::nSurv, rpactMatch: 557.95 shown as 560, 643.3 shown as 645, because the page rounds events up first
Power5 scenariosThe formula; gsDesign on 4 of themMatch
Engine: HR, CI, log-rank p and mediansEvery comparison in both stored runs, refitted from its CSV rows: 500 HRs, 509 log-rank tests, 1,018 medianscoxph, survdiff, survfitAll match. 9 more comparisons have no estimable HR in the engine, where R returns an extreme value
Guyot reconstruction8 simulated armsAn R version we wrote from the published algorithm; the authors' own supplement could not be downloadedRow-identical

How this compares

Published evaluations use different figure sets, mixes of difficulty and metric definitions, so this comparison is indicative only. None is a head-to-head.

SourceSettingReported resultTrialCurve
Saluja et al. 2019Manual digitisation + Guyot, 118 curves from 55 RCTsMean signed HR error 0.0094 (95% CI −0.0012 to 0.020)Mean signed difference from printed HRs 0.0001 (−0.0036 to 0.0038)
Kim et al. 2025CurveSnap or the IPDfromKM app (partly manual), then IPDfromKM or Guyot's code. 58 HRs from 46 curves49 of 58 within 5%. Mean absolute difference 2.85–2.93%185 of 211 within 5%. Mean absolute difference 2.89%
KM-GPT (2025)Automated pipeline, 538 of 540 synthetic plotsMedian integrated absolute error 0.0180.0027 on simulated figures (median per-arm mean |ΔS|, a similar statistic)
Annan et al., ISPOR 2025Pipeline vs GPT-4o alone, 10 published single-arm curvesMedian survival deviation ±0.6 vs ±1.9 monthsMedian error in median survival 0.09 months (simulated)

Simulated figures with known truth

The same pipeline on 80 simulated figures also used for model selection (seeds 11000–11079), where the true patient data are known. To isolate each part, the same model readings were also scored without pixel tracing ("model only"), and the measurement engine was run alone on the same figures.

MetricProductionModel onlyMeasurement only
Hazard ratio within 5% of truth91.2%93.8%85.5%
Hazard ratio within 10% of truth96.2%96.2%90.8%
Median |log HR| error0.0090.0070.012
Curve error (median of per-arm mean |ΔS|)0.00270.00270.0028
Error in median survival (median, months)0.090.080.10
Events per arm (median relative error)0.9%0.9%1.0%
At-risk table cells read exactly100.0%100.0%95.6%
Arm names read exactly95.9%95.9%88.1%

Pixel tracing does not improve these numbers. Production is slightly behind the model's reading alone (91.2% vs 93.8% within 5%; worse on 31 figures, better on 25). We keep it because it cross-checks the reading and flags disagreement, and it takes over when the model is unavailable.

How these readings were produced. The model readings for this page were made by Claude Opus 5.5 running in Claude Code, with the production instructions and output schema, the same image the API would send, and the same zoom tool (identical crops, enlargement and ruler). Readers saw the figure and its caption, including any printed statistics, but not our results or the checks. The pipeline downstream of the reading is the code the API runs. Through the API, the reading runs at a fixed effort level with the same tool and a budget of 14 zooms.

Known limits

Where results are least reliable, and what the API tells you when it happens.

The production pipeline

On the API and validation packs, a failed check triggers a second, more thorough reading. If it gives the same result, the check is labelled accordingly, which points to the figure or to a shared method, not a one-off misreading.

The measurement engine (fallback)

Without the vision model, results come from pixel measurement and on-device OCR. It handles single panels only, and is weakest on:

Which model reads curves best?

Last tested 25 Sep 2026. Each model below read the whole figure on its own, curves included, with no pixel tracing, and the same Guyot reconstruction ran on its reading. Scores are against the exact truth on 24 simulated figures also used for model selection (seeds 11000–11023; the xhigh row uses the first 12). The first four rows are single API calls without the zoom tool.

Model (reading alone)Curve errorMedian-survival error (months)HR within 5%Median |log HR| errorCost / figure
Claude Opus 50.01550.7286%0.033~$0.06
Claude Fable 5.10.00750.4295%0.014~$0.14
Claude Opus 5.5 (high effort)0.00570.2995%0.011~$0.05
Claude Opus 5.5 (xhigh effort)0.00600.21100%0.008~$0.10
Claude Opus 5.5 with the zoom tool (production reader)0.00260.0792%0.006~$0.10–0.30

Curve error is the median of each arm's mean absolute difference in survival probability. With the zoom tool the model crops and enlarges the full-resolution figure wherever it needs to (the at-risk table, steps, crossings, the 50% line). That roughly halved the curve error and cut the median-survival error by three quarters, which matters more than effort level or a larger model. The zoom row was produced through Claude Code with the production instructions; API cost depends on how many zooms a figure needs. A free upload runs the high-effort row, without zoom.

How the pipeline got here

Earlier in 2026 the balance was the other way round. On the same 80 simulated figures, Claude Opus 5 reading curves on its own put 72.5% of hazard ratios within 5% of the truth, against 85.5% for pixel measurement, and its curve error was more than five times larger. So the API used a hybrid: the model read the text, and the curves were measured in pixels. Opus 5.5 with a zoom tool now reads curves as precisely as the measurement engine, and reads text far better, so the model's reading comes first. Pixel tracing checks each curve, replaces it where the two agree closely, and takes over when the model is unavailable.

Measurement engine: 400 simulated figures

Pixel measurement and on-device OCR, without the vision model. It cross-checks the model's curves in production and takes over when the model is unavailable. Results on the full held-out set of simulated figures:

Generated 25 September 2026 · engine v0.1.0 · 400 figures, seeds 7000–7399

All figures in the held-out set, including degraded, black-and-white and table-less figures. Hazard-ratio metrics use every figure where both of the first two arms were reconstructed (n = 357).

82%of hazard ratios within 5% of the truth
90%of hazard ratios within 10% of the truth
1.1%median hazard-ratio error (|log HR ratio|, as %)
0.08 momedian error in median survival
1.1%median error in the number of events per arm
0.003median mean |ΔS| between reconstructed and true curves
0.11%median RMST error, as a fraction of τ
92%of at-risk table cells read exactly
2.8%of at-risk cells misread (the rest are reported missing)
90%of arm names read exactly
99.5%of figures processed without an error

Distributions

MetricnMedianMean90th pctMax
|ΔlogHR| (per figure)3570.01130.08390.09194.2756
Median survival error (months, per arm)6380.0830.6140.65941.056
Median survival error (relative, per arm)6380.4%2.9%3.4%383.0%
Events error (relative, per arm)7861.1%9.3%26.1%328.2%
Curve mean |ΔS| (per arm)8240.00260.01450.00540.8268
Curve max |ΔS| (per arm)8240.0270.0560.0821.000
RMST error / τ (per arm)7860.11%0.87%0.41%70.28%
Processing time (s per figure)39811.51911.48415.89122.708

n counts figures for HR metrics and arms for the per-arm metrics. Means are pulled up by a small number of failures. That is why the page leads with medians and with the share of results inside fixed tolerances.

Breakdowns and methodology of the 400-figure benchmark

Breakdowns

The same metrics, split by what makes a figure hard. "Processed" is the share of figures that returned a result. HR columns only count figures where a hazard ratio could be reconstructed.

Numbers-at-risk table present or absent

Without a table, IPD is reconstructed from the true N per arm (N-only Guyot).

SubgroupFiguresProcessedHR nMedian |ΔlogHR|Mean |ΔlogHR|HR within 10%Median events errorAt-risk cells exact
no table (N supplied)5398%480.06580.098763%24.3%—
with at-risk table347100%3090.00950.081694%0.8%92%

Colour vs black & white

Black & white includes curves separated only by grey level or line style.

SubgroupFiguresProcessedHR nMedian |ΔlogHR|Mean |ΔlogHR|HR within 10%Median events errorAt-risk cells exact
black&white3197%230.04800.692952%5.3%73%
colour369100%3340.01100.041993%1.0%94%

Clean vs degraded images

Degraded = downscaled to 55–100% and/or JPEG quality 55–92.

SubgroupFiguresProcessedHR nMedian |ΔlogHR|Mean |ΔlogHR|HR within 10%Median events errorAt-risk cells exact
clean266100%2440.00930.023694%0.9%96%
degraded (downscaled/JPEG)13499%1130.01670.214180%1.7%85%

Shaded confidence bands

Figures with shaded 95% CI bands around each curve.

SubgroupFiguresProcessedHR nMedian |ΔlogHR|Mean |ΔlogHR|HR within 10%Median events errorAt-risk cells exact
CI bands59100%480.01760.255669%1.8%81%
no CI bands34199%3090.01040.057293%1.0%95%

Number of arms

SubgroupFiguresProcessedHR nMedian |ΔlogHR|Mean |ΔlogHR|HR within 10%Median events errorAt-risk cells exact
2 arms35499%3120.01150.072590%1.1%93%
3 arms46100%450.00960.162684%1.2%92%

Methodology

Simulated trials

Rendering

Held-out protocol

The engine was developed on separate seed ranges. The benchmark reported here uses seeds 7000–7399, generated after development and never used for tuning or threshold selection. Each figure goes through the measurement engine's own code path, with no hints. For figures without an at-risk table, reconstruction uses the true N per arm, as a user would supply it from the paper.

Metric definitions

HR within 5% / 10%
|log(HRreconstructed / HRtrue)| below log(1.05) or log(1.10), comparing arm 2 vs arm 1 on the reconstructed IPD with the same comparison on the true IPD.
|ΔlogHR|
Absolute difference in log hazard ratio. For small values it is roughly the relative HR error (0.01 ≈ 1%).
Curve mean |ΔS|
Per arm: mean absolute difference between the reconstructed and true survival curves over 600 time points from 0 to the end of the plotted curve (an integrated absolute error normalised by time).
Median survival error
Per arm: absolute difference in months between the KM median of the reconstructed and true data, where both are reached within the plotted range.
Events error
Per arm: |eventsreconstructed − eventstrue| / eventstrue, counting true events within the plotted time range.
RMST error
Per arm: |RMSTreconstructed − RMSTtrue| / τ, where τ is the end of the plotted follow-up.
At-risk cells exact / misread
Share of numbers-at-risk cells, within the plotted range, returned with exactly the true value or with a wrong value. The remainder were not returned.
Arm names
Share of arms whose returned name matches the true name, ignoring case, spaces and punctuation.
Processed
Share of figures for which the engine returned a result instead of an error.

Version log and corrections

Every response records the engine version.

Correction, November 2026. Calculators: pasted data with decimal commas, or with status coded 1 and 2, were misread without warning. Fixed; re-run anything pasted before this release. Medians now follow the R and SAS rule when the curve sits exactly at 50%. This page: the first 40 papers are now labelled a development set.

How to cite

TrialCurve (2026). Automated reconstruction of individual patient data from published Kaplan–Meier figures, engine v0.2.0. https://trialcurve.com/accuracy. Benchmark data: benchmark_production.json, benchmark_checks.csv and benchmark.json (CC BY 4.0).

Reproducing the benchmark

The figure generator and scoring harness are not public yet. If you need them to validate this work, email hello@trialcurve.com.

Whole review to do? $49 a figure, checked by a person.

See the validation pack