Head and Neck Tumor Segmentation of MRI from Pre- and Mid-radiotherapy with Pre-training, Data Augmentation and Dual Flow UNet

Litingyu Wang, Wenjun Liao, Shichuan Zhang, Guotai WangarXiv 2024

TL;DR

This paper introduces a robust deep learning framework for segmenting head and neck tumors and lymph nodes from MRI scans taken before and during radiotherapy. By combining cross-modality pre-training, MixUp data augmentation, and a novel Dual Flow UNet (DFUNet) architecture, the authors successfully leverage pre-treatment anatomical priors to significantly improve mid-treatment tumor tracking.

What Problem Does This Paper Address?

In radiotherapy planning for head and neck (H&N) cancers, accurately delineating the gross tumor volume of primary tumors (GTVp) and metastatic lymph nodes (GTVn) is critical. While computed tomography (CT) is standard, it often lacks the soft-tissue contrast needed to clearly separate tumors from surrounding tissues. Magnetic resonance imaging (MRI) provides superior contrast, but automated MRI segmentation datasets are rare.

Furthermore, during a course of radiation therapy, tumors often shrink or shift. Tracking these changes requires segmenting "mid-radiotherapy" (mid-RT) images. This is exceptionally challenging because mid-RT scans capture anatomy in flux, and foreground tumor voxels are scarce. This paper tackles these gaps by optimizing pre-radiotherapy (pre-RT) segmentation and designing a network that uses pre-RT scans as a guide to accurately segment mid-RT scans.

Methods

The authors developed distinct strategies for two tasks using the nnUNetv2 framework:

  1. Pre-RT Segmentation (Task 1): The authors used a VNet-like encoder-decoder baseline. To combat data scarcity, they pre-trained the model on an external CT dataset. To bridge the modality gap between CT and MRI, they applied histogram matching and non-linear intensity transformations using Bézier curves during pre-training. They also integrated MixUp data augmentation, which creates new training samples by linearly interpolating pairs of image patches and their corresponding labels.
  2. Mid-RT Segmentation (Task 2): To segment tumors mid-treatment, the authors proposed the Dual Flow UNet (DFUNet). Instead of a standard single-stream network, DFUNet features two separate encoders: one for the mid-RT image and another for the registered pre-RT image combined with its ground-truth mask.
The proposed network architectures: (a) Basic Segmentation Network with MixUp, and (b) Dual Flow UNet (DFUNet) featuring two separate encoders.

Information from the pre-RT stream is progressively fused into the mid-RT stream at multiple encoder stages using a CNN-based cross-attention block that applies both spatial and channel attention.

Fig. 2. CNN-based cross attention block to integrate secondary information fpre into primary information fmid.

Datasets

  • SegRap2023 Challenge Dataset: Consists of 120 pairs of H&N CT and contrast-enhanced CT images. The authors used the 120 enhanced CT scans exclusively for cross-modality model pre-training.
  • HNTS-MRG2024 Challenge Dataset: The primary benchmark, containing 150 cases with three types of 3D T2-weighted MRI scans: pre-RT, mid-RT, and registered pre-RT images. This dataset was split into 5 folds for cross-validation and evaluation.

Key Insights and Ideas

  • Cross-Modality Pre-training Requires Intensity Alignment: Pre-training on CT data can transfer useful features to MRI tasks, but only if the severe intensity distribution mismatch is mitigated. Combining histogram matching with non-linear Bézier curve transformations prevents the model from over-relying on absolute intensity values.
Fig. 3. Raw image (the first column) and corresponding augmented images using Bézier Curve [8].
  • Prior Knowledge is a Powerful Anchor: In mid-RT scans, tumors can be highly deformed or faint. Providing the network with the exact pre-treatment tumor location and appearance via a secondary encoder stream provides a powerful spatial prior that prevents the model from getting lost in changed anatomy.
  • MixUp Mitigates Class Imbalance: Because tumors occupy a tiny fraction of a full 3D scan, standard patch-based training frequently samples "negative" patches (pure background). MixUp forces the network to continuously learn the boundaries between foreground and background classes, significantly boosting lymph node (GTVn) detection.

Key Results

The performance was evaluated using the aggregated Dice Similarity Coefficient (DSC):

  • Task 1 (Pre-RT): The combination of pre-training and MixUp achieved a final test DSC of 82.38% (78.51% for primary tumors and 86.24% for lymph nodes).
  • Task 2 (Mid-RT): Simply adding the registered pre-RT image and its mask to a baseline model provided a massive 18.56 percentage point boost in average cross-validation DSC. The final ensemble model achieved a test DSC of 72.53% (57.95% for GTVp and 87.12% for GTVn).
  • While the DFUNet architecture showed inconsistent performance across all validation folds, it outperformed the basic network in specific folds, showing an improvement of up to 2.44% DSC for primary tumors.

Limitations and Future Work

The primary tumor volume (GTVp) remains notoriously difficult to segment in mid-RT scans (dropping to 57.95% on the final test). The authors attribute this to severe class imbalance and the fact that standard nnUNetv2 sampling strategies do not adequately balance different foreground categories.

Furthermore, the DFUNet architecture's performance fluctuated across cross-validation folds. The authors note that future work will focus on refining the DFUNet architecture, optimizing its weight initialization, and exploring advanced domain adaptation techniques like cross-modal distillation or generative models to better harmonize CT and MRI features.

Summary updated

BibTeX
@misc{wang2024head,
  author = {Litingyu Wang and Wenjun Liao and Shichuan Zhang and Guotai Wang},
  title = {{Head and Neck Tumor Segmentation of MRI from Pre- and Mid-radiotherapy with Pre-training, Data Augmentation and Dual Flow UNet}},
  year = {2024},
  eprint = {2412.14846},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.14846},
}
Figure