Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Jul 16.
Published in final edited form as: Phys Med Biol. 2024 Jul 16;69(15):10.1088/1361-6560/ad5ef2. doi: 10.1088/1361-6560/ad5ef2

Head and Neck Tumor Segmentation from [18F]F-FDG PET/CT Images Based on 3D Diffusion Model

Yafei Dong 1, Kuang Gong 2,3
PMCID: PMC11302413  NIHMSID: NIHMS2010320  PMID: 38959909

Abstract

Objective.

Head and neck (H&N) cancers are among the most prevalent types of cancer worldwide, and [18F]F-FDG PET/CT is widely used for H&N cancer management. Recently, the diffusion model has demonstrated remarkable performance in various image-generation tasks. In this work, we proposed a 3D diffusion model to accurately perform H&N tumor segmentation from 3D PET and CT volumes.

Approach.

The 3D diffusion model was developed considering the 3D nature of PET and CT images acquired. During the reverse process, the model utilized a 3D UNet structure and took the concatenation of 3D PET, CT, and Gaussian noise volumes as the network input to generate the tumor mask. Experiments based on the HECKTOR challenge dataset were conducted to evaluate the effectiveness of the proposed diffusion model. Several state-of-the-art techniques based on U-Net and Transformer structures were adopted as the reference methods. Benefits of employing both PET and CT as the network input, as well as further extending the diffusion model from 2D to 3D, were investigated based on various quantitative metrics and qualitative results.

Main results.

Results showed that the proposed 3D diffusion model could generate more accurate segmentation results compared with other methods (mean Dice of 0.739 compared to less than 0.726 for other methods). Compared to the diffusion model in 2D form, the proposed 3D model yielded superior results (mean Dice of 0.739 compared to 0.669). Our experiments also highlighted the advantage of utilizing dual-modality PET and CT data over only single-modality data for H&N tumor segmentation (with mean Dice less than 0.570).

Significance.

This work demonstrated the effectiveness of the proposed 3D diffusion model in generating more accurate H&N tumor segmentation masks compared to the other reference methods.

1. Introduction

Head and neck (H&N) cancer is a comprehensive term encompassing malignancies that originate in the paranasal sinuses, nasal cavity, oral cavity, pharynx, and larynx. It ranks as the seventh most common type of cancer worldwide (Mody et al 2021). In 2020 alone, it was estimated that approximately 65630 new cases of oral cavity, pharyngeal, and laryngeal cancers would occur, accounting for about 3.6% of all new cancer cases in the United States (Pfister et al 2020). [18F]F-FDG PET and CT imaging stand out as the widely used modalities for the initial staging and subsequent monitoring of H&N cancer (Gupta et al 2011). [18F]F-FDG PET images can effectively highlight H&N tumors with high metabolic activities, but suffer from low image resolution and signal-to-noise ratio (SNR). Occasionally, distinguishing H&N tumors from other highly metabolically active normal tissues can be challenging based on [18F]F-FDG PET images. On the other hand, CT imaging offers valuable morphological insights into the structures of the human body. Consequently, integrating both [18F]F-FDG PET and CT images can synergistically provide complementary information, enhancing the accuracy of diagnosis and treatment planning. Accurate identification of a mass lesion and estimation of tumor volume significantly impact subsequent treatment planning. Inaccurate positionin of tumors can lead to substantial underdosing of the tumor or overdosing of critical organs during radiation treatment. However, it is a laborious job for radiologists to delineate the tumor volume from PET and CT images for every patient, especially when dealing with large cohorts. Hence, the development of highly accurate automatic segmentation techniques for H&N tumors holds great significance, which can facilitate faster and more reproducible tumor delineation.

Recently, deep learning methods built on convolutional neural networks (CNNs) have achieved impressive performance for medical image segmentation tasks. Ronneberger et al. (Ronneberger et al 2015) proposed the U-Net model for the segmentation of neuronal structures in electron microscopic stacks. It consists of an encoder, a decoder, and skip connections from the encoder to the decoder to restore the lost information. Over the years, the U-Net model has become the most widely adopted image segmentation architecture. Various extensions of U-Net have been proposed to handle the domain-specific complexity inherent in different segmentation tasks (Azad et al 2022, Guo et al 2019, Zhou et al 2019, Huang et al 2020, Xiang et al 2020, Oktay et al 2018, Li et al 2020, Çiçek et al 2016). The processing steps and parameter settings of U-Net models heavily relies on researchers’ expertise, particularly in cases where substantial dataset disparities exist. As a solution to this challenge, Isensee et al. (Isensee et al 2021) proposed a self-configuring U-Net model named nnU-Net, which has the capability to automatically configure itself regarding preprocessing, network architecture, training, and post-processing.

One potential issue of CNN-based segmentation networks is the limited receptive field through convolution operations. The Transformer networks, initially proposed for natural language processing (NLP) (Vaswani et al 2017), have a larger receptive field and can better utilize long-range spatial information than CNN. Researchers have extended Transformer networks to various computer vision tasks, including medical image denoising and segmentation (Jang et al 2023, Chen et al 2021, Dosovitskiy et al 2020, Hatamizadeh et al 2022, Hatamizadeh et al 2021). Chen et al. (Chen et al 2021) proposed the TransUNet model, which integrated the stacked vision transformer (ViT) (Dosovitskiy et al 2020) within the middle part of U-Net to address U-Net’s limitation in capturing long-range information. For 3D medical image segmentation, Hatamizadeh et al. (Hatamizadeh et al 2022) introduced a model named UNEt TRansformers (UNETR). This model adopted a UNet-like structure, utilizing ViT as the encoder to capture global information within 3D volumes. The Swin UNETR (Hatamizadeh et al 2021) is a modification to the original UNETR, where the 3D ViT was replaced by the Swin transformer (Liu et al 2021). The Swin transformer encoder can effectively extract features at different distinct resolutions by shift-window operations during self-attention calculation.

