GraphRAG-Enabled Local Large Language Model for Gestational Diabetes Mellitus: Development of a Proof-of-Concept.

IF 2.9 Q2 Medicine
JMIR Diabetes Pub Date : 2026-01-05 DOI:10.2196/76454
Edmund Evangelista, Fathima Ruba, Salman Bukhari, Amril Nazir, Ravishankar Sharma
{"title":"GraphRAG-Enabled Local Large Language Model for Gestational Diabetes Mellitus: Development of a Proof-of-Concept.","authors":"Edmund Evangelista, Fathima Ruba, Salman Bukhari, Amril Nazir, Ravishankar Sharma","doi":"10.2196/76454","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Gestational diabetes mellitus (GDM) is a prevalent chronic condition that affects maternal and fetal health outcomes worldwide, increasingly in underserved populations. While generative artificial intelligence (AI) and large language models (LLMs) have shown promise in health care, their application in GDM management remains underexplored.</p><p><strong>Objective: </strong>This study aimed to investigate whether retrieval-augmented generation techniques, when combined with knowledge graphs (KGs), could improve the contextual relevance and accuracy of AI-driven clinical decision support. For this, we developed and validated a graph-based retrieval-augmented generation (GraphRAG)-enabled local LLM as a clinical support tool for GDM management, assessing its performance against open-source LLM tools.</p><p><strong>Methods: </strong>A prototype clinical AI assistant was developed using a GraphRAG constructed from 1212 peer-reviewed research articles on GDM interventions, retrieved from the Semantic Scholar API (2000-2024). The GraphRAG prototype integrated entity extraction, KG construction using Neo4j, and retrieval-augmented response generation. The performance was evaluated in a simulated environment using clinical and layperson prompts, comparing the outputs of the systems against ChatGPT (OpenAI), Claude (Anthropic), and BioMistral models across 5 common natural language generation metrics.</p><p><strong>Results: </strong>The GraphRAG-enabled local LLM showed higher accuracy in generating clinically relevant responses. It achieved a bilingual evaluation understudy score of 0.99, Jaccard similarity of 0.98, and BERTScore of 0.98, outperforming the benchmark LLMs. The prototype also produced accurate, evidence-based recommendations for clinicians and patients, demonstrating its feasibility as a clinical support tool.</p><p><strong>Conclusions: </strong>GraphRAG-enabled local LLMs show much potential for improving personalized GDM care by integrating domain-specific evidence and contextual retrieval. Our prototype proof-of-concept serves two purposes: (1) the local LLM architecture gives practitioners from underserved locations access to state-of-the-art medical research in the treatment of chronic conditions and (2) the KG schema may be feasibly built on peer-reviewed, indexed publications, devoid of hallucinations and contextualized with patient data. We conclude that advanced AI techniques such as KGs, retrieval-augmented generation, and local LLMs improve GDM management decisions and other similar conditions and advance equitable health care delivery in resource-constrained health care environments.</p>","PeriodicalId":52371,"journal":{"name":"JMIR Diabetes","volume":"11 ","pages":"e76454"},"PeriodicalIF":2.9000,"publicationDate":"2026-01-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12767777/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JMIR Diabetes","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.2196/76454","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"Medicine","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Gestational diabetes mellitus (GDM) is a prevalent chronic condition that affects maternal and fetal health outcomes worldwide, increasingly in underserved populations. While generative artificial intelligence (AI) and large language models (LLMs) have shown promise in health care, their application in GDM management remains underexplored.

Objective: This study aimed to investigate whether retrieval-augmented generation techniques, when combined with knowledge graphs (KGs), could improve the contextual relevance and accuracy of AI-driven clinical decision support. For this, we developed and validated a graph-based retrieval-augmented generation (GraphRAG)-enabled local LLM as a clinical support tool for GDM management, assessing its performance against open-source LLM tools.

Methods: A prototype clinical AI assistant was developed using a GraphRAG constructed from 1212 peer-reviewed research articles on GDM interventions, retrieved from the Semantic Scholar API (2000-2024). The GraphRAG prototype integrated entity extraction, KG construction using Neo4j, and retrieval-augmented response generation. The performance was evaluated in a simulated environment using clinical and layperson prompts, comparing the outputs of the systems against ChatGPT (OpenAI), Claude (Anthropic), and BioMistral models across 5 common natural language generation metrics.

Results: The GraphRAG-enabled local LLM showed higher accuracy in generating clinically relevant responses. It achieved a bilingual evaluation understudy score of 0.99, Jaccard similarity of 0.98, and BERTScore of 0.98, outperforming the benchmark LLMs. The prototype also produced accurate, evidence-based recommendations for clinicians and patients, demonstrating its feasibility as a clinical support tool.

Conclusions: GraphRAG-enabled local LLMs show much potential for improving personalized GDM care by integrating domain-specific evidence and contextual retrieval. Our prototype proof-of-concept serves two purposes: (1) the local LLM architecture gives practitioners from underserved locations access to state-of-the-art medical research in the treatment of chronic conditions and (2) the KG schema may be feasibly built on peer-reviewed, indexed publications, devoid of hallucinations and contextualized with patient data. We conclude that advanced AI techniques such as KGs, retrieval-augmented generation, and local LLMs improve GDM management decisions and other similar conditions and advance equitable health care delivery in resource-constrained health care environments.

妊娠期糖尿病的基于图形的局部大语言模型:概念验证的发展。
背景:妊娠期糖尿病(GDM)是一种影响全球孕产妇和胎儿健康结局的普遍慢性疾病,在服务不足的人群中越来越多。虽然生成式人工智能(AI)和大型语言模型(llm)在医疗保健领域显示出前景,但它们在GDM管理中的应用仍未得到充分探索。目的:本研究旨在探讨检索增强生成技术与知识图谱(KGs)相结合是否可以提高人工智能驱动的临床决策支持的上下文相关性和准确性。为此,我们开发并验证了基于图的检索增强生成(GraphRAG)的本地LLM作为GDM管理的临床支持工具,并与开源LLM工具对比评估其性能。方法:使用从Semantic Scholar API(2000-2024)检索的1212篇关于GDM干预的同行评审研究文章构建的GraphRAG开发了一个原型临床人工智能助手。GraphRAG原型集成了实体提取、使用Neo4j构建KG和检索增强响应生成。使用临床和外行人提示在模拟环境中评估性能,将系统的输出与ChatGPT (OpenAI)、Claude (Anthropic)和BioMistral模型在5种常见的自然语言生成指标上进行比较。结果:启用graphrag的局部LLM在产生临床相关反应方面具有更高的准确性。其双语评价替补得分为0.99,Jaccard相似度为0.98,BERTScore为0.98,优于基准llm。该原型还为临床医生和患者提供了准确的、基于证据的建议,证明了其作为临床支持工具的可行性。结论:通过集成特定领域的证据和上下文检索,支持graphrag的本地llm在改善个性化GDM护理方面显示出很大的潜力。我们的原型概念验证服务于两个目的:(1)当地LLM架构为服务不足地区的从业者提供了最先进的慢性疾病治疗医学研究;(2)KG模式可能建立在同行评审、索引出版物的基础上,没有幻觉,并与患者数据相结合。我们的结论是,先进的人工智能技术,如KGs、检索增强生成和本地llm,改善了GDM管理决策和其他类似条件,并在资源受限的卫生保健环境中促进了公平的卫生保健提供。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
JMIR Diabetes
JMIR Diabetes Computer Science-Computer Science Applications
CiteScore
4.00
自引率
0.00%
发文量
35
审稿时长
16 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书