CAFusion: Controllable Anatomical Synthesis of Perirectal Lymph Nodes via SDF-guided Diffusion

Weidong Guo, Hantao Zhang, Shouhong Wan, Bingbing Zou, Wanqin Wang, Chenyang Qiu, Peiquan JinarXiv 2025 · DOI

Abstract

Training robust deep learning models for medical image segmentation requires large-scale, accurately annotated datasets. However, manual annotation is labor-intensive, and datasets often suffer from "long-tailed" distributions where rare or complex cases are underrepresented. We propose CAFusion, a novel framework for the controllable synthesis of 3D medical lesions, specifically targeting perirectal lymph nodes. By leveraging Signed Distance Functions (SDF) and diffusion models, CAFusion decouples anatomical morphology from textural appearance. Our dual-guidance inference mechanism allows for fine-grained control over shape complexity and signal intensity. Evaluation on the CARE benchmark shows that CAFusion-generated data significantly improves segmentation performance, yielding a 6.45% increase in Dice coefficient for nnU-Net, and produces synthetic lesions that are nearly indistinguishable from real ones to experienced radiologists.

Introduction

The efficacy of AI in medical imaging is often limited by the availability of high-quality annotated data. For small, irregularly shaped targets like perirectal lymph nodes (1–10 mm), existing synthetic data generation methods frequently fail. Most current approaches focus on texture while neglecting the complex morphology of lesions, leading to a "mask gap" where synthetic masks do not represent the diversity of real-world clinical cases. CAFusion addresses this by providing a framework that generates realistic 3D structures with controllable anatomical and textural features.

Methodology

CAFusion employs a three-stage pipeline to achieve high-fidelity synthesis:

  1. Anatomical Diffusion Network (SDF-based): Instead of using traditional voxel grids, which can be discontinuous, the model uses Signed Distance Functions (SDF). SDFs provide a continuous mathematical representation of 3D surfaces, ideal for modeling irregular edges. A 3D Refiner is integrated to bridge the gap between general shape priors and specific medical anatomy.
  2. Texture Diffusion Network: An image inpainting network is trained to learn a "texture prior," understanding how lesions should appear within the context of a CT scan.
  3. Dual-Guidance Inference: This stage provides fine-grained control over the synthesis process:
  4. Anatomical Guidance (AG): Uses a Curvature Index (CI) to refine local surface details, allowing for the generation of lesions ranging from smooth to highly irregular.
  5. Textural Guidance (TG): Constrains the signal intensity (SI) of the generated lesion to match clinical contrast levels.
Overview of the CAFusion framework, illustrating the three-step pipeline: training the anatomical diffusion network, training the texture diffusion network, and the dual-guidance inference process.

Finally, a Masked Repaint step seamlessly blends the synthetic lesion into a real CT background, ensuring structural coherence with surrounding tissues while preserving background integrity.

Experimental Results

The framework was evaluated using the CARE benchmark, consisting of 1,137 annotated lymph nodes from 100 patient CT volumes. The training set was augmented with 1,400 synthetic nodes generated by CAFusion.

The results demonstrate that CAFusion significantly enhances segmentation performance across multiple architectures. Specifically, the nnU-Net model saw a 6.45% improvement in the Dice coefficient compared to the baseline. CAFusion also outperformed other state-of-the-art synthesis methods like Cond-Diffusion and Repaint, particularly when both anatomical and textural guidance were active.

Quantitative comparison of segmentation performance (Dice, IoU, NSD) for nnU-Net, UNet, and SwinUNETR across different synthetic data generation methods.

In a "Visual Turing Test," experienced radiologists with over 10 years of experience achieved only 61% accuracy in identifying synthetic nodes, suggesting the synthetic lesions are nearly indistinguishable from real ones.

Discussion and Conclusion

CAFusion represents a significant step forward in medical data augmentation by successfully decoupling shape and texture. The shift from voxel-based to SDF-based representation allows the model to generate fine-grained morphological details often lost in pixelated grids. The introduction of the Curvature Index (CI) provides a controllable "knob" for researchers to generate clinically concerning, irregular structures.

While currently focused on perirectal lymph nodes, the underlying SDF-guided diffusion approach is potentially generalizable to other anatomical structures like lung nodules or liver tumors. Future work will explore the generation of entire synthetic 3D volumes to further reduce dependence on real patient data.

Summary updated

BibTeX
@misc{guo2025cafusion,
  author = {Weidong Guo and Hantao Zhang and Shouhong Wan and Bingbing Zou and Wanqin Wang and Chenyang Qiu and Peiquan Jin},
  title = {{CAFusion: Controllable Anatomical Synthesis of Perirectal Lymph Nodes via SDF-guided Diffusion}},
  year = {2025},
  eprint = {2503.06919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.06919},
}
Figure