序列化策略至关重要:FHIR数据格式如何影响LLM药物重整
Serialisation Strategy Matters: How FHIR Data Format Affects LLM Medication Reconciliation
AI总结:
研究探讨FHIR数据序列化对LLM药物重整性能的影响,发现临床叙述格式在小模型中表现更优,而大模型更倾向使用原始JSON,揭示了序列化策略对临床安全审计的重要性。
摘要:
在临床交接过程中,药物重整是一个高风险且易出错的过程。大型语言模型越来越多地被提议通过FHIR结构化的患者记录来协助此任务,但一个基本且鲜有研究的变量是如何在传递给模型之前对FHIR数据进行序列化。我们首次系统比较了四种FHIR序列化策略(原始JSON、Markdown表格、临床叙述和时间线)在五个开放式权重模型(Phi-3.5-mini、Mistral-7B、BioMistral-7B、Llama-3.1-8B、Llama-3.3-70B)上的表现,基于200个合成患者的数据集,总计4000次推理运行。我们发现,序列化策略对8B参数以下的模型性能有显著影响:临床叙述在Mistral-7B上比原始JSON高出19个F1点(r=0.617,p<10^{-10})。这种优势在70B模型中逆转,原始JSON在70B以上模型中达到最佳的平均F1值0.9956。所有20种模型和策略组合中,平均精度均超过平均召回率:遗漏是主要的失败模式,模型更常遗漏活跃药物而非伪造,这改变了临床安全审计优先级的设定。小型模型在约7-10个同时活跃药物上达到平台期,留下多药治疗患者,这些患者最易受重整错误影响,系统性地被忽视。BioMistral-7B,一个未经过指令微调的领域预训练模型,在所有条件下均无法生成可用输出,表明仅领域预训练不足以实现结构化提取。这些结果为临床LLM部署提供了实用的、基于证据的格式建议:对于8B以下模型使用临床叙述,70B及以上使用原始JSON。完整的流程可在开源工具上通过AWS g6e.xlarge实例(NVIDIA L40S,48GB VRAM)复现。
英文摘要:
Medication reconciliation at clinical handoffs is a high-stakes, error-prone process. Large language models are increasingly proposed to assist with this task using FHIR-structured patient records, but a fundamental and largely unstudied variable is how the FHIR data is serialised before being passed to the model. We present the first systematic comparison of four FHIR serialisation strategies (Raw JSON, Markdown Table, Clinical Narrative, and Chronological Timeline) across five open-weight models (Phi-3.5-mini, Mistral-7B, BioMistral-7B, Llama-3.1-8B, Llama-3.3-70B) on a controlled benchmark of 200 synthetic patients, totalling 4,000 inference runs. We find that serialisation strategy has a large, statistically significant effect on performance for models up to 8B parameters: Clinical Narrative outperforms Raw JSON by up to 19 F1 points for Mistral-7B (r = 0.617, p < 10^{-10}). This advantage reverses at 70B, where Raw JSON achieves the best mean F1 of 0.9956. In all 20 model and strategy combinations, mean precision exceeds mean recall: omission is the dominant failure mode, with models more often missing an active medication than fabricating one, which changes how clinical safety auditing priorities should be set. Smaller models plateau at roughly 7-10 concurrent active medications, leaving polypharmacy patients, the patients most at risk from reconciliation errors, systematically underserved. BioMistral-7B, a domain-pretrained model without instruction tuning, produces zero usable output in all conditions, showing that domain pretraining alone is not sufficient for structured extraction. These results offer practical, evidence-based format recommendations for clinical LLM deployment: Clinical Narrative for models up to 8B, Raw JSON for 70B and above. The complete pipeline is reproducible on open-source tools running on an AWS g6e.xlarge instance (NVIDIA L40S, 48 GB VRAM).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。