Repository navigation
Add LUDB dataset support and a per-lead ECG delineation task - #1593
Open
sidwanjara wants to merge 2 commits into
Open
sidwanjara wants to merge 2 commits into
sidwanjara wants to merge 2 commits into
Conversation
shraysrivastava
force-pushed
the
ludb-ecg-delineation
branch
from
November 24, 2026 01:25
d024024 to
ab98846
Compare
Test CoverageTotal: 86.26% (45526 / 52779 lines)
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributors: Shray Srivastava (ssriv5@illinois.edu), Sid Wanjara (swanj2@illinois.edu)
Contribution Type: New Dataset + New Task
Paper: J. Park et al., "Benchmarking ECG Delineation using Deep Neural Network-based
Semantic Segmentation Models," CHIL 2025, PMLR 287:63-88.
https://proceedings.mlr.press/v287/park25a.html
Description:
Adds the Lobachevsky University Electrocardiography Database (LUDB, PhysioNet, open access)
and an ECG delineation task that follows the paper's setup.
LUDBDatasetindexes the 200 ten-second, 12-lead, 500 Hz records together with theirmetadata from
ludb.csv(sex, age, rhythm, electric axis).ECGDelineationLUDBmakes one sample per lead, as the paper does. Each sample has a(1, 1, 5000)signal and a(1, 5000)mask (0 background, 1 P, 2 QRS, 3 T).since the cardiologists did not label them.
turned off.
noise_snr_db) is added before filtering, forrobustness tests.
UNet2Don the authors' own 160/20/20 recordsplit and reports per-wave IoU and mIoU.
has no effect on clean data but adds +0.09 mIoU at 0 dB SNR. Full results and
findings are in the example's docstring.
No core PyHealth code is changed; the only edits outside the new files are the two
__init__.pyimports and the doc/README index entries.Files to Review:
pyhealth/datasets/ludb.py- dataset implementationpyhealth/datasets/configs/ludb.yaml- dataset configpyhealth/tasks/ecg_delineation_ludb.py- delineation task andannotations_to_masktests/core/test_ludb.py- tests on synthetic WFDB records (no real data)examples/ludb_ecg_delineation_unet.py- training, evaluation and ablation; runswithout data via
--syntheticdocs/api/datasets/pyhealth.datasets.LUDBDataset.rst,docs/api/tasks/pyhealth.tasks.ECGDelineationLUDB.rst- API docsdocs/api/datasets.rst,docs/api/tasks.rst,examples/README.md- index entriespyhealth/datasets/__init__.py,pyhealth/tasks/__init__.py- imports