First Investigation of Deep Learning for Intraoperative Gauze Segmentation in Minimally Invasive Abdominal Surgery

Priya Tomar, Maximilian Broß, Philipp Feodorovici, Jan Arensmeyer, Philipp Leifels, Aditya Parikh, Hanno Matthaei, Christian Bauckhage, Helen Schneider, Rafet SifaarXiv 2026 · DOI

TL;DR

This paper presents the first investigation of deep learning for surgical gauze segmentation using real-world laparoscopic surgery data. By evaluating six popular CNN, transformer, and hybrid architectures, the authors establish a strong clinical baseline and demonstrate that incorporating cheap, auto-tracked video annotations can significantly boost model generalization and overcome the classic challenge of detecting blood-soaked gauze.

What Problem Does This Paper Address?

Leaving a foreign object inside a patient after surgery—known medically as Retained Surgical Items (RSI)—is a rare but severe surgical error. Surgical gauze is the most frequently left-behind item in abdominal cavities, leading to dangerous complications like sepsis, bowel obstruction, or even death.

While computer vision could help surgical robots or augmented reality (AR) systems track gauze in real-time, existing methods mostly rely on coarse object detection (bounding boxes) rather than fine-grained pixel segmentation. Furthermore, prior research has been bottlenecked by a lack of realistic data; models were typically trained on clean, simulated environments or animal organs. In real surgeries, gauze quickly deforms, gets covered in blood, and blends into surrounding anatomical tissues, creating a notorious trade-off where blood presence severely degrades detection performance.

Methods

The authors address this gap by setting up a robust semantic segmentation benchmark. They evaluate six diverse deep learning architectures categorized into three families:

  • CNN-based: U-Net and DeepLabV3
  • Transformer-based: SegFormer (MiT-b1 and MiT-b3 variants) and Mask2Former
  • Hybrid: Attention U-Net (AU-Net) and TransU-Net

To tackle the high cost of manual pixel-level annotation in medical video, the authors explore a hybrid annotation strategy. They use an initial manual mask and leverage semi-automatic video object tracking (via the Supervisely platform) to propagate masks across subsequent frames. Though these auto-tracked masks have sub-optimal, noisy boundaries, they allow the training set to scale drastically.

Datasets

The study utilizes two primary datasets:

  1. GauzeSegReal (In-house): A newly introduced real-world dataset consisting of video frames from 16 robot-assisted laparoscopic abdominal surgeries at the University Hospital Bonn. It features three gauze types (conventional, cigar, and swab) and is split by patient ID into training, validation, and two distinct test sets: TestGeneric (varying blood presence) and TestBloody (high blood saturation). It contains 6,395 manually annotated frames and 22,265 auto-tracked hybrid frames.
  2. GauzeSegSim (Public): A dataset of 4,003 simulated frames of gauze on animal organs, used purely as an out-of-distribution (OOD) test set (TestSim) to evaluate model robustness.
Figure 1: Overview of the GauzeSegReal (top grid) and GauzeSegSim (bottom grid) datasets with respective sample images and annotation masks. The GauzeSegReal dataset contains real-world surgical frames with manual and hybrid (manual + auto-tracked) annotations, split into training, validation, and test sets by patient ID. TestGeneric and TestBloody represent generalized and high blood presence scenarios, respectively. The GauzeSegSim dataset contains simulated surgical frames with manually traced annotations, used entirely as an out-of-distribution test set (TestSim). All evaluation splits contain only manually annotated samples.

Key Insights and Ideas

  • Real Data Flips the "Blood Challenge": Surprisingly, models trained on the real-world dataset performed better on highly bloody scenes (TestBloody) than on generic ones (TestGeneric). Because the real training data naturally captured widespread blood presence, the models effectively learned the textures of blood-saturated gauze, completely countering the performance degradation reported in prior simulated studies.
  • Transformers are Data-Hungry but Dominant: When trained from scratch, vision transformers (SegFormer, Mask2Former) suffered from severe underfitting. However, when initialized with pretrained weights (ImageNet/ADE20K), they vastly outperformed pure CNN architectures, demonstrating superior retention of pretrained contextual knowledge.
  • Noisy Data is Better Than No Data: Introducing the imperfect, auto-tracked annotations provided a massive boost to CNN-based models on generic surgical scenes (e.g., a 14% Dice score improvement for Attention U-Net). The volume and novel contextual information provided by the tracking algorithm outweighed the pixel-level boundary noise.

Key Results

  • Top Performer: The pretrained SegFormer-b3 (SegFormer-b3_pt) achieved the highest overall performance, yielding a Dice score of 0.82 on TestGeneric, 0.85 on TestBloody, and 0.82 on the out-of-distribution TestSim when trained on manual annotations.
  • Effect of Hybrid Annotations: For models trained from scratch (like vanilla U-Net), adding the auto-tracked data pushed the TestGeneric Dice score from 0.43 to 0.57.
  • Boundary Accuracy: Contour analysis using Normalized Surface Distance (NSD) revealed that the best models could predict gauze boundaries within a tight 10-pixel threshold of the true mask over 70% of the time.

Limitations and Future Work

While promising, the study has a few limitations. The GauzeSegReal dataset comes from a single institution and a relatively small cohort of 16 surgeries, meaning multi-center validation is still required to prove widespread generalizability. Additionally, the task was simplified to binary segmentation; the models do not differentiate between the three distinct types of gauze, which would be necessary for downstream tasks like automated gauze counting.

The authors note that future work will focus on evaluating real-time inference latency, implementing noise-aware loss functions to better handle auto-tracked labels, and exploring self-supervised pre-training on large surgical video repositories.

Summary updated

BibTeX
@misc{tomar2026first,
  author = {Priya Tomar and Maximilian Broß and Philipp Feodorovici and Jan Arensmeyer and Philipp Leifels and Aditya Parikh and Hanno Matthaei and Christian Bauckhage and Helen Schneider and Rafet Sifa},
  title = {{First Investigation of Deep Learning for Intraoperative Gauze Segmentation in Minimally Invasive Abdominal Surgery}},
  year = {2026},
  eprint = {2607.29132},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.29132},
}
Figure