Unsupervised Trajectory Optimization for 3D Registration in Serial Section Electron Microscopy using Neural ODEs

Zhenbang Zhang, Jingtong Feng, Hongjia Li, Haythem El-Messiry, zhiqiang xu, Renmin HanNeurIPS 2025

Serial Section Electron Microscopy (ssEM) is a pivotal technology for mapping the brain's connectome and understanding nanoscale cellular architecture. The process involves cutting biological tissue into thousands of ultra-thin slices, imaging them, and computationally stacking them back together. However, the physical act of sectioning introduces messy, nonlinear distortions, stretching, and misalignments.

The "holy grail" of 3D registration is to correct these technical errors without erasing the natural biological deformations that occur between slices. Traditional sequential methods often suffer from error accumulation—where small misalignments drift into massive errors over long sequences—or over-smoothing, which destroys vital biological details.

To address this, researchers have introduced NeuroTrajReg, an unsupervised framework that redefines 3D registration as a continuous trajectory optimization problem. By combining the rapid convergence of Gauss-Seidel iterations with the flexible modeling of Neural Ordinary Differential Equations (ODEs), this method effectively removes technical distortions while preserving complex biological structures across massive image stacks.

Comparison of local sequential registration versus global trajectory optimization.

The NeuroTrajReg Methodology

The core shift in NeuroTrajReg is moving from local slice-to-slice alignment to Global Trajectory Optimization. The pipeline consists of three main stages:

  1. Pixel Trajectory Tracking: A 2D U-Net estimates displacements between adjacent slices. Chaining these together creates an initial, albeit "noisy," trajectory for every pixel through the entire 3D volume.
  2. Hybrid Solver (Theory-Guided, Data-Corrected): This dual-module approach smooths the trajectories. A classical Gauss-Seidel iterative solver provides rapid convergence and numerical stability based on the biophysical prior that biological motion should be smooth. Because classical models can be too idealized, a 3D U-Net-based Neural ODE acts as a compensator, learning to capture higher-order nonlinear effects and bridging the gap between theoretical models and messy real-world data.
  3. Trajectory Inversion via Bilinear Splatting: Once smoothed, trajectories are mapped back to the original pixel grid using "splatting" (a technique borrowed from computer graphics) to accurately invert continuous paths into discrete deformation fields for image warping.

Key Insights

  • Curvature as a Filter: Nonlinear sectioning distortions appear as sudden spikes in local curvature, whereas true anatomical structures exhibit smooth manifold properties. By penalizing acceleration discontinuities, the model filters out technical noise while retaining biological signals.
  • Continuous vs. Discrete: Modeling the stack as a continuous dynamics problem inherently resists the drift and error accumulation that plague sequential registration.
  • Unsupervised Learning: The framework requires no ground-truth labels, learning directly from image data by maximizing pixel-level similarity while enforcing physical constraints.

Datasets and Key Results

The model was rigorously evaluated on synthetic OpenOrganelle datasets (mouse heart, kidney, liver, skin, pancreas) with simulated distortions, as well as real-world datasets like the FemFlyBrain, FAFB, and a mouse cortical sub-volume.

  • Superior Accuracy: NeuroTrajReg outperformed state-of-the-art methods (like SEMLeSS and GaussReg) across all tissue types, achieving significantly higher Structural Similarity Index (SSIM) and Mutual Information (MI) scores.
  • Long-Sequence Stability: In tests spanning over 1,000 consecutive slices, NeuroTrajReg showed almost no performance degradation. Competitive methods saw their accuracy plummet due to error accumulation.
SSIM over 1000+ slices demonstrating long-sequence stability without error accumulation.
  • Diffeomorphic Integrity & Downstream Benefits: The method produced cleaner deformation fields with fewer topological folds. Consequently, when registered images were fed into 3D segmentation tools, the NeuroTrajReg-aligned stacks yielded much higher segmentation accuracy (Dice scores), proving that better registration directly leads to better biological discovery.

Limitations and Future Work

While highly effective, the framework does face a few hurdles. Solving ODEs is computationally expensive; although sparse sampling helps, a runtime-precision trade-off remains. Additionally, performance can dip when axial resolution (slice thickness) is much lower than lateral resolution. Finally, the final reconstruction quality depends heavily on the initial 2D tracking module, suggesting that future work may involve integrating more advanced optical flow architectures to improve this foundational step.

Summary updated

BibTeX
@inproceedings{zhang2025unsupervised,
  author = {Zhenbang Zhang and Jingtong Feng and Hongjia Li and Haythem El-Messiry and zhiqiang xu and Renmin Han},
  title = {{Unsupervised Trajectory Optimization for 3D Registration in Serial Section Electron Microscopy using Neural ODEs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=2PhVe7p9xD},
}
Figure