The diffusion model is one category of generative models and was initially proposed for image synthesis (Ho et al 2020). It decomposed a challenging image synthesis task into a sequence of image denoising subtasks, leading to more stable convergence compared to some conventional methods, reducing the risk of model collapse and overfitting. Therefore, the diffusion model showed competitive performance when compared with other state-of-the-art methods (Dhariwal and Nichol 2021) in the image synthesis task. Additionally, because of its generative nature, diffusion models can produce multiple outputs from the same input, which can be beneficial in situations where uncertainty or ambiguity is inherent to the task. This is in contrast to CNNs and Transformer networks, which are deterministic and yield only a single result for a given input. Beyond image synthesis, they also demonstrated significant potentials across various domains, e.g., image super-resolution (Saharia et al 2022), denoising (Gong et al 2023), inpainting (Rombach et al 2022) and segmentation (Wu et al 2022, Li et al 2024, Zhao et al 2024, Khosravi et al 2023). For all the aforementioned diffusion models-based approaches, the processing primarily focused on 2D slices in the transverse plane. This approach ignored the information existing between different axial slices, which is highly beneficial for 3D medical segmentation tasks.

In this work, we extended the diffusion model to the 3D form for H&N tumor segmentation, where 3D convolutional layers were deployed to extract features from three dimensions simultaneously based on both 3D [18F]F-FDG PET and CT images. To assess performance of the proposed 3D diffusion model, experiments were conducted using a publicly available H&N clinical dataset. Regarding reference methods, the proposed 3D diffusion model was compared with state-of-the-art U-Net- and Transformer-based approaches, including U-Net, nnU-Net, UNETR, Swin UNETR, and Pengy U-Net. Benefits of 3D over 2D for diffusion models regarding performance and uncertainty evaluation were also investigated. Finally, benefits of supplying PET and CT images together as the input of diffusion models were also evaluated with that of utilizing PET or CT images alone.

2. Method

2.1. Diffusion Models

The denoising diffusion probabilistic model (DDPM) (Ho et al 2020) is one popular framework of diffusion models, which was adopted in our work. DDPM consists of two processes: a forward process that gradually adds Gaussian noise to the clean data (such as signals, images, or volumes) via a predefined Markov chain and a backward process that tries to iteratively recover the original data from noise. During the forward process, given the clean data x0 sampled from the distribution q(x0), small amounts of Gaussian noise are gradually added to it in T timesteps using a predefined Markov chain as:

qx1:T|x0=∏t=1Tqxt|xt−1, (1)
qxt|xt−1=𝒩xt;1−βtxt−1,βtI, (2)

where 𝒩(x;μ,σ2) denotes the Gaussian distribution x with mean μ and variance σ2, and βt is a hyper-parameter to control the variance of the Gaussian noise. I denotes the unit matrix. When T becomes large enough, the distribution of xT can be regarded as an isotropic Gaussian distribution. With αt=1−βt and α¯t=∏i=1tαi, the forward process can be rewritten as:

qxt|x0=𝒩xt;α¯tx0,1−α¯tI. (3)

During the reverse process, a neural network with learnable parameters θ is trained to recover the clean data x0 from the corrupted data xT (sampled from the Gaussian distribution) step by step. To constrain the stochasticity from random-sampled xT, the conditional data yt is provided as the input of the neural network together with xt and the time step t. Therefore, the reverse process is defined as:

pθx0:T=pxT∏t=1Tpθxt−1|xt,yt, (4)
pxT=𝒩xT; 0, I, (5)
pθxt−1|xt,yt=𝒩xt−1;μθxt,yt,t,Σθxt,yt,t, (6)

where μθxt,yt,t and Σθxt,yt,t) denote the predicted mean and variance value by the neural network respectively from input xt, yt, and t. Nevertheless, in practice, we tend to train the model to predict the added noise instead of mean and variance, and the parameters θ of the neural network is trained by minimizing the difference between the added noise ϵt and the estimated noise ϵθxt,yt,t in every step t as follows:

ℒ(θ)=∑tϵt−ϵθxt,yt,t2. (7)

After getting the ϵθxt,yt,t, the mean value μθxt,yt,t can be derived as:

μθxt,yt,t=1αtxt−1−αt1−α¯tϵθxt,yt,t. (8)

Besides, in (Ho et al 2020), Ho et al. chose to manually set Σθxt,yt,t) as βtI. Therefore, finally, the xt−1 can be calculated as:

xt−1=1αtxt−1−αt1−α¯tϵθxt,yt,t+βtz, (9)

where z~𝒩(0,I). By repeating the aforementioned process T times, the clean data x0 can be restored from noise.

2.2. Network Structure

