Publication
March 2026
Original vs. Agentic Approach: Cancer Patient Cohort
Both the original TrialGPT approach described in the TrialGPT paper (original) and the Health Universe agentic approach (agentic) achieved identical discriminative ability for trial eligibility (ROC AUC = 0.736 for both arms). When the two approaches disagree, ground truth adjudication shows the Agentic approach is correct 69% of the time (20/29 divergent cases with ground truth).
Our agentic pipeline matches TrialGPT's output at 89.9% concordance while adding structured clinical interpretability. Independent LLM-as-judge evaluation corroborates this: agentic reasoning was preferred in 60% of divergent cases (9 of 15).
The ground truth evaluation was underpowered, with only 176 trial pairs, representing 2.5% of the paired dataset. In this setting, Agentic achieves PR AUC = 0.38 vs. Original 0.30 (27% improvement), but additional evaluation could be done if larger ground truth data sets were available.
Equivalent discriminative ability
ROC AUC = 0.736 for both arms on eligible-vs-not — identical ability to rank eligible trials above ineligible ones.
Agentic wins divergent cases
When the arms disagree and ground truth is available, Agentic is correct in 20/29 divergent patient-trial pairs with ground-truth labels (69%) vs. Original 9/29 (31%).
Better precision-recall tradeoff
Agentic PR AUC = 0.38 vs. Original 0.30 (27% improvement) for the binary eligibility question.
Conservative top-tier scoring
Agentic produces 37% fewer strong matches (100 vs. 158) but nearly identical moderate matches (705 vs. 726) — fewer false-positive strong matches.
Clinical workflow advantage
Higher precision (0.40 vs. 0.33) and accuracy (0.82 vs. 0.76) mean fewer false positives for clinicians to review. Structured fact sheets add interpretability without degrading accuracy.
TrialGPT (Jin et al., Nature Communications 2024; DOI: 10.1038/s41467-024-53081-z) is an end-to-end framework for patient-to-trial matching using large language models, comprising three modules: TrialGPT-Retrieval, TrialGPT-Matching, and TrialGPT-Ranking. It was originally evaluated on 183 synthetic patients across three cohorts (SIGIR 2016, TREC CT 2021, TREC CT 2022) with over 75,000 trial annotations.
We evaluate our agentic oncology pipeline on oncology-specific patients against this baseline. The agentic approach adds a structured patient summarization step upstream of the matching algorithm, producing a Patient Fact Sheet that organizes clinical information into standardized categories before trial matching. This evaluation tests whether this additional processing improves or maintains matching quality on a subset of cancer patients.
We anchored our dataset to the original TrialGPT study data sets. Our study focused on cancer patients and cancer-related clinical trials. Using the original data sources for TrialGPT, we identified 17 oncology patients and 417 cancer-related clinical trials. These formed the basis of the data for our trial.
We created a two-arm evaluation using 17 cancer patients and 417 cancer-related clinical trials extracted from the original TrialGPT datasets:
Arm 1 (Original)
Standard TrialGPT matching pipeline applied directly to patient queries.
Arm 2 (Agentic)
Patient queries processed through our oncology summarization pipeline to produce structured fact sheets, then matched against the same trial corpus.
| Cohort | Patients |
|---|---|
| SIGIR 2016 | 3 |
| TREC 2021 | 12 |
| TREC 2022 | 2 |
| Total | 17 |
Both the Original and Agentic pipelines use OpenAI GPT-4o as the underlying large language model for all matching, scoring, and reasoning steps. The original TrialGPT paper reports results using GPT-4; our reproduction of the Original pipeline uses GPT-4o to ensure a controlled comparison between arms. The LLM-as-Judge evaluation uses GPT-5 as an independent adjudicator.
With 17 patients and 417 trials, the total number of possible matches is 7,089. We categorized each match as not a match, a weak match, a moderate match, or a strong match. While the agentic approach was more conservative with fewer stronger matches (100 vs. 158), it had nearly identical moderate matches (705 vs. 726) — more conservative top-tier scoring with fewer false-positive strong matches.
Score distribution by category. Agentic produces 37% fewer strong matches (100 vs. 158) with nearly identical moderate matches (705 vs. 726).
| Category | Original | Agentic |
|---|---|---|
| ≥ 2.0 (Strong) | 158 | 100 |
| 1.0–2.0 (Moderate) | 726 | 705 |
| 0.0–1.0 (Weak) | 2,022 | 2,020 |
| < 0.0 (Not a match) | 4,172 | 4,264 |
Agreement at four score thresholds. Cohen’s Kappa at the moderate match threshold (≥ 1.0) is 0.519 (“moderate agreement”, Landis & Koch 1977). Concordance of 89.9% means the two approaches agree on binary match/no-match for nearly 9 in 10 patient-trial pairs.
| Threshold | Concordance | Cohen's Kappa | Interpretation | Agreement F1 |
|---|---|---|---|---|
| ≥ 0.0 | 0.733 | 0.446 | Moderate | 0.670 |
| ≥ 1.0 | 0.899 | 0.519 | Moderate | 0.576 |
| ≥ 1.5 | 0.973 | 0.537 | Moderate | 0.550 |
| ≥ 2.0 | 0.983 | 0.519 | Moderate | 0.527 |
Concordance
Cohen's Kappa
Agreement F1
≥ 0.0
0.733
0.446
0.670
≥ 1.0
0.899
0.519
0.576
≥ 1.5
0.973
0.537
0.550
≥ 2.0
0.983
0.519
0.527
Agreement metrics heatmap. Concordance rises toward 1.0 at high thresholds while Kappa plateaus, indicating real but limited agreement on strong-match classification.
GPT-5 evaluated 15 patient-trial pairs with the largest score divergence between approaches, assessing clinical reasoning quality on a 1–5 scale.
| Verdict | Count | Mean Clinical Soundness (1–5) |
|---|---|---|
| Original preferred | 6 | 2.47 |
| Agentic preferred | 9 | 3.00 |
| Tie | 0 | — |
The Agentic approach was preferred in 9 of 15 cases (60%). The following vignettes illustrate the most clinically significant divergences.
Patient trec-202111 is a 75-year-old male with metastatic papillary thyroid cancer. Original scored 2.6 (strongly eligible) for NCT02375451, a pediatric radioiodine study. Agentic correctly scored −0.5, recognizing the pediatric design makes this elderly patient clearly ineligible.
The trial targets patients who received radioiodine therapy in childhood/pediatric populations, whereas the patient is 75 years old. System A overlooks this key age-related criterion and declares eligibility, while System B correctly flags the pediatric focus and infers ineligibility based on age.
Patient trec-202167 is a 54-year-old woman with cervical dysplasia. Original scored −0.0 by misinterpreting a “women ≥ 40” inclusion criterion as an exclusion criterion. Agentic correctly scored 2.9, recognizing clear eligibility.
System A makes a critical error by treating age ≥ 40 as an exclusion criterion, contradicting the trial design. System B correctly interprets the criteria. Overall, B's reasoning is more clinically sound.
Patient trec-20214 was evaluated for NCT01803022, a trial requiring VTE diagnosis and LMWH treatment. Original scored 2.90 (strongly eligible) despite the patient lacking the required VTE diagnosis. Agentic scored −0.33, correctly identifying the required conditions are absent.
The trial requires a recent VTE and treatment with LMWH. System A overinterprets eligibility by equating DVT history with recent VTE without verifying LMWH use. System B appropriately flags the missing key criteria.
Patient trec-202113 is a 62-year-old male with non-Hodgkin lymphoma, SLE, diabetes, and hepatitis C — the most divergent patient (ρ = 0.41). For NCT01737567, Original scored 2.6 while Agentic scored −1.0. The approaches diverge on missing information: Original tends to assume missing data implies eligibility; Agentic treats missing critical information as grounds for caution.
System B correctly withholds inclusion due to lack of evidence the patient is undergoing a screening colonoscopy, whereas System A incorrectly assumes this criterion is met. Although B overstates ineligibility, its assessment is more cautious and clinically sound.
Ground-truth relevance judgments (qrels) from the TREC and SIGIR shared tasks provide an external benchmark. Labels: 0 = irrelevant, 1 = excluded (right condition but failing specific criteria), 2 = eligible.
01
176 patient-trial pairs have ground truth annotations out of ~7,078 total (2.5% coverage).
02
Ground truth results are informative but underpowered. All GT metrics should be interpreted with this constraint.
03
Coverage spans: SIGIR 2016 (3 patients, 121 pairs), TREC 2021 (7 patients, 46 pairs), TREC 2022 (2 patients, 9 pairs).
Normalized Discounted Cumulative Gain (NDCG)@10 and related ranking metrics. Original achieves slightly higher NDCG@10 (0.627 vs. 0.604), driven by aggressive scoring of excluded trials.
| Arm | NDCG@10 | P@5 | P@10 | R@10 | R@20 | MAP |
|---|---|---|---|---|---|---|
| Original | 0.627 | 0.250 | 0.175 | 0.458 | 0.475 | 0.335 |
| Agentic | 0.604 | 0.233 | 0.158 | 0.408 | 0.458 | 0.313 |
Binary classification metrics (eligible = 2 vs. not eligible = 0+1) at threshold ≥ 1.0. Original has higher recall (0.615 vs. 0.462) but lower precision (0.327 vs. 0.400) and lower accuracy (0.756 vs. 0.818).
| Arm | TP | FP | FN | TN | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|---|
| Original | 16 | 33 | 10 | 117 | 0.327 | 0.615 | 0.427 | 0.756 |
| Agentic | 12 | 18 | 14 | 132 | 0.400 | 0.462 | 0.429 | 0.818 |
The Agentic approach misses more eligible trials but when it says “match” it is more likely to be correct. At the ≥ 1.0 threshold, Original generates 33 false positives per 176 trials (19%) vs. Agentic's 18 (10%). In a workflow with 400+ trials per patient, that translates to roughly 15 fewer irrelevant trial reviews per patient with the Agentic approach.
There is an apparent contradiction between the two arms' metrics: Original has higher NDCG@10 (0.627 vs. 0.604) but Agentic has higher PR AUC for eligible-vs-not (0.38 vs. 0.30, a 27% improvement). The NDCG uses graded relevance (0/1/2) and rewards ranking excluded (label = 1) trials higher — something Original does more aggressively (mean score for excluded trials: +0.105 vs. Agentic's −0.379). For the binary clinical question “is this patient eligible?” the Agentic approach is actually better.
| Label | Arm | N | Mean Score | Median | % Moderate | % Extreme |
|---|---|---|---|---|---|---|
| Irrelevant (0) | Original | 79 | −0.009 | −0.26 | 12.7% | 20.3% |
| Irrelevant (0) | Agentic | 79 | −0.157 | −0.50 | 7.6% | 22.8% |
| Excluded (1) | Original | 71 | +0.105 | +0.03 | 26.8% | 18.3% |
| Excluded (1) | Agentic | 71 | −0.379 | −0.67 | 8.5% | 22.5% |
| Eligible (2) | Original | 26 | +1.145 | +1.21 | 26.9% | 46.2% |
| Eligible (2) | Agentic | 26 | +0.810 | +0.54 | 15.4% | 38.5% |
Key insight: Original scores excluded (label = 1) trials at mean = +0.105, nearly identical to its irrelevant trial mean (−0.009). It effectively cannot distinguish excluded from irrelevant. Agentic pushes excluded trials much lower (−0.379). This mechanism — not superior clinical accuracy — explains Original's higher NDCG.
Mean score by ground-truth label. Original scores excluded trials nearly identically to irrelevant (mean +0.105 vs. −0.009). Agentic pushes excluded trials much lower (−0.379), creating clearer separation.
Eligible vs. Not
Relevant vs. Irrelevant
ROC curves vs. ground truth. Left: eligible vs. not — both arms achieve identical AUC = 0.736. Right: relevant vs. irrelevant — both near chance (0.595 and 0.509), confirming neither approach separates excluded from irrelevant trials.
Original
Pred +
Pred −
Actual +
16
TP
10
FN
Actual −
33
FP
117
TN
Agentic
Pred +
Pred −
Actual +
12
TP
14
FN
Actual −
18
FP
132
TN
Confusion matrices vs. ground truth at threshold = 1.0. Agentic produces fewer false positives for irrelevant (10 vs. 16) and excluded (8 vs. 17) trials, at the cost of more false negatives among eligible trials (14 vs. 10).
Of 715 divergent pairs, 29 have ground truth labels. Agentic matches ground truth 69% of the time in these cases.
| Category | Count |
|---|---|
| Total divergent pairs | 715 |
| With ground truth | 29 |
| Original correct | 9 (31%) |
| Agentic correct | 20 (69%) |
| Neither correct | 0 |
| Both correct | 0 |
At the clinically meaningful threshold of 1.0, concordance was 89.9% with Cohen's Kappa of 0.519 (“moderate agreement”). The Agentic approach produced scores that were on average 0.031 points lower than the Original (p < 0.001), reflecting its more conservative approach to eligibility scoring.
On the oncology subset, both approaches achieve identical discriminative ability (ROC AUC = 0.736) for eligible-vs-not classification. The Agentic approach shows a 27% improvement in PR AUC (0.38 vs. 0.30; n = 176 trial pairs), indicating a better precision-recall tradeoff for the binary eligibility question. When the two approaches diverge, Agentic matches ground truth 69% of the time.
The NDCG advantage for Original (0.627 vs. 0.604) is explained by its more aggressive scoring of excluded (label = 1) trials — behavior that inflates graded relevance metrics but is not clinically desirable.
01
Our pipeline matches TrialGPT output with 89.9% concordance at the moderate-match threshold.
02
Against expert ground truth (n=176), both arms achieve identical ROC AUC = 0.736.
03
Agentic achieves higher precision (0.40 vs. 0.33) and accuracy (0.82 vs. 0.76) on the binary eligibility task.
04
When approaches diverge, Agentic is correct 69% of the time (20/29 divergent patient-trial pairs with ground-truth labels).
05
Agentic shows 27% improvement in PR AUC (0.38 vs. 0.30) for the clinically actionable binary eligibility question.
06
Structured fact sheets add interpretability and auditability without degrading accuracy.
The structured fact sheet layer adds clinical interpretability without degrading — and in the key PR AUC metric, improving — matching accuracy. On the oncology subset, our pipeline demonstrates equivalent or superior performance against expert ground truth, with a more conservative scoring profile that produces higher precision and fewer false-positive strong matches. These characteristics are desirable for clinical deployment, where clinician time is limited and false positives carry real workflow costs.
Small sample size
Limiting the patients to only cancer patients (17) provides limited statistical power for detecting subtle differences.
Synthetic patients
Test patients are from SIGIR/TREC shared tasks and may not fully represent real clinical complexity.
Partial ground truth coverage
Ground truth covers only 2.5% of patient-trial pairs (176 of ~7,078). Ground truth analyses are informative but underpowered.
Data completeness
Four patients in the Original arm had 1–4 missing trials due to API rate limits; impact is negligible.
Jin, Q., et al. (2024). Matching patients to clinical trials with large language models. Nature Communications, 15, 9074. DOI: 10.1038/s41467-024-53081-z
©2026 Health Universe, Inc. Confidential. All rights reserved.