Skip to content
advancedvideo

CAT-SG Surgical Scene Graph Relations

Tool and tissue tracks with typed relations between them on cataract surgery video, after CAT-SG. Sample clips are a CC BY porcine-eye stand-in.

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/scene-understanding/catsg-surgical-scene-graph-relations
potato start config.yaml

About this dataset

CAT-SG extends the CATARACTS videos of cataract surgery with scene graph annotations. Felix Holm, Gozde Unver, Ghazal Ghazaei, and Nassir Navab present it at MICCAI 2025. Nine trained student annotators marked each instance of a surgical tool interacting with an anatomical structure, an iterative expert review verified the labels, and the paper reports 1,811,252 relations over 29 object classes in 50 videos sampled at 5 fps. Eight relation categories describe the interactions.

The design shows a video_annotation scheme in tracking mode with the paper's 29 object classes as track labels and the eight relations declared under relations. Each relation names the tracks it may join, so the server accepts a relation only when its subject track carries a tool label. Removing a track also removes the relations that use it. A relation covers a frame range between two tracks, where the dataset marks relations on sampled frames, and tracks are keyframe boxes with interpolation, where the dataset uses pseudo-labeled masks. The design requires Potato 2.15.0 or later. The admin agreement page scores relations between annotators, matching tracks by position, and the scene_graph export writes them as scene graphs and a relations table. The surgical step and technique labels of the dataset are not reproduced.

The CAT-SG README states CC BY-NC 4.0, and an open license for the CATARACTS recordings was not confirmed, so no CAT-SG annotation or CATARACTS frame is shipped. The three sample clips are stand-ins, excerpts of a CC BY 2.0 video of cataract surgery on a porcine eye from BMC Ophthalmology, and the item descriptions are illustrative.

Surgical videos
50
Object classes
29
Relation categories
8
Annotated relations
1,811,252
Annotators
9 trained students, with expert review
Sample clips in this design
3 (CC BY 2.0 porcine-eye stand-in)

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
# Requires Potato 2.15.0 or later (video_annotation relations between tracks).
# Dataset: CAT-SG, Holm, Unver, Ghazaei, and Navab, MICCAI 2025 (LNCS), pp. 96-106.
#   @inbook{Holm_2025, title={CAT-SG: A Large Dynamic Scene Graph Dataset for Fine-Grained Understanding of Cataract Surgery},
#     booktitle={Medical Image Computing and Computer Assisted Intervention -- MICCAI 2025}, publisher={Springer Nature Switzerland},
#     author={Holm, Felix and Unver, Gozde and Ghazaei, Ghazal and Navab, Nassir}, year={2025}, pages={96--106}}
# DOI: 10.1007/978-3-032-05114-1_10
# Paper: https://papers.miccai.org/miccai-2025/0133-Paper1687.html
# Dataset: https://github.com/felixholm/CAT-SG (the README states CC BY-NC 4.0; no CAT-SG annotation or CATARACTS frame is shipped).
#
# Stand-in media, declared. An open license for the CATARACTS surgical videos was not confirmed, so the three sample clips are cut from a
# CC BY 2.0 supplementary video of cataract surgery on a porcine eye (Mitani A, Suzuki T, Tasaka Y, Uda T, Hiramatsu Y, Kawasaki S,
# Ohashi Y, BMC Ophthalmology 2014, doi:10.1186/1471-2415-14-129, via Wikimedia Commons). Clips are shortened, scaled to 640 pixels
# wide, re-encoded and stripped of audio; see media/LICENSE-media.txt. They show an irrigation/aspiration instrument and an eye, not
# a CATARACTS recording, and the item descriptions are illustrative.
#
# Protocol (paper section 2.2): 9 trained student annotators "reviewed the videos and interactively marked each instance of a
# surgical tool interacting with an anatomical structure", followed by "an iterative expert review process". "The interactions are
# classified into 8 categories shown in Table 1": Holding, Activation, Pushing, Pulling, Cutting, Inserting, Retracting, Close to.
# "The following 29 objects were considered for annotations" (listed under labels below). Videos were annotated at 5 fps.
# Paper section 3: semantic relations "occur only between tool-tool or tool-anatomy pairs"; the dataset README names the anatomical
# structures as Pupil, Iris, Cornea, and Skin.
#
# Adaptations: Potato stores each relation as {subject track, predicate, object track, start frame, end frame} next to the tracks,
# so a relation covers a frame range instead of being marked on every sampled frame. "Close to" is one of the eight relations in
# Table 1, but the paper's method section derives it from adjacent segmentation masks, and the paper does not say whether the
# annotators marked it by hand. The design offers it as an ordinary relation. Tracks are boxes at keyframes with
# interpolation, not the pseudo-labeled masks of the dataset. Subjects are limited to the 25 non-anatomical classes (the paper's
# tool-tool and tool-anatomy rule); Surgical Tape, which the README leaves out of both lists, is treated as a tool here. The
# surgical step and technique annotations of CAT-SG are not reproduced. Agreement is not computed over relations, and the MOT
# and other track exports leave relations out; they travel in the JSON answer and in the jsonl export.
#
# Server checks: a relation must use a name declared below, join two tracks that exist in the answer, name two different tracks, run
# from a start frame to an end frame no earlier than it, and use a subject track whose label is in the relation's subject_labels
# (an object label list, where given, is enforced the same way). Deleting a track drops the relations that use it.

annotation_task_name: "Surgical scene graph relations"
task_dir: .
output_annotation_dir: annotation_output/
export_annotation_format: jsonl
port: 8000

# Local clips are served from media/ at /media/<file>.
media_directory: media

