Skip to main content

A package for sleep stage classification using ECG data

Project description

Py Version PyPI Version conda-forge version Docs

SleepECG

SleepECG provides tools for sleep stage classification when EEG signals are not available. Based only on ECG (and to a lesser extent also movement data), SleepECG provides functions for

  • downloading and reading open polysomnography datasets,
  • detecting heartbeats from ECG signals, and
  • classifying sleep stages (which includes the complete preprocessing, feature extraction, and classification pipeline).

Documentation

Documentation for SleepECG is available on Read the Docs.

Installation

SleepECG is available on PyPI and can be installed with pip:

pip install sleepecg

Alternatively, install via conda:

conda install -c conda-forge sleepecg

Optional dependencies provide additional features if installed:

  • joblib≥1.0.0 (parallelized feature extraction)
  • matplotlib≥3.4.0 (plot hypnograms and confusion matrices)
  • mne≥0.23.0 (read data from MESA, SHHS)
  • numba≥0.53.0 (JIT-compiled heartbeat detector)
  • pandas≥1.2.0 (read data from GUDB)
  • tensorflow≥2.7.0 (sleep stage classification with keras models)
  • wfdb≥3.3.0 (read data from SLPDB, MITDB, LTDB)

All optional dependencies can be installed with

pip install sleepecg[full]

Contributing

The contributing guide contains detailed instructions on how to contribute to SleepECG.

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

sleepecg-0.5.0.tar.gz (50.3 kB view hashes)

Uploaded Source

Built Distributions

sleepecg-0.5.0-cp310-cp310-win_amd64.whl (56.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

sleepecg-0.5.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (68.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

sleepecg-0.5.0-cp310-cp310-macosx_11_0_arm64.whl (51.9 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

sleepecg-0.5.0-cp310-cp310-macosx_10_9_x86_64.whl (51.9 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

sleepecg-0.5.0-cp39-cp39-win_amd64.whl (56.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

sleepecg-0.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (67.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

sleepecg-0.5.0-cp39-cp39-macosx_11_0_arm64.whl (51.9 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

sleepecg-0.5.0-cp39-cp39-macosx_10_9_x86_64.whl (51.9 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

sleepecg-0.5.0-cp38-cp38-win_amd64.whl (56.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

sleepecg-0.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (67.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

sleepecg-0.5.0-cp38-cp38-macosx_11_0_arm64.whl (51.9 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

sleepecg-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl (51.9 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

sleepecg-0.5.0-cp37-cp37m-win_amd64.whl (56.1 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

sleepecg-0.5.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (67.6 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

sleepecg-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl (51.8 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

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