Robot Data Audit (RDA)
Quality auditing + optimization recommendations for robot datasets. Diagnose data quality issues. Get actionable, confidence-graded suggestions. RDA is a diagnostic tool — it does NOT guarantee training success rate improvements.
RDA audits robot manipulation datasets (LeRobot format) for integrity, temporal consistency, motion quality, and distribution coverage. It then generates optimization recommendations calibrated to your target model architecture.
Features
- 13 quality metrics across 3 tiers: integrity, temporal, motion, and distribution
rda recommend— Data optimization suggestions calibrated to your model type- Frame-wise models (MLP/BC): mild idle trimming suggestions
- Temporal models (ACT/DP/Transformer): conservative "do not prune" guidance
- All suggestions include confidence levels (HIGH / EXPERIMENTAL / NOT_RECOMMENDED)
- LeRobot v2.1 + v3.0 dual-format auto-detection
- Three-tier verdicts: PASS / REVIEW / EXCLUDE
- CLI-first design: JSON + text output, pipe-friendly
- Temporal sufficiency analysis: idle detection, active run distribution, valid window ratios
Installation
pip install robot-data-audit
With LeRobot dependency (for .parquet dataset loading):
pip install robot-data-audit[lerobot]
Quick Start
1. Audit a dataset
rda audit /path/to/lerobot/dataset
Runs all 13 metrics, prints a text summary. JSON report saved to <dataset>/rda_report.json.
2. Get optimization recommendations
# For frame-wise models (MLP, BC, etc.)
rda recommend /path/to/dataset --policy frame-wise
# For temporal models (ACT, Diffusion Policy, Transformer)
rda recommend /path/to/dataset --policy temporal
# JSON output for scripting
rda recommend /path/to/dataset --policy frame-wise --format json
What recommend tells you:
- Whether your dataset has excessive idle frames
- Whether trimming is advisable (and how aggressively)
- Model-specific warnings (e.g., "DO NOT prune for temporal models")
- Confidence levels and experimental caveats for every suggestion
Privacy (since v0.5.0): rda recommend computes all metrics locally and sends
only aggregated statistics (<1KB, no raw episode data) to the RDA rules API
(https://rda.niusu2026.cn) for evaluation. Results are cached locally for offline
reuse. rda audit remains fully offline. For private/air-gapped deployments, point
RDA_API_URL at your own server.
3. JSON output & piping
# JSON to stdout
rda audit /path/to/dataset --format json
# Save report to custom path
rda audit /path/to/dataset -o /tmp/my_report.json
# Verbose mode with platform info
rda audit /path/to/dataset --platform so101 -v
4. Python API
from rda.audit.dataset_audit import DatasetAuditor
from rda.io.lerobot_loader import iter_episodes, load_lerobot_dataset
dataset_info = load_lerobot_dataset("/path/to/dataset")
auditor = DatasetAuditor()
result = auditor.audit_dataset(dataset_info, iter_episodes("/path/to/dataset"))
print(f"DHI: {result.quality['dhi']} / 100")
CLI Reference
rda audit
rda audit [OPTIONS] PATH
| Option | Description |
|---|---|
-o, --output FILE |
Save JSON report (default: <path>/rda_report.json) |
--format [json|text] |
Output format (default: text) |
--platform TEXT |
Robot platform (e.g. so101, droid) for Tier 3 metrics |
-v, --verbose |
Verbose output |
rda recommend
rda recommend [OPTIONS] PATH
| Option | Description |
|---|---|
--policy [frame-wise|temporal] |
Target model architecture type (required) |
-o, --output FILE |
Save JSON recommendation report |
--format [json|text] |
Output format (default: text) |
-v, --verbose |
Verbose output |
rda example
Show example usage and sample dataset paths.
Exit Codes
| Code | Meaning |
|---|---|
0 |
Completed, no EXCLUDE verdicts |
1 |
Error (invalid path, load failure, etc.) |
2 |
Completed, at least one EXCLUDE verdict |
Understanding Recommendations
RDA recommendations follow a conservative, evidence-graded approach:
| Confidence | Meaning |
|---|---|
| HIGH | Well-supported by optimization experiments; low risk |
| EXPERIMENTAL | Directionally consistent but not yet validated for your setup |
| NOT_RECOMMENDED | Likely harmful for your model type; proceed with caution |
Key principles:
- All suggestions are hypotheses, not guarantees
- Effects vary by task domain and model architecture
- Always validate on a held-out set before applying to training data
- Temporal models (ACT, DP) are generally more sensitive to data trimming
Metrics Overview
| Tier | Metric | What it detects |
|---|---|---|
| L1 | Timestamp monotonicity | Clock resets, duplicate timestamps |
| L1 | Frame interval consistency | Jittery or irregular sampling |
| L1 | Schema compliance | Missing/extra fields, type mismatches |
| L2 | Temporal gap detection | Large time discontinuities |
| L2 | Sensor synchronization | Cross-sensor timestamp drift |
| L2 | Temporal sufficiency | Idle/active structure, valid window analysis |
| L3 | Joint limit violations | Actuators driven beyond safe range |
| L3 | Velocity spikes | Sudden implausible jumps |
| L3 | Motion discontinuities | Non-smooth trajectory segments |
| L3 | Idle frame detection | Stationary/paused segments |
| L4 | Duration outliers | Episodes too short/long vs. cohort |
| L4 | Spike count outliers | Episodes with unusual jerk profiles |
| L4 | Effective motion ratio | Low-activity episodes |
Project Structure
rda/
├── cli/ # Click CLI entry points
├── io/ # Data loading and schema definitions (LeRobot v2.1/v3.0)
├── metrics/ # 13 audit metric implementations
├── recommend/ # Optimization recommendation engine
├── audit/ # Dataset and episode-level audit orchestration
└── report/ # Report generation and summary
Development
git clone https://github.com/liesliy/rda.git
cd robot-data-audit
pip install -e ".[dev]"
pytest
Citation
@software{robot_data_audit,
title = {Robot Data Audit: Quality Auditing for Robot Manipulation Datasets},
author = {Niu Su Tech},
year = {2026},
url = {https://github.com/liesliy/rda}
}
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robot_data_audit-0.5.0.tar.gz.
File metadata
- Download URL: robot_data_audit-0.5.0.tar.gz
- Upload date:
- Size: 117.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9df3911f74f5e05e99d15a439e9979b35b7d0a905404806755559c5f0f91e2e
|
|
| MD5 |
27f66c6e706cb1f04330115fff4c48a6
|
|
| BLAKE2b-256 |
8278966f1733db522659502b4774b31ed3344f2c7c29ce7cc64ad344aa46b45b
|
File details
Details for the file robot_data_audit-0.5.0-py3-none-any.whl.
File metadata
- Download URL: robot_data_audit-0.5.0-py3-none-any.whl
- Upload date:
- Size: 137.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0c41526be5af71860e5aba4ca4ead7c4fe351df14b1700a11b54e1c60ff2a85
|
|
| MD5 |
d41062daf1e038ecefe1c0603b2f87ff
|
|
| BLAKE2b-256 |
f20dd1e75b514bc5e542d2aeaacddf0397050312a6aa806c4dd293beea23ca9c
|