Video-TransUNet: Temporally Blended Vision Transformer for CT VFSS Instance Segmentation

Chengxi Zeng, Xinyu Yang, Majid Mirmehdi, Alberto M Gambaruto, Tilo Burghardt

TL;DR

Video-TransUNet is a novel deep learning architecture that brings temporal awareness to medical video segmentation. By integrating a temporal feature blending module into the popular TransUNet framework, the researchers achieved state-of-the-art accuracy in tracking food boluses and anatomical structures during swallowing studies, providing a powerful new tool for diagnosing dysphagia.

What Problem Does This Paper Address?

Dysphagia, or swallowing dysfunction, is a serious medical condition affecting millions, particularly the elderly. It can lead to life-threatening complications like aspiration pneumonia. The clinical "gold standard" for diagnosis is the Videofluoroscopic Swallowing Study (VFSS), where patients swallow a barium-coated bolus while being recorded via X-ray (CT) video.

However, analyzing these videos is a nightmare for clinicians. The image quality is often poor due to radiation noise, anatomical structures overlap in the 2D projection, and manual frame-by-frame annotation is incredibly tedious and prone to human error. While previous computer vision research focused on tracking bones (like the hyoid), accurately segmenting the dynamic, fast-moving food bolus itself has remained a significant challenge.

Methods

The authors introduce Video-TransUNet, an end-to-end architecture designed to exploit the temporal relationships inherent in video data. The pipeline consists of four main stages:

  1. Feature Extraction: A ResNet-50 CNN backbone extracts spatial features from a stack of neighboring video frames (past, current, and future).
  2. Temporal Context Module (TCM): This is the core innovation. Instead of looking at frames in isolation, the TCM uses a self-attention mechanism to "blend" features across the frame stack. This allows the model to understand how the bolus moves over time, helping it resolve ambiguities in any single frame.
  3. Vision Transformer (ViT) Block: The blended features are passed through a Transformer to learn non-local, high-level semantic relationships, capturing the global context of the swallowing tract.
  4. Multi-Head Decoder: A U-Net-style decoder with skip connections reconstructs the final segmentation. Crucially, it uses multiple "heads" to simultaneously predict masks for both the bolus and the pharynx/larynx.
Figure 1. Video-TransUNet Architecture Overview. (a) Multi-frame ResNet-50-based feature extractor; (b) Tem- poral Context Module for temporal feature blending across frames; (c) Vision Transformer Block for non-local attention- based learning of multi-frame encoded input; (d) Cascaded expansive decoder with skip connections as used in original UNet architectures, however, here with multiple prediction heads co-learning the two instances of clinical interest.

Datasets

The study utilizes the VFSS2022 dataset, which consists of 440 high-resolution (512x512) frames derived from 17 different swallow tests.

To ensure the highest quality "ground truth," the researchers recruited three trained experts to annotate every frame. These individual annotations were then fused using the STAPLE algorithm, a statistical method that estimates the most reliable consensus label from multiple raters.

Example of a raw CT frame, three individual expert ratings, and the final fused STAPLE ground truth.

Key Insights and Ideas

  • Temporal Context is King: Swallowing is a rapid, dynamic event. The authors found that a single-frame approach (like standard TransUNet) struggles with noise and occlusion. By looking at just two frames ahead and two frames behind, the model gains enough context to significantly sharpen its predictions.
  • Attention Focus: Visualizing the model's attention (via GradCam) revealed that the TCM helps the network ignore irrelevant background noise and focus tightly on the bolus and pharyngeal boundaries.
  • Hybrid Strength: The architecture proves that CNNs, Transformers, and temporal blending modules are complementary. CNNs handle the fine details, Transformers handle the global structure, and the TCM handles the motion.

Key Results

Video-TransUNet outperformed all tested state-of-the-art models, including standard U-Net and the original TransUNet.

  • Quantitative Dominance: It achieved a Dice Coefficient (DSC) of 0.8796, a 2.1% improvement over the next best model. Even more impressive were the distance metrics: it reduced the Average Surface Distance (ASD) to just 1.0379 pixels, indicating extremely tight boundary accuracy.
  • Qualitative Superiority: As seen in Figure 3, Video-TransUNet produces much smoother, more anatomically correct segmentations compared to the "noisier" outputs of earlier models.
Quantitative comparison showing Video-TransUNet (Row 6) leading across nearly all metrics.
Figure 3. Qualitative Results. Visualisation of segmentation outputs for five selected frames (one frame per row) from a VFSS test video sequence. (left column) original frame (other columns) segmentation results of all tested methods with bolus and pharynx results side by side. The ground truth of instance boundaries is shown in blue and the automatically produced segmentation in red. Purple pixels depict coincidence of ground truth and result pixels. (best viewed zoomed-in)

Limitations and Future Work

The authors noted that the optimal "snippet length" for temporal blending is relatively short (5 frames). Increasing the window further actually decreased performance and significantly increased the memory footprint. This is likely because swallowing is so fast that frames further away in time provide more distraction than useful information.

Future work could involve scaling the model to larger datasets and exploring more efficient ways to handle longer temporal sequences without the memory overhead. The researchers have released their code and weights to encourage further development in this critical clinical area.

Summary updated

BibTeX
@inproceedings{zeng2022video,
  author = {Chengxi Zeng and Xinyu Yang and Majid Mirmehdi and Alberto M Gambaruto and Tilo Burghardt},
  title = {{Video-TransUNet: Temporally Blended Vision Transformer for CT VFSS Instance Segmentation}},
  booktitle = {Icmv},
  year = {2022},
  doi = {10.1117/12.2679409},
}
Figure