TLabel

July 25, 2026 · View on GitHub

A Unified Annotation Framework for Cross-Sensor Tactile Manipulation Data

PyPI Tests License: MIT Downloads 中文文档

TLabel is the first cross-sensor tactile annotation schema with capability declarations and Compliance Level stratification. It enables heterogeneous tactile sensors — regardless of operating principle — to produce compatible 14-dimensional semantic annotations while preserving their unique strengths.

TL;DR — The Unicode for tactile data: one standard schema, every sensor.

Why TLabel?

Tactile datasets today ship as raw sensor signals without semantic annotations. Each sensor type demands its own ad-hoc processing, and results from different sensors cannot be compared or fused. TLabel addresses this by:

  • Standardizing annotations at the semantic level — 14 dimensions covering spatial, mechanical, surface, dynamic, and meta perceptions
  • Declaring capabilities — each sensor adapter explicitly states which dimensions it can and cannot annotate
  • Stratifying compliance — Compliance Level (L1–L4) ensures every sensor participates at its appropriate information density
  • Enabling cross-sensor comparison through a shared output format

Quick Start

Install

pip install tlabel

Load and explore data

import tlabel

# Load tactile data (auto-detects sensor format)
data = tlabel.load("path/to/sensor_data.pkl")

# Or try the built-in demo — no files needed
data = tlabel.demo("gelsight")

# Inspect annotation metadata
print(data.describe())
# -> {'num_frames': 500, 'sensor': 'gelsight', 'compliance_level': 'L2', ...}

Interactive annotation (Jupyter)

# Open the bilingual annotation panel (Chinese / English)
data.review()

Export to training formats

# JSON / CSV for analysis
data.export("output.json")

# FTP-1 Zarr for foundation model training
data.export_ftp1("output.zarr")

# LeRobot format
from tlabel.converters import tlabel_to_lerobot
tlabel_to_lerobot("annotations.json", "lerobot_episode/")

CLI

tlabel list                       # List all registered adapters
tlabel info gelsight              # Adapter details & compliance level
tlabel validate data.json         # Schema compliance check

Install optional dependencies

pip install tlabel[gelsight]      # GelSight / DIGIT (.pkl)
pip install tlabel[paxini]        # PaXini PXCap (.h5)
pip install tlabel[daimon]        # Daimon DM-TacClaw (.parquet)
pip install tlabel[ftp1]          # FTP-1 export (zarr)
pip install tlabel[all]           # Everything

Schema V2 — 14 Dimensions, 4 Compliance Levels

TLabel Schema V2 defines 14 semantic dimensions, with Compliance Levels (L1–L4) indicating annotation completeness:

#DimensionTypeRequired
1contactbool✅ Required
2`contact_centroid$[\text{float} \times 2]✅ \text{Required} (\text{when} \text{contact})
3$force_magnitude`float✅ Required (L2+)
4slip_eventbool✅ Required
5confidencefloat✅ Required
6compliance_levelL1 / L2 / L3 / L4✅ Required
7contact_regionenumOptional
8`force_vector$[\text{float} \times 3]\text{Optional} (\text{L3}+)
9torquevectortorque_vector[\text{float} \times 3]\text{Optional}
10slipvelocityslip_velocity[\text{float} \times 2]\text{Optional}
11$manipulation_phase`enumOptional
12texture_classenumOptional
13object_deformationfloatOptional
14temperaturefloatOptional

Compliance Levels

LevelNameRequired FieldsExample Sensors
L1Basic Tactilecontact, contact_centroid, slip_event, confidenceSingle-point resistive, proximity
L2Force-AwareL1 + force_magnitudePaxini, YCB-Slide, GelSight
L3Full-VectorL2 + force_vectorToucHD, calibrated DM-TAC
L4Rich-SemanticL3 + all optional fieldsBioTac, next-gen multimodal

Capability declarations are the core innovation: each adapter declares which of the 14 semantic dimensions it can and cannot annotate. Only supported fields appear in the output. No forced alignment, no data fabrication.

Supported Sensors

Dataset Adapters (offline data loading)

SensorTypeFormatLevel
GelSight Mini / DIGITVisuo-tactile.pklL3
Daimon DM-TacClawMultimodal.parquetL3
PaXini PXCapForce array.h5L2
UniVTACVisuo-tactile.hdf5L3
TacQuad (AnyTouch)Multi-sensordirectoryL3
VTouchVisuo-tactile.h5L3
YCB-SlideVisuo-tactile.npyL3

Real-time Sensor Adapters (hardware)

SensorTypeConnectionLevel
PaXini GEN3Force arraySDKL2
Daimon DM-TacVisuo-tactileUSB / .aviL3

Architecture

┌─────────────────────────────────────────────────┐
│  Layer 1: Schema                                │
│  14 semantic dimensions + Compliance Level L1-L4│
├─────────────────────────────────────────────────┤
│  Layer 2: Adapters                              │
│  DataAdapterBase │ SensorAdapterBase             │
│  (7 built-in + community-extensible)            │
├─────────────────────────────────────────────────┤
│  Layer 3: Downstream                            │
│  Feature derivation · Augmentation · Export      │
│  PredictEngine · FTP-1 · LeRobot · RLDS · ROS2 │
└─────────────────────────────────────────────────┘
  • DataAdapterBase — subclass to add file-based sensor support (~30 min)
  • SensorAdapterBase — subclass to add real-time hardware support
  • Both share the unified export pipeline

Export Formats

FormatPurposeUsage
JSON / CSVGeneral analysisdata.export("out.json")
FTP-1 ZarrFoundation model trainingdata.export_ftp1("out.zarr")
LeRobotLeRobot frameworktlabel_to_lerobot(src, dst)
RLDSRLDS/TFDS pipelineconverters.rlds module
ROS2Robot runtimeStub (coming soon)

Key Results

MetricResult
Schema14 semantic dimensions + Compliance Level (L1–L4)
Schema versionv2.1.0
Hard errors across 750K+ observations0
Cross-scenario generalization accuracy+7.93% (p=0.029)
Slip-risk detection F1+10.35% (p<0.001)
Sensors validatedDaimon-Infinity (GelSight) + PaXini PXCap (6D Hall-effect) + DIGIT (visuo-tactile)

Documentation

DocumentDescription
TLabel Format SpecComplete annotation schema specification
Annotation SpecAnnotation methodology and guidelines
Design DocumentCore design decisions and architecture
中文文档Chinese version of this README

Contributing

TLabel is designed to be extensible. Add your sensor in ~30 minutes:

  1. Fork contrib/adapter-template/
  2. Subclass DataAdapterBase or SensorAdapterBase
  3. Submit a PR or publish as a standalone package

See CONTRIBUTING.md for details.

Paper

TLabel: A Unified Annotation Framework for Cross-Sensor Tactile Manipulation Data

Xi Luo, Sheng Wu (Niuxu Tech)

[PDF]

LaTeX source available in paper/.

Validation

TLabel has been validated on three sensors with fundamentally different physics:

SensorTypeEpisodesTasksHard ErrorsCompliance Level
Daimon-InfinityVision-based GelSight9460L2
PaXini PXCap6D Hall-effect array1570L2
DIGITVisuo-tactile1240L2

License

This project is licensed under the MIT License — see LICENSE for details.

The TLabel Format specification is free to implement by anyone. We encourage the community to build adapters for additional sensors.

Acknowledgments

TLabel builds on insights from the tactile sensing community, including Open X-Embodiment, LeRobot, and OpenTouch.


TouchLabel AI — Tactile Data Annotation Infrastructure
GitHub · PyPI · Discord
Niuxu Tech · Hangzhou, China