KineticAugment is a general framework for augmenting human motion data while preserving anatomical and semantic plausibility. It is designed for researchers and engineers working on any task that learns from body, hand, or face motion (human activity and action recognition, gesture and sign language recognition, rehabilitation and sports analysis, human-robot interaction, motion generation) who need to increase dataset size without introducing unrealistic or label-altering artifacts.
Status: KineticAugment is at an early stage of development. The API may change, and much of the validation so far comes from one application, sign language. See the roadmap for what exists and what is planned.
Traditional data augmentation techniques often fail on skeletal time-series data, creating impossible poses and unnatural movements. KineticAugment solves this by treating the human body as a structured kinematic system, governed by a set of core biomechanical and contextual principles.
The framework is not tied to one application. Everything that depends on the task (which features carry meaning, how fast a hand may move, which augmentations are safe) lives in a task profile, not in the core. Sign language recognition was the first case study, which is why the demo clips and several of the findings documents come from sign language data.
- Anatomically Plausible: Augmentations respect joint limits, bone lengths, and self-collision constraints via SMPL-X body model integration.
- Kinematically Consistent: Transformations correctly propagate through the body's kinematic chains using forward kinematics.
- Temporally Coherent: Generates smooth motion that respects human dynamics, with velocity limiting and jerk analysis.
- Semantically Aware: A priority system prevents augmentations from changing the fundamental meaning of a motion.
- Dual-Mode Processing: Fast landmark-based (extrinsic) or accurate SMPL-X parameter-space (intrinsic) augmentations.
- Physics-Based Constraints: PyBullet integration for self-collision detection and resolution.
- Comprehensive Evaluation: Built-in metrics for quality, smoothness, diversity, and constraint satisfaction.
- Task-Specific Profiles: Easily configure the augmentation pipeline using YAML configuration files.
Screen recording of the round-trip viewer (preview; full 42 s recording).
This is how we check augmentations visually. Augmentations are not applied to the raw landmarks. Each frame's MediaPipe pose, hand and face landmarks are fitted to one SMPL-X body (MANO hands, head and jaw). The augmentation edits that body, and MediaPipe-format landmarks are read back off the mesh. If the round trip with no augmentation reproduces the original motion, then the differences seen after an augmentation come from the augmentation itself. The clips in this demo are sign language videos, the first case study; the same check applies to any recorded motion.
The viewer shows, for one clip at a time:
- Source video: the clip being checked (the viewer labels this panel "Sign video").
- MediaPipe extraction (2-D): pose, hand and face-mesh landmarks drawn on the frame.
- Extraction vs round trip (3-D): the extracted landmarks against those read back off SMPL-X, coloured by error.
- SMPL-X body: the fitted body with the round-trip points on it, which you can drag to orbit.
Below the panels, per-frame plots track the body, hand, finger-curl and face errors, the jitter, and the gaps between streams. Those plots are what show whether a clip can be augmented safely. To run it yourself, see Round-Trip Viewer below.
The sign classifier this framework feeds is a sequence model over MediaPipe landmarks. Each clip is a time series of pose, hand and face landmarks, given to the classifier in two forms:
- Normalised: MediaPipe's image coordinates, x divided by frame width and y by frame height (0 to 1), with MediaPipe's relative z.
- Unnormalised: the same landmarks in absolute image units.
The classifier does not centre on the shoulders or scale by shoulder width. That shapes the augmentations:
- Scene augmentations (scale, uncentre, view) are not cancelled by the classifier, so they matter more here than in the papers that normalise first (Grounding §3).
- Output must look like MediaPipe, noise and failures included. The round trip returns clean SMPL-X/MANO geometry, which is a domain gap of its own.
- Anything tied to the frame (aspect ratio, resolution, how much of the body is in view) is part of the input and can vary between datasets.
Candidate augmentations aimed at this input format are listed in TODO.md.
The week-4 profiles set every range about 25% beyond the widest range the literature supports, so the augmentation is deliberately more varied than what has been proven. The proven range is recorded next to each used one below, and in the YAML comments. See Augmentation ranges for the 25% rule, the sources and per-row notes.
| Augmentation | Proven range (source) | Used in week-4 profiles |
|---|---|---|
| View yaw | ±20° (Spoken2Sign [M7]) | ±25° |
| View pitch | ±5° ("a few degrees" [T]) | ±6° |
| Mirror | p = 0.5 [M6]; cost 1.3 pp on WLASL once [T] | p = 0.5 (a probability, not widened) |
| Uniform duration | 0.67–1.5×; 0.5× hurt once [L6.2, M6, M3, T] | 0.6–1.65×, log-uniform |
| Arm joints: shoulder, wrist | ±4° at p = 0.3 (SPOTER [M1]) | ±5° |
| Arm joints: elbow | ±7.5°, no harm in pose-based translation [T] | ±9.5° |
| Whole-scene scale | 0.8–1.2 (GISLR [M10]) | 0.75–1.25 |
| Uncentre | ±0.1 of the frame (GISLR [M10]) | ±0.125, hands still kept in the frame |
| Limb length | no literature; between-signer spread 5.7% in this project's MediaPipe data (Grounding §6.1) | ±7% |
| Movement size | no measured range; 0.85–1.15 is Grounding's linguistic example [L2.10, L2.11] | 0.8–1.2, log-uniform |
| Location jitter | σ = 10 mm, truncated at 20 mm (production spread [T]) | σ = 12.5 mm, truncated at 25 mm |
| Joint coupled noise, arms | as arm joints above [M1, T] | shoulder/wrist σ = 2.5°, truncated at 5°; elbow σ = 4.75°, truncated at 9.5° |
| Joint coupled noise, fingers | no published range | σ = 3.75°, truncated at 7.5° (estimate 3° / 6°, widened) |
| Handshape jitter | no published range; GISLR "finger-tree rotate" gives no angle [T] | non-selected and thumb σ = 7.5°; selected σ = 3.75°; selected flexion σ = 2°; all truncated at 2σ |
| Expression jitter | no published range; lexical mouth patterns excluded [L7.3, L1.5] | brows and eyes σ = 0.0625, truncated at 0.125; cheeks/nose σ = 0.0375, truncated at 0.075; mouth/jaw off |
| Varied time warp | none: non-uniform warps are excluded [L6.3, L6.4] | knot rates 0.7–1.43×, log-uniform |
| Segment time warp | none: excluded as above | window 20–60% of the clip, factor 0.6–1.65× |
| Frame dropping | ≥ 10 fps, where human intelligibility stops improving [T]; masked runs ≤ 8 frames [M4, M10] | ≥ 8 fps; max gap 125 ms; p = 0–0.2; target 12–25 fps |
| Hand-dropout runs | runs ≤ 8 frames [M4, M10]; start rate none, measured 0.039 per detected interior hand-frame (scripts/measure_hand_dropout.py) |
runs of 1–10 frames; start rate 0–0.05 |
configs/slr_week4_default.yaml turns on the scene augmentations, uniform duration, joint coupled noise on the arms and the fingers, and random frame dropping; everything else is present but off. To run a profile, load it with load_profile and pass each clip to AugmentationChain(profile, skeleton).run(clip). Set the clip's camera first with clip.replace(camera=scene.fit_clip_camera(clip, hands, skeleton, frames=result.frames)): without it, uncentre is skipped (fallback no_camera) and the image-space outputs are None.
- Research onboarding guide: Source walkthroughs, geometry, data/training, evidence-based status and a newcomer learning plan.
The complete documentation provides the theory, architecture, and practical guides for using the framework.
- 00 - Introduction: Why KineticAugment? The problem with naive augmentation.
- 01 - Core Principles: A deep dive into the 6 pillars that govern the framework.
- 04 - Task-Specific Profiles: How to tailor augmentations for your specific application (operation names there are conceptual; the registered names are in Available Augmentations).
- 05 - The Validation Framework: Ensuring the quality and validity of generated data.
- 06 - Roadmap: Where the framework stands (early stage) and the planned Phases 6 to 9.
- 07 - Object-Aware Constraints (planned): Contact and penetration against object meshes, the floor, and the scene.
- 08 - Differentiable Losses and the Violation Report (planned): The constraints as losses and as a per-frame, per-joint report.
- 09 - Plausibility Metrics and Validation (planned): Floor and object metrics, and validation on recorded grasps.
- Glossary: Definitions of key terms.
These documents record the first application of the framework. They are specific to sign language data; the methods they test (the round trip between landmarks and the body model, hand and face fitting, meaning-preserving augmentation) are not.
- V1 Problem Scope and V1 Findings: The MediaPipe to SMPL-X round trip.
- Week 2 Findings: The round trip on unseen footage.
- V1.2 Findings: Hands, from MediaPipe to MANO and back.
- V1.3 Face Design, V1.3 Findings, and V1.3 Face Integration Results: Head pose, jaw, hand-to-face geometry, and the face stream.
- Augmentation Grounding: Which augmentations preserve the meaning of a sign, and the evidence for each.
- Augmentation evidence: linguistics and sign-language augmentation literature
Kept for history; each file opens with a note on what replaces it.
- 02 - Framework Architecture
- 03 - The Augmentation Catalogue
- 06 - Development Roadmap: The original plan, replaced by 06 - Roadmap.
The next phases extend the constraint system beyond the body itself: hands against object meshes, feet against the floor, and the same constraints offered as differentiable losses and as a dense violation report. This makes the framework usable for augmenting motion that involves objects and for checking and repairing motion produced by generative models. The companion project KineticSynth builds on these extensions. See the roadmap and documents 07 to 09.
# Clone the repository
git clone https://github.com/imics-lab/KineticAugment.git
cd KineticAugment
# Create conda environment
conda create -n kinetic python=3.10
conda activate kinetic
# Install dependencies
pip install -e .
# Download SMPL-X models (required for intrinsic augmentations)
# Place in models/smplx/ directoryfrom kinetic_augment import Pipeline
# Create pipeline with built-in preset
pipeline = Pipeline.from_preset('moderate') # Options: none, conservative, moderate, aggressive
# Augment motion data (numpy array of shape [frames, landmarks, 3])
augmented_motion = pipeline.process(landmarks)from kinetic_augment import Pipeline
# Load from YAML config file (operation names must be registered ones, see "Available Augmentations")
pipeline = Pipeline.from_yaml('configs/slr_profile.yaml')
# Process with constraint enforcement
augmented = pipeline.process(landmarks, enforce_constraints=True)configs/legacy/ holds configs for the deprecated AugmentationPipeline (in src/kinetic_augment/legacy/). They use a different format and do not load with Pipeline.from_yaml.
from kinetic_augment import Pipeline, AugmentedLandmarkDataset
from torch.utils.data import DataLoader
# Create pipeline and dataset
pipeline = Pipeline.from_preset('moderate')
dataset = AugmentedLandmarkDataset(
data_source=landmarks_list, # List of numpy arrays
labels=labels, # List of integer labels
pipeline=pipeline,
mode='train',
num_augmented_versions=3, # 3x dataset expansion
)
# Use with PyTorch DataLoader
loader = DataLoader(dataset, batch_size=32, shuffle=True)from kinetic_augment.evaluation import MetricAggregator
from kinetic_augment.evaluation.metrics import (
SmoothnessMetric,
VarianceMetric,
LimbLengthConsistencyMetric,
)
# Create metric aggregator
aggregator = MetricAggregator([
SmoothnessMetric(),
VarianceMetric(),
LimbLengthConsistencyMetric(),
])
# Evaluate augmented samples
results = aggregator.evaluate(augmented_samples)
for name, result in results.items():
print(f"{name}: {result.value:.4f}")from kinetic_augment.evaluation.benchmark import (
BenchmarkRunner,
PRESET_COMPARISON,
BenchmarkReport,
)
# Run comparison of all presets
runner = BenchmarkRunner(
experiments=PRESET_COMPARISON,
output_dir='results/benchmark',
)
results = runner.run(run_training=False) # Quality metrics only
# Generate report
report = BenchmarkReport(results)
report.save('results/', formats=['txt', 'csv', 'md'])KineticAugment/
├── src/kinetic_augment/
│ ├── body_model/ # MediaPipe <-> SMPL-X conversion: body, hands, face; SMPL-X wrapper
│ ├── augmentations/ # Registered extrinsic, intrinsic, temporal transforms; tier1.py (Tier 1, not registered); week-4 chain and profiles
│ ├── constraints/ # Joint limits, velocity, collision detection
│ ├── pipeline/ # Unified pipeline & PyTorch datasets
│ ├── evaluation/ # Metrics, datasets, models, benchmarks
│ ├── lab/ # Augmentation Lab: local web page for comparing augmentations
│ └── legacy/ # Deprecated: AugmentationPipeline, old converters, canonicalization
├── configs/ # YAML configs for Pipeline.from_yaml and week-4 profiles
│ └── legacy/ # Configs for the deprecated AugmentationPipeline
├── scripts/ # Extraction, fitting, evaluation and demo scripts
│ └── legacy/ # Print-based phase smoke scripts and old renderers
├── tests/ # pytest suite
├── docs/ # Documentation (docs/legacy/: out-of-date design docs)
├── demo/round_trip/ # Round-trip web viewer (exported data not in git)
└── models/ # SMPL-X models (not in git)
demo/round_trip/ is an interactive web page, in two pages:
- Round trip (
index.html): checks the MediaPipe → SMPL-X → MediaPipe round trip (pose, hands and face mesh) clip by clip, with optional landmark smoothing. - Augmentations (
augment.html): shows a clip's Tier 1 augmentations as the original, the original and augmented bodies one over the other, and the augmented body, with a note on what each augmentation changes.
To run it for one clip, from the repository root, after the one-time setup (install and model files):
python scripts/export_round_trip_demo.py --clips 20983 --video-dir path/to/videospython3 -m http.server 8765 --directory demo/round_tripThen open http://localhost:8765/#clip=20983 (round trip) or http://localhost:8765/augment.html#clip=20983&a=combined (augmentations). demo/round_trip/README.md gives every step, the model files needed, how to check each step worked, and fixes for common problems.
The Lab is a web page for comparing augmentations side by side with live or precomputed knobs.
The shareable zip needs only a browser: unzip it and double-click index.html. Full mode runs the
pipeline live on your machine:
python3 -m venv .venv # once; Python 3.9 to 3.12
source .venv/bin/activate # every new terminal
pip install -e '.[smplx,lab]' # once
kinetic-lab # opens http://127.0.0.1:8770Full mode also needs the licensed SMPL-X, MANO and FLAME model files in models/. If kinetic-lab
says "command not found", the virtual environment is not switched on.
docs/augmentation-lab.md has the step-by-step setup (which model files,
where to get them, adding clips), building the zip and using saved settings.
These are the operations registered in AugmentationRegistry, usable from Pipeline, presets and YAML configs:
| Category | Augmentations |
|---|---|
| Extrinsic (landmark mode) | GlobalRotation, GlobalScaling, PoseFlipping, TrajectoryJittering, GaussianNoise |
| Intrinsic (SMPL-X mode) | JointAnglePerturbation, HandPosePerturbation, JointCoupledNoise, GlobalOrientPerturbation |
| Temporal | TimeWarping, SpeedVariation, FrameDropping |
src/kinetic_augment/augmentations/tier1.py holds a separate, evidence-based set that is safe for every sign: mirror, view change (yaw and pitch), duration scaling, small arm-joint perturbations, scene scaling, and un-centring. Each parameter is drawn once per clip. They act on the fitted SMPL-X body and on MediaPipe-format landmarks. They are used by scripts/augment_trials.py and the round-trip viewer, and the design and ranges are in Augmentation Grounding. Tier 1 is not part of the registry or Pipeline: you cannot name it in a preset or YAML config.
| Category | Metrics |
|---|---|
| Quality | LimbLengthConsistency, PoseValidity, AnatomicalPlausibility |
| Temporal | Velocity, Smoothness, TemporalCoherence, SpectralSmoothness |
| Diversity | Variance, DistributionShift, AugmentationDiversity, Coverage |
| Constraints | JointLimitCompliance, ViolationSeverity, ConstraintSatisfaction |
pip install -e '.[dev]'
pytest tests/The older print-based smoke scripts for the first library phases live in scripts/legacy/phaseN_smoke.py (N = 1 to 5: SMPL-X integration, augmentations, collision detection, pipeline, evaluation). They are not collected by pytest. Run one with, for example, CUDA_VISIBLE_DEVICES="" python scripts/legacy/phase4_smoke.py.
- Constraint enforcement only acts in
mode='smplx'. Inmode='landmark',process(..., enforce_constraints=True)is a no-op (a TODO inpipeline/pipeline.py). BenchmarkRunnerquality metrics use synthetic random-walk data, not real clips. Treat its numbers as a smoke test of the metric code, not as evidence about your dataset.
We welcome contributions from the community! Whether it's adding a new augmentation, improving documentation, or reporting a bug, your help is valued. Please read our Contributing Guide to learn how you can get involved.
This project is licensed under the MIT License.
If you use KineticAugment in your research, please cite:
@software{kineticaugment2026,
title = {KineticAugment: A Geometry-Aware Augmentation Framework for Human Motion},
author = {Vangelis Metsis},
year = {2026},
url = {https://github.com/imics-lab/KineticAugment}
}