[Paper Review] TimeTox: An LLM-Based Pipeline for Automated Extraction of Time Toxicity from Clinical Trial Protocols
TimeTox develops an end-to-end LLM-based pipeline to automatically extract time toxicity from Schedule of Assessments tables in clinical trial protocols, comparing vanilla and two-stage architectures and validating on 644 real-world oncology protocols.
Time toxicity, the cumulative healthcare contact days from clinical trial participation, is an important but labor-intensive metric to extract from protocol documents. We developed TimeTox, an LLM-based pipeline for automated extraction of time toxicity from Schedule of Assessments tables. TimeTox uses Google's Gemini models in three stages: summary extraction from full-length protocol PDFs, time toxicity quantification at six cumulative timepoints for each treatment arm, and multi-run consensus via position-based arm matching. We validated against 20 synthetic schedules (240 comparisons) and assessed reproducibility on 644 real-world oncology protocols. Two architectures were compared: single-pass (vanilla) and two-stage (structure-then-count). The two-stage pipeline achieved 100% clinically acceptable accuracy ($\pm$3 days) on synthetic data (MAE 0.81 days) versus 41.5% for vanilla (MAE 9.0 days). However, on real-world protocols, the vanilla pipeline showed superior reproducibility: 95.3% clinically acceptable accuracy (IQR $\leq$ 3 days) across 3 runs on 644 protocols, with 82.0% perfect stability (IQR = 0). The production pipeline extracted time toxicity for 1,288 treatment arms across multiple disease sites. Extraction stability on real-world data, rather than accuracy on synthetic benchmarks, is the decisive factor for production LLM deployment.
Motivation & Objective
- Motivate the need to quantify patient time burden (time toxicity) from protocol documents.
- Develop an end-to-end pipeline using Gemini models to extract and compute time toxicity from SoA tables.
- Compare single-pass (vanilla) vs two-stage (structure-then-count) extraction architectures.
- Assess production viability via multi-run consensus and real-world protocol deployment.
Proposed method
- Use Google Gemini models for summary extraction of full protocol PDFs.
- Implement two extraction architectures: vanilla single-pass and two-stage structure-then-count.
- Apply a position-based multi-run consensus to mitigate arm-name instability across runs.
- Train and validate on 20 synthetic schedules with ground-truth time toxicity values.
- Process 644 real-world oncology protocols to demonstrate production feasibility.
- Provide open-source code and synthetic ground-truth generator.

Experimental results
Research questions
- RQ1Can an LLM-based pipeline accurately quantify time toxicity from Schedule of Assessments tables?
- RQ2Which architecture (vanilla vs two-stage) yields better accuracy and stability in synthetic vs real-world data?
- RQ3Does a multi-run consensus improve robustness to run-to-run variability in time toxicity extraction?
- RQ4Is production-scale extraction feasible in terms of time, cost, and reproducibility across protocols?
Key findings
- Two-stage extraction yields high synthetic accuracy but poor real-world stability (MAE 0.81 days; Exact Match 0.3%; Clinically Acceptable 100%) on 240 synthetic comparisons.
- Vanilla extraction shows modest synthetic accuracy but strong real-world stability (MAE not stated here; Clinically Acceptable 95.3% across 644 protocols; Perfect Stability 82.0%).
- Production deployment used vanilla with 3-run consensus on 644 protocols, producing time-toxicity data for 1,288 arms.
- Processing time: synthetic summaries 2–3 minutes per protocol; vanilla extraction about 4 minutes per protocol; total ~128 hours for 644 protocols.
- Open-source code and ground-truth generator are available at the TimeTox GitHub repository.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.