Abstract: We propose Video-TransUNet, a deep architecture for instance segmentation in medical CT videos constructed by integrating temporal feature blending into the TransUNet deep learning framework. In particular, our approach amalgamates strong frame representation via a ResNet CNN backbone, multi-frame feature blending via a Temporal Context Module (TCM), non-local attention via a Vision Transformer, and reconstructive capabilities for multiple targets via a UNet-based convolutional-deconvolutional architecture with multiple heads. We show that this new network design can significantly outperform other state-of-the-art systems when tested on the segmentation of bolus and pharynx/larynx in Videofluoroscopic Swallowing Study (VFSS) CT sequences. On our VFSS2022 dataset it achieves a dice coefficient of 0.8796 and an average surface distance of 1.0379 pixels. Note that tracking the pharyngeal bolus accurately is a particularly important application in clinical practice since it constitutes the primary method for diagnostics of swallowing impairment. Our findings suggest that the proposed model can indeed enhance the TransUNet architecture via exploiting temporal information and improving segmentation performance by a significant margin. We publish key source code, network weights, and ground truth annotations for simplified performance reproduction.
Introduction
Dysphagia, a condition characterized by difficulty swallowing, poses significant health risks, including aspiration pneumonia and suffocation. The clinical gold standard for diagnosis is the Videofluoroscopic Swallowing Study (VFSS), which utilizes X-ray videography to observe a barium-coated bolus during the swallowing process. However, manual analysis of VFSS sequences is challenging due to low image quality, anatomical overlap in 2D projections, and the rapid motion of the bolus. Automating the segmentation of the bolus and pharyngeal structures is essential for providing clinicians with objective, reliable diagnostic data.
Methodology
We propose Video-TransUNet, a novel architecture that integrates temporal feature blending into the TransUNet framework. The model consists of four primary components:
- CNN Backbone (ResNet-50): Extracts spatial features from individual frames.
- Temporal Context Module (TCM): A core innovation that employs a self-attention mechanism to blend features from neighboring frames (past and future) into the current frame's representation.
- Vision Transformer (ViT): Positioned at the network's bottleneck to model non-local, global relationships across the entire image.
- Multi-Head UNet Decoder: Reconstructs fine details and simultaneously predicts masks for both the bolus and the pharynx/larynx.
The model was evaluated on the VFSS2022 dataset, comprising 17 swallow sequences (440 frames) annotated by three experts and fused using the STAPLE algorithm to create a consensus ground truth.
Results and Discussion
Video-TransUNet significantly outperforms existing state-of-the-art models, including the original UNet and TransUNet, across nearly all metrics.
As shown in the table above, our model achieved a Dice Coefficient (DSC) of 0.8796 and a Hausdorff Distance (HD95) of 6.9155, representing a substantial improvement over single-frame methods. The Temporal Context Module provided a 2.1% boost in DSC over the standard TransUNet, highlighting the importance of temporal information. Ablation studies on snippet length revealed that a 5-frame window is optimal for capturing the rapid dynamics of swallowing without introducing irrelevant noise from distant frames.
Qualitative analysis using GradCam visualizations indicated that the TCM effectively filters out static anatomical "distractors," allowing the model to focus specifically on the moving bolus. This temporal filtering leads to smoother segmentation masks and fewer false positives in frames where no bolus is present.
Conclusion
Video-TransUNet demonstrates that leveraging temporal context through a blended Vision Transformer architecture can significantly enhance instance segmentation in medical CT videos. While the current dataset is relatively small, the results suggest that this approach is highly effective for tracking rapid physiological processes like swallowing. Future work will focus on expanding the dataset and optimizing the model for real-time clinical deployment.
Summary updated