10.6 GB
43 files
Updated about 2 months ago
Name
Size
figures
.gitattributes1.58 kB
xet
CHOLEC_checkpoint0050.pth734 MB
xet
CHOLEC_checkpoint_epoch0050_teacher.pth93 MB
xet
MoCo_checkpoint_0013_epoch0013_encoder_q.pth98.3 MB
xet
PVTv2_SurgeNetXLPublic.pth99.5 MB
xet
PublicXL_checkpoint_epoch0015_teacher.pth93 MB
xet
Public_checkpoint0050.pth734 MB
xet
Public_checkpoint_epoch0050_teacher.pth93 MB
xet
RAMIE_checkpoint0050.pth734 MB
xet
RAMIE_checkpoint_epoch0050_teacher.pth93 MB
xet
RARP_checkpoint0050.pth734 MB
xet
RARP_checkpoint_epoch0050_teacher.pth93 MB
xet
README.md18.4 kB
xet
SurgeNetSmall_checkpoint0050.pth734 MB
xet
SurgeNetSmall_checkpoint_epoch0050_teacher.pth93 MB
xet
SurgeNetXL_checkpoint0050.pth734 MB
xet
SurgeNetXL_checkpoint_epoch0005_teacher.pth93 MB
xet
SurgeNetXL_checkpoint_epoch0025_teacher.pth93 MB
xet
SurgeNetXL_checkpoint_epoch0050_teacher.pth93 MB
xet
SurgeNet_1percent_checkpoint0050_processed.pth93 MB
xet
SurgeNet_25percent_checkpoint0045_processed.pth93 MB
xet
SurgeNet_25percent_checkpoint0050_processed.pth93 MB
xet
SurgeNet_50percent_checkpoint0050_processed.pth93 MB
xet
SurgeNet_5percent_checkpoint0050_processed.pth93 MB
xet
SurgeNet_ConvNextv2_checkpoint0050.pth816 MB
xet
SurgeNet_ConvNextv2_checkpoint_epoch0050_teacher.pth112 MB
xet
SurgeNet_Laparo_checkpoint0050.pth93 MB
xet
SurgeNet_PVTv2_checkpoint0050.pth760 MB
xet
SurgeNet_PVTv2_checkpoint_epoch0050_teacher.pth99.5 MB
xet
SurgeNet_Robot_Laparo_mixed_checkpoint0050_processed.pth93 MB
xet
SurgeNet_Robot_checkpoint0050.pth93 MB
xet
SurgeNet_checkpoint0025.pth734 MB
xet
SurgeNet_checkpoint0050.pth734 MB
xet
SurgeNet_checkpoint_epoch0025_teacher.pth93 MB
xet
SurgeNet_checkpoint_epoch0050_teacher.pth93 MB
xet
modified_vitb14_dinov2_size336.pth344 MB
xet
pvtv2_b5_checkpoint0010_processed.pth326 MB
xet
pvtv2_b5_checkpoint0018.pth326 MB
xet
README.md

FIG 1.

Publications

Scaling up self-supervised learning for improved surgical foundation models

Tim J.M. Jaspers1* :email:, Ronald L.P.D. de Jong2*, Yiping Li2, Carolus H.J. Kusters1, Franciscus H.A. Bakker5, Romy C. van Jaarsveld3, Gino M. Kuipers3, Richard3, Jelle P. Ruurda3, Willem M. Brinkman4, Josien P.W. Pluim2, Peter H.N. de With1, Marcel Breeuwer2, Yasmina Al Khalil2, Fons van der Sommen1

1 Department of Electrical Engineering, Video Coding & Architectures, Eindhoven University of Technology
2 Department of Biomedical Engineering, Medical Image Analysis, Eindhoven University of Technology, Eindhoven, The Netherlands
3 Department of Surgery, University Medical Center Utrecht, Utrecht, The Netherlands
4 Department of Oncological Urology, University Medical Center Utrecht, Utrecht, The Netherlands
5 Department of Surgery, Catharina Hospital, Eindhoven, The Netherlands

* Both authors attributed equally
(:email:) corresponding author

arxiv
(Article)

Exploring the Effect of Dataset Diversity in Self-Supervised Learning for Surgical Computer Vision

Tim J.M. Jaspers1 :email:, Ronald L.P.D. de Jong2, Yasmina Al Khalil2, Tijn Zeelenberg 1, Carolus H.J. Kusters1, Franciscus H.A. Bakker5, Yiping Li2, Romy C. van Jaarsveld3, Jelle P. Ruurda3, Willem M. Brinkman4, Peter H.N. de With1, Fons van der Sommen1,

Second Workshop on Data Engineering in Medical Imaging (DEMI) - Satellite Event MICCAI 2024
(Proceeding)

