Skip to main content

Semi-automated extrema detection in ECG and respiratory signals

Project description

biotop: picking peaks in physiological data

A simple GUI for human-assisted semiautomatic ECG and respiration preprocessing.

Purpose ECG analysis of real-world data can be tricky, especially when there are lots of artefacts. Automated pipelines exist but the results can often not be inspected, and not manually adjusted.

The current script allows you to import, view and explore ECG and respiratory data. You can run automated peak detection which you can then inspect and modify manually. The results are saved in a JSON file format.

Video Tutorial

Prerequisites

  • Python 3.X

Prerequisite packages are installed automatically using the following:

python3 -m pip install biotop

Usage

For ECG analysis:

biotop

For respiration analysis:

respire

Basic GUI controls

  • Mouse scroll wheel up/down : Scroll back and forth in time
  • Ctrl key + Mouse scroll wheel up/down : Zoom in/out in time
  • Mouse left button double click : Insert peak (or zoom in if not zoomed in enough)
  • Hold down shift while moving the mouse : Snap to closest maximum
  • Mouse right button single click : Remove peak
  • Mouse middle button click : Insert marker for invalid region
  • Mouse middle button double click : Remove invalid region
  • Keyboard keys:
    • z toggles between micro and macro zoom (make sure the window has focus)
    • a shows the entire signal
    • Left/right arrow keys scroll through the signal slowly
    • PageDown/PageUp keys browse through the signal a full window at a time

For respire (the respiration picker script)

  • Hold down ctrl while moving the mouse : Snap to closest minimum (handy for selecting troughs)

Development

Install latest development version:

pip install --upgrade "biotop @ git+https://github.com/florisvanvugt/biotop"

Wishlist

  • Show a window when waiting for peak autodetection to complete
  • Make sure y axis labels remain visible even for greater zoom

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

biotop-0.5.3.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

biotop-0.5.3-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

Details for the file biotop-0.5.3.tar.gz.

File metadata

  • Download URL: biotop-0.5.3.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for biotop-0.5.3.tar.gz
Algorithm Hash digest
SHA256 38246e44751d07d978917cc132f27ba6b43ba9c9cf440022c5d8bef09d7b981e
MD5 5520848100f2cde9f6890c299eab9bb2
BLAKE2b-256 6859545d15eed194650d88edd75e194319d6bd90c30b3ed531e3f2d7a4085270

See more details on using hashes here.

File details

Details for the file biotop-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: biotop-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 38.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for biotop-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5aa6d1c7f2cc1a11ccbbb2c4b1cf1864e683b776967a5ffa4d8c4c74c5d90686
MD5 a39b96cb25967494ff7bbdb9eabc637d
BLAKE2b-256 aad5529420f214316ae288bd7e85e5dc770ffe096e56ac3975afb64237d50cb5

See more details on using hashes here.

Supported by

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