Spatio-Temporal Representation Decoupling and Enhancement for Federated Instrument Segmentation in Surgical Videos

Zheng Fang, Xiaoming Qi, Chun-Mei Feng, Jialun Pei, Weixin Si, Yi Jin

TL;DR

FedST is a novel personalized federated learning framework for surgical instrument segmentation that tackles data heterogeneity by decoupling static anatomical backgrounds from consistent instrument motion. By leveraging textual guidance locally and synthetic data globally, it achieves massive generalization gains—particularly on completely unseen, out-of-federation surgical procedures—all while preserving patient privacy and maintaining real-time inference speeds.

What Problem Does This Paper Address?

Training deep learning models for surgical instrument segmentation requires massive, well-annotated datasets. While Federated Learning (FL) allows multiple hospitals to collaboratively train a shared model without centralizing sensitive patient data, standard FL struggles with the immense data heterogeneity found across different clinical sites.

The authors point out that existing FL methods fail because they ignore two intrinsic characteristics of the surgical domain:

  1. Background Diversity vs. Instrument Similarity: Background tissues vary wildly depending on the hospital and the specific type of surgery (e.g., a kidney vs. a uterus). However, the robotic instruments themselves (like Da Vinci tools) look and move almost identically across all procedures.
  2. Underutilized Synthetic Data: While surgical simulators can easily generate large-scale labeled datasets, directly mixing synthetic data into standard FL pipelines actually degrades performance due to the massive domain gap between simulation and real-world surgical video.

Methods

FedST introduces a two-pronged Personalized FL (PFL) architecture to handle these challenges at both the local-site and global-server levels:

Overall pipeline of the proposed FedST framework

1. Local-Site: Representation Separation and Cooperation (RSC)

To stop diverse backgrounds from polluting the shared model, RSC splits the network parameters:

  • Personalized Backgrounds: The query embedding layers in the self-attention encoder are kept private to each local site. This allows individual models to adapt to their specific static tissue backgrounds.
  • Shared Instrument Motion: The remaining parameters—including temporal cross-attention layers that look across consecutive video frames—are shared globally. This forces the federation to cooperatively learn uniform instrument appearance and motion patterns.
  • Textual-Guided Channel Selection: Local sites utilize a frozen, pre-trained CLIP model fed with site-specific prompts (e.g., "the surgery type is Nephrectomy"). This generates a semantic indicator that dynamically highlights feature channels relevant to that site's specific context.

2. Global-Server: Synthesis-based Explicit Representation Quantification (SERQ)

Instead of blindly training on synthetic data, the global server uses it to stabilize and synchronize the federation:

  • SERQ mathematically decomposes synthetic features into domain-style representations and instrument-consistent representations using a moving average.
  • It uses the isolated synthetic instrument features to establish a clear optimization target, synchronizing the convergence of local models during server-side fusion and drastically boosting generalization to unseen domains.

Datasets

The authors constructed a new multi-site PFL benchmark comprising five distinct datasets spanning four surgical types:

  • Site A (EndoVis2017): Nephrectomy (Kidney removal)
  • Site B (EndoVis2018): Nephrectomy
  • Site C (RARP): Prostatectomy (Prostate removal)
  • Site D (Hyst-YT): Hysterectomy (Uterus removal; newly collected/annotated from YouTube)
  • Site E (Lob-YT): Lobectomy (Lung lobe removal; newly collected from YouTube and held out strictly as an out-of-federation test set).
  • Server-Side: Sisvse (A synthetic surgical dataset built in Unity).
  • Sanity Check: GraSP (An independent dataset used to test zero-shot generalization on binary instrument segmentation).

Key Insights and Ideas

  • The Query Embedding Sweet Spot: Through extensive ablation, the authors discovered that personalizing only the encoder's query embeddings yields the best results. Personalizing keys or values disrupts shared reference anchors and degrades federated collaboration.
  • Synthetic Data is Toxic if Mixed Blindly: Standard FL methods perform worse when synthetic data is mixed directly into local training because the domain mismatch amplifies optimization conflicts during server aggregation. Synthetic data is best used on the server side purely to align the global representation target.
  • Temporal Consistency Drives Generalization: Forcing the shared global parameters to focus heavily on multi-frame motion patterns (which are uniform across surgeries) allows the model to successfully segment tools in entirely unseen surgery types.

Key Results

  • State-of-the-Art Performance: FedST achieved an average Dice score of 82.62% and an IoU of 71.47% across internal sites, consistently outperforming top PFL methods like FedAS and FedRep.
  • The Out-of-Federation Leap: On the completely unseen Site E (Lobectomy), SOTA methods failed entirely, hovering around a dismal 17% IoU. FedST achieved a remarkable 64.31% IoU (a ~45% absolute improvement) without any local adaptation.
  • Zero-Shot Binary Generalization: When evaluated on the unseen GraSP dataset, FedST achieved a 90.64% Dice score, while all baseline FL methods collapsed to around 26%.
  • Highly Efficient: Because the RSC module keeps background parameters local, FedST reduced communication costs to 12.69 MB per round (compared to 19.71 MB for FedAvg) while maintaining a real-time inference speed of 23.04 FPS.

Limitations and Future Work

Despite its strong generalization capabilities, the authors note that FedST's performance degrades under harsh visual conditions common to surgery, such as heavy specular reflections, motion blur, and instrument occlusions from tissue overlap.

Additionally, the current framework is strictly tailored for pixel-level segmentation. Future work will focus on expanding FedST into a multi-task framework capable of handling workflow recognition and depth estimation simultaneously.

Summary updated

BibTeX
@article{fang2026spatio,
  author = {Zheng Fang and Xiaoming Qi and Chun-Mei Feng and Jialun Pei and Weixin Si and Yi Jin},
  title = {{Spatio-Temporal Representation Decoupling and Enhancement for Federated Instrument Segmentation in Surgical Videos}},
  journal = {IEEE Transactions on Medical Imaging},
  year = {2026},
  doi = {10.1109/tmi.2026.3651254},
}
Figure