Sensor Dataset TsFile
Apache TsFile conversion of AnasElkhabbaz/sensor_dataset, a LeRobot v2.1 three-channel resting muscle-sensor dataset.
Source and provenance
- Original dataset: https://huggingface.co/datasets/AnasElkhabbaz/sensor_dataset
- Original author/uploader: Anas elkhabbaz (
AnasElkhabbaz) - License: Apache-2.0
- LeRobot codebase version:
v2.1; robot type: not specified - Split:
train(0:32); 32 episodes; 152,837 frame rows; 32 task labels; 32 Parquet shards - Nominal sampling rate from
meta/info.json: 3.33 Hz - Source frame layout:
data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet
The task labels identify participant, recorded trial, and the Rest condition. Examples include Abdulrahman Khalfalla_Male_1_Rest, Abdulrahman Khalfalla_Male_2_Rest, Abdulrahman Khalfalla_Male_3_Rest, Abdulrahman Khalfalla_Male_4_Rest. The source card does not provide a paper, homepage, units for the sensor values, or a BibTeX citation.
Schema
| Column | TsFile role | Type | Source / meaning |
|---|---|---|---|
Time |
TIME | INT64 | round(timestamp * 1000) milliseconds; restarts at the first sample of each episode |
episode_index |
TAG | source INT64, stored as device/tag value | Original LeRobot episode index |
task_index |
TAG | source INT64, stored as device/tag value | Original LeRobot task index |
frame_index |
FIELD | INT64 | Original frame number within the episode |
sample_index |
FIELD | INT64 | Source index, renamed to avoid ambiguity |
observation_state_0 |
FIELD | FLOAT | sensor.brachioradialis |
observation_state_1 |
FIELD | FLOAT | sensor.flexor_carpi_radialis |
observation_state_2 |
FIELD | FLOAT | sensor.flexor_carpi_ulnaris |
observation.state[3] is flattened to scalar fields while preserving the source channel order. The source timestamp column is dropped after Time synthesis because it is redundant with Time / 1000 seconds. No rows, episodes, tasks, or sensor channels are dropped.
Storage profile
- Time:
TS_2DIFF + LZ4 - FLOAT/DOUBLE:
GORILLA + LZ4 - INT32/INT64:
TS_2DIFF + LZ4 - BOOLEAN:
RLE + LZ4when present; this source has no BOOLEAN fields episode_indexandtask_index: TsFile table-model TAG/device mechanism
The physical TsFile schema was inspected after writing. The resulting TsFile is 16.83% of the combined source Parquet size.
Videos
The source meta/info.json declares the generic LeRobot template videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4, but it also reports total_videos: 0. The pinned repository tree contains no videos/ directory and no video files. Therefore there is no original video location to mirror, and this TsFile dataset contains no videos.
Minimal read example
from tsfile import TsFileReader
reader = TsFileReader("data/anaselkhabbaz_sensor_dataset.tsfile")
with reader.query_table(
"anaselkhabbaz_sensor_dataset",
["episode_index", "task_index", "frame_index", "observation_state_0"],
batch_size=4096,
) as result:
batch = result.read_arrow_batch()
print(batch.to_pandas().head())
reader.close()
Please cite the original Hugging Face dataset and Anas elkhabbaz.
- Downloads last month
- 33