# Demo setting: annotators sign in with a username only.
require_password: false

data_files:
  - sample-data.json

item_properties:
  id_key: id
  text_key: video_url

instance_display:
  fields:
    - key: description
      type: text
      label: What to annotate

annotation_instructions: |
  Draw a box around each tool and each anatomical structure you can see, and give it its class. Place boxes at keyframes; the
  frames between them are interpolated. Then, in the Relations between tracks panel, choose a tool track, one of the relations
  (Holding, Activation, Pushing, Pulling, Cutting, Inserting, Retracting, or Close to), and the track it acts on. Set the frame
  range with Now, and press Add relation. A tool is the subject of a relation and a tool or anatomical structure is the object.

annotation_schemes:
  - annotation_type: video_annotation
    name: scene_graph
    description: "Track each tool and anatomical structure, then relate them over the frames where the interaction holds."
    source_field: video_url
    mode: tracking
    labels:
      # Anatomical structures (dataset README).
      - name: Pupil
        color: "#2563EB"
      - name: Iris
        color: "#7C3AED"
      - name: Cornea
        color: "#0891B2"
      - name: Skin
        color: "#D97706"
      # The other 25 classes of the paper's list of 29 objects.
      - Surgical Tape
      - Hand
      - Eye Retractors
      - Hydrodissection Cannula
      - Viscoelastic Cannula
      - Capsulorhexis Cystotome
      - Rycroft Cannula
      - Bonn Forceps
      - Primary Knife
      - Phacoemulsification Handpiece
      - Lens Injector
      - Irrigation/Aspiration Handpiece
      - Secondary Knife
      - Micromanipulator
      - Capsulorhexis Forceps
      - Suture Needle
      - Needle Holder
      - Charleux Cannula
      - Vitrectomy Handpiece
      - Mendez Ring
      - Marker
      - Troutman Forceps
      - Cotton
      - Iris Hooks
      - Vannas Scissors
    tracking_options:
      interpolation: linear
      auto_advance_frames: 5
    relations:
      - name: Holding
        description: "A tool fixates a structure or another tool, such as forceps fixating the sclera."
        subject_labels: &tools
          - Surgical Tape
          - Hand
          - Eye Retractors
          - Hydrodissection Cannula
          - Viscoelastic Cannula
          - Capsulorhexis Cystotome
          - Rycroft Cannula
          - Bonn Forceps
          - Primary Knife
          - Phacoemulsification Handpiece
          - Lens Injector
          - Irrigation/Aspiration Handpiece
          - Secondary Knife
          - Micromanipulator
          - Capsulorhexis Forceps
          - Suture Needle
          - Needle Holder
          - Charleux Cannula
          - Vitrectomy Handpiece
          - Mendez Ring
          - Marker
          - Troutman Forceps
          - Cotton
          - Iris Hooks
          - Vannas Scissors
      - name: Activation
        description: "A tool is in use, such as a phacoemulsification handpiece emulsifying."
        subject_labels: *tools
      - name: Pushing
        description: "A tool pushes or rotates a structure, such as a micromanipulator pushing and rotating the nucleus."
        subject_labels: *tools
      - name: Pulling
        description: "A tool pulls a structure, such as a cystotome pulling on a capsular bag flap."
        subject_labels: *tools
      - name: Cutting
        description: "A tool cuts a structure, such as a knife making a corneal incision."
        subject_labels: *tools
      - name: Inserting
        description: "A tool is inserted through the primary or secondary incision in the cornea."
        subject_labels: *tools
      - name: Retracting
        description: "A tool is retracted through the primary or secondary incision in the cornea."
        subject_labels: *tools
      - name: Close to
        description: "Spatial proximity of one object to another."
        subject_labels: *tools
    video_fps: 30
    show_timecode: true
    frame_stepping: true

user_config:
  allow_all_users: true
  users: []

Sample Data

json
[
  {
    "id": "catsg_001",
    "video_url": "/media/porcine_cataract_ia_a.mp4",
    "description": "Illustrative item, porcine eye with no instrument in view. Track the Pupil and the Iris, and relate them only if a relation applies."
  },
  {
    "id": "catsg_002",
    "video_url": "/media/porcine_cataract_ia_b.mp4",
    "description": "Illustrative item, porcine eye with an instrument tip entering the view. Track the Irrigation/Aspiration Handpiece, the Pupil, and the Iris, then relate the handpiece to the structures it touches or approaches."
  }
]

// ... and 1 more items

Dataset & paper

Holm et al., MICCAI 2025

Paper DOI
10.1007/978-3-032-05114-1_10

Citation (BibTeX)

bibtex
@inbook{Holm_2025,
  title = {CAT-SG: A Large Dynamic Scene Graph Dataset for Fine-Grained Understanding of Cataract Surgery},
  ISBN = {9783032051141},
  ISSN = {1611-3349},
  url = {http://dx.doi.org/10.1007/978-3-032-05114-1_10},
  DOI = {10.1007/978-3-032-05114-1_10},
  booktitle = {Medical Image Computing and Computer Assisted Intervention -- MICCAI 2025},
  publisher = {Springer Nature Switzerland},
  author = {Holm, Felix and Ünver, Gözde and Ghazaei, Ghazal and Navab, Nassir},
  year = {2025},
  month = sep,
  pages = {96--106}
}

Details

Annotation Types

video_annotation

Domain

Computer VisionSurgical Data ScienceOphthalmology

Use Cases

Scene Graph AnnotationObject TrackingSurgical Workflow Analysis

Tags

cat-sgcataract surgeryscene graphrelationsobject trackingmiccai

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)