rNCA: Self-Repairing Segmentation Masks

Malte Silbernagel, Albert Alonso, Jens Petersen, Bulat Ibragimov, Marleen de Bruijne +1 more
12/15/2025
cs.CVcs.LGeess.IV

No official code found. Best implementation: maltesilber/rnca (7 stars, last commit 2025-12-17).

Abstract

Accurately predicting topologically correct masks remains a difficult task for general segmentation models, which often produce fragmented or disconnected outputs. Fixing these artifacts typically requires hand-crafted refinement rules or architectures specialized to a particular task. Here, we show that Neural Cellular Automata (NCA) can be directly re-purposed as an effective refinement mechanism, using local, iterative updates guided by image context to repair segmentation masks. By training on imperfect masks and ground truths, the automaton learns the structural properties of the target shape while relying solely on local information. When applied to coarse, globally predicted masks, the learned dynamics progressively reconnect broken regions, prune loose fragments and converge towards stable, topologically consistent results. We show how refinement NCA (rNCA) can be easily applied to repair common topological errors produced by different base segmentation models and tasks: for fragmented retinal vessels, it yields 2-3% gains in Dice/clDice and improves Betti errors, reducing $β_0$ errors by 60% and $β_1$ by 20%; for myocardium, it repairs 61.5% of broken cases in a zero-shot setting while lowering ASSD and HD by 19% and 16%, respectively. This showcases NCA as effective and broadly applicable refiners.

View on arXivView PDF

Code Implementations(1)

maltesilber/rncaCommunity68%

Implementation of rNCA: Self-Repairing Segmentation Masks

72PythonDec 10, 202510 months ago

Similar Papers

Cite this paper

@article{silbernagel2025rnca,
  title  = {rNCA: Self-Repairing Segmentation Masks},
  author = {Malte Silbernagel and Albert Alonso and Jens Petersen and Bulat Ibragimov and Marleen de Bruijne and Madeleine K. Wyburd},
  year   = {2025},
  eprint = {2512.13397},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.13397v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.13397.svg)](https://codeofpaper.com/paper/2512.13397)

Discussion