Ambiq/compressionkit-ppg-4x-v1.1
compressionkit-ppg-4x-v1.1
A PPG signal compression codec using Residual Vector Quantization (RVQ), optimized for edge and wearable devices.
Model Details
- Modality: PPG
- Sample Rate: 64 Hz
- Compression Ratio: 4x
- Quantization: INT8
- RVQ Levels: 2
- Codebook Size: 256 entries × 16D
- Encoder Input:
[None, 1, 320, 1] - Encoder Output:
[None, 1, 80, 16]
Release Provenance
Release kind: correctedexportwithoutretraining. Export source commit: `7a5443834ec50e41f41d4ff2b1c2f27e73b1acf7`. Physiological scorecard: historical; not reevaluated for this release. Packet compatibility: corrected RVQ level counts; bind packets to exact repository and revision. Pretraining ancestry: not independently audited during export repair. See `releaseprovenance.json` for checkpoint hashes, replaced revision, and sample provenance.
Quality Metrics
Fidelity & Robustness
Both fidelity yardsticks are reported so the codec is judged fairly: faithfulness is PRD vs the recorded (still-noisy) input, while truth fidelity is PRD vs clean ground truth. Lower is better.
Time Domain
PRD here is faithfulness (vs the recorded input); see **Fidelity & Robustness** above for the clean-truth and noise-regime view.
Spectral
- Band Total Relative Error (median): 0.0065
Bitrate
Encoder Precision Parity
Difference from FP32 reconstruction on a disjoint real-data holdout; lower is better.
Usage
Python (compressionkit runtime)
from compressionkit.runtime import RVQCodec
codec = RVQCodec.from_pretrained("Ambiq/compressionkit-ppg-4x-v1.1")
# Encode: float32 signal → RVQ indices
indices = codec.encode(signal)
# Decode: RVQ indices → reconstructed signal
recon = codec.decode(indices)Local deployment directory
codec = RVQCodec("path/to/deploy/")Files
Dataset & License
Training data: BIDMC + BUT PPG + PPG-DaLiA + WESAD (all open, no restricted-access dependency). Sample data uses synthetic physiokit waveforms only — no patient data is redistributed.
Model weights are released under the Ambiq Model Weights License — deployment is restricted to Ambiq silicon devices. See LICENSE-MODEL-WEIGHTS.md for full terms.
Citation
@software{compressionkit,
author = {Ambiq AI},
title = {compressionKIT: Signal Compression for Edge AI},
url = {https://github.com/AmbiqAI/compressionkit}
}