LUDB / README.md
dronefreak's picture
Card: add install line to usage (#2)
b7827a2
|
Raw History Blame Contribute Delete
8.93 kB
metadata
language:
  - en
license: odc-by
size_categories:
  - n<1K
task_categories:
  - other
pretty_name: LUDB
tags:
  - ecg
  - electrocardiogram
  - biosignals
  - time-series
  - medical
  - ecg-delineation
  - physionet
dataset_info:
  features:
    - name: record_id
      dtype: int32
    - name: age
      dtype: int32
    - name: age_text
      dtype: string
    - name: sex
      dtype: string
    - name: rhythms
      list: string
    - name: electric_axis
      list: string
    - name: conduction_abnormalities
      list: string
    - name: extrasystoles
      list: string
    - name: hypertrophies
      list: string
    - name: cardiac_pacing
      list: string
    - name: ischemia
      list: string
    - name: repolarization_abnormalities
      list: string
    - name: other_states
      list: string
    - name: sampling_rate
      dtype: int32
    - name: lead_names
      list: string
    - name: signal
      dtype:
        array2_d:
          shape:
            - 12
            - 5000
          dtype: int16
    - name: adc_gain
      list: float64
    - name: adc_baseline
      list: int32
    - name: waves
      list:
        - name: lead
          dtype: string
        - name: wave
          dtype: string
        - name: onset
          dtype: int32
        - name: peak
          dtype: int32
        - name: offset
          dtype: int32
        - name: complete
          dtype: bool
    - name: annotations
      list:
        - name: lead
          dtype: string
        - name: sample
          dtype: int32
        - name: symbol
          dtype: string
    - name: preview
      dtype: image
  splits:
    - name: train
      num_bytes: 55871572
      num_examples: 200
  download_size: 44785717
  dataset_size: 55871572
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*

LUDB: Lobachevsky University Electrocardiography Database

Task Dataset Format Records Leads License

Unofficial mirror of LUDB v1.0.1: 200 ten-second 12-lead ECGs with cardiologist-marked P, QRS and T boundaries, in a viewer-ready Parquet layout with bit-exact signals.

Dataset Description

Disclaimer

This repository is not an official release of LUDB.

LUDB was created by Alena Kalyakulina, Igor Yusipov, Viktor Moskalenko, Alexander Nikolskiy, Konstantin Kosonogov, Grigory Osipov, Nikolai Zolotykh and Mikhail Ivanchenko (Lobachevsky University), and is published by PhysioNet. This repository does not claim ownership of the data. If you are an author or rights holder and want this repository changed or removed, please open a discussion and it will be addressed promptly.

These are records from real patients and volunteers. Do not attempt to identify anyone in them. This dataset is for research and is not a medical device or a basis for clinical decisions.

Source and verification: built from the official PhysioNet package ludb-1.0.1.zip. All 2,805 files matched the official SHA256SUMS.txt. Every signal was compared with the original .dat bytes and with the wfdb reader, and every annotation marker was compared with its source file.


Dataset Overview

LUDB is a validation set for ECG delineation. Each record has 12 standard leads, lasts 10 seconds and is sampled at 500 Hz. Cardiologists marked the onset, peak and offset of P, QRS and T waves separately on each lead. The 200 subjects include healthy volunteers and patients with cardiovascular conditions, some with pacemakers, and each record carries rhythm and diagnosis labels.


Changes from the Official Release

  • Packed into Parquet, one row per record, so the Dataset Viewer and datasets work directly.
  • Added waves, a structured table derived from the WFDB annotations, and preview, a rendered plot of all 12 leads.
  • Split the multi-line diagnosis cells of ludb.csv into lists.
  • The official package is included unchanged at original/ludb-1.0.1.zip.
  • No signals or annotation markers were changed, added or removed.

Dataset Structure

Column Content
record_id official record number, 1 to 200
age age in years, null for the one record listed as >89
age_text age as written in ludb.csv
sex M or F
rhythms, electric_axis, conduction_abnormalities, extrasystoles, hypertrophies, cardiac_pacing, ischemia, repolarization_abnormalities, other_states diagnosis labels from ludb.csv, as lists
sampling_rate 500
lead_names i, ii, iii, avr, avl, avf, v1, v2, v3, v4, v5, v6
signal raw ADC integers, int16, shape (12, 5000) as (lead, sample)
adc_gain, adc_baseline per-lead values, which vary between records
waves one entry per wave: lead, wave (P, QRS, T), onset, peak, offset, complete
annotations every original marker, verbatim: lead, sample, symbol
preview PNG plot of the 12 leads with labeled waves shaded

All positions are 0-based sample indices. There is one train split containing all 200 records because the authors define no official split. Split by record_id, since each record is one subject.

Read before using the labels

  • Only the middle of each strip is labeled. Across the 2,400 lead annotations, the first marker falls at a median of 1.32 s and the last at 8.65 s. Waves outside that range are present in the signal but unlabeled, so they must not be treated as background when training or scoring.
  • Eight records have irregular markers. In records 7, 8, 34, 95, 104, 111, 116 and 198 (31 lead annotations), 134 of the 58,423 waves have a missing or stray boundary marker. Those waves have complete = false and a null onset or offset. Nothing was repaired or guessed, and annotations preserves the original markers.
  • Counts differ slightly from the official README. The annotation files contain 21,965 QRS, 19,661 T and 16,797 P waves. The README states 21,966 QRS and 19,666 T.

Usage

# pip install datasets pillow numpy
import numpy as np
from datasets import load_dataset

ds = load_dataset("dronefreak/LUDB", split="train")
row = ds[0]

signal = np.asarray(row["signal"], dtype=np.int16)           # (12, 5000)
gain = np.asarray(row["adc_gain"])[:, None]
baseline = np.asarray(row["adc_baseline"])[:, None]
millivolts = (signal - baseline) / gain

lead_ii_qrs = [w for w in row["waves"] if w["lead"] == "ii" and w["wave"] == "QRS" and w["complete"]]

Dataset Sources

Citation

Please cite the dataset, the original paper and PhysioNet:

@article{PhysioNet-ludb-1.0.1,
  author  = {Kalyakulina, Alena and Yusipov, Igor and Moskalenko, Viktor and Nikolskiy, Alexander and Kosonogov, Konstantin and Zolotykh, Nikolai and Ivanchenko, Mikhail},
  title   = {{Lobachevsky University Electrocardiography Database}},
  journal = {{PhysioNet}},
  year    = {2021},
  month   = jan,
  note    = {Version 1.0.1},
  doi     = {10.13026/eegm-h675},
  url     = {https://doi.org/10.13026/eegm-h675}
}

Kalyakulina, A.I., Yusipov, I.I., Moskalenko, V.A., Nikolskiy, A.V., Kosonogov, K.A., Osipov, G.V., Zolotykh, N.Yu., Ivanchenko, M.V.: LUDB: A New Open-Access Validation Tool for Electrocardiogram Delineation Algorithms, IEEE Access, vol. 8, pp. 186181-186190, 2020, doi: 10.1109/ACCESS.2020.3029211

Pollard, T., Moody, B. E., Lehman, L., Gow, B., Fernandes, C., Xie, C., Johnson, A., Mark, R. G., & Heldt, T. (2026). PhysioNet as a global platform for biomedical research. Nature Health. https://doi.org/10.1038/s44360-026-00096-z


License

LUDB is made available under the Open Data Commons Attribution License v1.0 (ODC-By). The full text is in LICENSE.txt. This repository contains information from the Lobachevsky University Electrocardiography Database, published on PhysioNet. If you publicly use or redistribute this data or a work produced from it, keep this attribution and the license notice.