--- license: cc-by-nc-4.0 task_categories: - robotics - video-classification tags: - human-activity - tactile - multimodal - egocentric - manipulation - imu - depth - stereo pretty_name: HA-Multi-Samples v2 size_categories: - 100K **Depth coming in v2.1.** A self-computed depth map (from [S²M² Large](https://github.com/junhong-3dv/s2m2) joint disparity/occlusion/confidence model) will be added in a follow-up release without changing the existing files. Episode `meta.json` already includes a `depth_available: false` flag that will flip when depth lands. #### Recovering Depth From the Stereo Pair (manual) ```python import cv2, numpy as np # Load and rectify is already done — these are rectified frames. left = cv2.VideoCapture("HA-Multi-Samples-v2/episodes/ep_000/stereo/left.mp4") right = cv2.VideoCapture("HA-Multi-Samples-v2/episodes/ep_000/stereo/right.mp4") _, L = left.read(); _, R = right.read() L_gray = cv2.cvtColor(L, cv2.COLOR_BGR2GRAY) R_gray = cv2.cvtColor(R, cv2.COLOR_BGR2GRAY) # Classical SGBM (cheap baseline); for higher quality use S²M² / RAFT-Stereo / etc. stereo = cv2.StereoSGBM_create(minDisparity=0, numDisparities=128, blockSize=7) disparity = stereo.compute(L_gray, R_gray).astype(np.float32) / 16.0 # Convert to depth fx = 566.06 baseline_mm = 74.95 with np.errstate(divide="ignore", invalid="ignore"): depth_mm = (fx * baseline_mm) / disparity ``` ### Temporal Alignment All sensor streams are synchronized to the video frame clock at 30 fps. Cross-modal alignment error is less than 33 ms (less than 1 frame). Variable-rate sensors (tactile gloves, BLE IMUs) are resampled to 30 fps using sample-and-hold: each video frame carries the most recent sensor reading available at that timestamp. The per-camera frame offsets used for alignment are identical to the v1 release. ### Parity with v1 Every episode in v2 has identical `num_frames`, `duration_s`, `task`, and `environment` as v1. Frame `i` of episode `j` in v2 corresponds to frame `i` of episode `j` in v1, even though the underlying pixels are re-blurred. This is enforced programmatically: the build pipeline asserts each output `.npy` and `.mp4` matches the v1 frame count before publishing. --- ## Modalities ### 1. Video Streams (4 cameras) All videos are H.264 encoded, 30 fps, with `yuv420p` pixel format. | Stream | Resolution | Mounting Position | Notes | |---|---|---|---| | `egocentric` | 1920×1080 | Head-mounted, first-person | Fisheye lens, wide-angle forward view | | `chest` | 1920×1080 | Chest-mounted, downward-angled | Captures hands and workspace | | `left_wrist` | 1920×1080 | Left wrist/forearm | Left hand and nearby objects | | `right_wrist` | 1920×1080 | Right wrist/forearm | Right hand and nearby objects | #### Egocentric Camera Intrinsics Fisheye lens, intrinsics at 1920×1080: ``` fx = 1093.98 fy = 1093.39 cx = 953.05 cy = 536.30 ``` #### Stereo Pair The head-mounted stereo pair (1280×720, 30 fps) is shipped as `stereo/left.mp4` and `stereo/right.mp4` per episode. Already rectified at recording time; frame-aligned with the four RGB streams. **Left stereo camera (at 1280×720):** ``` fx = 566.06 fy = 566.02 cx = 640.75 cy = 400.78 Distortion model: Rational polynomial (14 coefficients) ``` **Right stereo camera (at 1280×720):** ``` fx = 566.54 fy = 566.69 cx = 644.35 cy = 403.60 Distortion model: Rational polynomial (14 coefficients) ``` **Stereo geometry:** ``` Baseline: 74.95 mm ``` The center RGB camera (egocentric/chest) sits approximately centered between the stereo pair — 37.4 mm to the right of the left camera and 37.6 mm to the left of the right camera. All cameras share a common rigid mount. ### 2. Tactile Sensors (256 taxels per hand) Each hand is equipped with a full-coverage tactile glove containing 256 fiber-optic pressure sensors (taxels). The sensors use fiber-optic technology — light intensity through flexible optical fibers changes under mechanical pressure, providing responsive and high-dynamic-range force sensing across the entire hand surface. Values are unsigned 8-bit integers (0–255), stored as `float32`. | File (per episode) | Shape | Description | |---|---|---| | `tactile/left.npy` | (N, 256) | Left hand tactile pressure | | `tactile/right.npy` | (N, 256) | Right hand tactile pressure | **Pressure value ranges:** | Contact Type | Typical Range | |---|---| | No contact | 0 | | Light touch | 1–5 | | Moderate grip | 10–35 | | Hard press/grip | 40–105 | | Sensor maximum | 255 | Approximately 60 of the 256 taxels are active during a typical grip. Some taxels may read zero consistently due to sensor placement or contact geometry. The taxel layout (finger phalanges, palm grid, bridge sensors) and the hand-motion-capture-from-tactile recipe are described in detail in the appendix below — they are unchanged from v1. ### 3. Hand IMU (12 values per hand) Each glove contains an inertial measurement unit on the back of the hand, providing orientation and motion data. | File (per episode) | Shape | Description | |---|---|---| | `glove_imu/left.npy` | (N, 12) | Left hand IMU | | `glove_imu/right.npy` | (N, 12) | Right hand IMU | The first 4 values are quaternion components `[qx, qy, qz, qw]` representing hand orientation. The remaining 8 values are supplementary IMU channels (accelerometer and gyroscope). ### 4. Body IMUs (8 streams) IMU sensors are distributed across the upper body, providing acceleration and angular velocity data. | File (per episode) | Shape | Channels | Placement | |---|---|---|---| | `imu/head.npy` | (N, 9) | accel(3) + gyro(3) + mag(3) | On the camera, ~2 inches in front of the forehead | | `imu/chest.npy` | (N, 6) | accel(3) + gyro(3) | Center of the sternum | | `imu/left_bicep.npy` | (N, 6) | accel(3) + gyro(3) | Outer surface of the left upper arm | | `imu/right_bicep.npy` | (N, 6) | accel(3) + gyro(3) | Outer surface of the right upper arm | | `imu/left_forearm.npy` | (N, 6) | accel(3) + gyro(3) | Outer surface of the left forearm | | `imu/right_forearm.npy` | (N, 6) | accel(3) + gyro(3) | Outer surface of the right forearm | | `imu/left_hand.npy` | (N, 4) | quaternion(4) | Back of the left hand (from glove) | | `imu/right_hand.npy` | (N, 4) | quaternion(4) | Back of the right hand (from glove) | For the 6-axis IMUs, the channel layout is `[accel_x, accel_y, accel_z, gyro_x, gyro_y, gyro_z]`. The head IMU includes 3 additional magnetometer channels. The hand IMUs provide orientation quaternions `[qx, qy, qz, qw]`. All IMU data is resampled to 30 fps to align with video frames using sample-and-hold interpolation from the original variable-rate sensor streams. --- ## Loading the Dataset ### Prerequisites ```bash pip install huggingface_hub numpy opencv-python ``` ### Download ```bash huggingface-cli login --token YOUR_TOKEN huggingface-cli download humanarchive/HA-Multi-Samples-v2 \ --repo-type dataset \ --local-dir ~/HA-Multi-Samples-v2 ``` Or with `snapshot_download`: ```python from huggingface_hub import snapshot_download local = snapshot_download(repo_id="humanarchive/HA-Multi-Samples-v2", repo_type="dataset") ``` ### Loading One Episode ```python import json import numpy as np import cv2 from pathlib import Path DATASET = Path("~/HA-Multi-Samples-v2").expanduser() ep = DATASET / "episodes" / "ep_000" meta = json.loads((ep / "meta.json").read_text()) print(meta["task"], meta["environment"], meta["num_frames"]) # Sensor data — all aligned to 30 fps, one row per video frame tactile_left = np.load(ep / "tactile" / "left.npy") # (N, 256) tactile_right = np.load(ep / "tactile" / "right.npy") # (N, 256) glove_imu_left = np.load(ep / "glove_imu" / "left.npy") # (N, 12) glove_imu_right = np.load(ep / "glove_imu" / "right.npy") # (N, 12) head_imu = np.load(ep / "imu" / "head.npy") # (N, 9) chest_imu = np.load(ep / "imu" / "chest.npy") # (N, 6) left_bicep = np.load(ep / "imu" / "left_bicep.npy") # (N, 6) right_bicep = np.load(ep / "imu" / "right_bicep.npy") # (N, 6) left_forearm = np.load(ep / "imu" / "left_forearm.npy") # (N, 6) right_forearm = np.load(ep / "imu" / "right_forearm.npy") # (N, 6) left_hand = np.load(ep / "imu" / "left_hand.npy") # (N, 4) right_hand = np.load(ep / "imu" / "right_hand.npy") # (N, 4) # Stereo pair (raw, rectified) stereo_left = cv2.VideoCapture(str(ep / "stereo" / "left.mp4")) stereo_right = cv2.VideoCapture(str(ep / "stereo" / "right.mp4")) # RGB videos — load with cv2 or decord cap = cv2.VideoCapture(str(ep / "videos" / "egocentric.mp4")) frames = [] while True: ok, frame = cap.read() if not ok: break frames.append(frame) # BGR HxWx3 uint8 ego = np.stack(frames) # (N, 1080, 1920, 3) ``` ### Loading All Episodes ```python import pandas as pd episodes = pd.read_csv(DATASET / "meta" / "episodes.csv") tasks = pd.read_csv(DATASET / "meta" / "tasks.csv") for _, row in episodes.iterrows(): ep = DATASET / "episodes" / f"ep_{row['episode_index']:03d}" # ... load whatever modalities you need ``` ### Playing a Video ```bash open ~/HA-Multi-Samples-v2/episodes/ep_000/videos/egocentric.mp4 ffplay ~/HA-Multi-Samples-v2/episodes/ep_005/videos/chest.mp4 ffplay ~/HA-Multi-Samples-v2/episodes/ep_007/stereo/left.mp4 ``` --- ## Per-Episode Reference | Episode | Task | Environment | Frames | Duration | |---|---|---|---|---| | 0 | Cooking | Kitchen | 26,469 | 14.7 min | | 1 | Cleaning | Living room | 17,792 | 9.9 min | | 2 | Cleaning | Living room | 38,395 | 21.3 min | | 3 | Folding and cleaning | Bedroom | 36,747 | 20.4 min | | 4 | Placing shoes | Hallway | 1,855 | 1.0 min | | 5 | Cleaning | Bathroom | 9,147 | 5.1 min | | 6 | Cleaning | Office | 6,842 | 3.8 min | | 7 | Cleaning | Bedroom | 17,165 | 9.5 min | | 8 | Folding and cleaning | Bedroom | 9,061 | 5.0 min | | 9 | Cleaning | Bathroom | 10,974 | 6.1 min | | 10 | Cleaning | Bedroom | 9,378 | 5.2 min | | 11 | Folding clothes | Bedroom | 19,023 | 10.6 min | | 12 | Cleaning | Kitchen | 17,684 | 9.8 min | | 13 | Cleaning | Living room | 1,925 | 1.1 min | | 14 | Cleaning | Bedroom | 15,399 | 8.6 min | | 15 | Folding clothes | Bedroom | 902 | 0.5 min | | 16 | Folding clothes | Bedroom | 1,193 | 0.7 min | | 17 | Folding clothes | Bedroom | 3,001 | 1.7 min | | 18 | Folding clothes | Bedroom | 675 | 0.4 min | | 19 | Folding clothes | Bedroom | 706 | 0.4 min | | 20 | Cleaning | Bedroom | 670 | 0.4 min | | 21 | Cleaning | Bathroom | 12,838 | 7.1 min | | 22 | Cleaning | Hallway | 2,603 | 1.4 min | | 23 | Cooking | Kitchen | 36,822 | 20.5 min | | 24 | Cooking | Kitchen | 3,772 | 2.1 min | | 25 | Cooking | Kitchen | 10,386 | 5.8 min | | 26 | Cleaning | Bedroom | 5,622 | 3.1 min | | 27 | Cleaning | Bedroom | 10,024 | 5.6 min | | 28 | Cleaning | Bedroom | 1,656 | 0.9 min | | 29 | Cleaning | Kitchen | 8,522 | 4.7 min | | 30 | Cleaning | Kitchen | 6,173 | 3.4 min | | 31 | Cleaning | Bedroom | 21,041 | 11.7 min | | 32 | Ironing | Bedroom | 1,909 | 1.1 min | | 33 | Ironing | Bedroom | 27,703 | 15.4 min | | 34 | Ironing | Bedroom | 14,642 | 8.1 min | | 35 | Ironing | Bedroom | 11,914 | 6.6 min | --- ## License Released under [Creative Commons BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) for research and non-commercial use. The original v1 dataset is licensed identically. ## Citation ``` @misc{humanarchive2026hamulti, title = {HA-Multi-Samples v2: A Multimodal Human Activity Dataset with Tactile and Computed Depth}, author = {Human Archive Team}, year = {2026}, howpublished = {\url{https://huggingface.co/datasets/humanarchive/HA-Multi-Samples-v2}} } ``` Face blurring uses the [EgoBlur Gen2](https://github.com/facebookresearch/EgoBlur) model from Meta. Stereo depth uses [S²M²](https://github.com/junhong-3dv/s2m2) (Junhong et al.). The original sensor recordings and alignment match HA-Multi-Samples v1. --- ## Appendix: Taxel Layout and Hand Motion Capture The taxel index mapping (per-finger, per-phalanx) and the bend-from-tactile recipe are unchanged from v1 and reproduced below for completeness. [See full taxel layout in the v1 dataset card — finger mapping, bridge sensors, palm grid, and `compute_finger_bend()` helper.](https://huggingface.co/datasets/humanarchive/HA-Multi-Samples)