MISeg-Agent: A Human-in-the-Loop Agentic Framework for Error Diagnosis and Executable Prompt Review in 3D Medical Image Segmentation
Organizations: Cornell University · The University of Texas Rio Grande Valley
Abstract
Despite the strong performance of modern medical image segmentation models, their predictions can still contain localized errors that compromise segmentation quality. Identifying and correcting these errors is therefore essential for improving the reliability of existing segmentation results. While interactive segmentation models enable targeted corrections, identifying potential errors, determining where to intervene, and evaluating corrective actions remain challenging. Moreover, each correction changes the current mask, requiring subsequent error diagnosis and recommendations to adapt accordingly. To address these challenges, we propose MISeg-Agent, a human-in-the-loop agentic framework that diagnoses segmentation errors and provides evidence-based correction recommendations. MISeg-Agent first selects a suitable pretrained segmentation model based on benchmark performance and computational requirements. Given its predicted mask, the framework identifies potential missing and excess foreground regions and recommends suspicious slices and corrective points for review. The framework then evaluates candidate point prompts using an interactive segmentation model and presents the resulting corrections for human verification before applying them. By operating directly on images and predicted masks, the error diagnosis process remains independent of the underlying segmentation model architecture. Evaluations on CT datasets demonstrate that MISeg-Agent improves initial segmentation results and produces final masks closely aligned with reference annotations. By integrating adaptive error diagnosis with validated correction recommendations, MISeg-Agent provides an interpretable approach to identifying and reducing residual errors in existing medical image segmentations.
Figures & tables
| Model | Aorta Seg24 | KiTS19 | MSD Liver | MSD Panc. | MSD Spleen | Panc. CT | SLIVER 07 | All |
| Cases | 13 | 28 | 18 | 39 | 7 | 12 | 3 | 120 |
| Automatic initialization | ||||||||
| TotalSeg. v2 | 0.871 0.040 | 0.855 0.120 | 0.968 0.011 | 0.722 0.196 | 0.952 0.009 | 0.755 0.174 | 0.968 0.007 | 0.829 0.166 |
| NV-CTMR | 0.837 0.051 | 0.918 0.094 | 0.970 0.009 | 0.912 0.021 | 0.963 0.007 | 0.877 0.016 | 0.973 0.007 | 0.915 0.063 |
| SAT-Nano | 0.818 0.040 | 0.952 0.014 | 0.965 0.009 | 0.875 0.032 | 0.957 0.005 | 0.841 0.066 | 0.967 0.003 | 0.904 0.062 |
| VISTA | 0.859 0.038 | 0.885 0.107 | 0.971 0.009 | 0.871 0.051 | 0.960 0.004 | 0.864 0.022 | 0.973 0.005 | 0.895 0.073 |
| ED training source | FN Dice | FP Dice | Macro Dice | Binary Dice |
|---|---|---|---|---|
| TotalSeg. | 0.420 0.160 | 0.680 0.140 | 0.550 0.120 | 0.560 0.150 |
| NV-CTMR | 0.440 0.150 | 0.680 0.130 | 0.560 0.110 | 0.570 0.140 |
| SegVol | 0.550 0.130 | 0.750 0.110 | 0.650 0.100 | 0.660 0.120 |
| User | Sessions | Dice | Points | Accept | Reject | Slices / total | Review min | Slices/ min |
|---|---|---|---|---|---|---|---|---|
| A | 120 | 0.957 0.079 | 39 | 126 | 327 | 741 / 30,720 | 73.54 | 10.08 |
| B | 120 | 0.947 0.148 | 24 | 103 | 427 | 654 / 30,720 | 61.64 | 10.61 |
| C | 120 | 0.925 0.185 | 26 | 232 | 191 | 734 / 30,720 | 75.92 | 9.67 |
| Pooled | 360 | 0.943 0.144 | 89 | 461 | 945 | 2,129 / 92,160 | 211.10 | 10.09 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Cases | Accuracy | Balanced | Fast | Low memory |
|---|---|---|---|---|---|
| AortaSeg24 | 13 | VISTA (8), TotalSeg. v2 (5) | VISTA (9), TotalSeg. v2 (4) | VISTA | TotalSeg. v2 |
| KiTS19 | 28 | SAT-Nano | SAT-Nano | SAT-Nano | SAT-Nano |
| MSD Liver | 18 | VISTA (3), NV-CTMR (3), SAT-Nano (8), TotalSeg. v2 (4) | NV-CTMR (6), SAT-Nano (3), SegVol (4), TotalSeg. v2 (5) | SegVol | SegVol |
| MSD Pancreas | 39 | NV-CTMR | NV-CTMR | NV-CTMR | NV-CTMR |
| MSD Spleen | 7 | VISTA (3), NV-CTMR (4) | NV-CTMR (2), SegVol (5) | SegVol | SegVol |
| Pancreas-CT | 12 | NV-CTMR | NV-CTMR | NV-CTMR | NV-CTMR |
| Source | Protocol | Input and intervention | Evaluation unit |
|---|---|---|---|
| Main Fig. 1 (b) | Automatic refinement | Initial mask and four refinement settings (mask only, all points, first points, screened points). | 120 cases |
| Main Table 1 | Automatic initialization | Fixed pretrained model without points or human edits. | 120 cases |
| Main Table 1 | Point-only models | Unfiltered agent-generated points without an initial mask or human edits. | 120 cases |
| Main Tables 1 and 3 | Original MISeg-Agent | Routed mask, user-selected or added points, and user-approved updates. | 360 sessions |
| Main Table 1 | Matched correction | Direct correction and MISeg-Agent use the same initial masks, point budgets, and nnInteractive refiner. | Sessions |
| Main Table 2 | Error diagnosis | Each model trains on one mask source and is tested on all three. | 120 cases |
| Point budget | ScribblePrompt | nnInteractive |
|---|---|---|
| 1 per volume | 0.025 0.029 | 0.689 0.233 |
| 5 per volume | 0.094 0.052 | 0.912 0.057 |
| 10 per volume | 0.161 0.069 | 0.928 0.041 |
| 1 per target slice | 0.717 0.125 | — |
Medical Image Segmentation
Medical image segmentation delineates organs, lesions, and other structures in scans to support measurement, diagnosis, treatment planning, and research.
See all 858 papers