Evidence Hub

PTM-LLM: Matching Eligible Patients to Trials Based on Large Language Models and Retrieval-Augmented Generation

Xiao-Di Li, Shaika Chowdhury, C. Wi, M. Vassilaki, Xiao-Ke Liu, T. Sio, O. Garrick, Y. Juhn et al.

IEEE International Conference on Healthcare Informatics, 2026

Abstract

Patient matching is the process of linking patients to appropriate clinical trials by accurately identifying and matching their medical records with trial eligibility criteria. We propose PTM-LLM, a novel framework for patient matching leveraging fine-tuned open-source large language models. Our method introduces three key innovations: (1) a classification head fine-tuned with structured prompts for accurate binary eligibility prediction, (2) the use of open-source large language models that outperform state-of-the-art closed-source counterparts, and (3) a retrieval-augmented generation (RAG) module that effectively distills relevant patient information from large-scale EHRs. The pipeline consists of four key components. First, a RAG module extracts relevant patient context from a vast pool of electronic health records (EHRs). Second, a prompt generation module constructs input prompts by integrating trial eligibility criteria (both inclusion and exclusion criteria), patient context, and system instructions. Third, a fine-tuning module with a classification head optimizes the model parameters using structured prompts and ground-truth labels. Fourth, an evaluation module assesses the fine-tuned model's performance on the testing datasets. We evaluated PTM-LLM on four open datasets, N2C2, SIGIR, TREC 2021, and TREC 2022, using open-source models, comparing it against TrialGPT, Zero-Shot, and GPT-4-based closed models. PTM-LLM outperformed all baselines.

Read the paper

Related studies

Go deeper in Evidence Hub

Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.

Open this study Sign up free