Skip to main content

Heart Rate Analysis Toolkit

Project description

A note to our friends from the Humanist 2018 conference

This is the package presented at the Humanist 2018 conference in the Hague, Netherlands. Note that it is always in active development. Whenever including it in your research, pull the latest version from this GitHub. Support is always available at: P.vanGent@tudelft.nl.

Thank you for your interest

Installation

python setup.py install

That's it!

Official Documentation

The official documentation is online! You can find the official documentation here

HeartPy - Python Heart Rate Analysis Toolkit

DOI

HeartPy, the Python Heart Rate Analysis Toolkit is a module for heart rate analysis in Python. It started as pure-python implementation to analyse physiological data taken in naturalistisch driving and cycling experiments.

The module takes a discrete heart rate signal and outputs time-domain and frequency-domain measures often found in scientific literature:

Time domain:

  • beats per minute, BPM
  • interbeat interval, IBI
  • standard deviation if intervals between adjacent beats, SDNN
  • standard deviation of successive differences between adjacent R-R intervals, SDSD
  • root mean square of successive differences between adjacend R-R intervals, RMSSD
  • proportion of differences between R-R intervals greater than 20ms, 50ms, pNN20, pNN50
  • median absolute deviation, MAD

Frequency domain

  • low frequency component (0.04-0.15Hz), LF
  • high frequency component (0.16-0.5Hz), HF
  • lf/hf ratio, Lf/HF

When using the package in your research, please cite:

van Gent, P., Farah, H., van Nes, N., & van Arem, B. (2018). Heart Rate Analysis for Human Factors: Development and Validation of an Open Source Toolkit for Noisy Naturalistic Heart Rate Data. In Proceedings of the 6th HUMANIST Conference (pp. 173–178).

van Gent, P. Van, Farah, H., Nes, N. Van, & Arem, B. Van. (manuscript submitted). A Novel Heart Rate Algorithm for the Analysis of Noisy Signals. Doi: doi.org/10.13140/RG.2.2.24895.56485

Documentation

You can find the official documentation here

The module is also to some extent described in my tutorial series:

License

The module is licensed under the GNU General Public License Version3, GPL-v3

Validation

Initial results of the validation have been reported in [1, 2]. Updates here are soon to follow once the papers are published.

[1]van Gent, P., Farah, H., van Nes, N., & van Arem, B. (2018). Heart Rate Analysis for Human Factors: Development and Validation of an Open Source Toolkit for Noisy Naturalistic Heart Rate Data. In Proceedings of the 6th HUMANIST Conference (pp. 173–178).

[2] van Gent, P. Van, Farah, H., Nes, N. Van, & Arem, B. Van. (manuscript submitted for publication). A Novel Heart Rate Algorithm for the Analysis of Noisy Signals.

To-do

The module is still in active development. See the changelog for past changes. The to-do for the coming months is:

to do before V1.1.1

  • Validate performance on Physionet datasets
  • Report validation performance on repo (published paper + key-points document)
  • Add R-position interpolation ('high accuracy' mode)
  • Handle cases where strong T-peak in signal is present

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

heartpy-1.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

heartpy-1.1-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file heartpy-1.1.tar.gz.

File metadata

  • Download URL: heartpy-1.1.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for heartpy-1.1.tar.gz
Algorithm Hash digest
SHA256 82013d41c00462c121a141ea45f85e8983431aa8e38257419ef19881daf8a8ce
MD5 712ce3ebb6937a7efd3ab94089b064f1
BLAKE2b-256 5b448d82b62ce3e7be4eafe7a050ac130c3bfbf39a33b7062b3c3c0b396b87c2

See more details on using hashes here.

File details

Details for the file heartpy-1.1-py3-none-any.whl.

File metadata

  • Download URL: heartpy-1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for heartpy-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3115cdd278e57c08c116bb7479e4d4c145902b57ecd91f39f79dd91be088a43f
MD5 851284f40cf6b07b81db17d51e6951b7
BLAKE2b-256 dec6ce124f2d25a352d2fb933db3da1628c3634875dd97ee6f7e4a1ca5a8ff7a

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