File size: 9,599 Bytes
0847d4c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
# CaptainCook4D: A Dataset for Understanding Errors in Procedural Activities

<div align=center>
  <a src="https://img.shields.io/badge/project-website-green" href="https://captaincook4d.github.io/captain-cook/">
    <img src="https://img.shields.io/badge/project-website-green">
  </a>
  <a src="https://img.shields.io/badge/paper-arxiv-red" href="https://arxiv.org/abs/2312.14556">
    <img src="https://img.shields.io/badge/paper-arxiv-red">
  </a>
  <a src="https://img.shields.io/badge/bibtex-citation-blue" href="https://captaincook4d.github.io/captain-cook/#citation">
    <img src="https://img.shields.io/badge/bibtex-citation-blue">
  </a> 
</div>

<p align="center">
  (This page is under continuous update and construction.)
</p>


> **DISCLAIMER**: The proposed data splits showcase the ways in which our dataset can be used. We do not claim that these splits are the best or the only way to use the dataset. 
> We encourage the community to explore other ways to use the dataset and share their findings with us.

----

<div>
    <h3>Annotation Files</h3>
</div>

1. [Annotation CSVs](#annotation-csvs)
   1. Activity ID and Step ID Mapping 
   2. Activity Step Description
   3. Average Segment Length
   4. Error Annotations
   5. Recording ID and Step ID Mapping
   6. Step Annotations
   7. Step ID and Step Description Mapping
2. [Annotation JSONs](#annotation-csvs)
   1. Activity ID and Step ID Mapping
   2. Complete Step Annotations JSON
   3. Error Annotations
   4. Error Category ID
   5. Recording ID and Step ID Mapping
   6. Step Annotations
   7. Step ID and Step Description Mapping
3. Data Splits
   1. Splits based on Environments
      1. Combined
      2. Only Normal Videos
   2. Splits based on Persons
      1. Combined
      2. Only Normal Videos
   3. Splits based on Recipes
      1. Combined
      2. Only Normal Videos
   4. Splits based on Recordings
      1. Combined
      2. Only Normal Videos
4. Metadata
   1. Average Segment Length
   2. Video Information
5. Task Graphs

----


## Annotation CSVs <a id="annotation-csvs"></a>

### File: **activity_id_step_id_mapping.csv**

| Column Name   | Type   | Description                        |
|---------------|--------|------------------------------------|
| activity_idx  | int    | Activity ID                        |
| activity_name | string | Name of the activity (Recipe Name) |
| step_indices  | list   | List of Step IDs                   |

### File: **activity_step_description.csv**

| Column Name      | Type   | Description                        |
|------------------|--------|------------------------------------|
| activity_idx     | int    | Activity ID                        |
| activity_name    | string | Name of the activity (Recipe Name) |
| step_index       | int    | Step ID                            |
| step_description | string | Description of the step            |

### File: **average_segment_length.csv**

| Column Name            | Type   | Description                            |
|------------------------|--------|----------------------------------------|
| activity_id            | int    | Activity ID                            |
| activity_name          | string | Name of the activity (Recipe Name)     |
| average_segment_length | float  | Average segment length of the activity |

### File: **error_annotations.csv**

| Column Name       | Type   | Description                          |
|-------------------|--------|--------------------------------------|
| recording_id      | int    | Recording ID                         |
| step_id           | int    | Step ID                              |
| start_time        | float  | Start time of the step               |
| end_time          | float  | End time of the step                 |
| description       | string | Description of the step              |
| has_errors        | bool   | Error in the step                    |
| Preparation Error | bool   | Error Category: Preparation Error    |
| error_description | string | Description of the preparation error |
| Measurement Error | bool   | Error Category: Measurement Error    |
| error_description | string | Description of the measurement error |
| Order Error       | bool   | Error Category: Order Error          |
| error_description | string | Description of the order error       |
| Timing Error      | bool   | Error Category: Timing Error         |
| error_description | string | Description of the timing error      |
| Technique Error   | bool   | Error Category: Technique Error      |
| error_description | string | Description of the technique error   |
| Temperature Error | bool   | Error Category: Temperature Error    |
| error_description | string | Description of the temperature error |
| Missing Step      | bool   | Error Category: Missing Step         |
| error_description | string | Description of the missing step      |
| Other             | bool   | Error Category: Other                |
| error_description | string | Description of the other error       |


### File: **error_category_idx.csv**

| Column Name        | Type   | Description         |
|--------------------|--------|---------------------|
| error_category_idx | int    | Error Category ID   |
| error_category     | string | Error Category Name |


### File: **recording_id_step_idx.csv**

| Column Name  | Type | Description                       |
|--------------|------|-----------------------------------|
| recording_id | int  | Recording ID                      |
| activity_idx | int  | Activity ID                       |
| step_indices | list | List of Step IDs in the recording |


### File: **step_annotations.csv**

| Column Name  | Type   | Description                        |
|--------------|--------|------------------------------------|
| recording_id | int    | Recording ID                       |
| step_id      | int    | Step ID                            |
| start_time   | float  | Start time of the step             |
| end_time     | float  | End time of the step               |
| description  | string | Description of the step            |
| has_errors   | bool   | Error in the step                  |


### File: **step_idx_description.csv**


| Column Name      | Type   | Description             |
|------------------|--------|-------------------------|
| step_idx         | int    | Step ID                 |
| step_description | string | Description of the step |


## Annotation JSONs <a id="annotation-jsons"></a>

----

File: **step_idx_description.json**

> Can be used to map the step ID to the step description.

```json
{
    "step_idx": "step_description"
}
```

File: **step_annotations.json**

> Contains metadata for each recording where the nature of recordings is just limited to the boolean.
> For information about the error category and the  error description please see **complete_step_annotations.json**

```json
{
    "1_7": {
        "recording_id": "1_7",
        "steps": [
            {
                "step_id": 3,
                "start_time": "start_time",
                "end_time": "end_time",
                "description": "description",
                "has_errors": "has_errors"
            }, 
            ....
        ]
    },
    ....
}
```

File: **recording_id_step_idx.json**

> Contains information about the steps ids in each recording. 
> **Note**: Step IDs of repetitive steps are repeated in the order in which they are performed in the recording.

```json
{
    "1_7" : [3, 1, 4, 12 ...],
   "1_10" : [3, 1, 4, 11 ...],
   ...
}
```

File: **error_annotations.json**

> This file contains the complete error annotations for each recording.
> We attach errors that occur during each step as part of the steps.
> Here, **tag** describes the error category and **description** presents the error description.
> Here we exclude information about the person and the environment in which they are recorded.

```json
[
   {
        "recording_id": "1_10",
        "activity_id": 1,
        "is_error": true,
        "step_annotations": [
            {
                "description": "Microwave-Microwave the ramekin cup uncovered on high for 30 seconds",
                "step_id": 4,
                "errors": [
                    {
                        "tag": "Missing Step",
                        "description": "Skipped this step"
                    }
                ],
                "start_time": -1.0,
                "end_time": -1.0,
                "modified_description": "Skipped this step"
            },
            ...
        ]
    },
    ...
]
```


File: **complete_step_annotations.json**

> This file contains the complete step annotations for each recording.
> It includes complete information about a recording namely (a) the person, (b) the environment, and (c) the errors that occur during each step of the recording


```json
[
    "1_10" : {
        "recording_id": "1_10",
        "activity_id": 1,
        "person": "6",
        "environment": "1",
        "is_error": true,
        "step_annotations": [
            {
                "description": "Microwave-Microwave the ramekin cup uncovered on high for 30 seconds",
                "step_id": 4,
                "errors": [
                    {
                        "tag": "Missing Step",
                        "description": "Skipped this step"
                    }
                ],
                "start_time": -1.0,
                "end_time": -1.0,
                "modified_description": "Skipped this step"
            },
            ...
        ]
    },
    ...
]
```