The graphic illustration of the proposed 3D diffusion model is shown in Figure 1. For our H&N segmentation task, both input and output data were represented in 3D form with size D×H×W, where D, H, and W corresponded to dimensions in the depth (i.e., number of axial slices), height, and width directions, respectively. The targeted clean data x0 was the 3D tumor mask. During training, in the forward process, we gradually introduced small amounts of Gaussian noise to the 3D tumor mask x0, resulting in the distorted data xT as illustrated at the top of Figure 1. In the reverse process, a neural network with parameters θ was employed to reconstruct the clean data x0 from xT. The 3D volumes of [18F]F-FDG PET, CT, and xt were concatenated in the channel dimension as the input for the neural network, with a size of 3×D×H×W, as described at the bottom of Figure 1. During inference, the reverse process started from a randomly sampled Gaussian distribution with a mean of 0 and a standard deviation of 1 for xT, generating the clean segmentation x0 step by step. Typically, a 2D U-Net model is utilized in the reverse process. For our specific 3D segmentation task, we applied a 3D U-Net model to effectively capture all information across the three dimensions. The convolutional layers in this model employed 3D operations with kernel sizes of (3, 3, 3). The kernel sizes for the downsample and upsample operations were set to (1, 2, 2), trying to preserving the information along the axial direction. Additionally, we adopted the residual block as the fundamental unit in the model, as introduced in (Brock et al 2018). Each block included group normalization layers (Wu and He 2018), SiLU activation layers (Elfwing et al 2018), convolutional layers, and the residual skip connection. Regarding the hyper-parameters during the forward and reverse process, we designated a total of 1000 time steps T=1000 and implemented a linear noise schedule for βt. Table 1 shows a detailed list of parameter settings of our model.

Figure 1:

Figure 1:

Graphic illustration for our proposed 3D diffusion model. In the forward process, small amounts of Gaussian noise were added to the 3D tumor masks. In the reverse process, the model took 3D [18F]F-FDG-PET, CT, and Gaussian distribution volumes as input and restored the 3D tumor masks step by step.

Table 1:

List of detailed hyper-parameters of the proposed 3D diffusion model. For input and output dimensions, N denotes the batch size, and D, H, and W represent dimensions in the depth, height, and width directions, respectively. The base channels represent the dimensions of the initial layer, whereas the channel multipliers serve as factors that are multiplied by the base channels for subsequent layers.

Hyper-parameter Value
Input Dimension N×3×D×H×W
Output Dimension N×1×D×H×W
Convolutional Kernel Size (3, 3, 3)
Down/up-sample Kernel Size (1, 2, 2)
Diffusion Steps 1000
Noise Schedule Linear
Base Channels 128
Channel Multiplier (1, 1, 2, 3, 4)
Residual Blocks 2
Model Size 214M

2.3. Dataset and Prepocessing

The HEad and neCK TumOR 2021 (HECKTOR 2021) challenge dataset (Andrearczyk et al 2021) was utilized in the experiment. This dataset comprised of 224 cases with H&N tumor located in the oropharynx region sourced from five centers at Canada and France (HGJ, CHUS, HMR, CHUM and CHUP). Each case included the co-registered 3D [18F]F-FDG PET volume and 3D CT volume focusing on the head and neck region as well as a binary contour outlining the annotated ground truth of the tumor. The [18F]F-FDG PET volumes were expressed in Standardized Uptake Values (SUV), while the CT volumes were measured in Hounsfield Units (HU). A bounding box pinpointing the oropharynx region was also included. Besides, patient clinical data were also provided for all cases including center, age, gender, TNM 7/8th edition staging and clinical stage, tobacco and alcohol consumption, performance status, HPV status, and treatment (radiotherapy only or chemoradiotherapy). According to the clinical data, there were 167 male cases and 57 female cases among all 224 cases, and the average age of the patients in the dataset was 62.7 years old. Out of these cases, 84 had a positive HPV status. The segmentation task poses challenges, including variations in image acquisition and quality across centers, as well as the presence of lymph nodes exhibiting high metabolic responses in the PET images. Across the five centers, PET/CT scanners from GE Healthcare were used by three centers, while one center utilized a scanner from Philips and another utilized a scanner from Siemens. To evaluate various models’ performances, we manually divided the dataset into training, validation, and testing sets of 170, 14, and 40 cases, respectively. We resampled the data to the isotropic resolution of 1 × 1 × 1 mm3 and the size of 144 × 144 × 144 by using the trilinear interpolation. The values of CT and PET data were normalized to the range of [−1,1].

2.4. Reference Methods

We conducted a comparative analysis between our proposed 3D DDPM method and other state-of-the-art U-Net- and Transformer-based methods in the field of medical image segmentation. The reference models included the plain 3D U-Net (Ronneberger et al 2015), 3D nnU-Net (Isensee et al 2021), UNETR (Hatamizadeh et al 2022), Swin UNETR (Hatamizadeh et al 2021), and Pengy U-Net (Xie and Peng 2021). Even though the plain U-Net was proposed nine years ago, it remains a highly effective tool in the field of medical image segmentation. In the HECKTOR 2021 challenge, almost all participating teams utilized U-Net-based models (Andrearczyk et al 2021). nnU-Net is a UNet-based segmentation method that automatically configures its preprocessing, network architecture, training, and post-processing to suit new tasks. UNETR employs a transformer architecture as its encoder to extract sequence representations from the input volume, allowing it to capture global multi-scale information. It also maintains a ”U-shaped” network design that connects encoder and decoder components, similar to traditional U-Net models. Similarly, Swin UNETR applies a swin transformer encoder to extract features at five different resolutions by utilizing shifted windows for computing self-attention. Pengy U-Net was the winning model (team “Pengy”) of HECKTOR 2021 challenge, whose main innovation is the incorporation of Squeeze-and-excitation normalization (SE Norm) (Iantsen et al 2021) into a U-Net structure.

