hding2455 commited on
Commit
6039214
·
verified ·
1 Parent(s): 119d1d2

Align dataset card with the TACTUS project page

Browse files

Rename to TACTUS, use the paper's terminology (action/interaction window, Gold/Silver, source names), add composition tables, benchmark split, source terms, authors and citation. Data files unchanged.

Files changed (1) hide show
  1. README.md +207 -33
README.md CHANGED
@@ -1,55 +1,156 @@
1
  ---
2
- pretty_name: Surgical Action & Affordance Dataset
 
 
 
 
 
 
3
  tags:
4
  - surgery
5
- - video
6
- - affordance
7
  - cholecystectomy
 
 
 
 
 
 
 
 
8
  ---
9
 
10
- # Surgical Action & Affordance Dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
- Tool–tissue affordance annotations on laparoscopic cholecystectomy videos. Each one is a short clip with dense point tracks (tool tip, tool anchors, tissue contact points). Annotators placed point prompts in the affordance annotation tool, and CoTracker propagated them over the frame range. Exported 2026-10-31 from a snapshot of the tool's database in the tool's own clip format.
13
 
14
- **Private, internal use.**
15
 
16
- ## Splits
 
 
 
 
 
17
 
18
- There are three index files. Each is a JSON object keyed by annotation uuid, and the clips are shared by all three.
19
 
20
- | Index | Annotations | Videos | What it holds |
21
- |---|---|---|---|
22
- | `index_gold.json` | 15,668 | 101 | Annotations in completed tasks: human annotated and verified (approved in review). |
23
- | `index_silver.json` | 7,327 | 40 | The 40 `case_*` videos whose tasks haven't been through review: 7,074 tracked but unreviewed, plus 253 already approved. |
24
- | `index_all.json` | 22,995 | 141 | Gold + silver. |
25
 
26
- | Group | Gold videos | Gold annotations | Silver videos | Silver annotations | Format |
27
- |---|---|---|---|---|---|
28
- | case | 32 | 4,281 | 40 | 7,327 | 1280×720 @ 60 fps |
29
- | cholec80 | 30 | 6,058 | – | – | 854×480 @ 25 fps |
30
- | comprehensive | 8 | 764 | – | – | 1280×792 @ 60 fps |
31
- | heichole | 10 | 1,799 | – | – | 960×540 @ 25 fps |
32
- | youtube_chenyan | 21 | 2,766 | – | – | 640×360 / 1280×720, 25–30 fps |
33
 
34
- ## Layout
35
 
36
  ```
37
- <task>/clips/<action>_<start>_<end>.mp4 # frames start..end of the source video (stream copy, every frame a keyframe)
38
- <task>/annotation/<action>_<start>_<end>.json # tracks
39
- <task>/annotation/<action>_<start>_<end>_prompt.json # the annotator's prompt points ({} if none were stored)
40
  index_{gold,silver,all}.json
41
  review_status.json # uuid -> {"status": "approved" | "success", "task_status": "Complete" | "None"}
42
  videos.csv # one row per video: split, group, counts, frames, fps, duration, resolution
43
- excluded_video_mismatch.json # annotations left out because their source video no longer matches (see Notes)
44
  ```
45
 
46
- Index entry:
 
 
 
 
47
 
48
  ```json
49
  {
50
  "task": "cholec80_06", // source video
51
  "version": 0, // annotation version (only the latest version is exported)
52
- "start": 10434, "end": 10534, // affordance range, absolute frame indices in the source video, inclusive
53
  "tool": "hook", "action": "dissect",
54
  "clip_dir": "cholec80_06/clips/dissect_10434_10534.mp4",
55
  "anno_dir": "cholec80_06/annotation/dissect_10434_10534.json",
@@ -57,13 +158,86 @@ Index entry:
57
  }
58
  ```
59
 
60
- Paths are relative to the repo root. Clip frame `i` is source frame `start + i`, so each clip has `end - start + 1` frames.
 
 
 
 
61
 
62
- Track file keys: `tool`, `action`, `affordance_range` and `action_range` (`{start, end}`, where the action range lies inside the affordance range), `imageDimensions`, `job_id`, `failure_msg`, and `points`. Each point is `{id, x, y, uid, type, frameIndex, vis}`:
63
- - `type` is `tool_tip`, `tool_anchor` or `contact`.
64
- - `frameIndex` is absolute in the source video.
 
 
 
 
65
  - `x`, `y` are pixels of the source video and can fall slightly outside the frame.
