ZPE-Bio
Deterministic ECG codec repository with a Python CLI, a Rust core crate, and committed validation artifacts. This README is intentionally limited to claims that are backed by proof artifacts already on disk and by tests that run in CI. ZPE-Bio is one of 17 independent encoding products in the Zer0pa portfolio, each developed for its own domain.
This repo's claimed surface is ECG staged proof only. It does not use the wearable runbooks as release evidence, and it does not make a generalized biosignal or regulatory claim.
Anchored Proof Surface
| Claim | Proof Artifact On Disk | CI Test Anchor |
|---|---|---|
| MIT-BIH benchmark writer emits summary + aggregate artifacts | validation/results/BENCHMARK_SUMMARY.md, validation/results/mitdb_python_only/mitdb_aggregate.json |
tests/test_benchmark_mitdb.py |
| PTB-XL benchmark writer emits committed-style summary artifacts | validation/results/ptbxl/summary.json |
tests/test_benchmark_physionet.py |
| Clinical ECG round-trip remains deterministic and high-fidelity in the Python codec | validation/results/BENCHMARK_SUMMARY.md |
tests/test_codec.py, tests/test_deterministic_replay.py |
| Python and Rust codec implementations remain parity-gated in CI | core/rust/, tests/test_parity.py |
tests/test_parity.py |
Not Claimed
- No public release-readiness verdict
- No generalized biosignal victory claim
- No Bio Wearable closure claim
- No regulatory or FDA claim
Benchmark Results (committed artifacts, beta)
Results below are from committed benchmark artifacts. All runs are CPU-only Python codec; no hardware path is implied.
MIT-BIH Arrhythmia Database (48 records, full corpus)
| Metric | Value |
|---|---|
| Records processed | 48/48 |
| Integrity pass rate | 48/48 (100%) |
| Mean compression ratio | 1.323 |
| Mean SNR | 43.3 dB |
| Mean RMSE | 3.24 uV |
| Mean PRD | 1.12% |
| Max PRD | 2.32% |
Source: validation/results/BENCHMARK_SUMMARY.md, validation/results/mitdb_python_only/mitdb_aggregate.json | CI: tests/test_benchmark_mitdb.py
MIT-BIH Noise Stress Test Database (nstdb, 15 entries)
| Metric | Value |
|---|---|
| Records processed | 15/15 |
| Integrity pass rate | 15/15 (100%) |
| Mean compression ratio | 1.310 |
| Mean SNR | 60.5 dB |
| Max PRD | 1.96% |
Source: validation/results/nstdb/summary.json | CI: tests/test_benchmark_physionet.py
European ST-T Database (edb, 90 entries)
| Metric | Value |
|---|---|
| Records processed | 90/90 |
| Integrity pass rate | 90/90 (100%) |
| Mean compression ratio | 1.376 |
| Mean SNR | 52.5 dB |
| Max PRD | 4.34% |
Source: validation/results/edb/summary.json | CI: tests/test_benchmark_physionet.py
PTB-XL ECG Database (100 records sample)
| Metric | Value |
|---|---|
| Records processed | 100/100 |
| Integrity pass rate | 100/100 (100%) |
| Mean compression ratio | 1.576 |
| Mean SNR | 32.0 dB |
| Max PRD | 5.29% |
Source: validation/results/ptbxl/summary.json | CI: tests/test_benchmark_physionet.py
Note on PTB-XL SNR/PRD: PTB-XL records are 12-lead 500 Hz clinical studies; the lower SNR relative to MIT-BIH reflects higher signal diversity and more channels compressed per segment, not codec regression. Integrity passes 100/100.
Local Validation
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev,validation]"
pytest -q
python -m build
Quick ECG smoke check:
python -m zpe_bio roundtrip --mode clinical --samples 250
Repository Map
python/zpe_bio/: Python package and CLIcore/rust/: Rust codec crateembedded/: embedded reference firmware treetests/: repo-local pytest suitescripts/: benchmark and operator scriptsvalidation/results/: committed benchmark outputsvalidation/runbooks/: execution and boundary runbooksdocs/: repo documentation and regulatory/reference material
Read Next
Metadata
Release files for zpe-bio 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| zpe_bio-0.2.1.tar.gz | 102.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zpe_bio-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 211.7 kB
Release files / zpe_bio-0.2.1.tar.gz
| Download URL | zpe_bio-0.2.1.tar.gz |
|---|---|
| Size | 102.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abc4f3203ee4a6649bd7be9014ad8798bfff631753c5d8dff87885dd3d24dbfd
|
|
BLAKE2b-256 checksum How to use checksums |
e758a9e19d26b1f6070539c6e18331c8fbe77902f164cdca37a3bb836fd6bd2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / zpe_bio-0.2.1-py3-none-any.whl
| Download URL | zpe_bio-0.2.1-py3-none-any.whl |
|---|---|
| Size | 108.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
569a52eae1a440dac6563938ba4244ab795e745dc3c0299f44a6f6efa3b39ad0
|
|
BLAKE2b-256 checksum How to use checksums |
38e99d0c10de99df4f6f20658309aade073bec9b3eb2153cbe4de048444f6452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for zpe-bio 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.