A
ECG
signal compression codec using Residual Vector Quantization (RVQ), optimized for edge and wearable devices.
Model Details
Modality:
ECG
Sample Rate:
256 Hz
Compression Ratio:
2x
Quantization:
INT8
RVQ Levels:
2
Codebook Size:
256 entries × 16D
Encoder Input:
[None, 1, 512, 1]
Encoder Output:
[None, 1, 256, 16]
Release Provenance
Release kind: corrected_export_without_retraining.
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
release_provenance.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.
Metric
Value
Truth PRD vs clean (%)
1.38
Truth PRD at native noise (%)
38.09
Faithful PRD vs input (%)
2.31
PRD degradation slope (PRD%/dB)
3.97
PRD at 0 dB SNR (%)
50.90
PRD at -6 dB SNR (%)
78.97
Pure-noise imprint autocorr
0.2481
Time Domain
PRD here is faithfulness (vs the recorded input); see
Fidelity & Robustness
above for the clean-truth and noise-regime view.
Metric
Mean
Median
P90
PRD vs input — faithfulness (%)
2.3062
2.1363
3.1904
RMSE
0.0222
0.0205
0.0306
Cosine Similarity
0.9997
0.9998
0.9999
Spectral
Band Total Relative Error (median):
0.0258
Bitrate
Codec CR (uniform):
2.0x
Codec CR (learned prior):
5.76x
Encoder Precision Parity
Difference from FP32 reconstruction on a disjoint real-data holdout; lower is better.
Encoder
P90 PRD
Worst PRD
Status
int8
3.43%
7.47%
recommended
fp16
0.21%
1.65%
recommended
int16x8
0.94%
2.93%
recommended
Usage
Python (compressionkit runtime)
from compressionkit.runtime import RVQCodec
codec = RVQCodec.from_pretrained("Ambiq/compressionkit-ecg-2x-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
File
Description
encoder_int8.tflite
INT8 quantized encoder (on-device)
encoder_float32.tflite
Float32 encoder for browser/server runtimes
encoder_fp16.tflite
FP16 encoder variant for supported edge runtimes
encoder_int16x8.tflite
INT16x8 encoder variant for supported edge runtimes
Training data: PTB-XL (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}
}
Runs of Ambiq compressionkit-ecg-2x-v1.1 on huggingface.co
109
Total runs
0
24-hour runs
12
3-day runs
49
7-day runs
99
30-day runs
More Information About compressionkit-ecg-2x-v1.1 huggingface.co Model
More compressionkit-ecg-2x-v1.1 license Visit here:
compressionkit-ecg-2x-v1.1 huggingface.co is an AI model on huggingface.co that provides compressionkit-ecg-2x-v1.1's model effect (), which can be used instantly with this Ambiq compressionkit-ecg-2x-v1.1 model. huggingface.co supports a free trial of the compressionkit-ecg-2x-v1.1 model, and also provides paid use of the compressionkit-ecg-2x-v1.1. Support call compressionkit-ecg-2x-v1.1 model through api, including Node.js, Python, http.
compressionkit-ecg-2x-v1.1 huggingface.co is an online trial and call api platform, which integrates compressionkit-ecg-2x-v1.1's modeling effects, including api services, and provides a free online trial of compressionkit-ecg-2x-v1.1, you can try compressionkit-ecg-2x-v1.1 online for free by clicking the link below.
Ambiq compressionkit-ecg-2x-v1.1 online free url in huggingface.co:
compressionkit-ecg-2x-v1.1 is an open source model from GitHub that offers a free installation service, and any user can find compressionkit-ecg-2x-v1.1 on GitHub to install. At the same time, huggingface.co provides the effect of compressionkit-ecg-2x-v1.1 install, users can directly use compressionkit-ecg-2x-v1.1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
compressionkit-ecg-2x-v1.1 install url in huggingface.co: