# R13 Correcting merged prompted masks

Status: first negative-point comparison ready for review. [Result page](../results/r13/) and [raw mask data](../results/r13/results.json). Reproduce with `YOLO_CONFIG_DIR=/tmp/diatom-yolo-config MPLCONFIGDIR=/tmp/mpl-diatom PYTHONDONTWRITEBYTECODE=1 /tmp/diatom-research-venv/bin/python research/r13_negative.py`, using the temporary MobileSAM environment and checkpoint described in R6.

Three pairs of provisional practice marks flagged as crossing were chosen from the dense group in GC108240a field 6, plane 4. Each positive click was run once by itself and once together with a different mark as a negative click. No boxes were supplied. This comparison assumes the selected marks refer to distinct specimens, which a specialist has not verified. It is possible that two marks lie on the same specimen or an ambiguous overlap.

All three positive-only masks included the selected negative point. Adding the negative point excluded it in two cases, while the other output still included it. All six masks included their positive point. Excluding a coordinate is a response to a prompt, not proof that the desired specimen was segmented correctly. In one case the corrected output retains only a small portion near the positive click. Both the number of underlying specimens and the full contours remain unverified.

This supports trying an interactive correction, with a visible warning when the negative point remains inside the output or the mask shrinks unexpectedly. It does not establish a robust crossing separator. Next compare one and two negative clicks and a rough analyst-drawn box on independently selected dense fields. Have a scientist verify target identity, partial specimens and any resulting mask; measure analyst interaction time and corrections. Include cases where the negative mark should not be a separate specimen.
