PTM-LLM: Matching Eligible Patients to Trials Based on Large Language Models and Retrieval-Augmented Generation
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
- Animal models of schizophrenia
- Retrieval Augmented Visual Question Answering with Outside Knowledge
- Fine-grained Late-interaction Multi-modal Retrieval for Retrieval Augmented Visual Question Answering
- Understand What LLM Needs: Dual Preference Alignment for Retrieval-Augmented Generation
- Retrieval-Augmented Embodied Agents
- Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation
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.