1 Department of Electrical Engineering, Video Coding & Architectures, Eindhoven University of Technology
2 Department of Biomedical Engineering, Medical Image Analysis, Eindhoven University of Technology, Eindhoven, The Netherlands
3 Department of Surgery, University Medical Center Utrecht, Utrecht, The Netherlands
4 Department of Oncological Urology, University Medical Center Utrecht, Utrecht, The Netherlands
5 Department of Surgery, Catharina Hospital, Eindhoven, The Netherlands

(:email:) corresponding author

Abstract

Foundation models have revolutionized computer vision by achieving state-of-the-art performance across diverse tasks through large-scale pretraining on extensive datasets. However, their application in surgical computer vision has been limited. This study addresses this gap by introducing SurgeNetXL, a novel surgical foundation model that sets a new benchmark in surgical computer vision. Trained on the largest reported surgical dataset to date, comprising over 4.7 million video frames, SurgeNetXL achieves consistent top-tier performance across six datasets spanning four surgical procedures and three tasks, including semantic segmentation, phase recognition, and critical view of safety (CVS) classification. Compared to the best-performing surgical foundation models, SurgeNetXL shows mean improvements of 2.4, 8.95, and 12.6% for semantic segmentation, phase recognition, and CVS classification, respectively. Additionally, SurgeNetXL outperforms the best-performing ImageNet-based variants by 14.4, 4.0, and 1.6% in the respective tasks. In addition to advancing model performance, this work provides key insights into scaling pretraining datasets, extending training durations, and optimizing model architectures specifically for surgical computer vision. These findings pave the way for improved generalizability and robustness in data-scarce scenarios, offering a comprehensive framework for future research in this domain.

Results

The following figures are from our publications, showcasing the performance of our introduced foundation model across diverse surgical tasks and procedures. These results demonstrate the model’s state-of-the-art performance on a variety of downstream tasks, reflecting its versatility and robustness in handling datasets from multiple surgical procedures.

Figure 1 and Figure 2 illustrate comparative rankings of our model against existing foundation models, highlighting its superior generalization capabilities across datasets. Figure 3 provides a t-SNE visualization, showcasing the clear cluster separation per specific dataset achieved by the model’s feature embeddings, further emphasizing its effectiveness in capturing meaningful representations.

Fig 2

Fig 1: Radar chart showing model ranks across datasets.

Fig 3

Fig 2: Blob chart representing ranking metrics for models.

Fig 3

Fig 3: t-SNE visualization of feature embeddings showing cluster separation across datasets.

Models

The models used in this study are based on the MetaFormer architecture. The models are trained using a self-supervised learning approach on the SurgeNetXL dataset and its variations, introduced this in the following paper. All model weights can be downloaded from the table below.

Model Backbone Epochs Teacher Backbone Full DINO checkpoint
SurgeNetXL CaFormer 50 Download Download
SurgeNetSmall CaFormer 50 Download Download
SurgeNetCholec CaFormer 50 Download Download
SurgeNetRAMIE CaFormer 50 Download Download
SurgeNetRARP CaFormer 50 Download Download
SurgeNetPublic CaFormer 50 Download Download
SurgeNet CaFormer 50 Download Download
SurgeNet ConvNextv2 50 Download Download
SurgeNet PVTv2 50 Download Download

Loading Models

The weights from the teacher network can be used to initialize either your classification or segmentation model using the following code snippet:

import torch
from metaformer import caformer_s18, MetaFormerFPN
from convnextv2 import convnextv2_tiny, ConvNextFPN
from pvtv2 import pvt_v2_b2, PVTV2FPN

urls = {
    "ImageNet1k": "https://huggingface.co/sail/dl/resolve/main/caformer/caformer_s18.pth",
    "SurgeNetXL": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/SurgeNetXL_checkpoint_epoch0050_teacher.pth?download=true",
    "SurgeNet": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/SurgeNet_checkpoint_epoch0050_teacher.pth?download=true",
    "SurgeNet-Small": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/SurgeNetSmall_checkpoint_epoch0050_teacher.pth?download=true",
    "SurgeNet-CHOLEC": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/CHOLEC_checkpoint_epoch0050_teacher.pth?download=true",
    "SurgeNet-RAMIE": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/RAMIE_checkpoint_epoch0050_teacher.pth?download=true",
    "SurgeNet-RARP": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/RARP_checkpoint_epoch0050_teacher.pth?download=true",
    "SurgeNet-Public": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/Public_checkpoint0050.pth?download=true",
    "SurgeNet-ConvNextv2": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/SurgeNet_ConvNextv2_checkpoint_epoch0050_teacher.pth?download=true",
    "SurgeNet-PVTv2": "https://huggingface.co/TimJaspersTue/SurgeNetModels/resolve/main/SurgeNet_PVTv2_checkpoint_epoch0050_teacher.pth?download=true",
}