To demonstrate the effectiveness of 3D-based diffusion models, we also conducted an experiment to compare the performances of 3D and 2D DDPM. The network structure utilized in 2D DDPM was set to be the same as that of 3D DDPM, except that 3D convolutional layers and down/up-sample layers were replaced by the corresponding 2D operations.

In the previous experiments, the input for all models consisted of dual-modality information obtained from both [18F]F-FDG PET and CT volumes, aiming to leverage the complementary information available from these distinct modalities. We further carried out an experiment to exam the effect of different modalities on the segmentation task by training the proposed 3D diffusion model using three different sets of input: 3D FDG-PET only, 3D CT only, and 3D FDG PET combined with CT. All other aspects of the training process were kept be the same when varying the network input.

2.5. Implementation Details

Due to the substantial memory requirements of processing 3D multi-modality volumes, the batch size was set to 1. Moreover, to reduce the memory consumption and accelerate the training speed, we applied random cropping to the original volume, generating small volumes of size 32 × 96 × 96 to train the 3D DDPM. Additionally, we employed data augmentation techniques, such as rotation and flipping, to enhance the diversity of the training data. The learning rate was set to 1 × 10−4, and a dropout rate of 0.1 was applied.

To ensure a fair comparison, all 3D models processed small 3D volumes with the size consistent with 3D DDPM. The 2D DDPM was trained using 2D patches with the size of 96 × 96, which were randomly cropped from 2D slices of the transverse view. The number of trainable parameters for each model was set to be roughly equivalent to that of the 3D DDPM. This was achieved by modifying the number of channels in each layer, while keeping the overall structure of the models unchanged. Moreover, training parameters, including optimizer selection and learning rate, were standardized to match those employed in the 3D DDPM. The validation set consisting of 18 cases was utilized to select the optimal checkpoints for all models in our study. The training of all the models was based on a single RTX8000 GPU (48 GB memory), the PyTorch platform and the Adam optimizer.

2.6. Data Analysis

We adopted six different metrics to quantitatively evaluate the segmentation results, including the Dice similarity coefficient (DSC), 95th percentile Hausdorff distance (HD95), sensitivity, specificity, false positive rate (FPR), and false negative rate (FNR). DSC is a widely employed metric in segmentation tasks to measure the volumetric overlap between the segmentation output and the ground truth, defined as follows:

DSCx^0,x0GT=2x^0∩x0GTx^0+x0GT, (10)

where x^0 and x0GT denote the output and ground-truth segmentation masks, respectively. HD measures the distance between the surfaces of the predicted tumor volumes and the surfaces of the ground-truth tumor volumes. To reduce the impact of outliers, the 95th percentile Hausdorff distance (HD95) is often preferred, calculated as follows:

HD95x^0,x0GT=P95maxx∈x^0miny∈x0GTd(x,y),maxy∈x0GTminx∈x^0d(x,y), (11)

where dx,y denotes the Euclidean distance between points x and y, and P95 is an operator extracting the 95th percentile. Furthermore, sensitivity and specificity are also widely utilized metrics. Specificity measures the true negative rate, indicating the model’s ability to correctly identify non-tumor regions, while sensitivity measures the model’s ability to accurately segment tumor regions. Sensitivity and specificity are calculated as follows:

Sensitivity=TPTP+FN, (12)
Specificity=TNFP+TN, (13)

where TP, TN, FP, and FN represent numbers of true positives, true negatives, false positives, and false negatives, respectively. To better illustrate the false classification rates for each method, we also reported the FPR and FNR as follows:

FPR=1−Specificity=FPFP+TN, (14)
FNR=1−Specificity=FNFN+TP. (15)

Balancing false positive and false negative errors is vital for a reliable and accurate tumor segmentation model. All metrics were computed based on the segmentation results in 3D volumes with size of 144 × 144 × 144.

3. Results

3.1. Comparison with Reference Methods

The qualitative and quantitative evaluation results of the proposed method and the reference methods are shown in Figure 2 and Table 2, respectively. In Table 2, we calculated the average and standard deviation values across all testing cases for each method. For the HD95 metric, we calculated the median value instead due to its upper limit being infinity. The quantitative results showed that the proposed 3D DDPM achieved the highest DSC (0.739) and lowest HD95 (5.000) among all the reference methods; meanwhile, the nnU-Net attained the second-best DSC and HD95. We also noticed that incorporating the Transformer structure in UNETR could improve the performance as compared to the plain U-Net. The Swin UNETR, which employed the advanced Swin transformer structure, could further surpasses the performance of UNETR. Moreover, due to the low proportion of tumor regions in the volumes, all models achieved high specificity. The plain U-Net had the lowest FNR but the highest FPR, indicating that its segmentation results suffer from a high number of false positive errors. Conversely, the nnU-Net achieved the lowest FPR but the highest FNR, indicating a high risk of misclassifying tumors as background. The proposed 3D DDPM model attained the second-best results in sensitivity, FNR and FPR, suggesting a better balance between false positive and false negative errors.

