Spline refinement with differentiable rendering
Frans Zdyb, Albert Alonso, Julius B. Kirkegaard
TL;DR
The paper tackles the challenge of refining slender, overlapping structures in microscopy by introducing a training-free, unsupervised differentiable rendering framework that jointly optimizes spline geometry, background, and texture to reconstruct the input image. This approach yields sub-pixel spline accuracy and robustness to distribution shifts, reducing the sim-to-real gap without requiring labeled data and acting as a drop-in replacement for traditional active contour refinement. Key contributions include a differentiable rendering pipeline for spline refinement, a three-phase optimization strategy, and demonstrations on C. elegans that show improvements over both coordinate-based and pixel-based methods, especially in overlapping and coiled morphologies. The work also presents a path toward assisted differentiable labeling and potential extensions to probabilistic priors and temporal 2D-splines, enabling broader applicability in quantitative microscopy and labeling workflows.
Abstract
Detecting slender, overlapping structures remains a challenge in computational microscopy. While recent coordinate-based approaches improve detection, they often produce less accurate splines than pixel-based methods. We introduce a training-free differentiable rendering approach to spline refinement, achieving both high reliability and sub-pixel accuracy. Our method improves spline quality, enhances robustness to distribution shifts, and shrinks the gap between synthetic and real-world data. Being fully unsupervised, the method is a drop-in replacement for the popular active contour model for spline refinement. Evaluated on C. elegans nematodes, a popular model organism for drug discovery and biomedical research, we demonstrate that our approach combines the strengths of both coordinate- and pixel-based methods.
