{"id":13545762,"url":"https://github.com/cbrnr/sleepecg","last_synced_at":"2025-05-16T08:06:34.569Z","repository":{"id":38360444,"uuid":"387743338","full_name":"cbrnr/sleepecg","owner":"cbrnr","description":"Sleep stage detection using ECG","archived":false,"fork":false,"pushed_at":"2025-04-28T05:06:33.000Z","size":3230,"stargazers_count":124,"open_issues_count":13,"forks_count":27,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-14T03:44:30.313Z","etag":null,"topics":["ecg","heartrate","peak-detection","python","sleep-staging"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbrnr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-07-20T09:40:32.000Z","updated_at":"2025-04-28T05:06:32.000Z","dependencies_parsed_at":"2023-11-11T08:31:29.814Z","dependency_job_id":"574774d1-d97e-4d42-90d6-fffaba3f95b4","html_url":"https://github.com/cbrnr/sleepecg","commit_stats":{"total_commits":129,"total_committers":4,"mean_commits":32.25,"dds":0.5038759689922481,"last_synced_commit":"f77e73b3bc790a535d36f44ee94290b0885c8bd8"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrnr%2Fsleepecg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrnr%2Fsleepecg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrnr%2Fsleepecg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrnr%2Fsleepecg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbrnr","download_url":"https://codeload.github.com/cbrnr/sleepecg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecg","heartrate","peak-detection","python","sleep-staging"],"created_at":"2024-08-01T12:00:16.439Z","updated_at":"2025-05-16T08:06:29.558Z","avatar_url":"https://github.com/cbrnr.png","language":"Python","funding_links":[],"categories":["Library"],"sub_categories":[],"readme":"![Python](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fcbrnr%2Fsleepecg%2Frefs%2Fheads%2Fmain%2Fpyproject.toml\u0026logo=python\u0026logoColor=white)\n[![PyPI](https://img.shields.io/pypi/v/sleepecg)](https://pypi.org/project/sleepecg/)\n[![Docs](https://readthedocs.org/projects/sleepecg/badge/?version=latest)](https://sleepecg.readthedocs.io/en/stable/index.html)\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.05411/status.svg)](https://doi.org/10.21105/joss.05411)\n[![License](https://img.shields.io/github/license/cbrnr/sleepecg)](LICENSE)\n\n## SleepECG\n\nSleepECG provides tools for sleep stage classification when [EEG](https://en.wikipedia.org/wiki/Electroencephalography) signals are not available. Based only on [ECG](https://en.wikipedia.org/wiki/Electrocardiography), SleepECG provides functions for\n\n- downloading and reading open polysomnography datasets,\n- detecting heartbeats from ECG signals, and\n- classifying sleep stages (which includes preprocessing, feature extraction, and classification).\n\n\n### Documentation\n\nDocumentation for SleepECG is available on [Read the Docs](https://sleepecg.readthedocs.io/en/stable/index.html). Check out the [changelog](https://github.com/cbrnr/sleepecg/blob/main/CHANGELOG.md) to learn what we added, changed, or fixed.\n\n\n### Installation\n\nSleepECG is available on PyPI and can be installed with [pip](https://pip.pypa.io/en/stable/):\n\n```\npip install sleepecg\n```\n\nSleepECG with all optional dependencies can be installed with the following command:\n\n```\npip install \"sleepecg[full]\"\n```\n\nIf you want the latest development version, use the following command:\n\n```\npip install git+https://github.com/cbrnr/sleepecg\n```\n\n\n### Example\n\nThe following example detects heartbeats in a short ECG (a one-dimensional NumPy array):\n\n```python\nimport numpy as np\nfrom sleepecg import detect_heartbeats, get_toy_ecg\n\necg, fs = get_toy_ecg()  # 5 min of ECG data at 360 Hz\nbeats = detect_heartbeats(ecg, fs)  # indices of detected heartbeats\n```\n\n\n### Contributing\n\nThe [contributing guide](https://github.com/cbrnr/sleepecg/blob/main/CONTRIBUTING.md) contains detailed instructions on how to contribute to SleepECG.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrnr%2Fsleepecg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbrnr%2Fsleepecg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrnr%2Fsleepecg/lists"}