Preserving privacy in surgical video analysis using a deep learning classifier to identify out-of-body scenes in endoscopic videos.

Lavanchy, Joël L; Vardazaryan, Armine; Mascagni, Pietro; Mutter, Didier; Padoy, Nicolas (2023). Preserving privacy in surgical video analysis using a deep learning classifier to identify out-of-body scenes in endoscopic videos. Scientific reports, 13(1), p. 9235. Springer Nature 10.1038/s41598-023-36453-1

s41598-023-36453-1.pdf - Published Version
Available under License Creative Commons: Attribution (CC-BY).

Download (1MB) | Preview

Surgical video analysis facilitates education and research. However, video recordings of endoscopic surgeries can contain privacy-sensitive information, especially if the endoscopic camera is moved out of the body of patients and out-of-body scenes are recorded. Therefore, identification of out-of-body scenes in endoscopic videos is of major importance to preserve the privacy of patients and operating room staff. This study developed and validated a deep learning model for the identification of out-of-body images in endoscopic videos. The model was trained and evaluated on an internal dataset of 12 different types of laparoscopic and robotic surgeries and was externally validated on two independent multicentric test datasets of laparoscopic gastric bypass and cholecystectomy surgeries. Model performance was evaluated compared to human ground truth annotations measuring the receiver operating characteristic area under the curve (ROC AUC). The internal dataset consisting of 356,267 images from 48 videos and the two multicentric test datasets consisting of 54,385 and 58,349 images from 10 and 20 videos, respectively, were annotated. The model identified out-of-body images with 99.97% ROC AUC on the internal test dataset. Mean ± standard deviation ROC AUC on the multicentric gastric bypass dataset was 99.94 ± 0.07% and 99.71 ± 0.40% on the multicentric cholecystectomy dataset, respectively. The model can reliably identify out-of-body images in endoscopic videos and is publicly shared. This facilitates privacy preservation in surgical video analysis.

Item Type:

Journal Article (Original Article)


04 Faculty of Medicine > Department of Gastro-intestinal, Liver and Lung Disorders (DMLL) > Clinic of Visceral Surgery and Medicine > Visceral Surgery

UniBE Contributor:

Lavanchy, Joël Lukas


600 Technology > 610 Medicine & health




Springer Nature




Pubmed Import

Date Deposited:

08 Jun 2023 14:35

Last Modified:

11 Jun 2023 02:22

Publisher DOI:


PubMed ID:





Actions (login required)

Edit item Edit item
Provide Feedback