Medi-Gemma融合结构化数据与检索增强生成,提升临床决策可信度。
Medi-Gemma: A Hybrid Clinical Decision Support System Integrating Deterministic EMR Analytics and Retrieval-Augmented Generation
- 分阶段架构分离数据处理与推理,确保可追溯性
- 通过真实数据注入提升生成内容准确性,避免幻觉
- 适合需高可靠性的医疗决策系统开发者或研究者
在高风险临床场景中部署大语言模型仍受限于结构化幻觉、对表格患者数据的弱确定性推理及向量检索遗漏。本文提出Medi-Gemma临床决策支持系统,用于伤口病理分诊与工作流自动化。该平台采用解耦框架,将临床感知与数据调度分离,同时保持可追溯推理。Medi-Gemma通过中心化ClinicalOrchestrator协调多阶段流程:DataManager负责清洗非结构化电子病历(EMR)文件,执行类型强制转换;IntentRouter以层次化方式将自然语言查询路由至由PandasQueryEngine执行的确定性分析路径,或由ClinicalRAGEngine管理的患者特定推理路径,后者使用优化于CPU的向量存储。关键贡献为真值注入模块(Ground Truth Injection Module),其拦截患者特异性查询,提取数值识别标记,通过Pandas查询结构化数据框,获取最新验证的临床状态,并将该快照作为覆盖上下文块嵌入LLM提示前。安全合规由ProtocolManager实现,其将临床术语映射到固定证据路径,安全验证器则防止输出违规。验证表明,该架构消除语义上下文漂移,避免数据库编译崩溃,显著提升对后端临床资源的事实遵循性。结果支持Medi-Gemma作为结构数据保真、检索接地与确定性防护至关重要的LLM临床决策支持的安全范式。
原文摘要 · Abstract (English)
Deploying Large Language Models (LLMs) in high-stakes clinical settings remains limited by structural hallucinations, weak deterministic reasoning over tabular patient data, and omissions in vector retrieval. This paper presents the architecture and validation of Medi-Gemma, a Clinical Decision Support System (CDSS) for wound pathology triage and workflow automation. The platform introduces a decoupled framework that separates clinical perception from data orchestration while preserving traceable reasoning. Medi-Gemma uses a multi-stage pipeline coordinated by a centralized ClinicalOrchestrator. Data requests are handled without generative inference by a DataManager that cleans unstructured Electronic Medical Record (EMR) files through type coercion. Natural language queries are processed by a hierarchical IntentRouter, which routes requests to deterministic analytics paths executed by a PandasQueryEngine or to patient-specific reasoning managed by a ClinicalRAGEngine using a CPU-optimized vector store. A key contribution is the Ground Truth Injection Module, which intercepts patient-specific queries, extracts numeric identification tokens, queries the structured dataframe via Pandas, retrieves the latest validated clinical state, and embeds this snapshot as an overriding context block in the LLM prompt before generation. Safety compliance is enforced by a deterministic ProtocolManager that maps clinical terminology to fixed evidence-based risk pathways, while a SafetyVerifier phrase filter prevents output rule violations. Validation shows that this architecture eliminates semantic context drift, prevents database compilation crashes, and improves factual adherence to backend clinical repositories. These results support Medi-Gemma as a safer pattern for LLM-based clinical decision support where structured data fidelity, retrieval grounding, and deterministic safeguards are essential.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。