File size: 8,128 Bytes
c85ef24
 
 
 
 
 
 
 
 
 
 
 
8b3adab
 
c85ef24
 
 
 
8b3adab
c85ef24
 
8b3adab
59a5a96
8b3adab
 
 
59a5a96
 
 
 
 
 
 
 
8b3adab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59a5a96
 
 
8b3adab
59a5a96
 
8b3adab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59a5a96
 
8b3adab
 
 
59a5a96
 
 
 
 
 
8b3adab
 
 
59a5a96
 
8b3adab
 
 
 
 
 
 
 
 
 
59a5a96
 
8b3adab
 
 
59a5a96
8b3adab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59a5a96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b3adab
59a5a96
c85ef24
 
8b3adab
59a5a96
 
 
8b3adab
 
 
59a5a96
 
 
 
 
 
 
 
8b3adab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59a5a96
 
 
 
 
 
84255b9
8b3adab
67906b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: cc-by-nc-4.0
task_categories:
  - robotics
tags:
  - lerobot
  - hand-pose
  - rgb-d
  - humanoid
  - manipulation
  - 6dof
  - mediapipe
  - egocentric
  - motion-semantics
size_categories:
  - 10K<n<100K
language:
  - en
pretty_name: Dynamic Intelligence - Egocentric Human Motion Annotation Dataset
---

# Dynamic Intelligence - Egocentric Human Motion Annotation Dataset

RGB-D hand manipulation dataset captured with iPhone 13 TrueDepth sensor for humanoid robot training. Includes 6-DoF hand pose trajectories, synchronized video, and semantic motion annotations.

---

## 📊 Dataset Overview

| Metric | Value |
|--------|-------|
| Episodes | 97 |
| Total Frames | ~28,000 |
| FPS | 30 |
| Tasks | 10 manipulation tasks |
| Total Duration | ~15.5 minutes |
| Avg Episode Length | ~9.6 seconds |

### Task Distribution

| Task ID | Description | Episodes |
|---------|-------------|----------|
| Task 1 | Fold the white t-shirt on the bed | 8 |
| Task 2 | Fold the jeans on the bed | 10 |
| Task 3 | Fold two underwear and stack them | 10 |
| Task 4 | Put the pillow on the right place | 10 |
| Task 5 | Pick up plate and glass, put on stove | 10 |
| Task 6 | Go out the door and close it | 9 |
| Task 7 | Pick up sandals, put next to scale | 10 |
| Task 8 | Put cloth in basket, close drawer | 10 |
| Task 9 | Screw the cap on your bottle | 10 |
| Task 10 | Pick up two objects, put on bed | 10 |

---

## 📁 Repository Structure

```
humanoid-robots-training-dataset/
│
├── data/
│   └── chunk-000/                    # Parquet files (97 episodes)
│       ├── episode_000000.parquet
│       ├── episode_000001.parquet
│       └── ...
│
├── videos/
│   └── chunk-000/rgb/                # MP4 videos (synchronized)
│       ├── episode_000000.mp4
│       └── ...
│
├── meta/                             # Metadata & Annotations
│   ├── info.json                     # Dataset configuration (LeRobot format)
│   ├── stats.json                    # Feature min/max/mean/std statistics
│   ├── events.json                   # Disturbance & recovery annotations
---

## 🎯 Data Schema

### Parquet Columns (per frame)

| Column | Type | Description |
|--------|------|-------------|
| `episode_index` | int64 | Episode number (0-96) |
| `frame_index` | int64 | Frame within episode |
| `timestamp` | float64 | Time in seconds |
| `language_instruction` | string | Task description |
| `observation.state` | float[252] | 21 hand joints × 2 hands × 6 DoF |
| `action` | float[252] | Same as state (for imitation learning) |
| `observation.images.rgb` | struct | Video path + timestamp |

### 6-DoF Hand Pose Format

Each joint has 6 values: `[x_cm, y_cm, z_cm, yaw_deg, pitch_deg, roll_deg]`

**Coordinate System:**
- Origin: Camera (iPhone TrueDepth)
- X: Right (positive)
- Y: Down (positive)  
- Z: Forward (positive, into scene)

---

## 🏷️ Motion Semantics Annotations

**File:** `meta/annotations_motion_v1_frames.json`

Coarse temporal segmentation with motion intent, phase, and error labels.

### Annotation Schema

```json
{
  "episode_id": "Task1_Vid2",
  "segments": [
    {
      "start_frame": 54,
      "end_frame_exclusive": 140,
      "motion_type": "grasp",           // What action is being performed
      "temporal_phase": "start",        // start | contact | manipulate | end
      "actor": "both_hands",            // left_hand | right_hand | both_hands
      "target": {
        "type": "cloth_region",         // cloth_region | object | surface
        "value": "bottom_edge"          // Specific target identifier
      },
      "state": {
        "stage": "unfolded",            // Task-specific state
        "flatness": "wrinkled",         // For folding tasks only
        "symmetry": "asymmetric"        // For folding tasks only
      },
      "error": "none"                   // misalignment | slip | drop | none
    }
  ]
}
```

### Motion Types
`grasp` | `pull` | `align` | `fold` | `smooth` | `insert` | `rotate` | `open` | `close` | `press` | `hold` | `release` | `place`

### Why Motion Annotations?
- **Temporal Structure**: Know when manipulation phases begin/end
- **Intent Understanding**: What the human intends to do, not just kinematics
- **Error Detection**: Labeled failure modes (slip, drop, misalignment)
- **Training Signal**: Richer supervision for imitation learning

---

## 📋 Events Metadata

**File:** `meta/events.json`

Disturbances and recovery actions for select episodes.

### Disturbance Types
| Type | Description |
|------|-------------|
| `OCCLUSION` | Hand temporarily blocked from camera |
| `TARGET_MOVED` | Object shifted unexpectedly |
| `SLIP` | Object slipped during grasp |
| `COLLISION` | Unintended contact |
| `DEPTH_DROPOUT` | Depth sensor lost valid readings |

### Recovery Actions
| Action | Description |
|--------|-------------|
| `REGRASP` | Release and re-acquire object |
| `REACH_ADJUST` | Modify approach trajectory |
| `ABORT` | Stop current action |
| `REPLAN` | Compute new action sequence |

---

## 📈 Depth Quality Metrics

| Metric | Description | Dataset Average |
|--------|-------------|-----------------|
| `valid_depth_pct` | % frames with valid depth at hand | 95.5% ✅ |

---

## 🚀 Usage

### With LeRobot

```python
from lerobot.common.datasets.lerobot_dataset import LeRobotDataset

