Video-SwinUNet: Spatio-temporal Deep Learning Framework for VFSS Instance Segmentation

Xinyu Yang, Chengxi Zeng, Xinyu Yang 0003, David Smithard, Majid Mirmehdi, Alberto M. Gambaruto, Tilo Burghardt

Abstract

This paper presents a deep learning framework for medical video segmentation. Convolution neural network (CNN) and transformer-based methods have achieved great milestones in medical image segmentation tasks due to their incredible semantic feature encoding and global information comprehension abilities. However, most existing approaches ignore a salient aspect of medical video data - the temporal dimension. Our proposed framework explicitly extracts features from neighbouring frames across the temporal dimension and incorporates them with a temporal feature blender, which then tokenises the high-level spatio-temporal feature to form a strong global feature encoded via a Swin Transformer. The final segmentation results are produced via a UNet-like encoder-decoder architecture. Our model outperforms other approaches by a significant margin and improves the segmentation benchmarks on the VFSS2022 dataset, achieving a dice coefficient of 0.8986 and 0.8186 for the two datasets tested. Our studies also show the efficacy of the temporal feature blending scheme and cross-dataset transferability of learned capabilities.

Introduction

Dysphagia, or swallowing difficulty, affects a significant portion of stroke survivors and dementia patients, often leading to severe complications like pneumonia. The clinical gold standard for diagnosis is the Videofluoroscopic Swallow Study (VFSS), an X-ray video analysis. Currently, this process is manually intensive and subjective. While AI has automated many medical imaging tasks, standard models often treat video frames as independent images, failing to capture the crucial temporal dynamics of the swallowing process. Video-SwinUNet addresses this gap by integrating spatio-temporal modeling into a high-performance segmentation framework.

Methods

Video-SwinUNet adopts a U-shaped encoder-decoder structure with three core innovations designed to handle video data efficiently:

  1. Temporal Context Module (TCM): This module extracts features from a sequence of neighboring frames (e.g., $t-1, t, t+1$). A self-attention mechanism blends these features, allowing the model to track the movement of the bolus and anatomical structures over time.
  2. Swin Transformer Encoder: Following temporal blending, features are processed by a Swin Transformer. By using shifted windows, it models global relationships with significantly lower computational costs than traditional Vision Transformers.
  3. Cascaded CNN Decoder: The decoder uses CNN up-samplers and "Temporal feature Skip Connections" to transfer motion-aware information from the encoder, ensuring high-resolution and temporally consistent segmentation maps.
The Video-SwinUNet architecture featuring the Temporal Context Module (TCM) and Swin Transformer encoder.

Experimental Results

The model was evaluated on the VFSS2022 dataset, which includes both high-quality expert-annotated frames (Part 1) and noisier, real-world clinical frames (Part 2). Video-SwinUNet significantly outperformed existing architectures like UNet, TransUNet, and SwinUNet.

Performance and Efficiency

As shown in the ablation study, the combination of the TCM and Swin Transformer components leads to the best performance. The final model achieved a Dice Coefficient (DSC) of 0.8986 on Part 1 and 0.8186 on Part 2. Notably, the model is highly efficient, utilizing only 48.9M parameters—less than half the count of previous state-of-the-art video-based transformers like Video-TransUNet (110.5M).

Ablation study demonstrating the impact of different encoder-decoder configurations on DSC, HD95, and parameter counts.

Qualitative Insights

Beyond numerical metrics, Grad-CAM visualizations reveal that Video-SwinUNet maintains a cleaner focus on relevant anatomical features (the laryngeal bolus and pharynx) compared to its predecessors. This improved attention suggests that the temporal blending scheme helps the model distinguish the bolus from surrounding tissue noise more effectively.

Conclusion

Video-SwinUNet represents a major step forward in automating VFSS analysis. By explicitly modeling temporal context and leveraging efficient transformer architectures, it provides a high-accuracy, low-parameter solution suitable for clinical environments. Future work will involve expanding the dataset and extending segmentation to other critical structures involved in the swallowing mechanism.

Summary updated

BibTeX
@inproceedings{yang2023video,
  author = {Xinyu Yang and Chengxi Zeng and Xinyu Yang and David Smithard and Majid Mirmehdi and Alberto M. Gambaruto and Tilo Burghardt},
  title = {{Video-SwinUNet: Spatio-temporal Deep Learning Framework for VFSS Instance Segmentation}},
  booktitle = {ICIP},
  year = {2023},
  doi = {10.1109/icip49359.2023.10222212},
}
Figure