Let Video Teaches You More: Video-to-Image Knowledge Distillation using Detection TRansformer for Medical Video Lesion Detection

Yuncheng Jiang, Zixun Zhang, Jun Wei, Chun-Mei Feng, Guanbin Li, Xiang Wan, Shuguang Cui, Zhen Li

Abstract

Detecting lesions in medical video feeds requires a delicate balance between temporal robustness and real-time processing speed. While video-based models offer superior accuracy by utilizing temporal context, they are often too computationally intensive for live clinical use. Conversely, image-based models are fast but susceptible to noise and artifacts. We present V2I-DETR, a framework that distills temporal "wisdom" from a video-based teacher model into a lightweight image-based student model. By leveraging Multi-scale Spatiotemporal Interaction (MSI) and novel distillation techniques, V2I-DETR achieves state-of-the-art accuracy on colonoscopy and ultrasound datasets while maintaining real-time inference speeds of 30 FPS.

Introduction

In medical imaging, detecting lesions like polyps or tumors in video is a high-stakes task. Researchers typically face a trade-off: image-based models are fast but "blind" to time, making them prone to errors from motion blur or occlusions. Video-based models are more robust but often too slow for real-time clinical procedures. V2I-DETR bridges this gap by transferring the temporal intelligence of a video model into a single-image detector during the training phase, allowing the final model to be both fast and accurate.

The V2I-DETR Framework

The core of the proposed approach is a Teacher-Student knowledge distillation paradigm. During training, a video-based "Teacher" model processes multiple frames to build a rich spatiotemporal representation. An image-based "Student" model, seeing only the current frame, is trained to replicate these high-quality features. Crucially, the teacher is discarded after training, leaving only the efficient student for actual clinical use.

Overview of the V2I-DETR Teacher-Student paradigm, illustrating the transition from video-based training to real-time image-based inference.

Technical Methodology

V2I-DETR utilizes several key modules to facilitate effective knowledge transfer within the DEtection TRansformer (DETR) architecture:

  • Multi-scale Spatiotemporal Interaction (MSI): The teacher uses MSI to combine 3D convolutions for local temporal patterns and self-attention for long-range dependencies, understanding how lesions move and change over time.
  • Target-guided Feature Distillation (TFD): To avoid learning irrelevant background noise, TFD applies a Gaussian "soft mask" around ground-truth lesions. This forces the student to focus its learning energy on the lesion itself rather than empty space.
  • Cross-view Query Distillation (CQD): This module aligns the internal "object queries" (the probes DETR uses to find objects) between the teacher and student, ensuring the student learns semantically invariant lesion characteristics.
Detailed architecture of V2I-DETR, showing the interaction between the teacher and student models through the TFD and CQD distillation modules.

Experimental Results

The framework was evaluated on two significant benchmarks: the SUN Colonoscopy Video dataset and the Breast Ultrasound Video (BUV) dataset.

  • Superior Accuracy: On the challenging SUN "Hard" test set, V2I-DETR achieved an 84.3% F1-score, significantly outperforming the image-based baseline (71.7%) and previous state-of-the-art video models like YONA (78.9%).
  • Real-time Performance: The student model maintains a speed of 30 FPS, which is roughly 7x faster than the teacher model. This allows for seamless integration into live medical procedures where low latency is critical.
  • Robustness: Qualitative results indicate that V2I-DETR remains "locked on" to lesions even during fast camera movements or blur, inheriting the stability of its video-based teacher.

Conclusion

V2I-DETR demonstrates that temporal context can be successfully encoded into the weights of a single-image model. By distilling video-level knowledge during training, the framework provides a high-accuracy, real-time solution for medical lesion detection, effectively overcoming the traditional trade-off between speed and robustness in clinical environments.

Summary updated

BibTeX
@inproceedings{jiang2024let,
  author = {Yuncheng Jiang and Zixun Zhang and Jun Wei and Chun-Mei Feng and Guanbin Li and Xiang Wan and Shuguang Cui and Zhen Li},
  title = {{Let Video Teaches You More: Video-to-Image Knowledge Distillation using Detection TRansformer for Medical Video Lesion Detection}},
  booktitle = {BIBM},
  year = {2024},
  doi = {10.1109/bibm62325.2024.10822332},
}
Figure