Skip to content
advancedvideo

SHands Surgical Gesture and Error Segmentation

Gesture segments with per-segment error tags on surgical video, after SHands. Sample clips are CC BY 3.0 suturing demonstrations.

Get This Design

View on GitHub(opens in a new tab)

Clone or download from the repository

Quick start:

bash
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/video/action-recognition/shands-surgical-gestures-errors
potato start config.yaml

About this dataset

SHands is a multi-view dataset and benchmark for surgical hand-gesture and error recognition toward medical training, built by Le Ma, Thiago Freitas dos Santos, Nadia Magnenat-Thalmann, and Katarzyna Wac and published at CVPR 2026. The annotation taxonomy has two levels, 15 gesture primitives for incision (I1 to I5) and suturing (S1 to S10) with frame-level temporal boundaries, and 8 error categories. A Background/Idle class covers segments with no meaningful gesture.

In the protocol, a single annotator guided by an educator's definitions labeled the recordings, and an expert surgeon verified the labels. The design shows a video_annotation scheme in segment mode with the 15 primitives and Background/Idle as segment labels, and a multiselect segment scheme for the eight error categories. The paper does not say whether errors attach to a segment or to a whole trial, so the design asks for errors per segment. The dataset records several camera views per trial, and the design shows one video. The expert verification pass is not modeled.

Access to SHands runs through a data access agreement with the authors, so no SHands video or annotation is shipped and the design links no download. The sample clips are nine suturing demonstrations by Arif Alper Çevik from Wikimedia Commons, licensed CC BY 3.0. The clips illustrate the mechanics only.

Gesture primitives
15, plus Background/Idle
Error categories
8
Annotators
1, verified by an expert surgeon
Sample clips in this design
9 (CC BY 3.0 suturing demonstrations)

Configuration File

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# SHands: A Multi-View Dataset and Benchmark for Surgical Hand-Gesture and Error Recognition Toward Medical Training
# Ma, Freitas dos Santos, Magnenat-Thalmann, and Wac. CVPR 2026, pp. 42879-42890.
# arXiv preprint: https://doi.org/10.48550/arXiv.2603.26400
# Open copy: https://openaccess.thecvf.com/content/CVPR2026/html/Ma_SHands_A_Multi-View_Dataset_and_Benchmark_for_Surgical_Hand-Gesture_and_CVPR_2026_paper.html
# Project page: https://lm-collab.github.io/Shands-project-page/
# Access: the project page says the data are available for academic and non-commercial research purposes and asks users to complete a
# data access agreement, with contact through the authors. The paper's ethics statement says the dataset "will be released" under
# CC BY 4.0, and the page does not repeat that. This design makes no licence claim for the data and links no download. No SHands
# video or annotation is shipped.
# Licence of the sample items: nine suturing demonstration clips from Wikimedia Commons, each CC BY 3.0 (read from the Commons
# API). Author of the clips: Arif Alper Çevik. Licence: https://creativecommons.org/licenses/by/3.0/ . Each File: page on
# commons.wikimedia.org carries the title used in sample-data.json (for example "Square knot suture technique with instruments.webm").
# The clips are not SHands recordings and show a single view, so they illustrate the mechanics only.
#
# Protocol (paper section 3.3): "a two-level annotation taxonomy ... (1) 15 Gesture Primitives (Table 2), which decompose
# incision (I1-I5) and suturing (S1-S10) into clinically meaningful units with frame-level temporal boundaries; and (2) 8 Error
# Categories (Table 3)". "a Background/Idle class is defined for segments containing no meaningful gestures". "Annotations
# were performed by a single annotator (guided by an educator's definitions) and verified by an expert surgeon".
# Error categories (Table 3): II1 Improper instrument grip, II2 Incorrect angle, II3 Repetitive cutting, IS1 Incorrect needle
# handling, IS2 Excessive force application, IS3 Faulty knot technique, IS4 Manual thread manipulation, IS5 Result incorrect.
#
# Adaptations: the dataset has several synchronised camera views per trial; this design shows one video. The paper does not say
# whether errors attach to a segment or to the whole trial, so the error list is asked per segment. The expert verification
# pass is not modelled.

annotation_task_name: "Surgical gesture and error segmentation"
task_dir: .
output_annotation_dir: annotation_output/
export_annotation_format: jsonl

data_files:
  - sample-data.json

item_properties:
  id_key: id
  text_key: video_url

instance_display:
  fields:
    - key: task
      type: text
      label: Procedure shown

annotation_instructions: |
  Cut the recording into consecutive gesture segments with [ and ] and Enter. Give every segment one gesture primitive
  (I1 to I5 for an incision, S1 to S10 for suturing), or Background/Idle when no meaningful gesture is happening.
  Then tick any technical errors you see inside that segment.

annotation_schemes:
  - annotation_type: video_annotation
    name: gestures
    description: "Mark each gesture primitive with its start and end, then note any errors in it."
    source_field: video_url
    mode: segment
    min_segments: 1
    labels:
      - name: I1 Grasping scalpel and forceps
      - name: I2 Positioning toward tissue site
      - name: I3 Stabilizing surrounding tissue
      - name: I4 Executing incision with blade
      - name: I5 Retracting incised tissue
      - name: S1 Grasping forceps and needle holder
      - name: S2 Securing needle in holder
      - name: S3 Positioning toward tissue site
      - name: S4 Elevating wound edge
      - name: S5 Passing needle through tissue
      - name: S6 Pulling suture with needle holder
      - name: S7 Making a knot
      - name: S8 Drop the needle holder, grasp a scissors
      - name: S9 Cutting excess suture
      - name: S10 Re-grasping needle holder
      - name: Background / Idle
    segment_schemes:
      - annotation_type: multiselect
        name: errors
        description: "Which technical errors occur in this segment? (Leave empty if none.)"
        labels:
          - II1 Improper instrument grip
          - II2 Incorrect angle
          - II3 Repetitive cutting
          - IS1 Incorrect needle handling
          - IS2 Excessive force application
          - IS3 Faulty knot technique
          - IS4 Manual thread manipulation
          - IS5 Result incorrect
    timeline_height: 70
    zoom_enabled: true
    playback_rate_control: true
    frame_stepping: true
    show_timecode: true
    video_fps: 25

user_config:
  allow_all_users: true
  users: []

Sample Data

json
[
  {
    "id": "shands_001",
    "task": "Suturing (square knot with instruments)",
    "video_url": "https://upload.wikimedia.org/wikipedia/commons/4/4e/Square_knot_suture_technique_with_instruments.webm"
  },
  {
    "id": "shands_002",
    "task": "Suturing (simple interrupted stitch)",
    "video_url": "https://upload.wikimedia.org/wikipedia/commons/c/c9/Simple_interrupted_stitch_suture_technique.webm"
  }
]

// ... and 7 more items

Dataset & paper

Ma et al., CVPR 2026

Paper DOI
10.48550/arXiv.2603.26400

Citation (BibTeX)

bibtex
@InProceedings{Ma_2026_CVPR,
  author = {Ma, Le and dos Santos, Thiago Freitas and Magnenat-Thalmann, Nadia and Wac, Katarzyna},
  title = {SHands: A Multi-View Dataset and Benchmark for Surgical Hand-Gesture and Error Recognition Toward Medical Training},
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  month = {June},
  year = {2026},
  pages = {42879--42890}
}

Details

Annotation Types

video_annotationmultiselect

Domain

Computer VisionSurgical TrainingMedical Education

Use Cases

Gesture SegmentationError AnnotationSkill Assessment

Tags

shandssurgical gesturessuturingerror recognitioncvpr

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)