TL;DR
SurgFed is a novel language-guided multi-task federated learning framework designed for surgical video understanding (segmentation and depth estimation). By leveraging pre-defined textual prompts via CLIP, it effectively overcomes the dual challenges of tissue and task diversity across different clinical sites without compromising patient privacy.
What Problem Does This Paper Address?
Robot-assisted minimally invasive surgery (RAS) relies heavily on computer vision for tasks like instrument segmentation and depth estimation to provide cognitive assistance to surgeons. To train robust deep learning models, collaborative data sharing across multiple hospitals is ideal. However, direct data sharing is strictly prohibited due to patient privacy regulations.
Federated Learning (FL) solves this by training models locally at each hospital and aggregating their parameters on a central server. Unfortunately, standard FL fails in surgical settings due to two main types of heterogeneity:
- Tissue Diversity: Different hospitals perform different surgeries with varying anatomical backgrounds and instruments, making it hard for a single global model to adapt.
- Task Diversity: Different sites might focus on different tasks (e.g., instrument segmentation vs. depth estimation) or use different label spaces, causing standard gradient aggregation to produce conflicting updates.
Methods
The authors propose SurgFed, a multi-task federated learning framework built on top of the SAM2 (Segment Anything Model 2) architecture. While the image encoder and memory modules are shared globally, they extend the decoder section into task-specific branches (segmentation masks and depth regression).
To address the diversity challenges, SurgFed introduces two language-guided components that utilize text embeddings from a pre-trained CLIP model:
- Language-guided Channel Selection (LCS): On the local client side, a lightweight adapter uses text prompts (e.g., "Dataset: EndoVis2017, Task: Instrument Segmentation, Label: Shaft, Wrist") to dynamically select and enhance feature channels in the encoder, tailoring the model to site-specific tissue features.
- Language-guided Hyper Aggregation (LHA): On the central server, instead of simple gradient averaging, a layer-wise cross-attention mechanism combines client gradients with the same text prompts. This guides a hypernetwork to compute personalized parameter updates based on task similarities across sites.
Datasets
The authors evaluated SurgFed on a newly constructed multi-task benchmark combining five public surgical datasets covering four distinct surgical types:
- EndoVis2017: Surgical instrument part segmentation (3 classes, Nephrectomy procedures).
- EndoVis2018: Whole surgical scene segmentation (11 classes, Nephrectomy procedures).
- AutoLaparo: Surgical scene segmentation (9 classes, Hysterectomy procedures).
- SCARED: Depth estimation in porcine cadaver abdominal anatomy.
- StereoMIS: Monocular depth estimation from in-vivo porcine subjects.
Key Insights and Ideas
- Language as a Semantic Bridge: Instead of relying purely on abstract, noisy gradient vectors to cluster or align different clinical sites, text prompts provide a high-level semantic prior (anatomy types, instrument names) that guides both local adaptation and server aggregation.
- Synergy of Memory and Decoding: Ablation studies revealed that when fine-tuning SAM2 in a federated setup, co-adapting both the spatial decoding layers and the temporal memory layers is crucial. Memory layers help recover missing cross-task alignment by leveraging temporal motion cues across video frames.
Key Results
- State-of-the-Art Performance: SurgFed consistently outperformed traditional FL (FedAvg, FedRep, FedProx) and multi-task FL (MaT-FL, FedHCA^2) methods across all five datasets.
- Robust Improvement: It achieved an overall average improvement ($\Delta m$) of +5.92% over local training baselines, whereas traditional FedAvg suffered a massive performance drop (-35.95%) due to task conflict.
- Out-of-Distribution Generalization: On the highly challenging SCARED dataset, SurgFed showed a remarkable +18.42% relative improvement.
- Low Overhead: The framework adds minimal computational overhead, introducing only a tiny parameter increase (22.35MB vs 22.10MB baseline) and maintaining communication efficiency since only the trained parameters are transmitted.
Limitations and Future Work
- Real-time Inference Constraint: Because it relies on the heavy SAM2 backbone, the current framework runs at 0.36 FPS on an NVIDIA RTX A5000, which is too slow for real-time intraoperative deployment. Future work will need to explore lightweight backbones or knowledge distillation.
- Static Prompt Dependency: The performance relies on pre-defined, static text prompts. Automating prompt generation or utilizing vision-language models to dynamically describe scenes could be a valuable extension.
Summary updated