66
 
67
- Prompt points use the same fields, with `x`, `y` normalized to 0–1.
 
 
 
 
 
 
68
 
69
- Tool / action pairs (counts in `all`): hook/dissect 13,729 · grasper/grasp 4,228 · scissors/dissect 2,338 · grasper/dissect 1,479 · clipper/clip 618 · scissors/cut 603.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: "TACTUS: Tool, Action, Contact and Trajectory Understanding in Surgery"
3
+ license: other
4
+ license_name: tactus-source-terms
5
+ license_link: https://github.com/Ruifreddie/TACTUS/blob/main/data/README.md#source-terms
6
+ task_categories:
7
+ - video-classification
8
+ - keypoint-detection
9
  tags:
10
  - surgery
11
+ - surgical-video
 
12
  - cholecystectomy
13
+ - laparoscopy
14
+ - point-tracking
15
+ - temporal-action-localization
16
+ - affordance
17
+ - video
18
+ - medical
19
+ size_categories:
20
+ - 10K<n<100K
21
  ---
22
 
23
+ <p align="center"><img src="https://raw.githubusercontent.com/Ruifreddie/TACTUS/main/assets/tactus_banner.png" alt="TACTUS: Tool, Action, Contact and Trajectory Understanding in Surgery" width="100%"></p>
24
+
25
+ # TACTUS: Unifying Surgical Action Understanding in Time and Space
26
+
27
+ **TACTUS** (Tool, Action, Contact and Trajectory Understanding in Surgery) is a dataset and benchmark linking what an instrument does to when it acts, how it moves, and where it interacts with tissue. Each clip follows one surgical action or attempt, from approach through completion.
28
+
29
+ **[arXiv Paper](https://arxiv.org/html/2611.31956)** · **[Project Page](https://ruifreddie.github.io/TACTUS/)** · **[Code](https://github.com/Ruifreddie/TACTUS)** · **[Checkpoints](https://huggingface.co/abccbd/TACTUS-TactusNet)** · **[Annotation guide](https://github.com/Ruifreddie/TACTUS/blob/main/data/README.md)** · **[Evaluation protocol](https://github.com/Ruifreddie/TACTUS/blob/main/evaluation/README.md)**
30
+
31
+ <table>
32
+ <tr>
33
+ <td><img src="https://raw.githubusercontent.com/Ruifreddie/TACTUS/main/assets/hook_dissect.gif" alt="hook, dissect" width="100%"></td>
34
+ <td><img src="https://raw.githubusercontent.com/Ruifreddie/TACTUS/main/assets/grasper_grasp.gif" alt="grasper, grasp" width="100%"></td>
35
+ <td><img src="https://raw.githubusercontent.com/Ruifreddie/TACTUS/main/assets/clipper_clip.gif" alt="clipper, clip" width="100%"></td>
36
+ </tr>
37
+ <tr>
38
+ <td><img src="https://raw.githubusercontent.com/Ruifreddie/TACTUS/main/assets/scissors_cut.gif" alt="scissors, cut" width="100%"></td>
39
+ <td><img src="https://raw.githubusercontent.com/Ruifreddie/TACTUS/main/assets/grasper_dissect.gif" alt="grasper, dissect" width="100%"></td>
40
+ <td><img src="https://raw.githubusercontent.com/Ruifreddie/TACTUS/main/assets/scissors_dissect.gif" alt="scissors, dissect" width="100%"></td>
41
+ </tr>
42
+ </table>
43
+
44
+ <p align="center"><sub>One Gold clip per tool–action pair, drawn from its annotation. 🔴 instrument tips · 🟡 instrument anchors · 🟦 contact region on the tissue · 🟧 interaction window inside the action window.</sub></p>
45
+
46
+ | Action clips | Source videos | Annotated frames | Tool–action pairs | Public sources |
47
+ | :---: | :---: | :---: | :---: | :---: |
48
+ | **22,995** | **141** | **2.9M** | **6** | **5** |
49
+
50
+ ## Overview
51
+
52
+ Existing surgical benchmarks largely define supervision through task-specific targets, leaving the relationships between action semantics, instrument motion, and tissue interaction incompletely specified. TACTUS establishes a unified annotation framework for complete surgical actions. It jointly specifies tool and action identities, nested action and interaction windows, instrument-specific landmark trajectories, and tissue-region tracks.
53
+
54
+ The annotations were built with a two-tier pipeline that combines human annotation, point tracking, and model-generated spatial prompts. We re-annotated 141 videos from five public sources, producing 22,995 action clips that span 2.9 million frames: 15,668 **Gold** clips and 7,327 **Silver** clips.
55
+
56
+ ## Five questions
57
+
58
+ | Question | Annotation |
59
+ | --- | --- |
60
+ | **Which** instrument acts? | One of four tools: hook, grasper, scissors, or clipper. |
61
+ | **What** does it do? | One of four actions: dissect, grasp, clip, or cut. |
62
+ | **When** does the interaction occur? | An interaction window inside the full action window, which also includes approach and completion. |
63
+ | **How** does the instrument move? | Three instrument-specific landmarks tracked across the action window, with per-frame visibility. |
64
+ | **Where** does it act on tissue? | Four tissue-point tracks enclosing the affected region, also with per-frame visibility. |
65
+
66
+ For example, a grasper–grasp clip captures the approach, jaw closure, and retraction. The interaction window starts when the jaws begin to close and ends when the instrument stops moving after retraction. The tool landmarks follow the jaws, and the tissue points follow the region being grasped.
67
+
68
+ ## Gold and Silver
69
+
70
+ | Tier | Clips | Videos | How the annotations are constructed | Index file |
71
+ | --- | ---: | ---: | --- | --- |
72
+ | **Gold** | 15,668 | 101 | Human annotators label the tool, action, and time windows and place spatial prompts. Point tracking is followed by review and a final re-check. | `index_gold.json` |
73
+ | **Silver** | 7,327 | 40 | Human annotators label the tool, action, and time windows. A model places spatial prompts for tracking on additional SurgVU clips. | `index_silver.json` |
74
+ | **All** | 22,995 | 141 | Gold + Silver. | `index_all.json` |
75
+
76
+ ## Dataset composition
77
+
78
+ The release covers six tool–action pairs from five public video sources.
79
+
80
+ **Clips by tool–action pair** (all released clips)
81
+
82
+ | Tool–action pair | Clips | Share |
83
+ | --- | ---: | ---: |
84
+ | Hook–dissect | 13,729 | 59.7% |
85
+ | Grasper–grasp | 4,228 | 18.4% |
86
+ | Scissors–dissect | 2,338 | 10.2% |
87
+ | Grasper–dissect | 1,479 | 6.4% |
88
+ | Clipper–clip | 618 | 2.7% |
89
+ | Scissors–cut | 603 | 2.6% |
90
+
91
+ **Released videos and clips by source**
92
+
93
+ | Source | Folder prefix in this repo | Video format | Gold videos | Gold clips | Silver videos | Silver clips |
94
+ | --- | --- | --- | ---: | ---: | ---: | ---: |
95
+ | Cholec80 | `cholec80_*` | 854×480 @ 25 fps | 30 | 6,058 | — | — |
96
+ | SurgVU | `case_*` | 1280×720 @ 60 fps | 32 | 4,281 | 40 | 7,327 |
97
+ | YouTube | `youtube_cholecystectomy_chenyan_*` | 640×360 / 1280×720, 25–30 fps | 21 | 2,766 | — | — |
98
+ | HeiChole | `heichole_*` | 960×540 @ 25 fps | 10 | 1,799 | — | — |
99
+ | CRCD | `comprehensive_*_left` | 1280×792 @ 60 fps | 8 | 764 | — | — |
100
+
101
+ In `videos.csv`, the `group` column uses the export names: `case` (SurgVU), `cholec80`, `comprehensive` (CRCD), `heichole`, and `youtube_chenyan` (YouTube).
102
+
103
+ **Clips by source, tier, and tool–action pair**
104
+
105
+ | Source | Tier | Hook–dissect | Grasper–grasp | Scissors–dissect | Grasper–dissect | Clipper–clip | Scissors–cut |
106
+ | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: |
107
+ | Cholec80 | Gold | 4,739 | 933 | 12 | 43 | 186 | 145 |
108
+ | SurgVU | Gold | 2,688 | 799 | 350 | 296 | 99 | 49 |
109
+ | SurgVU | Silver | 3,279 | 1,454 | 1,666 | 546 | 121 | 261 |
110
+ | YouTube | Gold | 1,286 | 584 | 209 | 493 | 125 | 69 |
111
+ | HeiChole | Gold | 1,109 | 322 | 101 | 101 | 87 | 79 |
112
+ | CRCD | Gold | 628 | 136 | — | — | — | — |
113
 
114
+ ## Benchmark
115
 
116
+ The benchmark uses held-out Gold videos. Each source video belongs to exactly one partition.
117
 
118
+ | Gold benchmark partition | Videos | Clips |
119
+ | --- | ---: | ---: |
120
+ | Train | 79 | 12,372 |
121
+ | Val | 11 | 1,604 |
122
+ | Test | 11 | 1,523 |
123
+ | **Total** | **101** | **15,499** |
124
 
125
+ These are the benchmark counts from the paper (Supplement Table S9). They cover 15,499 of the 15,668 released Gold clips. The video-level split is in the code repository at [`training/pipeline/splits/gold_v2/`](https://github.com/Ruifreddie/TACTUS/tree/main/training/pipeline/splits/gold_v2), not in this dataset. Gold-only, Silver-only, and Gold + Silver models all select checkpoints on Gold Val and are scored on the same Gold Test set.
126
 
127
+ The paper compares TactusNet with 13 published baselines. With per-head encoder fine-tuning, TactusNet reaches 95.8% tool–action pair accuracy. The best temporal recall at tIoU 0.7 is 46.6% (ActionFormer), and the best contact Dice is 0.351 (SegFormer). Adding Silver to Gold training raises the default TactusNet's pair accuracy from 93.8% to 95.5%. See the [project page](https://ruifreddie.github.io/TACTUS/#benchmark) for the full tables and the [evaluation protocol](https://github.com/Ruifreddie/TACTUS/blob/main/evaluation/README.md) for the metrics and scoring commands.
 
 
 
 
128
 
129
+ ## Files and format
 
 
 
 
 
 
130
 
131
+ This repository is an export of the annotation tool, in the tool's own clip format. It was exported on 2026-10-31.
132
 
133
  ```
134
+ <video>/clips/<action>_<start>_<end>.mp4 # frames start..end of the source video (stream copy, every frame a keyframe)
135
+ <video>/annotation/<action>_<start>_<end>.json # tracks
136
+ <video>/annotation/<action>_<start>_<end>_prompt.json # the spatial prompt points (empty if none were stored)
137
  index_{gold,silver,all}.json
138
  review_status.json # uuid -> {"status": "approved" | "success", "task_status": "Complete" | "None"}
139
  videos.csv # one row per video: split, group, counts, frames, fps, duration, resolution
140
+ excluded_video_mismatch.json # annotations left out because their source video no longer matches
141
  ```
142
 
143
+ > **Naming.** The export keeps the annotation tool's field names. `affordance_range` is the paper's **action window**, and `action_range` is its inner **interaction window**.
144
+
145
+ ### Index entry
146
+
147
+ Each index is a JSON object keyed by annotation uuid. The clips are shared by all three indexes.
148
 
149
  ```json
150
  {
151
  "task": "cholec80_06", // source video
152
  "version": 0, // annotation version (only the latest version is exported)
153
+ "start": 10434, "end": 10534, // action window, absolute frame indices in the source video, inclusive
154
  "tool": "hook", "action": "dissect",
155
  "clip_dir": "cholec80_06/clips/dissect_10434_10534.mp4",
156
  "anno_dir": "cholec80_06/annotation/dissect_10434_10534.json",
 
158
  }
159
  ```
160
 
161
+ Paths are relative to the repository root. Clip frame `i` is source frame `start + i`, so each clip has `end - start + 1` frames.
162
+
163
+ ### Track file
164
+
165
+ Keys: `tool`, `action`, `affordance_range` (action window) and `action_range` (interaction window), each `{start, end}`, plus `imageDimensions`, `job_id`, `failure_msg`, and `points`.
166
 
167
+ Each point is `{id, x, y, uid, type, frameIndex, vis}`:
168
+
169
+ - `type` is `tool_tip`, `tool_anchor`, or `contact`.
170
+ - **How:** the three instrument landmarks are `tool_tip` and `tool_anchor` points. A hook has one tip and two anchors. A grasper, scissors, or clipper has two tips (the jaws) and one anchor.
171
+ - **Where:** the four `contact` points enclose the tissue region.
172
+ - `uid` identifies a track. `frameIndex` is absolute in the source video, so subtract the index entry's `start` to get the clip frame.
173
+ - `vis` is the per-frame visibility.
174
  - `x`, `y` are pixels of the source video and can fall slightly outside the frame.
175
 
176
+ Prompt points use the same fields, with `x`, `y` normalized to 0–1. A few Silver track files have an empty `points` list. Those clips have tool, action, and time-window labels but no spatial tracks.
177
+
178
+ ## Quick start
179
+
180
+ ```python
181
+ import json
182
+ from huggingface_hub import hf_hub_download
183
 
184
+ REPO = "hding2455/surgical-action-affordance"
185
+ get = lambda path: hf_hub_download(REPO, path, repo_type="dataset")
186
+
187
+ index = json.load(open(get("index_gold.json")))
188
+ uid, entry = next(iter(index.items()))
189
+
190
+ clip_path = get(entry["clip_dir"]) # mp4 holding source frames start..end
191
+ anno = json.load(open(get(entry["anno_dir"])))
192
+
193
+ action_window = anno["affordance_range"] # When: the full action window
194
+ interaction_window = anno["action_range"] # When: the interaction window inside it
195
+ for p in anno["points"]:
196
+ clip_frame = p["frameIndex"] - entry["start"] # index into the clip
197
+ # p["type"] in {"tool_tip", "tool_anchor", "contact"}; p["vis"] is visibility
198
+ ```
199
+
200
+ The full release is about 63.5 GB (58.9 GB of clips). To download only the metadata:
201
+
202
+ ```bash
203
+ hf download hding2455/surgical-action-affordance --repo-type dataset \
204
+ --include "index_*.json" "videos.csv" "review_status.json" --local-dir TACTUS
205
+ ```
206
+
207
+ The [TACTUS code](https://github.com/Ruifreddie/TACTUS/tree/main/training) reads this repository directly. It crops each video to its picture content, samples 16 frames per action window, and trains and scores TactusNet and the baselines.
208
+
209
+ ## Source terms
210
+
211
+ This release includes clips and TACTUS annotations from all five sources. Supplement F.2 and Table S21 of the paper report these terms for the source videos.
212
+
213
+ | Video source | Terms |
214
+ | --- | --- |
215
+ | Cholec80 | CC BY-NC-SA 4.0 |
216
+ | HeiChole | CC BY-NC-SA. The paper's User Notes do not specify a version and require citation of the HeiChole paper. |
217
+ | CRCD | CC BY 4.0 |
218
+ | SurgVU | CC BY-NC-SA 4.0 |
219
+ | YouTube cholecystectomy collection | Terms set by the rights holder of each video. |
220
+
221
+ The MIT license of the [code repository](https://github.com/Ruifreddie/TACTUS) covers the TACTUS code, not this dataset.
222
+
223
+ ## Authors
224
+
225
+ Lurui Wang¹\*, Hao Ding¹\*, Chenhao Yu², Chenyan Jing¹, Jiru Xu¹, Ruoqi Zuo¹, Liwei Mei¹, Chang Liu³, Lalithkumar Seenivasan¹, and Mathias Unberath¹†
226
+
227
+ ¹ Johns Hopkins University · ² University of Virginia, Charlottesville · ³ University of Toronto
228
+
229
+ \* Co-first authors: [Lurui Wang](mailto:lwang255@jhu.edu) and [Hao Ding](mailto:hding2455@gmail.com).
230
+ † Corresponding author: [Mathias Unberath](mailto:mathias@jhu.edu).
231
+
232
+ ## Citation
233
+
234
+ ```bibtex
235
+ @article{wang2026tactus,
236
+ title = {{TACTUS}: Unifying Surgical Action Understanding in Time and Space},
237
+ author = {Wang, Lurui and Ding, Hao and Yu, Chenhao and Jing, Chenyan and Xu, Jiru and Zuo, Ruoqi and Mei, Liwei and Liu, Chang and Seenivasan, Lalithkumar and Unberath, Mathias},
238
+ journal = {arXiv preprint arXiv:2611.31956},
239
+ year = {2026},
240
+ doi = {10.48550/arXiv.2611.31956},
241
+ url = {https://arxiv.org/abs/2611.31956}
242
+ }
243
+ ```