基于患者相似群体的临床文本到SQL推理
Patient-Similarity Cohort Reasoning in Clinical Text-to-SQL
AI总结:
CLINSQL基准测试集通过多表连接、临床意义过滤和多步骤查询,推动临床可靠的文本到SQL系统发展。
摘要:
现实中的临床文本到SQL需要在异构的电子病历表、时间窗口和患者相似群体之间进行推理,以生成可执行的查询。我们引入了CLINSQL,这是一个包含633个专家标注任务的基准测试集,基于MIMIC-IV v3.1,要求多表连接、具有临床意义的过滤器和可执行的SQL。解决CLINSQL需要导航模式元数据和临床编码系统,处理长上下文,并生成超越传统文本到SQL的多步骤查询。我们评估了22个专有和开源模型,在链式思维自我反思下,并使用基于评分的SQL分析和执行检查,优先考虑关键的临床需求。尽管取得了最近的进步,但性能仍然远离临床可靠性:在测试集上,GPT-5-mini达到74.7%的执行评分,DeepSeek-R1在开源中领先于69.2%,而Gemini-2.5-Pro从Easy上的85.5%降至Hard上的67.2%。在CLINSQL上的进展标志着朝着实际电子病历分析中可靠文本到SQL的实质性进步。
英文摘要:
Real-world clinical text-to-SQL requires reasoning over heterogeneous EHR tables, temporal windows, and patient-similarity cohorts to produce executable queries. We introduce CLINSQL, a benchmark of 633 expert-annotated tasks on MIMIC-IV v3.1 that demands multi-table joins, clinically meaningful filters, and executable SQL. Solving CLINSQL entails navigating schema metadata and clinical coding systems, handling long contexts, and composing multi-step queries beyond traditional text-to-SQL. We evaluate 22 proprietary and open-source models under Chain-of-Thought self-refinement and use rubric-based SQL analysis with execution checks that prioritize critical clinical requirements. Despite recent advances, performance remains far from clinical reliability: on the test set, GPT-5-mini attains 74.7% execution score, DeepSeek-R1 leads open-source at 69.2% and Gemini-2.5-Pro drops from 85.5% on Easy to 67.2% on Hard. Progress on CLINSQL marks tangible advances toward clinically reliable text-to-SQL for real-world EHR analytics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。