Skip to main content
QUICK REVIEW

[Paper Review] End-To-End Clinical Trial Matching with Large Language Models

Dyke Ferber, Lars Hilgers|arXiv (Cornell University)|Jul 18, 2024
Statistical Methods in Clinical TrialsMathematics13 citations
TL;DR

The paper presents an end-to-end pipeline using GPT-4o to search worldwide oncology trials and perform criterion-level eligibility matching against patient EHRs, achieving high accuracy and outperforming expert physicians in some tasks.

ABSTRACT

Matching cancer patients to clinical trials is essential for advancing treatment and patient care. However, the inconsistent format of medical free text documents and complex trial eligibility criteria make this process extremely challenging and time-consuming for physicians. We investigated whether the entire trial matching process - from identifying relevant trials among 105,600 oncology-related clinical trials on clinicaltrials.gov to generating criterion-level eligibility matches - could be automated using Large Language Models (LLMs). Using GPT-4o and a set of 51 synthetic Electronic Health Records (EHRs), we demonstrate that our approach identifies relevant candidate trials in 93.3% of cases and achieves a preliminary accuracy of 88.0% when matching patient-level information at the criterion level against a baseline defined by human experts. Utilizing LLM feedback reveals that 39.3% criteria that were initially considered incorrect are either ambiguous or inaccurately annotated, leading to a total model accuracy of 92.7% after refining our human baseline. In summary, we present an end-to-end pipeline for clinical trial matching using LLMs, demonstrating high precision in screening and matching trials to individual patients, even outperforming the performance of qualified medical doctors. Our fully end-to-end pipeline can operate autonomously or with human supervision and is not restricted to oncology, offering a scalable solution for enhancing patient-trial matching in real-world settings.

Motivation & Objective

  • Demonstrate an end-to-end pipeline that maps a patient EHR to suitable oncology trials from ClinicalTrials.gov.
  • Hybridize No-SQL and vector similarity search to efficiently retrieve relevant trials.
  • Use an LLM to perform criterion-level eligibility checks with structured, verifiable outputs.
  • Provide criterion-level explanations and enable human-AI collaboration to refine ground truth.

Proposed method

  • Construct a hybrid database (MongoDB + ChromaDB) to support exact-criterion and vector-based retrieval.
  • Embed trial text with BAAI/bge-large-en-v1.5 (768-dim) and split text with 50-token overlap for vector search.
  • Use GPT-4o to generate No-SQL queries and to perform multi-step, programmatic trial filtering.
  • Represent eligibility criteria as structured, nested programming objects and evaluate patient data against them.
  • Provide criterion-level True/False/Unknown outputs with explanations via chain-of-thought style reasoning.
  • Evaluate AI against a human baseline of five oncologists and iteratively refine ground truth using AI feedback.

Experimental results

Research questions

  • RQ1Can GPT-4o correctly identify a pool of candidate trials from over 100k oncology trials for a given patient EHR?
  • RQ2Can the system accurately assess eligibility criteria at the single-criterion level and provide explanations?
  • RQ3Does the end-to-end pipeline match or exceed human expert performance in trial matching and criterion evaluation?
  • RQ4Is a programmatic, structured output approach more reliable and transferable than free-text prompts for eligibility assessment?
  • RQ5What is the impact of human-AI iterative refinement on ground-truth accuracy?

Key findings

  • The pipeline retrieved relevant, human-preselected trials in 93.3% of test cases (15 base cases).
  • Initial criterion-level matching achieved 88.0% accuracy (1,398/1,589 criteria) against human evaluation.
  • Refining human ground truth with AI feedback raised overall accuracy to 92.7%.
  • GPT-4o alone produced 39.3% amendments to human decisions after review, indicating substantial potential for AI-assisted corrections.
  • Top-5 and top-10 ranking captured 10/15 and 14/15 target trials respectively in the final candidate set.
  • The approach demonstrated high precision in end-to-end trial matching and is not intrinsically cancer-restricted.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.