Figure 2:

Figure 2:

Three views of the H&N segmentation results generated by different methods.

Table 2:

Comparison of metrics from different models (mean ± standard deviation, median value for HD95). Note that ↑ indicates that larger values provide better results, while ↓ indicates the opposite. Bold indicates the best performance, while underline indicates the second best.

DSC ↑ HD95 (mm) ↓ Sensitivity ↑ Specificity ↑ FPR ↓ FNR ↓
U-Net 0.653 (±0.198) 54.775 0.765 (±0.186) 0.997 (±0.003) 0.0031 (±0.0031) 0.235 (±0.185)
UNETR 0.684 (±0.188) 18.400 0.701 (±0.198) 0.998 (±0.001) 0.0013 (±0.0014) 0.299 (±0.198)
Swin UNETR 0.700 (±0.189) 8.862 0.725 (±0.211) 0.998 (±0.002) 0.0014 (±0.0017) 0.275 (±0.212)
nnU-Net 0.726 (±0.188) 7.071 0.679 (±0.218) 0.999 (±0.001) 0.0005 (±0.0006) 0.321 (±0.218)
Pengy U-Net 0.703 (±0.164) 18.871 0.708 (±0.199) 0.999 (±0.001) 0.0013 (±0.0015) 0.292 (±0.199)
3D DDPM 0.739 (±0.136) 5.000 0.739 (±0.188) 0.999 (±0.001) 0.0011 (±0.0014) 0.260 (±0.188)

This trend can also be observed in Figure 2. Referring to Table 2, the plain U-Net model produced the highest FPR and the lowest FNR. Consequently, as shown in Figure 2, the plain U-Net tended to classify more pixels as tumor regions, resulting in more false positive errors. Conversely, the nnU-Net exhibited high FNR, as observed in the qualitative results, leading to the under-segmentation that missed numerous tumor regions. In comparison to these methods, the proposed 3D DDPM model attained the optimal balance between false positive and false negative errors, rendering it more effective for H&N tumor segmentation.

3.2. Comparison with 2D DDPM

Quantitative and qualitative comparisons of 2D and 3D DDPM are presented in Table 3 and Figure 3, respectively. From the quantitative results in Table 3, 3D DDPM achieved the best performance across all metrics. Qualitative results indicated that 2D DDPM tended to under-segment compared to 3D DDPM, consistent with the high FNR (0.351) of 2D DDPM. These results demonstrate the importance of the information present among neighboring slices for image segmentation tasks, and also the benefits of further extending diffusion models from 2D to 3D.

Table 3:

Comparison of metrics from the 3D and 2D diffusion models (mean ± standard deviation, median value for HD95). Note that ↑ indicates that larger values provide better results, while ↓ indicates the opposite. Bold indicates the best performance.

DSC ↑ HD95 (mm) ↓ Sensitivity ↑ Specificity ↑ FPR ↓ FNR ↓
2D DDPM 0.669 (±0.185) 12.042 0.649 (±0.221) 0.999 (±0.001) 0.0011 (±0.0012) 0.351 (±0.221)
3D DDPM 0.739 (±0.136) 5.000 0.739 (±0.188) 0.999 (±0.001) 0.0011 (±0.0014) 0.260 (±0.188)

Figure 3:

Figure 3:

Three views of H&N segmentation results from the diffusion models in 2D and 3D forms.

3.3. Comparison with Single Modality-Based Segmentations

Quantitative results of the 3D diffusion model with different network inputs are presented in Table 4. The comparative results clearly highlighted the superior performance achieved with dual-modality input (mean DSC of 0.739 compared to less than 0.570). Furthermore, the model utilizing PET-only input achieved the second-best results, whereas the model relying on CT-only input performed significantly worse compared to the other two. This observation showed that [18F]F-FDG PET was more effective at delineating H&N tumors with high metabolic activities than CT images. These observations were consistent with the qualitative results presented in Figure 4. This experiment showed that integrating information from different modalities could effectively enhance the accuracy of H&N tumors delineation.

Table 4:

Comparison of metrics from the 3D diffusion models with different modality inputs (mean ± standard deviation, median value for HD95). Note that ↑ indicates that larger values provide better results, while ↓ indicates the opposite. Bold indicates the best performance, while underline indicates the second best.

DSC ↑ HD95 (mm) ↓ Sensitivity ↑ Specificity ↑ FPR ↓ FNR ↓
CT Only 0.352 (±0.224) 47.021 0.321 (±0.208) 0.998 (±0.001) 0.0016 (±0.0015) 0.679 (±0.208)
FDG-PET Only 0.570 (±0.221) 24.145 0.638 (±0.244) 0.997 (±0.003) 0.0031 (±0.0034) 0.362 (±0.243)
FDG-PET w/ CT 0.739 (±0.136) 5.000 0.739 (±0.188) 0.999 (±0.001) 0.0011 (±0.0014) 0.260 (±0.188)

Figure 4:

Figure 4:

Three views of H&N segmentation results from the 3D diffusion models with different input modalities.

3.4. Comparison of Uncertainty from DDPM-based Methods

