https://github.com/devnums/pyheartlib
A Python package for processing electrocardiogram signals ❤️
https://github.com/devnums/pyheartlib
ecg electrocardiogram machine-learning
Last synced: 3 months ago
JSON representation
A Python package for processing electrocardiogram signals ❤️
- Host: GitHub
- URL: https://github.com/devnums/pyheartlib
- Owner: devnums
- License: agpl-3.0
- Created: 2023-03-07T09:57:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T10:12:24.000Z (over 2 years ago)
- Last Synced: 2026-03-26T22:00:16.730Z (3 months ago)
- Topics: ecg, electrocardiogram, machine-learning
- Language: Python
- Homepage: https://pyheartlib.readthedocs.io/
- Size: 24.5 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# Pyheartlib
[](https://pyheartlib.readthedocs.io/en/latest/?badge=latest)

[](https://github.com/devnums/pyheartlib/blob/main/LICENSE)
[](https://pyheartlib.readthedocs.io/en/latest/getting-started.html#requirements)

[](https://codecov.io/gh/devnums/pyheartlib)
[](https://pypi.org/project/pyheartlib/)

[](https://pycqa.github.io/isort/)
[](https://github.com/psf/black)
[](https://github.com/astral-sh/ruff)
[](https://doi.org/10.21105/joss.05792)
`Pyheartlib` is a Python package for processing electrocardiogram (ECG) recordings. This software facilitates working with signals for tasks such as heartbeat detection, heartbeat classification, and arrhythmia classification. Utilizing it, researchers can focus on these tasks without the burden of designing data processing modules. The package transforms original data into processed signal excerpts and their computed features in order to be used for training various machine learning models including advanced deep learning models, which can be trained by taking advantage of Keras and Tensorflow libraries.
## Documentation
Documentation is available at the link below.
[pyheartlib.readthedocs.io](https://pyheartlib.readthedocs.io).
## Requirements
Current version of the package was tested on:
- Ubuntu: 20.04 | 22.04 & Python: 3.10 | 3.11 & Processor: x86_64
- macOS: 12.6.9 | 13.6 & Python: 3.10 | 3.11 & Processor: x86_64
However, it may also be compatible with other systems.
## Installation
The package can be installed with pip:
```bash
$ pip install pyheartlib
```
## Examples
Examples can be found in the [examples section](https://pyheartlib.readthedocs.io/en/latest/examples/examples.html) of the documentation and also in the GitHub repository ([examples](https://github.com/devnums/pyheartlib/tree/main/examples)).
## Citation
To cite this software, please use:
> Mohammadi, S., (2024). Pyheartlib: A Python package for processing electrocardiogram signals. Journal of Open Source Software, 9(95), 5792, https://doi.org/10.21105/joss.05792
BibTeX:
```
@article{devnums_pyheartlib_2024,
doi = {10.21105/joss.05792},
url = {https://doi.org/10.21105/joss.05792},
year = {2024},
publisher = {The Open Journal},
volume = {9},
number = {95},
pages = {5792},
author = {Sadegh Mohammadi},
title = {Pyheartlib: A Python package for processing electrocardiogram signals},
journal = {Journal of Open Source Software}
}
```
## Contributing
Feedback and contributions are appreciated. The guidelines for contributing are provided [here](https://github.com/devnums/pyheartlib/blob/main/CONTRIBUTING.md).
## Discussions & Support
For any questions, discussions, or problems with this software, please join us on [Discord](https://discord.gg/DQVfR2yWYc). An alternative option is to open a GitHub issue. ([Issues](https://github.com/devnums/pyheartlib/issues), [New issue](https://github.com/devnums/pyheartlib/issues/new))
## License
`Pyheartlib` is released under the [AGPL-3.0-only](https://github.com/devnums/pyheartlib/blob/main/LICENSE) License.