arXiv:2610.29122cs.AIOct 2026

Manuscript Offprint

arXiv:2610.29122

StochIKM: Automated High-Fidelity Reconstruction of Individual Patient Data from Published Kaplan-Meier Curves

Liangze Ke, Daniel Zelterman, Wei Wei, Guannan Gong

Liangze Ke 1^{1} | Wei Wei 2^{2} | Guannan Gong 3^{3} | Daniel Zelterman 1^{1}

1^{1}Department of Biostatistics, School of Public Health, Yale University, New Haven, CT 06520, USA | 2^{2}Section of Medical Oncology, Yale School of Medicine and Yale Cancer Center, Yale University, New Haven, CT 06520, USA | 3^{3}Department of Medicine, Yale University School of Medicine and Yale Cancer Center, New Haven, CT 06520, USA

Correspondence: Wei Wei (wei.wei@yale.edu) and Guannan Gong (guannan.gong@yale.edu)

ABSTRACT

Individual patient data are the gold standard for secondary analysis of time-to-event evidence, but they are rarely released, and reconstruction from a published Kaplan–Meier figure could help. Existing methods all claim high fidelity, each judged by whichever agreements it happens to achieve, and each returns a single dataset although the map from figure to data is not bijective. We define fidelity explicitly: a dataset is admissible when it reproduces the risk table exactly, follows the digitized curve to within the image resolution, and respects the printed median, interval and event count. We propose StochIKM, a stochastic algorithm that digitizes the figure with a vision-capable language model and uses the high-fidelity definition as constraints, returning an admissible set of individual patient datasets. A solution is guaranteed to exist whenever the figure has been read correctly, so a failure indicts either the published figure or its digitization. In simulation and in 79 arms from published oncology trials, StochIKM reproduces the published risk tables and medians more closely than LLM-improved IPDfromKM (Liu et al., 2021), a high-impact alternative.

1 | Introduction

Individual patient data (IPD) are the currency of meta-analysis. For studies reporting time-to-event outcomes, access to IPD enables individual-participant-data meta-analysis (Stewart and Tierney, 2002; Riley et al., 2010); assessment of modelling assumptions (Royston and Parmar, 2013; Uno et al., 2014) and sensitivity analysis; extrapolation beyond the observed follow-up for the evaluation of health technologies (Latimer, 2013); hypothesis generation for future studies; and emulation of randomized comparisons between treatments never studied head to head (Hernán and Robins, 2016; Rahman et al., 2023).

The original IPD, however, are rarely accessible because of confidentiality and proprietary considerations. Even where data-sharing platforms exist, requests are often fulfilled for only a small number of applicants (Krumholz and Waldstreicher, 2016; Danchev et al., 2021). Reconstructing IPD from the published Kaplan–Meier (K–M) curve offers a promising alternative, but the quality of such synthetic IPD is not guaranteed and requires careful evaluation. Where a ground truth is observed, as in supervised learning, accuracy is the distance from the truth. As the true IPD are rarely available, the question becomes how completely a reconstruction agrees with what the publication reports. Faith is “the evidence of things not seen” (Heb. 11:1, KJV). In information theory, fidelity is defined as the expected distortion between a source and its reproduction under a stated distortion measure, and a code is judged against a fidelity criterion fixed in advance (Shannon, 1959; Berger, 1971). Although authors who reconstruct K–M figures have measured fidelity in different ways, the idea beneath is common to all: a reconstruction is faithful to the extent that it reproduces what the original publication reported.

Recovering information from published survival curves is not new. Parmar et al. (1998) and Tierney et al. (2007) showed how a hazard ratio and its variance could be recovered from a published curve together with the reported numbers at risk. Guyot et al. (2012) introduced an algorithm that inverts the K–M product-limit formula one risk-table interval at a time, assuming that

Preprint, 2026

1 of 10 censoring is spread uniformly within each interval, and so produces a complete set of event and censoring times. Liu et al. (2021) refined that algorithm, correcting a boundary condition so that the K–M curve is mathematically plausible, and developed software that clinicians could use. Since then, reporting standards have improved the quality of survival figures (Pocock et al., 2002; Morris et al., 2019), and vision-capable large language models (LLMs) are able to parse the elements of a figure simply by prompt engineering (Masry et al., 2022). These developments reduce the burden of extracting information from published figures but do not resolve the statistical ambiguity inherent in reconstructing patient-level records from aggregate survival data.

Three methodological challenges remain. First, fidelity has been checked as an afterthought, against inconsistent criteria: agreement with the plotted curve and the hazard ratio (Guyot et al., 2012); with reported events, numbers at risk, survival probabilities and medians (Liu et al., 2021); or with a synthetic ground truth (Zhao et al., 2025), rather than enforced as part of the reconstruction. Some reconstructed IPD therefore do not agree with the published risk table (Guyot et al., 2012; Liu et al., 2021). Second, a published K–M curve does not identify the original IPD uniquely. Missing or overlapping censoring marks, sparse risk tables and the finite resolution of the figure admit many event and censoring configurations. Reported confidence intervals for the median carry additional information about sampling variability, but existing methods neither use them as constraints nor return more than a single IPD. Third, reconstruction depends heavily on digitization. Manual digitization is labor-intensive and prone to operator error (Liu et al., 2021), whereas automated extraction may degrade when figures are low-resolution rasters, curves overlap, or arms are distinguished only by line type or similar colours (Zhao et al., 2025).

To address these limitations, we propose StochIKM, an automated stochastic algorithm for generating high-fidelity IPD from published K–M curves. StochIKM makes three contributions to the three challenges. First, it defines fidelity by three constraints: each admissible IPD must reproduce the reported numbers at risk exactly, remain within a prespecified maximum absolute deviation from the extracted K–M curve, and agree within prespecified tolerances with the reported number of events, median survival and its confidence interval, when available. StochIKM enforces them within its loop. Second, StochIKM generates a set of Ω\Omega admissible datasets rather than one, so that the uncertainty of reconstruction can be propagated into downstream analysis. Third, under idealized conditions of internally consistent reporting, an error-free K–M figure and exact extraction of the plotted information, we establish the existence of at least one dataset satisfying the fidelity criteria.

References (49)