A Multi-Agent System for Autonomous, Fine-Tuning-Free Clinical Symptom Detection: Development and Validation Study

📅 2026-07-14
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge of extracting structured symptom information from unstructured clinical notes, a task hindered by the limitations of existing approaches—either rule-based systems lacking contextual awareness that yield high false-positive rates or learning-based methods requiring extensive annotated data for fine-tuning. To overcome these issues, the authors propose Pythia, a multi-agent system that autonomously generates and refines symptom extraction prompts on locally deployed open-source large language models, eliminating the need for manual prompt engineering or model fine-tuning. The optimal prompt is selected based on sensitivity and specificity evaluated on a development set. This approach achieves state-of-the-art performance without any fine-tuning, attaining average sensitivity of 0.76 and specificity of 0.95 across 72 symptoms—substantially outperforming a fine-tuned BERT model (sensitivity: 0.23)—while maintaining high specificity and strong generalization even for low-prevalence symptoms.
📝 Abstract
Clinical notes contain many of the signs and symptoms that bring patients to care, yet this information rarely reaches structured fields. Existing extraction approaches either rely on context-insensitive rules that generate false positives or on supervised models that require substantial fine-tuning. We present Pythia, a multi-agent system that autonomously writes and optimizes extraction prompts for clinical concepts without manual prompt engineering or fine-tuning. Running on a locally hosted open-weights model, Pythia keeps clinical notes on local infrastructure and selects prompts using development-set sensitivity and specificity. We compared Pythia with a curated lexicon across 72 signs and symptoms from 400 clinical notes representing 387 patients. Development (n=300) and validation (n=100) sets were partitioned independently for each concept. Pythia achieved mean sensitivity of 0.76 and specificity of 0.95, compared with 0.82 and 0.76 for the lexicon, and matched or exceeded the lexicon on both metrics for 20 of 62 directly comparable concepts. For 14 concepts where the lexicon labeled every note positive, Pythia recovered mean specificity of 0.97 by requiring a present-tense, patient-attributed finding rather than any textual mention of a term. Specificity transferred from development to validation with minimal degradation across prevalences, whereas sensitivity transfer weakened below 5% prevalence, reaching a mean gap of 0.25 below 2% prevalence. A BERT classifier fine-tuned per concept on the same development set achieved mean sensitivity of 0.23 and collapsed to zero sensitivity for concepts below roughly 5% prevalence. These findings suggest that autonomous, fine-tuning-free prompt optimization can produce symptom extraction prompts that generalize effectively from development to validation while remaining deployable on local infrastructure.
Problem

Research questions and friction points this paper is trying to address.

clinical symptom detection
information extraction
fine-tuning-free
multi-agent system
structured clinical data
Innovation

Methods, ideas, or system contributions that make the work stand out.

multi-agent system
prompt optimization
fine-tuning-free
clinical symptom extraction
local deployment
🔎 Similar Papers
No similar papers found.
C
Cameron Cagan
Department of Medicine, Massachusetts General Hospital, Boston, MA, USA
P
Pedram Fard
Department of Medicine, Massachusetts General Hospital, Boston, MA, USA
J
Jiazi Tian
Department of Medicine, Massachusetts General Hospital, Boston, MA, USA
J
Jingya Cheng
Department of Medicine, Massachusetts General Hospital, Boston, MA, USA
S
Shawn N. Murphy
Department of Biomedical Informatics and Medical Education, University of Washington, WA, USA
Hossein Estiri
Hossein Estiri
Harvard Medical School
Research InformaticsData ScienceAIDemography