dataset = LeRobotDataset("DynamicIntelligence/humanoid-robots-training-dataset")

# Access episode
episode = dataset[0]
state = episode["observation.state"]      # [252] hand pose (both hands)
rgb = episode["observation.images.rgb"]   # Video frame
task = episode["language_instruction"]    # Task description
```

### Loading Motion Annotations

```python
import json
from huggingface_hub import hf_hub_download

# Download annotations
path = hf_hub_download(
    repo_id="DynamicIntelligence/humanoid-robots-training-dataset",
    filename="meta/annotations_motion_v1_frames.json",
    repo_type="dataset"
)

with open(path) as f:
    annotations = json.load(f)

# Get segments for Task1
task1_episodes = annotations["tasks"]["Task1"]["episodes"]
for ep in task1_episodes:
    print(f"{ep['episode_id']}: {len(ep['segments'])} segments")
```

### Combining Pose + Annotations

```python
# Get frame-level motion labels
def get_motion_label(frame_idx, segments):
    for seg in segments:
        if seg["start_frame"] <= frame_idx < seg["end_frame_exclusive"]:
            return seg["motion_type"], seg["temporal_phase"]
    return None, None

# Example: label each frame
for frame_idx in range(episode["frame_index"].max()):
    motion, phase = get_motion_label(frame_idx, episode_annotations["segments"])
    if motion:
        print(f"Frame {frame_idx}: {motion} ({phase})")
```

---

## 📖 Citation

If you use this dataset in your research, please cite:

```bibtex
@dataset{dynamic_intelligence_2024,
  author = {Dynamic Intelligence},
  title = {Egocentric Human Motion Annotation Dataset},
  year = {2024},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/DynamicIntelligence/humanoid-robots-training-dataset}
}
```

---

## 📧 Contact

**Email:** shayan@dynamicintelligence.company  
**Organization:** [Dynamic Intelligence](https://dynamicintelligence.company)

---

## 🖼️ Hand Landmark Reference

![Hand Landmarks](https://huggingface.co/datasets/DynamicIntelligence/humanoid-robots-training-dataset/resolve/main/assets/hand_landmarks.png)

Each hand has 21 tracked joints. The `observation.state` contains 6-DoF (x, y, z, yaw, pitch, roll) for each joint.

---

## 👁️ Visualizer Tips

When using the [DI Hand Pose Sample Dataset Viewer](https://huggingface.co/spaces/DynamicIntelligence/dynamic_intelligence_sample_data):

- **Enable plots**: Click the white checkbox next to joint names (e.g., `left_thumb_cmc_yaw_deg`) to show that data in the graph
- **Why not all enabled by default?**: To prevent browser lag, only a few plots are active initially
- **Full data access**: All joint data is available in the parquet files under `Files and versions`