YOLOv8s — Surgical Instrument Detection (Laparoscopic Video)

Fine-tuned YOLOv8s model for surgical instrument detection in laparoscopic cholecystectomy video. Given a video frame, the model predicts bounding boxes and class labels for all visible surgical instruments.

An interactive demo is available on Hugging Face Spaces.


Intended Use

This model is intended for research and educational purposes only. It is not validated for clinical use and should not be used to inform clinical decisions.


Dataset

Base dataset: Cholec80-Boxes
Cholec80-Boxes extends the Cholec80 laparoscopic video dataset with bounding box annotations for surgical instruments. The original Cholec80 dataset contains 80 videos of laparoscopic cholecystectomy procedures recorded at 25 fps.

Training subset: Videos 41–45 (14,195 annotated frames across all splits)

Split Images
Train 8,345
Val 2,893
Test 2,957

Instrument classes: Bag, Bipolar, Clipper, Grasper, Hook, Irrigator, Scissors

Class Distribution (Training Set)

Instance counts reflect how frequently each instrument appears across training frames. The dataset has a strong class imbalance, dominated by Hook and Grasper.

Class Instances (train)
Grasper 6,655
Hook 5,085
Irrigator 924
Bipolar 760
Bag 544
Scissors 218
Clipper 174

Counts based on videos 41–45 only.


Training

Parameter Value
Architecture YOLOv8s
Pretrained on COCO
Image size 640×640
Epochs 30 (best: epoch 20)
Batch size 16
Learning rate 0.005
Early stopping patience=15
Hardware NVIDIA Tesla T4
Framework Ultralytics 8.4.21

Results (Test Set)

Overall

Metric Score
mAP@50 0.685
mAP@50-95 0.392
Precision 0.743
Recall 0.658

Per-class mAP@50

Class mAP@50 mAP@50-95
Hook 0.986 0.631
Irrigator 0.834 0.509
Bipolar 0.788 0.450
Grasper 0.766 0.453
Bag 0.611 0.286
Scissors 0.468 0.244
Clipper 0.342 0.168

Findings and Limitations

Strong performers (mAP@50 > 0.75): Hook, Irrigator, Bipolar, and Grasper all achieve reliable detection. Hook in particular reaches near-perfect performance (0.986), which is consistent with its visual distinctiveness and dominant presence in the training data.

Weak performers (mAP@50 < 0.50): Clipper and Scissors underperform significantly. This is a direct consequence of class imbalance — Clipper and Scissors appear in approximately 200 training instances. With this volume of examples, the model does not generalise reliably to unseen frames. This is a data problem, not an architectural one.

Grasper / Hook confusion: In several test sequences, the model misclassifies a stationary Grasper as a Hook. Both instruments share a similar elongated profile when partially occluded or at certain angles, and the model's prior is strongly biased toward Hook given its frequency in the training data. This is a known failure mode.

Bag detection (mAP@50: 0.611): The specimen retrieval bag is visually ambiguous — it is partially transparent, deformable, and its appearance changes substantially depending on how full it is. This accounts for its lower performance relative to its instance count.

Training data scope: The model was trained exclusively on videos 41–45 of Cholec80. Performance on videos from different recording conditions, camera setups, or surgical teams may vary.


Next Steps — Dataset Contribution

The findings above point to a clear path for improvement: expanding the annotated dataset to include more instances of underrepresented classes, particularly Clipper and Scissors.

A follow-up project is underway to use this model for model-assisted annotation of additional Cholec80 videos. The workflow uses the trained detector to generate candidate bounding boxes on previously unannotated frames, which are then reviewed and corrected manually. The resulting extended dataset will be published as cholec80-boxes-extended on Hugging Face Datasets under the same CC BY-NC-SA 4.0 license as the original Cholec80-Boxes.

Collaborators are welcome. Details will be posted when the annotation pipeline is ready.


License

Model weights are released under CC BY-NC-SA 4.0, consistent with the Cholec80-Boxes dataset license. Non-commercial use only.


Citation

If you use this model, please also cite the original Cholec80-Boxes dataset and the original Cholec80 dataset:

@dataset{cholec80boxes,
  title = {Cholec80-Boxes},
  url   = {https://zenodo.org/records/13170928},
}

@article{twinanda2017endonet,
  title   = {EndoNet: A Deep Architecture for Recognition Tasks on Laparoscopic Videos},
  author  = {Twinanda, Andru P. and Shehata, Sherif and Mutter, Didier and Marescaux, Jacques and de Mathelin, Michel and Padoy, Nicolas},
  journal = {IEEE Transactions on Medical Imaging},
  volume  = {36},
  number  = {1},
  pages   = {86--97},
  year    = {2017},
}

Acknowledgements

This model was developed as part of a medical computer vision portfolio project. Training data and demo videos are derived from the Cholec80 dataset, originally published by the CAMMA research group at the University of Strasbourg, and from the Cholec80-Boxes annotation extension.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for cesaraha/yolov8s-surgical-instrument-detection-cholec80

Finetuned
(231)
this model

Space using cesaraha/yolov8s-surgical-instrument-detection-cholec80 1