Skip to main content

Decode Aspect/Covidien/Medtronic BIS Advance/Vista data-download files (processed trend, spectrogram, raw EEG) to tidy CSV/NumPy.

Project description

bisdecode

Decode Aspect / Covidien / Medtronic BIS Advance / Vista data-download files into analysis-ready tables. The per-case DH export is a vendor-undocumented, nine-file bundle; bisdecode reverse-engineers it into tidy CSV + NumPy.

⚠️ Unofficial / reverse-engineered. Not affiliated with or endorsed by the device manufacturer. Field mappings were validated against BIS R2 4.1 / BISx 1.15.2.22 exports cross-checked with the official BIS PDF reports. Verify against your own device revision before relying on it. Raw EEG is stored as ADC counts; µV scaling needs the (not-exported) BIS R2 gain constant.

Install

pip install bisdecode

CLI

# decode one case (folder containing a DH*/ subfolder, or the DH folder itself)
bisdecode decode path/to/M-XXXX-... -o decoded

# batch every case under a root
bisdecode decode raw-data --all -o decoded

# anonymised export: per-case date-shift, output named by Case ID, key kept secret
bisdecode decode raw-data --all --anonymise -o decoded_anon --key-file KEY.csv

# one-row-per-case cohort summary from decoded trends
bisdecode cohort decoded -o cohort_summary.csv

Per case you get: *_trend.csv (per-second BIS / SR / SEF / median freq / total power / EMG / SQI / impedance / artifact / burst, per channel), *_spectra.csv (60-bin density spectral array), *_events.csv, *_messages.csv, *_meta.json, and *_eeg.npy (raw EEG, int16, 2ch @ 128 Hz).

Python API

import bisdecode
meta = bisdecode.decode_case("path/to/M-XXXX-...", "decoded")
trend = bisdecode.parse_spa("…/L…spa")          # -> pandas DataFrame
eeg   = bisdecode.parse_eeg("…/L….r2a")          # -> ndarray (n, 2) int16
row   = bisdecode.summarize("decoded/X/X_trend.csv", channel="Ch1")

Anonymisation

--anonymise applies an independent random per-case offset (magnitude in [--shift-min-days, --shift-days], random sign) to every timestamp — including those embedded in message text — so dates and clock-times move while all within-case intervals are preserved. Outputs are named by the monitor Case ID. The key file maps source_base → offset_seconds; keep it secret (it reverses the shift: real = shifted − offset). Re-runs reuse the key, so offsets are stable.

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bisdecode-0.1.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bisdecode-0.1.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file bisdecode-0.1.0.tar.gz.

File metadata

  • Download URL: bisdecode-0.1.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for bisdecode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19b540f8628595fc35c499314fbb9303011aff59a5bdd0b13ec3bbe907d250e6
MD5 7180da0f7ddf4995ba49cd63bdb363eb
BLAKE2b-256 e0755fe7a60da1b9b2013831edf99fcd72042409d664e32bd0d43633b875e56d

See more details on using hashes here.

File details

Details for the file bisdecode-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bisdecode-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for bisdecode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 978a0d6bf80c8dfdfa4411076b62b1331fae8af39c56306930ddf5850d9e6d74
MD5 174205fc854ec5c657f17a203fde9d6c
BLAKE2b-256 98b2392fe172d4bb769e720054f05a19961f5b7bdc30b004d19b4ba879401f2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page