MedImgGuard: evidence-verified LLM code review for data leakage and evaluation contamination in medical imaging AI code

IF 3.9 2区 计算机科学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Tian Zhang, Ruwang Jiao, Jianlun Ma, Aohan Mei, Ying Qian, Jianhui Lv, Hongjiang Wang, Yong Jiang
{"title":"MedImgGuard: evidence-verified LLM code review for data leakage and evaluation contamination in medical imaging AI code","authors":"Tian Zhang,&nbsp;Ruwang Jiao,&nbsp;Jianlun Ma,&nbsp;Aohan Mei,&nbsp;Ying Qian,&nbsp;Jianhui Lv,&nbsp;Hongjiang Wang,&nbsp;Yong Jiang","doi":"10.1007/s10515-026-00680-3","DOIUrl":null,"url":null,"abstract":"<div><p>Data leakage and evaluation contamination can substantially inflate reported performance in medical imaging artificial intelligence systems, yet these risks are often introduced through concrete repository-level implementation decisions rather than explicit methodological statements. Existing static analysis, machine learning bug detection, and large language model (LLM)-based code review methods are limited in detecting such protocol-semantic defects because they usually lack medical identity modeling, evaluation-stage reasoning, traceable evidence construction, and claim-level verification. This paper presents MedImgGuard, an evidence-verified LLM code review framework for detecting data leakage and evaluation contamination in medical imaging AI repositories. MedImgGuard constructs a Protocol Evidence Graph from source code, configurations, and metadata schema to represent program-flow dependencies, medical identity semantics, evaluation-stage relations, fit-apply dependencies, metric-decision relations, and evidence anchors. It then checks protocol invariants for identity-disjoint splitting, training-only fitting, and test-stage isolation, and extracts compact evidence slices for candidate findings. The LLM is used as an evidence-to-review translator rather than an unconstrained detector, and its generated atomic claims are verified against repository evidence before reporting. We evaluate MedImgGuard on controlled defect and real-world repository benchmarks. The results show that MedImgGuard achieves the best overall detection performance, with a precision of 0.86, recall of 0.82, and F1-score of 0.84, while also improving localization quality, evidence recovery, review faithfulness, and actionability. These results demonstrate that protocol-aware evidence construction and claim-level verification can make LLM-assisted review more reliable for medical imaging AI code.</p></div>","PeriodicalId":55414,"journal":{"name":"Automated Software Engineering","volume":"33 4","pages":""},"PeriodicalIF":3.9000,"publicationDate":"2026-10-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Automated Software Engineering","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s10515-026-00680-3","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Data leakage and evaluation contamination can substantially inflate reported performance in medical imaging artificial intelligence systems, yet these risks are often introduced through concrete repository-level implementation decisions rather than explicit methodological statements. Existing static analysis, machine learning bug detection, and large language model (LLM)-based code review methods are limited in detecting such protocol-semantic defects because they usually lack medical identity modeling, evaluation-stage reasoning, traceable evidence construction, and claim-level verification. This paper presents MedImgGuard, an evidence-verified LLM code review framework for detecting data leakage and evaluation contamination in medical imaging AI repositories. MedImgGuard constructs a Protocol Evidence Graph from source code, configurations, and metadata schema to represent program-flow dependencies, medical identity semantics, evaluation-stage relations, fit-apply dependencies, metric-decision relations, and evidence anchors. It then checks protocol invariants for identity-disjoint splitting, training-only fitting, and test-stage isolation, and extracts compact evidence slices for candidate findings. The LLM is used as an evidence-to-review translator rather than an unconstrained detector, and its generated atomic claims are verified against repository evidence before reporting. We evaluate MedImgGuard on controlled defect and real-world repository benchmarks. The results show that MedImgGuard achieves the best overall detection performance, with a precision of 0.86, recall of 0.82, and F1-score of 0.84, while also improving localization quality, evidence recovery, review faithfulness, and actionability. These results demonstrate that protocol-aware evidence construction and claim-level verification can make LLM-assisted review more reliable for medical imaging AI code.

Abstract Image

MedImgGuard:医学成像人工智能代码中数据泄露和评估污染的证据验证LLM代码审查
数据泄露和评估污染可能会大大夸大医学成像人工智能系统的报告性能,然而这些风险通常是通过具体的存储库级实施决策引入的,而不是通过明确的方法声明。现有的静态分析、机器学习漏洞检测和基于大语言模型(LLM)的代码审查方法在检测此类协议语义缺陷方面受到限制,因为它们通常缺乏医学身份建模、评估阶段推理、可追溯证据构建和索赔级验证。本文介绍了MedImgGuard,这是一个经过证据验证的LLM代码审查框架,用于检测医学成像人工智能存储库中的数据泄漏和评估污染。MedImgGuard从源代码、配置和元数据模式构建协议证据图,以表示程序流依赖关系、医疗身份语义、评估阶段关系、适合应用依赖关系、度量决策关系和证据锚点。然后,它检查协议不变量是否存在身份分离、仅训练拟合和测试阶段隔离,并为候选发现提取紧凑的证据切片。LLM被用作从证据到审查的转换器,而不是不受约束的检测器,它生成的原子声明在报告之前会根据存储库证据进行验证。我们在受控缺陷和实际存储库基准上评估MedImgGuard。结果表明,MedImgGuard达到了最佳的整体检测性能,精度为0.86,召回率为0.82,f1得分为0.84,同时也提高了定位质量,证据恢复,评论忠实度和可操作性。这些结果表明,协议感知证据构建和索赔级验证可以使llm辅助审查对医学成像AI代码更加可靠。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Automated Software Engineering
Automated Software Engineering 工程技术-计算机:软件工程
CiteScore
4.80
自引率
11.80%
发文量
51
审稿时长
>12 weeks
期刊介绍: This journal details research, tutorial papers, survey and accounts of significant industrial experience in the foundations, techniques, tools and applications of automated software engineering technology. This includes the study of techniques for constructing, understanding, adapting, and modeling software artifacts and processes. Coverage in Automated Software Engineering examines both automatic systems and collaborative systems as well as computational models of human software engineering activities. In addition, it presents knowledge representations and artificial intelligence techniques applicable to automated software engineering, and formal techniques that support or provide theoretical foundations. The journal also includes reviews of books, software, conferences and workshops.
×
引用
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学术官方微信
小红书