Automated candidate confounder scoping for adjustment in clinical research: a retrieval-augmented generation approach
BACKGROUND: Identifying confounding variables is fundamental for robust observational studies, yet the traditional manual process is a time-consuming and subjective barrier for researchers. Recent advances in Retrieval-Augmented Generation (RAG) offer a promising solution, but most existing systems rely on full-text access, cloud-hosted APIs, or manually curated knowledge graphs, raising concerns about privacy, copyright, and computational cost, and making local deployment difficult. OBJECTIVE: This study developed and evaluated a heuristic tool to scope candidate confounders for adjustment in observational studies. Using a locally deployed, abstract-only RAG architecture, our tool generates a traceable shortlist of candidate confounders from PICO (Population, Intervention, Comparison, Outcome) queries over medical abstracts. METHODS: We implemented a three-stage architecture for PICO-based scoping of candidate confounder. The pipeline was deployed on an all-in-one local server and evaluated using 1,000 expert-curated PICO queries spanning 20 clinical specialties. Performance was assessed along four dimensions-internal consistency, output volume, efficiency, and clinical acceptance-by a multi-institutional clinician panel, and was compared with a graph-only SemMedDB baseline. RESULTS: Across repeated runs, the pipeline showed high internal consistency (candidate confounder list consistency 94.6%±8.7%; PMID set consistency 79.4%±23.5%). It suggested a median of 6 candidate confounders (IQR 8) for adjustment and retrieved a median of 33 unique PMIDs (IQR 7) per query. Median processing time was 44.50 s (IQR 31.72). Expert review yielded an overall clinical acceptance rate of 87.12%. CONCLUSIONS: In an exploratory capacity, a locally deployed, abstract-only RAG workflow can generate clinically interpretable and traceable candidate confounder suggestions to support early-stage observational study design, particularly in settings with privacy constraints or limited access to full texts and cloud resources. TRIAL REGISTRATION: NA.
Authors
- Yu Lan
- Hanlin Lv (ORCID: https://orcid.org/0000-0002-1876-7846)
- Yinyao Ma (ORCID: https://orcid.org/0000-0002-2755-2169)
- Kesong Wu
- Lei Li
- Ruolin Tao
- Lei Wang (ORCID: https://orcid.org/0000-0002-7584-8802)
- Xiao Wang (ORCID: https://orcid.org/0000-0003-4512-8131)
- Jingjing Li
- Xueqian Zhao
Institutions
- RTX (United States) (US)
- Children's Medical Research Institute (AU)
- The University of Queensland (AU)
- Liuzhou Maternal and Child Health Hospital (CN)
- Southeast University (BD)
- The People's Hospital of Guangxi Zhuang Autonomous Region (CN)
- Guangxi Zhuang Autonomous Region Brain Hospital (CN)
- GlyTech (United States) (US)
- First Affiliated Hospital of Zhengzhou University (CN)
- Southeast University (CN)
Publication Details
- Journal
- BioData Mining
- Published
- 2026-05-16
- DOI
- https://doi.org/10.1186/s13040-026-00562-0
- Primary Topic
- Biomedical Text Mining and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Guangxi Key Research and Development Program