MI2 零样本胸片发现验证
ground-zeroshot
使用 MI2 零样本分类对 CXR(胸部 X 光)发现进行核实验证。返回每项发现的概率,并归入 positive/possible(阳性/可能)两类,供 Agent 撰写报告时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 204
- Forks
- 54
01 前言 Front Matter
- name
- ground-zeroshot
- description
- Ground CXR findings using MI2 zero-shot classification. Returns per-finding probabilities bucketed into positive/possible for the agent to use when writing the report.
- argument-hint
- - image_path: required file path or http(s) URL to the CXR image (PNG or JPEG) - extra_labels: optional list of additional label strings to score alongside the default set
03 SKILL.md 正文
ground-zeroshot
Calls the MI2 zero-shot classifier and returns bucketed per-finding probabilities. Does not write a report — the agent produces the report using the write-report skill after grounding.
Budget
- Tool calls: 1 — exactly one
mcp_medimageinsig_zeroshot_classifycall per image. - Do not retry on success.
How to use
-
Resolve the image. If
image_pathis an http(s) URL, pass it through to the tool unchanged — do NOT download it,curlit, or turn it into a local file; the MCP server fetches URLs itself. Otherwise it is a local path: the MCP tool runs in a different working directory, so if it is not absolute, resolve it viarealpath; if it can't be resolved, ask the user. -
Assemble the label list. Read the canonical label list from below and use those strings verbatim. Append any caller-provided
extra_labels. -
Call the classifier. Call
mcp_medimageinsig_zeroshot_classifywithfile_path= absolute path andlabels= assembled list. One call per image. -
Bucket the scores. Use these cutoffs:
- ≥ 0.20 → positive
- 0.08 – 0.20 → possible
- < 0.08 → absent (omit)
-
Return the findings. Return the positive and possible labels with their raw scores. Do not write a report. The agent decides what to do next.
NIH ChestX-ray14 labels (MI2 format)
Pass these strings as the labels argument to zeroshot_classify.
Format is "<modality> <body_part> <view> <condition>" — MI2 is sensitive to
this structure, do not reword.
x-ray chest anteroposterior Atelectasis
x-ray chest anteroposterior Cardiomegaly
x-ray chest anteroposterior Consolidation
x-ray chest anteroposterior Edema
x-ray chest anteroposterior Effusion
x-ray chest anteroposterior Emphysema
x-ray chest anteroposterior Fibrosis
x-ray chest anteroposterior Hernia
x-ray chest anteroposterior Infiltration
x-ray chest anteroposterior Mass
x-ray chest anteroposterior Nodule
x-ray chest anteroposterior Pleural_Thickening
x-ray chest anteroposterior Pneumonia
x-ray chest anteroposterior Pneumothorax
04 同仓库更多 Skills
报告撰写
write-report
暂无简介
MedImageInsight 插件帮助入口
help
MedImageInsight 插件的入口,涵盖入门指南、各技能的工作方式、MI2 是什么以及故障排查。
MI2 适配器胸片发现验证
ground-adapter
使用训练好的 MI2 适配器对 CXR(胸部 X 光)发现进行核实验证。返回每项发现的 positive/possible/negative(阳性/可能/阴性)判定,供 Agent 撰写报告时使用。