Snap-and-tune: combining deep learning and test-time optimization for high-fidelity cardiovascular volumetric meshing

Daniel H. Pak, Shubh Thaker, Kyle Baylous, Xiaoran Zhang, Danny Bluestein, James S. DuncanarXiv 2025 · DOI

Abstract

Patient-specific 3D volumetric meshes are critical for cardiovascular "digital twin" simulations, yet current automated methods often sacrifice either precision or speed. We present "Snap-and-tune," a framework that bridges this gap by combining a fast deep learning "snap" phase with a precise test-time optimization "tune" phase. By utilizing pseudo-labels and specialized connectivity algorithms, our method produces simulation-ready meshes with superior spatial accuracy and element quality compared to state-of-the-art techniques.

Introduction

The creation of high-fidelity 3D models from medical imaging, such as CT scans, remains a significant bottleneck in personalized medicine. These volumetric meshes are essential for physics-based solvers to predict blood flow or implant performance. Existing deep learning (DL) approaches are rapid but often too "stiff" to capture intricate patient-specific details like high-curvature vessel bulges or tissue-calcification interfaces. Conversely, traditional optimization methods are computationally expensive and prone to failure without expert initialization.

Overview of the Snap-and-tune framework and its application in physics-based simulations like Abaqus and PhysX.

Methodology

The Snap-and-tune framework operates in two sequential stages:

The Snap Phase

A 3D U-Net architecture performs a rapid forward-pass to predict initial displacements, "snapping" a high-quality template mesh onto the patient's anatomy. This provides a stable and anatomically plausible starting point for further refinement.

The Tune Phase

To overcome the "regularization paradox"—where stiff training constraints prevent fitting complex details—we introduce a test-time optimization phase.

  1. Flexibility via Pseudo-labels: A secondary "pseudo-labeler" network, trained with surface-based geometric rules, guides the mesh into high-curvature areas that the primary DL model might miss.
  2. Anatomical Connectivity: A novel grouping and filtering algorithm identifies nearby structures, such as calcifications. A one-sided distance loss ensures the vessel mesh accurately contacts these structures, eliminating unrealistic gaps that would otherwise compromise simulation accuracy.
Detailed architecture of the Snap-and-tune pipeline and the training process for the meshing models.

The optimization minimizes a joint objective of Chamfer distance for spatial fit and mesh strain energy to maintain element integrity.

Results and Discussion

Evaluated on a dataset of 79 cardiac CTA scans, Snap-and-tune (S&T) demonstrated significant improvements over existing state-of-the-art (SOTA) methods:

  • Spatial Accuracy: The method achieved a Chamfer Distance of 0.989 mm, outperforming the SOTA's 1.034 mm.
  • Mesh Quality: The mean Scaled Jacobian—a key metric for simulation stability—improved to 0.883 (vs. 0.852 for SOTA).
  • Simulation Readiness: The resulting meshes were successfully validated in high-end engineering software (Abaqus) and fast graphics-based physics engines (NVIDIA PhysX).
  • Efficiency: While the optimization adds overhead, the total processing time of 38 seconds remains 2.5x faster than traditional optimization-only approaches (~95 seconds).

Conclusion

Snap-and-tune effectively resolves the conflict between stability and flexibility in automated meshing. By combining the strengths of deep learning and optimization, it provides a robust pathway for generating simulation-ready cardiovascular models. Future work will focus on handling topological variations, such as bicuspid valves, and further reducing computational latency.

Summary updated

BibTeX
@misc{pak2025snap,
  author = {Daniel H. Pak and Shubh Thaker and Kyle Baylous and Xiaoran Zhang and Danny Bluestein and James S. Duncan},
  title = {{Snap-and-tune: combining deep learning and test-time optimization for high-fidelity cardiovascular volumetric meshing}},
  year = {2025},
  eprint = {2506.08280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.08280},
}
Figure