compressionkit-ppg-spiht-2x
A PPG signal compression codec built on wavelet + SPIHT + arithmetic coding. DSP-only โ no trained weights. The deployable artifact is the bitstream contract plus a portable C99 reference implementation.
Operating point
| Field | Value |
|---|---|
| Modality | PPG |
| Sample rate | 64 Hz |
| Frame size | 320 samples |
| Target CR | 2x |
| Wavelet | coif5 |
| DWT levels | 6 |
| Bit budget | 2560 bits/frame |
| Entropy coder | arithmetic coding |
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 (%) | 0.01 |
| Truth PRD at native noise (%) | 34.35 |
| Faithful PRD vs input (%) | 0.01 |
| PRD degradation slope (PRD%/dB) | 4.40 |
| PRD at 0 dB SNR (%) | 75.96 |
| PRD at -6 dB SNR (%) | 104.79 |
| Pure-noise imprint autocorr | 0.2853 |
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 (%) | 0.0103 | 0.0070 | 0.0246 |
| RMSE | 0.0001 | 0.0001 | 0.0002 |
| Cosine Similarity | 1.0000 | 1.0000 | 1.0000 |
Spectral
- Band Total Relative Error (median): 0.0000
Bitrate
Python quickstart
from compressionkit.runtime import load_codec
codec = load_codec("Ambiq/compressionkit-ppg-spiht-2x")
enc = codec.compress(frame) # frame: (frame_size,) float32
recon = codec.decompress(enc)
C quickstart
#include "spiht_app_config.h"
float frame[APP_SPIHT_FRAME_SIZE];
uint8_t bitstream[APP_SPIHT_MAX_BYTES];
/* ... fill frame from sensor (post-denoise, if hybrid) ... */
size_t nbits = spiht_encode_frame(&enc, bitstream, APP_SPIHT_MAX_BITS);
Files
| File | Description |
|---|---|
config.json |
Deploy manifest (family: "spiht") |
spiht_config.json |
Codec parameters (language-neutral) |
sample_stimulus.npz |
Synthetic test frames |
reference_vectors.npz |
Reference encode/decode vectors |
c_sources/spiht.[ch] |
Portable C99 reference |
c_sources/spiht_app_config.h |
Codec-specific defines |
model_card.json |
Provenance metadata |
scorecard.json |
Frozen evaluation summary |
Dataset & license
Evaluation data provenance is not recorded in this package; sample data uses synthetic physiokit waveforms only โ no patient data is redistributed.
Codec source released under the APACHE-2.0 license.
Citation
@software{compressionkit,
author = {Ambiq AI},
title = {compressionKIT: Signal Compression for Edge AI},
url = {https://github.com/AmbiqAI/compressionkit}
}
- Downloads last month
- 21
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support