Stochasticity is one intrinsic property of diffusion models due to the randomly sampled Gaussian noise xT injected during the inference process. Consequently, for each inference process, the generated x0 will have variations, even with the same conditional data. Understanding the degree of uncertainty helps in assessing the stability and consistency of the model’s predictions, which is crucial in medical imaging and segmentation tasks. To explore the impact of this stochasticity, we repeated the inference process ten times, generating ten different predictions for each case. To represent the uncertainty of each case, we calculated the standard deviation across these ten predictions. We then averaged the standard deviations across all cases to illustrate the overall uncertainty of each method. The models involved in this experiment included both 2D and 3D diffusion models with dual-modality inputs, along with 3D diffusion models with single-modality inputs. The qualitative and quantitative results of uncertainty are illustrated in Figure 5 and Table 5. From the results, it is noteworthy that adding dual-modality inputs could significantly reduce the uncertainty of the diffusion model when comparing 2D/3D DDPM (PET and CT) to 3D DDPM (PET or CT only). The standard deviation of the results from the 3D DDPM (PET and CT) is ten times lower than that of the 3D DDPM (PET only), with values of 0.00024 and 0.00271, respectively. Furthermore, compared with 2D DDPM (PET and CT), it is obvious that 3D DDPM (PET and CT) could further reduce the uncertainty of the generated H&N tumor segmentation masks. These observations confirmed that employing 3D operations and dual-modality inputs in diffusion models can effectively reduce stochasticity, resulting in the generation of more robust outcomes.

Figure 5:

Figure 5:

Three views of the uncertainty maps of H&N tumor segmentation results from different DDPM-based methods.

Table 5:

Comparison of uncertainty in H&N tumor segmentation results from different DDPM-based methods.

2D DDPM (FDG-PET w/ CT) 3D DDPM (CT Only) 3D DDPM (FDG-PET Only) 3D DDPM (FDG-PET w/ CT)
Standard Deviation 0.00041 0.00168 0.00271 0.00024

4. Discussion

In this work, we extended the diffusion model to 3D form for the automatic H&N tumor segmentation based on 3D PET and CT volumes. Validations were conducted based on the publicly available HECKTOR 2021 dataset. Quantitative results showed that the proposed 3D diffusion model outperformed other reference models based on the U-Net and Transformer architectures (plain U-Net, UNETR, Swin UNETR, nnU-Net and Pengy U-Net), achieving the best DSC and HD95 values. Furthermore, the proposed 3D diffusion model achieved the best balance between false positive and false negative errors. Experiments were also conducted to compare the performances of the diffusion model in 2D and 3D forms, highlighting the effectiveness of extracting 3D features from 3D PET and CT volumes. Performances of the 3D diffusion model with dual-modality and single-modality inputs were also evaluated, which demonstrated the effectiveness of leveraging complementary information from different imaging modalities. Additionally, the comparison of uncertainty provided further evidence of the capability of 3D operation and dual-modality input in effectively reducing the stochasticity.

Thanks to its strong capacity for image generation, the diffusion model has been applied to image segmentation tasks (Wu et al 2022, Li et al 2024, Zhao et al 2024, Khosravi et al 2023). However, these models operate primarily in 2D space, whereas our experimental results highlight the benefits of 3D operations. While the diffusion model has demonstrated outstanding performance, its primary drawbacks are the high computational demand and slow processing speed. As previously explained, during the reverse process, the clean data x0 was gradually reconstructed from the initial random Gaussian distribution xT step by step. Typically, the time step T was set to 1000 (Ho et al 2020) and thus the reverse process needed to iterate 1000 times during each inference. In our experiment, using one RTX8000 GPU, the 3D diffusion model took approximately 14.7 minutes to complete the inference for one case, regardless of the modality inputs, while the 2D diffusion model took 10.8 minutes. Both models were significantly slower than the U-Net-based models. To address this issue, researchers have proposed various techniques to reduce the number of time steps, e.g., DDIM (Song et al 2020), DPMSolver (Lu et al 2022), and Analytic-DPM (Bao et al 2022). In the future, we plan to explore these techniques to reduce the inference time of the diffusion model, making it more efficient and practical for the image segmentation task.

In this work, the dataset utilized for training and testing all models was the HECKTOR 2021 dataset, which included 224 cases from 5 centers worldwide. In our future work, we plan to train and evaluate the proposed framework based on datasets from additional cohorts to encompass a broader spectrum of patients, which can contribute to more comprehensive and robust model training and validation. Additionally, the HECKTOR 2021 dataset focused on oropharyngeal cancers in the head and neck region of patients. Moving forward, we plan to extend our methods to other medical image segmentation tasks, such as lung cancer, liver tumors, and brain lesions. By broadening the application scope, we aim to evaluate the generalizability and robustness of our methods across various anatomical regions and medical imaging challenges.

The diffusion model is a general framework where various neural network structures can be employed to generate the output from the Gaussian noise and the conditional input. In our work, due to limitations in GPU memory and computational speed, we utilized a 3D U-Net model without any attention mechanism within the diffusion framework. Employing a more powerful neural network architect, such as the Transformer structure and the newly proposed structured state space models (Gu et al 2021, Gu and Dao 2023), can potentially enhance the performance of the diffusion model, which is also one of our future research directions.

Uncertainty quantification is a critical aspect of many machine learning applications, especially in fields where reliability and risk assessment are crucial, such as healthcare. Due to their generative nature, diffusion models can produce multiple outputs from the same input, offering a potential approach for uncertainty quantification. Future work will explore the use of diffusion models for uncertainty quantification, particularly in comparison with other stochastic uncertainty quantification methods like Monte Carlo Dropout.

