TL;DR
Six decades of aging research sit locked inside tens of thousands of published PDFs as wildly formatted survival plots, leaving modern scientists with only a vague impression of past experiments rather than hard numbers. This paper introduces a clever, dirt-cheap pipeline that uses a vision-language model to automatically digitize these lifespan curves for a fraction of a cent per figure. By turning static, dusty graphs back into usable data at a massive scale, we can finally pool, compare, and re-analyze generations of longevity experiments.
What Problem Does This Paper Address?
In aging biology, the gold-standard result of an experiment is the survival curve—tracking how long a cohort of mice, flies, or worms lives under a specific intervention (like dietary restriction or a drug). Yet, researchers rarely publish the raw individual death ages behind those curves. Curated databases usually only record rough summaries, like changes in median lifespan.
If you want to run a rigorous meta-analysis across decades of studies, you have to extract the numbers directly from the published plots. Point-and-click tools are accurate, yet agonizingly slow. Classical automated software requires humans to manually input axis ranges and curve counts, and fails on messy graphs. Meanwhile, recent AI-agent approaches—where frontier models iteratively write and test image-processing code—target clean clinical trial plots and cost several dollars per figure, making them far too expensive to batch-process tens of thousands of diverse, often degraded biology papers spanning back to the 1960s.
Methods
Instead of spinning up an expensive coding agent, the author built a fast, zero-manual-input pipeline centered around a low-cost vision-language model (gpt-5.6-luna) and three lightweight safety nets:
- A Staircase-Focused Prompt: Images are sent with a single structured-output JSON prompt. The model identifies the axes, units, and curve names on its own. Crucially, for standard Kaplan–Meier step curves, the prompt asks the model for the vertical drops (time and survival after the drop) rather than arbitrary points along a line, followed by isotonic regression to ensure survival never ticks upward.
- Panel Splitting: Multi-panel figures confuse vision models. A quick pre-processing vision call detects multi-panel layouts, crops them into separate images, and digitally pastes any shared legends or x-axes underneath each individual panel so ticks stay aligned.
- Classical Hybrid Check: For step plots, the classical R package
SurvdigitizeRis automatically fed the model's axis and curve counts. Its ultra-precise output is kept only if it closely agrees with the LLM's reading; otherwise, it is discarded. - Double-Reading & Ink Verification: Every plot is read twice. An automated script draws both extracted curves back onto the original image (locating axes via Tesseract OCR and line detection) and keeps whichever reading lands closer to the actual dark pixels ("ink") of the graph. If the two readings disagree, stop weirdly early, or miss the ink, the figure is flagged for a quick human check.
Datasets
Because this is a zero-shot prompting pipeline, no training datasets were needed. Evaluation spanned four distinct benchmarks:
- Synthetic Benchmark: 32 regenerated Kaplan–Meier plots following the existing KMGen protocol, incorporating degradations like blur, JPEG compression, annotations, and black-and-white lines.
- Mouse ITP Data: 7 panels (16 curves) from NIA Interventions Testing Program papers, evaluated against ground-truth individual lifespans of 2,332 mice from the Mouse Phenome Database.
- Dryad Multi-Species Data: 14 published images (60 curves) covering flies, voles, worms, and mice made with varied software (Excel, Prism, R), matched to raw datasets deposited on Dryad.
- COLLIDA Historical Literature: Drawn from a volunteer collection of 2,315 aging articles (1940–2022); 129 random papers were used to tune the pipeline, and 62 unseen papers (spanning 1961–2021, many old scans) served as a blind test set.
Key Insights and Ideas
- Layout beats image quality: Surprisingly, blur, compression, and gridlines barely bothered the vision model. Errors were overwhelmingly driven by crowded layouts and multi-panel figures—meaning slicing panels apart and re-attaching shared axes matters far more than endlessly tweaking prompt wording.
- Classical tools fail silently in the wild: On clean synthetic plots, classical digitizing software (
SurvdigitizeR) was pinpoint accurate. On real biology figures, however, it failed to produce output over 90% of the time or merged touching lines without warning. Pairing it with an independent LLM reading gives you precision when it works and safety when it breaks. - Even "ground truth" needs an eye test: When rebuilding curves from raw deposited data, subtle quirks—like how original authors censored worms killed by matricide—caused mismatches with the published graphs. Overlaying rebuilt ground truth directly onto the original PDF figure is essential for honest benchmarking.
Key Results
Accuracy is measured via Integrated Absolute Error (IAE)—essentially the average deviation between the extracted and true curves as a fraction of the total plot area.
- Cost & Speed: Processing costs $0.001–$0.003 per figure (roughly 1.5 cents for a whole article), making it ~1,150x cheaper than running the Claude Opus-based KMGen coding agent (mean $2.88/plot).
- Synthetic Plots: Achieved a mean IAE of 0.015 (1.5% of plot area), matching KMGen's overall benchmark average at a thousandth of the price (though KMGen remained twice as precise on clean, high-step-count plots).
- Real Figures: Reached a mean IAE of 0.016 on ITP mouse curves and 0.022 across the multi-species Dryad plots—deviating from true individual data by ~2% on average.
- Historical Literature: Across 99 mammalian survival plots from 1961–2021, 97% (96/99) were extracted correctly. The 3 clear failures were all successfully caught inside the 29% of figures automatically flagged for human review, leaving zero clear failures among the 70 unflagged plots.
Limitations and Future Work
The real-data benchmarks are relatively small (21 images) and skew toward modern, cleaner open-access papers. While the historical test set tackled older scans, it lacked raw individual data and relied on visual verification. Furthermore, the ink-matching heuristic fixes shifted axes well, yet cannot notice a completely missed curve or untangle which of two crisscrossing lines belongs to which group. It also relies on a proprietary OpenAI model that could change over time.
Next steps include feeding figure captions and article text into the prompt (to catch missing legends or cohort starting ages), picking the best reading curve-by-curve rather than whole-figure, and running a lightweight, low-cost coding agent strictly on the ~30% of flagged plots before reconstructing individual animal lifespans across the entire aging literature.
Summary updated