Feature Mixing Approach for Detecting Intraoperative Adverse Events in Laparoscopic Roux-en-Y Gastric Bypass Surgery

Rupak Bose, Chinedu Innocent Nwoye, Jorge F. Lazo, Joël L. Lavanchy, Nicolas Padoy

Abstract

Intraoperative Adverse Events (IAEs) are critical surgical complications that require immediate detection to prevent severe postoperative outcomes. This paper presents BetaMixer, a novel deep learning framework designed to detect and quantify IAE severity in laparoscopic Roux-en-Y gastric bypass (LRYGB) surgery. By modeling surgical severity as a continuous spectrum using a Beta distribution, BetaMixer addresses the challenges of extreme data imbalance and discrete labeling. The model achieves a weighted F1 score of 0.76 and a low classification delay, demonstrating potential for real-time clinical application.

Introduction

Intraoperative Adverse Events (IAEs), such as unexpected bleeding, thermal burns, or mechanical tissue damage, are pivotal moments during surgery. Failure to recognize these events promptly can lead to significant morbidity or mortality. Developing AI for IAE detection faces two primary hurdles: extreme data imbalance, where over 99% of surgical frames are "normal," and the "Severity Problem." Traditional models often treat IAEs as binary or discrete categories, failing to capture the continuous progression of events like bleeding.

Progression of an Intraoperative Adverse Event (IAE) showing the transition from normal state to various bleeding levels and subsequent rectification.

Methods

The proposed BetaMixer framework shifts from standard classification to a generative and regressive approach.

Beta Distribution-Based Sampling

Instead of training on rigid discrete labels (e.g., Severity 1, 2, 3), the model employs a Beta distribution to map labels into a continuous space. This "label smoothing" technique allows the model to better represent the transitions and uncertainties inherent in surgical grading.

Visualization of the Beta distribution-based sampling used to transform discrete severity labels into a continuous spectrum.

Feature Mixing and Architecture

BetaMixer utilizes a generative component consisting of a Generator ($H$) and a Discriminator ($D$) to regularize extracted visual features into a standard normal distribution. The core architecture is a transformer that processes frame sequences using specific query tokens for different injury types (Bleeding, Mechanical, Thermal). This design enables the simultaneous detection and quantification of multiple overlapping events. The backbone is a lightweight MobileNetV2, optimized for real-time inference.

Dataset

The study utilizes the MultiBypass140 dataset, comprising 140 LRYGB procedures from two clinical centers (Strasbourg and Bern). The authors enhanced this dataset with fine-grained IAE annotations across 782,000 frames. Notably, only 1,594 frames contained IAEs, highlighting the "needle-in-a-haystack" nature of the task. Events were graded on a 0–5 scale using the SEVERE index.

Results and Discussion

BetaMixer demonstrated superior performance over state-of-the-art baselines:

  • Performance Metrics: The model achieved a weighted F1 score of 0.76 and a Recall of 0.81.
  • Regression Accuracy: The Mean Squared Error (MSE) for severity estimation was 0.23, indicating high precision in quantifying injury progression.
  • Clinical Utility: The average Classification Delay Time (CDT) was 1.23 seconds, which is critical for timely surgical intervention.
  • Negative Predictive Value (NPV): An NPV of 0.84 ensures that the system reliably identifies "normal" states, minimizing alarm fatigue for surgeons.

Ablation studies confirmed that the generative feature normalization component is essential for performance, as its removal led to a significant drop in accuracy.

Conclusion

BetaMixer effectively addresses the complexities of IAE detection by treating severity as a continuous spectrum. While the model shows promise, challenges remain in predicting extremely rare "Level 5" injuries and ensuring generalizability across different surgical domains. Future work will focus on cross-domain validation and integrating more diverse datasets to improve the detection of high-severity events.

Summary updated

BibTeX
@inproceedings{bose2025feature,
  author = {Rupak Bose and Chinedu Innocent Nwoye and Jorge F. Lazo and Joël L. Lavanchy and Nicolas Padoy},
  title = {{Feature Mixing Approach for Detecting Intraoperative Adverse Events in Laparoscopic Roux-en-Y Gastric Bypass Surgery}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2025},
  doi = {10.1007/978-3-032-05141-7\_18},
}
Figure