5. Conclusion

In this work, we developed a 3D diffusion model to perform automated H&N tumor segmentation from [18F]F-FDG PET and CT images. The diffusion model employed a 3D UNet model and utilized the concatenation of 3D PET, CT, and Gaussian noise volumes as the network inputs. Effectiveness of the proposed diffusion model was validated through the comparison with other state-of-the-art methods based on the U-Net and Transformers. Both qualitative and quantitative results demonstrated that the proposed 3D diffusion model could generate more accurate H&N tumor segmentation masks compared to the other reference methods.

6. Acknowledgements

This work was supported by the National Institutes of Health under grants R21AG067422, R03EB030280, R01AG078250, and P41EB022544.

References

  1. Andrearczyk V, Oreiller V, Boughdad S, Rest CCL, Elhalawani H, Jreige M, Prior JO, Vallières M, Visvikis D, Hatt M et al. 2021. in ‘3D head and neck tumor segmentation in PET/CT challenge’ Springer; pp. 1–37. [Google Scholar]
  2. Azad R, Aghdam EK, Rauland A, Jia Y, Avval AH, Bozorgpour A, Karimijafarbigloo S, Cohen JP, Adeli E and Merhof D 2022. Medical image segmentation review: The success of u-net arXiv preprint arXiv:2211.14830. [DOI] [PubMed] [Google Scholar]
  3. Bao F, Li C, Zhu J and Zhang B 2022. Analytic-dpm: an analytic estimate of the optimal reverse variance in diffusion probabilistic models arXiv preprint arXiv:2201.06503. [Google Scholar]
  4. Brock A, Donahue J and Simonyan K 2018. Large scale gan training for high fidelity natural image synthesis arXiv preprint arXiv:1809.11096. [Google Scholar]
  5. Chen J, Lu Y, Yu Q, Luo X, Adeli E, Wang Y, Lu L, Yuille AL and Zhou Y 2021. Transunet: Transformers make strong encoders for medical image segmentation arXiv preprint arXiv:2102.04306. [Google Scholar]
  6. Çiçek Ö, Abdulkadir A, Lienkamp SS, Brox T and Ronneberger O 2016. in ‘Medical Image Computing and Computer-Assisted Intervention–MICCAI 2016: 19th International Conference, Athens, Greece, October 17–21, 2016, Proceedings, Part II 19’ Springer; pp. 424–432. [Google Scholar]
  7. Dhariwal P and Nichol A 2021. Diffusion models beat gans on image synthesis Advances in neural information processing systems 34, 8780–8794. [Google Scholar]
  8. Dosovitskiy A, Beyer L, Kolesnikov A, Weissenborn D, Zhai X, Unterthiner T, Dehghani M, Minderer M, Heigold G, Gelly S et al. 2020. An image is worth 16x16 words: Transformers for image recognition at scale arXiv preprint arXiv:2010.11929. [Google Scholar]
  9. Elfwing S, Uchibe E and Doya K 2018. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning Neural networks 107, 3–11. [DOI] [PubMed] [Google Scholar]
  10. Gong K, Johnson K, El Fakhri G, Li Q and Pan T 2023. Pet image denoising based on denoising diffusion probabilistic model European Journal of Nuclear Medicine and Molecular Imaging pp. 1–11. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Gu A and Dao T 2023. Mamba: Linear-time sequence modeling with selective state spaces arXiv preprint arXiv:2312.00752. [Google Scholar]
  12. Gu A, Goel K and Ré C 2021. Efficiently modeling long sequences with structured state spaces arXiv preprint arXiv:2111.00396. [Google Scholar]
  13. Guo Z, Guo N, Gong K, Li Q et al. 2019. Gross tumor volume segmentation for head and neck cancer radiotherapy using deep dense multi-modality network Physics in Medicine & Biology 64(20), 205015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Gupta T, Master Z, Kannan S, Agarwal JP, Ghsoh-Laskar S, Rangarajan V, Murthy V and Budrukkar A 2011. Diagnostic performance of post-treatment fdg pet or fdg pet/ct imaging in head and neck cancer: a systematic review and meta-analysis European journal of nuclear medicine and molecular imaging 38, 2083–2095. [DOI] [PubMed] [Google Scholar]
  15. Hatamizadeh A, Nath V, Tang Y, Yang D, Roth HR and Xu D 2021. in ‘International MICCAI Brainlesion Workshop’ Springer; pp. 272–284. [Google Scholar]
  16. Hatamizadeh A, Tang Y, Nath V, Yang D, Myronenko A, Landman B, Roth HR and Xu D 2022. in ‘Proceedings of the IEEE/CVF winter conference on applications of computer vision’ pp. 574–584. [Google Scholar]
  17. Ho J, Jain A and Abbeel P 2020. Denoising diffusion probabilistic models Advances in Neural Information Processing Systems 33, 6840–6851. [Google Scholar]
  18. Huang H, Lin L, Tong R, Hu H, Zhang Q, Iwamoto Y, Han X, Chen YW and Wu J 2020. in ‘ICASSP 2020–2020 IEEE international conference on acoustics, speech and signal processing (ICASSP)’ IEEE; pp. 1055–1059. [Google Scholar]
  19. Iantsen A, Visvikis D and Hatt M 2021. in ‘Head and Neck Tumor Segmentation: First Challenge, HECKTOR 2020, Held in Conjunction with MICCAI 2020, Lima, Peru, October 4, 2020, Proceedings 1’ Springer; pp. 37–43. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Isensee F, Jaeger PF, Kohl SA, Petersen J and Maier-Hein KH 2021. nnu-net: a self-configuring method for deep learning-based biomedical image segmentation Nature methods 18(2), 203–211. [DOI] [PubMed] [Google Scholar]
  21. Jang SI, Pan T, Li Y, Heidari P, Chen J, Li Q and Gong K 2023. Spach transformer: spatial and channel-wise transformer based on local and global self-attentions for pet image denoising IEEE Transactions on Medical Imaging. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Khosravi B, Rouzrokh P, Mickley JP, Faghani S, Mulford K, Yang L, Larson AN, Howe BM, Erickson BJ, Taunton MJ et al. 2023. Few-shot biomedical image segmentation using diffusion models: Beyond image generation Computer Methods and Programs in Biomedicine 242, 107832. [DOI] [PubMed] [Google Scholar]
  23. Li C, Tan Y, Chen W, Luo X, Gao Y, Jia X and Wang Z 2020. in ‘2020 IEEE international conference on image processing (ICIP)’ IEEE; pp. 345–349. [Google Scholar]
  24. Li G, Jin D, Zheng Y, Cui J, Gai W and Qi M 2024. A generic plug & play diffusion-based denosing module for medical image segmentation Neural Networks 172, 106096. [DOI] [PubMed] [Google Scholar]
  25. Liu Z, Lin Y, Cao Y, Hu H, Wei Y, Zhang Z, Lin S and Guo B 2021. in ‘Proceedings of the IEEE/CVF international conference on computer vision’ pp. 10012–10022. [Google Scholar]
  26. Lu C, Zhou Y, Bao F, Chen J, Li C and Zhu J 2022. Dpm-solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps Advances in Neural Information Processing Systems 35, 5775–5787. [Google Scholar]
  27. Mody MD, Rocco JW, Yom SS, Haddad RI and Saba NF 2021. Head and neck cancer The Lancet 398(10318), 2289–2299. [DOI] [PubMed] [Google Scholar]
  28. Oktay O, Schlemper J, Folgoc LL, Lee M, Heinrich M, Misawa K, Mori K, McDonagh S, Hammerla NY, Kainz B et al. 2018. Attention u-net: Learning where to look for the pancreas arXiv preprint arXiv:1804.03999. [Google Scholar]
  29. Pfister DG, Spencer S, Adelstein D, Adkins D, Anzai Y, Brizel DM, Bruce JY, Busse PM, Caudell JJ, Cmelak AJ et al. 2020. Head and neck cancers, version 2.2020, nccn clinical practice guidelines in oncology Journal of the National Comprehensive Cancer Network 18(7), 873–898. [DOI] [PubMed] [Google Scholar]
  30. Rombach R, Blattmann A, Lorenz D, Esser P and Ommer B 2022. in ‘Proceedings of the IEEE/CVF conference on computer vision and pattern recognition’ pp. 10684–10695. [Google Scholar]
  31. Ronneberger O, Fischer P and Brox T 2015. in ‘Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015: 18th International Conference, Munich, Germany, October 5–9, 2015, Proceedings, Part III 18’ Springer; pp. 234–241. [Google Scholar]
  32. Saharia C, Ho J, Chan W, Salimans T, Fleet DJ and Norouzi M 2022. Image super-resolution via iterative refinement IEEE Transactions on Pattern Analysis and Machine Intelligence 45(4), 4713–4726. [DOI] [PubMed] [Google Scholar]
  33. Song J, Meng C and Ermon S 2020. Denoising diffusion implicit models arXiv preprint arXiv:2010.02502. [Google Scholar]
  34. Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser Ł and Polosukhin I 2017. Attention is all you need Advances in neural information processing systems 30. [Google Scholar]
  35. Wu J, Fang H, Zhang Y, Yang Y and Xu Y 2022. Medsegdiff: Medical image segmentation with diffusion probabilistic model arXiv preprint arXiv:2211.00611. [Google Scholar]
  36. Wu Y and He K 2018. in ‘Proceedings of the European conference on computer vision (ECCV)’ pp. 3–19. [Google Scholar]
  37. Xiang T, Zhang C, Liu D, Song Y, Huang H and Cai W 2020. in ‘Medical Image Computing and Computer Assisted Intervention–MICCAI 2020: 23rd International Conference, Lima, Peru, October 4–8, 2020, Proceedings, Part I 23’ Springer; pp. 74–84. [Google Scholar]
  38. Xie J and Peng Y 2021. in ‘3D Head and Neck Tumor Segmentation in PET/CT Challenge’ Springer; pp. 92–98. [Google Scholar]
  39. Zhao Y, Li J, Ren L and Chen Z 2024. Dtan: Diffusion-based text attention network for medical image segmentation Computers in Biology and Medicine 168, 107728. [DOI] [PubMed] [Google Scholar]
  40. Zhou Z, Siddiquee MMR, Tajbakhsh N and Liang J 2019. Unet++: Redesigning skip connections to exploit multiscale features in image segmentation IEEE transactions on medical imaging 39(6), 1856–1867. [DOI] [PMC free article] [PubMed] [Google Scholar]

RESOURCES