Evidence map›Paper›PMID 41678526›Full record

ArticlePloS one2026

EC2Seq2Sql: Patient-trial matching with LLM agents.

Liu Yang, Yongzhong Han, Liang Liu, Xiaoyan Jiang, Ying Li, Jihan Huang, Qianmin Su

Abstract read
In one paragraph

Article in PloS one, 2026. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 1 paper.

0numbers the graph read from it
0cells of the map it votes in
1citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

1 citing paper in PubMed.

  1. Article
4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

7 authors.

Liu YangSchool of Electronic and Electrical Engineering, Shanghai University of Engineering Science, Shanghai, China.
Yongzhong HanSchool of Electronic and Electrical Engineering, Shanghai University of Engineering Science, Shanghai, China.
Liang LiuClinical Research Unit, Institute of Clinical Science, Zhongshan Hospital, Fudan University, Shanghai, China.
Xiaoyan JiangSchool of Electronic and Electrical Engineering, Shanghai University of Engineering Science, Shanghai, China.
Ying LiDepartment of Hepatology Longhua Hospital, Shanghai University of Traditional Chinese Medicine, Shanghai, China.
Jihan HuangCenter for Drug Clinical Research, Shanghai University of Traditional Chinese Medicine, Shanghai, China.
Qianmin SuSchool of Electronic and Electrical Engineering, Shanghai University of Engineering Science, Shanghai, China.ORCID https://orcid.org/0000-0002-9885-6485

Funding

No grant is acknowledged in the PubMed record.

6 · The paper itself

Abstract

Timely identification of patients who meet clinical trial eligibility criteria is a persistent bottleneck in trial recruitment because the criteria are written in flexible natural language, while hospital EHRs are stored in structured schemas. To bridge this gap, we propose EC2Seq2Sql, an end-to-end, two-stage framework that automatically converts narrative eligibility criteria into executable SQL queries for EHR-based patient screening. In the first stage, a BART-based semantic parser transforms free-text trial criteria into lightweight structured pattern sequences defined over seven common clinical domains. In the second stage, an LLM-based agent, guided by system- and human-designed prompts, grounds these structured patterns to the target database schema and generates syntactically valid and logically coherent SQL statements. We evaluated the framework on the ClinicalTrials.gov eligibility-criteria dataset and further validated it on a de-identified real-world hepatocellular carcinoma EHR cohort from Zhongshan Hospital, Fudan University. The BART parser outperformed representative Seq2Seq baselines, achieving ROUGE_L 0.8067 and BLEU 0.8427, while the SQL generation stage reached an exact-match accuracy of 0.84 and an execution accuracy of 0.91 after SQL normalization. On the real-world cohort, the generated queries achieved a clinical match accuracy of 0.88 after expert review, indicating that the proposed pipeline can retrieve trial-eligible patients from operational EHR data. These results suggest that EC2Seq2Sql can substantially reduce manual screening effort and provide a reproducible path from narrative criteria to database-level cohort identification, although broader multi-center validation and ontology-based normalization will be needed for large-scale deployment.

Indexed as

Clinical Trials as TopicNatural Language ProcessingPatient SelectionElectronic Health RecordsHumansLarge Language Models

Identifiers

PMID41678526
PMCPMC12900307

What OpenQuestion holds

Textmetadata
LicenceCC BY
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.