Introducing Shape Prior Module in Diffusion Model for Medical Image Segmentation

Yuyang Liu 刘宇阳, Zhiqing Zhang, Guojia Fan, Tianyong Liu, Nan Li, Yuyang Liu, Ziyu Liu, Canwei Dong, Shoujun ZhouarXiv 2023 · DOI

Abstract

Accurate spine segmentation is essential for orthopedic diagnosis and surgical planning, yet it remains challenging due to the high noise, low contrast, and artifacts prevalent in clinical X-ray imaging. This paper introduces VerseDiff-UNet, a novel framework that integrates Denoising Diffusion Probabilistic Models (DDPMs) with a specialized Shape Prior Module. By treating segmentation as a generative denoising task and incorporating anatomical structural constraints, VerseDiff-UNet effectively filters out noise and surgical hardware occlusions. Experimental results on a challenging spinal X-ray dataset demonstrate that VerseDiff-UNet significantly outperforms current state-of-the-art models, achieving a Dice Similarity Coefficient (DSC) of 0.7865 and an Intersection over Union (IOU) of 0.6765.

Introduction

Segmentation of vertebrae and intervertebral discs is a cornerstone of modern orthopedics, facilitating precise procedures such as pedicle screw placement. However, medical images—particularly X-rays—often suffer from "ghosting" artifacts and low signal-to-noise ratios. Furthermore, spinal structures exhibit high inter-class similarity, making it difficult for traditional discriminative models to distinguish between adjacent vertebrae, especially when boundaries are fuzzy or obscured by surgical instruments.

While diffusion models have set new benchmarks in image generation, their application to discrete medical segmentation masks requires careful adaptation to ensure anatomical consistency. VerseDiff-UNet addresses these hurdles by leveraging the generative robustness of diffusion processes guided by a structural "mental map" of the spine.

Methods

VerseDiff-UNet merges a standard U-shaped architecture with a diffusion-based generative process to refine segmentation masks iteratively.

Diffusion Framework

Instead of a single-pass prediction, the model treats segmentation as a denoising task. During training, Gaussian noise is progressively added to a labeled mask (the forward process). The model then learns to reverse this process, starting from pure noise and refining it into a clean segmentation mask, conditioned on the original medical image.

Overview of the VerseDiff-UNet framework showing the forward and reverse diffusion processes guided by the input image.

The Shape Prior Module

The primary innovation is the Shape Prior Module, which extracts structural semantic information directly from the input images. This module ensures the diffusion process adheres to realistic anatomical shapes, preventing the fragmented or unrealistic results common in high-noise environments. At each denoising step, the noise-added mask is combined with these structural priors to steer the diffusion direction toward the target anatomy.

Experimental Results

The model was evaluated on a dataset of 609 spinal anterior-posterior X-ray images characterized by extreme noise and occlusions from medical hardware. VerseDiff-UNet demonstrated a clear performance leap over existing state-of-the-art (SOTA) models, including the Segment Anything Model (SAM) and DeepLabv3.

Model Dice Score IOU
Unet 0.6078 0.4375
DeepLabv3-resnet50 0.7244 0.5791
SAM (Segment Anything) 0.6789 0.5256
VerseDiff-UNet (Ours) 0.7865 0.6765

Qualitative Analysis

Qualitative comparisons highlight the model's resilience to artifacts. While models like SAM or DeepLabv3 are often confused by metal hardware, VerseDiff-UNet utilizes its shape prior to "infer" the underlying bone structure, effectively treating surgical tools as noise to be filtered out.

Qualitative comparison of VerseDiff-UNet against other segmentation models across three challenging datasets.

Discussion and Conclusion

VerseDiff-UNet successfully balances local pixel-level accuracy with a global understanding of spinal structure. By framing segmentation as a generative task, the model achieves superior robustness against the "messiness" of real-world clinical data.

Despite these gains, some limitations remain. The iterative nature of diffusion models results in higher computational costs compared to single-pass architectures, which may impact real-time surgical applications. Additionally, while the model excels at structural identification, some fine-grained edge details can occasionally be lost. Future work will focus on optimizing inference speed and validating the model's performance across multi-modal datasets including CT and MRI.

Summary updated

BibTeX
@misc{2023introducing,
  author = {Yuyang Liu 刘宇阳 and Zhiqing Zhang and Guojia Fan and Tianyong Liu and Nan Li and Yuyang Liu and Ziyu Liu and Canwei Dong and Shoujun Zhou},
  title = {{Introducing Shape Prior Module in Diffusion Model for Medical Image Segmentation}},
  year = {2023},
  eprint = {2309.05929},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.05929},
}
Figure