# Metaformer model
classification_model = caformer_s18(num_classes=12, pretrained='SurgeNet', pretrained_weights=urls['SurgeNetXL'])
segmentation_model = MetaFormerFPN(num_classes=12, pretrained='SurgeNet', pretrained_weights=urls['SurgeNetXL'])

# ConvNextv2 model
classification_model = convnextv2_tiny(num_classes=12, pretrained_weights=urls['SurgeNet-ConvNextv2'])
segmentation_model = ConvNextFPN(num_classes=12, pretrained_weights=urls['SurgeNet-ConvNextv2'])

# PVTv2 model
classification_model = pvt_v2_b2(num_classes=12, pretrained_weights=urls['SurgeNet-PVTv2'])
segmentation_model = PVTV2FPN(num_classes=12, pretrained_weights=urls['SurgeNet-PVTv2'])
Note: If your want a different version of SurgeNet weights (e.g. SurgeNet-Small), you can replace the `pretrained_weights` argument with the desired url (leave the `pretrained` argument as it is).

Surgical Youtube Dataset

A key contribution of our research is the Surgical YouTube dataset, which enhanced our foundation model's performance. This curated dataset contains 2,074,234 frames sampled from 23 distinct surgical procedures and is publicly available at huggingface datasets. This datasets is a large part of our SurgeNetXL dataset, which also includes other opensource datasets.

Procedure-specific subset Dataset Procedure #videos #frames Public
SurgeNetCholec Cholec80 (Twinnanda et al., 2017b) Laparoscopic Cholecystectomy 76 179,164 Yes
HeiChole (Maier-Hein et al., 2021) Laparoscopic Cholecystectomy 30 53,427 Yes
hSDB-Chole (Yoon et al., 2021) Laparoscopic Cholecystectomy 24 18,064 Yes
SurgeNetRAMIE RAMIE-UMCU RA Esophagectomy 28 377,287 No
SurgeNetRARP ESAD Bawa et al., 2021 RA Esophagectomy 28 47,282 Yes
PSI-AVA Valderrama et al., 2022 RA Prostatectomy 8 73,618 Yes
RARP-AvL RA Prostatectomy 8 261,516 No
Others DSAD (Carstens et al., 2023) RA Rectal Resection/Extirpation 32 14,623 Yes
GLENDA (Leibetseder et al., 2020) Gynecologic Laparoscopy 400 25,682 Yes
LapGyn4 (Leibetseder et al., 2018) Gynecologic Laparoscopy 500 59,616 Yes
MultiBypass140 (Lavanchy et al., 2024) Laparoscopic Gastric Bypass Surgery 140 749,419 Yes
hSDB-Gastric (Yoon et al., 2021) RA Gastrectomy 24 35,576 Yes
SurgToolLoc2022 (Zia et al., 2023) 11 different RA porcine procedures N/A 741,516 Yes
YouTube ours 23 identified procedures 3,253 2,074,234 Yes
SurgeNetXL variations Dataset Procedure #videos #frames Public
SurgeNetSmall 10% of the above (excluding YouTube) All of the above (excluding YouTube) >1345 263,679 Partly
SurgeNetPublic All public datasets (excluding YouTube & private datasets) All of the above (excluding YouTube & RA Esophagectomy) >1238 1,997,987 Yes
SurgeNet All of the above (excluding YouTube) All of the above (excluding YouTube) >1345 2,636,790 Partly
SurgeNetXL All of the above All of the above >4598 4,711,024 Partly

Acknowledgements

Our implementation of the feature pyramid network is based on the pytorch segmentation models library. Pretraining on SurgeNet was performed using the code provided with the DINO publication. We have used the code of Schmidgall et al. (2024) to obtain the youtube videos, this code can be found here.

Citation

If you find our work useful in your research please consider citing our paper:
@msc{Jaspers2025,
   title={Scaling up self-supervised learning for improved surgical foundation models},
   year={2025}
    }
@inbook{Jaspers2024,
   title={Exploring the Effect of Dataset Diversity in Self-supervised Learning for Surgical Computer Vision},
   ISBN={9783031737480},
   ISSN={1611-3349},
   url={http://dx.doi.org/10.1007/978-3-031-73748-0_5},
   DOI={10.1007/978-3-031-73748-0_5},
   booktitle={Data Engineering in Medical Imaging},
   publisher={Springer Nature Switzerland},
   author={Jaspers, Tim J. M. and de Jong, Ronald L. P. D. and Al Khalil, Yasmina and Zeelenberg, Tijn and Kusters, Carolus H. J. and Li, Yiping and van Jaarsveld, Romy C. and Bakker, Franciscus H. A. and Ruurda, Jelle P. and Brinkman, Willem M. and De With, Peter H. N. and van der Sommen, Fons},
   year={2024},
   month=oct, pages={43–53} }
Total size
10.6 GB
Files
43
Last updated
Jun 11
Pre-warmed CDN
US EU US EU

Contributors