dronefreak's picture
Add CirCor DigiScope Phonocardiogram Dataset 1.0.3 (3,163 recordings, Parquet + official zip) (#1)
11806b8
|
Raw History Blame Contribute Delete
13.4 kB
---
language:
- en
license: odc-by
size_categories:
- 1K<n<10K
task_categories:
- audio-classification
pretty_name: CirCor DigiScope Phonocardiogram Dataset
tags:
- phonocardiogram
- pcg
- heart-sounds
- heart-murmur
- auscultation
- pediatrics
- biosignals
- medical
- physionet
- audio
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- config_name: patients
data_files:
- split: train
path: patients/train-*
---
<h1 align="center">CirCor DigiScope Phonocardiogram Dataset</h1>
<p align="center"><video controls autoplay loop muted playsinline width="900" poster="https://huggingface.co/datasets/dronefreak/CirCor-DigiScope-PCG/resolve/main/assets/demo_banner_poster.jpg" src="https://huggingface.co/datasets/dronefreak/CirCor-DigiScope-PCG/resolve/main/assets/demo_banner.mp4"><img src="https://huggingface.co/datasets/dronefreak/CirCor-DigiScope-PCG/resolve/main/assets/demo_banner_poster.jpg" alt="Six four-second heart sound excerpts coloured by the S1, systole, S2 and diastole segmentation, from patients without murmurs, with systolic murmurs and with unknown murmur status" width="900"></video></p>
![Task](https://img.shields.io/badge/Task-Murmur%20Detection-blue?style=flat-square)
![Dataset](https://img.shields.io/badge/Dataset-CirCor%20DigiScope-0aa1a7?style=flat-square)
![Format](https://img.shields.io/badge/Format-Parquet%20%2B%20WAV-orange?style=flat-square)
![Recordings](https://img.shields.io/badge/Recordings-3%2C163-success?style=flat-square)
![Patients](https://img.shields.io/badge/Patients-942-blueviolet?style=flat-square)
![License](https://img.shields.io/badge/License-ODC--By%201.0-lightgrey?style=flat-square)
> **Unofficial mirror of the CirCor DigiScope Phonocardiogram Dataset v1.0.3 (the public training set of the George B. Moody PhysioNet Challenge 2022): 3,163 pediatric heart sound recordings from 942 patients at 4 kHz, with murmur annotations and S1/S2 segmentation, in a viewer-ready Parquet layout with playable, byte-identical WAV files.**
## Dataset Description
- **Homepage:** https://physionet.org/content/circor-heart-sound/1.0.3/
- **Paper:** https://doi.org/10.1109/JBHI.2021.3137048
- **Dataset DOI:** https://doi.org/10.13026/tshs-mw03
- **License:** ODC-By 1.0
## Disclaimer
This repository is **not** an official release of the CirCor DigiScope Phonocardiogram Dataset.
The dataset was created by Jorge Oliveira, Francesco Renna, Paulo Costa, Marcelo Nogueira, Ana Cristina Oliveira, Andoni Elola, Carlos Ferreira, Alípio Jorge, Ali Bahrami Rad, Matthew Reyna, Reza Sameni, Gari Clifford and Miguel Coimbra, from recordings made during the 2014 and 2015 "Caravana do Coração" screening campaigns in Northeast Brazil. It 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 recordings of real children and young people. Background sounds such as speech, crying or laughter occur in some recordings. 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 `circor-heart-sound-1.0.3.zip`. Every file in it matched the published `SHA256SUMS.txt`, and the zip holds exactly the listed files. The recording and patient counts match the Challenge 2022 page (3,163 recordings, 942 patients). Each patient's `.txt` description agrees field by field with `training_data.csv` and lists exactly that patient's files. Each WAV has a plain 44-byte PCM header that agrees with its `.hea` header, and `wfdb` reads the same samples. Every row was read back from Parquet and compared with the source, and the audio bytes are identical to the original files.
---
# Dataset Overview
Heart sounds were recorded with an electronic stethoscope at up to four auscultation locations per patient, in an ambulatory setting. The patients were 0 to 21 years old. One annotator, listening to and viewing the recordings, marked whether a murmur was present, absent or unclear for each patient, and described each murmur's timing, shape, pitch, grade, quality and locations. Separately, a pediatric cardiologist gave each patient an overall clinical outcome, normal or abnormal, based on history, examination, echocardiogram and other tests.
| Location code | Auscultation point | Recordings |
|---|---|---|
| `AV` | Aortic valve (2nd intercostal space, right sternal border) | 800 |
| `PV` | Pulmonary valve (2nd intercostal space, left sternal border) | 766 |
| `TV` | Tricuspid valve (left lower sternal border) | 732 |
| `MV` | Mitral valve (5th intercostal space, midclavicular line) | 861 |
| `Phc` | Any other location | 4 |
| Murmur (patient) | Patients | Outcome Normal | Outcome Abnormal |
|---|---|---|---|
| Present | 179 | 29 | 150 |
| Absent | 695 | 432 | 263 |
| Unknown | 68 | 25 | 43 |
This is the public training set, 60 % of the 1,568 patients. The validation and test sets (40 %) were held back for the Challenge. The PhysioNet page says they will be released, but version 1.0.3 does not contain them.
---
# Changes from the Official Release
- Packed into Parquet so the Dataset Viewer and `datasets` work directly. Each recording's original `.wav` file is stored byte for byte in the `audio` column, so it plays in the viewer.
- The segmentation `.tsv` is kept verbatim and also parsed into a list. The patient's labels and description are repeated on each recording row. The columns `subject_id`, `murmur_at_location`, `most_audible` and `annotated_s` are derived (see below), and `preview` is a plot of the recording.
- A `patients` config has one row per patient with every field of `training_data.csv`.
- The official zip is included unchanged in `original/`.
- No samples or labels were changed, added or removed.
---
# Dataset Structure
One `train` split. The organisers define no split of the public data.
## `default`: one row per recording (3,163 rows)
| Column | Content |
|---|---|
| `recording` | file name without extension, e.g. `2530_AV` or `50782_MV_2` |
| `patient_id` | the patient identifier from the file names |
| `subject_id` | derived: the smaller of `patient_id` and `additional_id`, so one child who attended both campaigns has one value |
| `location`, `location_index` | auscultation location and, for repeated recordings at one location, the index `n` from `XY_n` (otherwise null) |
| `audio` | the original WAV file (16-bit mono PCM, 4 kHz) |
| `sampling_rate`, `n_samples`, `duration_s` | 4000 Hz, length in samples and seconds |
| `segmentation` | the `.tsv` parsed: `start_s`, `end_s`, `state` (0 unannotated, 1 S1, 2 systole, 3 S2, 4 diastole) |
| `segmentation_tsv` | the `.tsv` file verbatim |
| `annotated_s` | derived: seconds covered by states 1 to 4 |
| `murmur_at_location` | derived: true if the patient's murmur locations include this recording's location, false if they don't or the murmur is absent, null if the murmur is unknown |
| `most_audible` | derived: true if this is the patient's most audible murmur location; null unless the murmur is present |
| `additional_id`, `campaign`, `age`, `sex`, `height_cm`, `weight_kg`, `pregnancy_status` | patient description |
| `murmur`, `murmur_locations`, `most_audible_location` | patient-level murmur label |
| `systolic_murmur_*`, `diastolic_murmur_*` | timing, shape, grading, pitch and quality (null if none) |
| `outcome` | the cardiologist's overall outcome, `Normal` or `Abnormal` |
| `header` | the `.hea` file verbatim |
| `preview` | PNG of the recording with S1 (red) and S2 (blue) marked |
## `patients`: one row per patient (942 rows)
The patient fields above plus `recording_locations` (as in `training_data.csv`), `n_recordings`, `recordings` and `description`, the patient's `.txt` file verbatim.
### Read before using the labels
- **The murmur and outcome labels are per patient, not per recording.** `murmur_at_location` is derived from the annotator's list of murmur locations. Recordings of a patient with a murmur at another location are labelled false. The annotator also graded murmurs from the locations that were recorded: when not every location was recorded, murmurs were graded I/VI by default, and III/VI includes III/VI and above.
- **`murmur` and `outcome` are different labels.** `murmur` is the annotator's judgement from the recordings. `outcome` is the cardiologist's diagnosis from the full examination, made without the digital recordings. They often disagree: 263 patients without a murmur have an abnormal outcome, and 29 with a murmur have a normal one.
- **70 children appear twice.** They attended both campaigns and have two patient IDs that point to each other through `additional_id`. That leaves 872 distinct children. Labels can differ between the two visits: the murmur label differs for 15 children, the outcome for 13 and the age group for 14. Use `subject_id` to keep both visits on the same side of a split.
- **The segmentation is partial.** It covers only stretches the physiologists judged to be good quality, and state 0 marks the rest. About 53 % of the audio is annotated, and 583 recordings have less than 5 s annotated. The S1/S2 boundaries came from three automatic algorithms, checked and corrected by a physiologist.
- **Segmentation quirks, kept as published:**
- `50782_MV_1.tsv`, the file added by the 1.0.3 fix, holds a single line `0 0 28`: no segmentation, with an undefined state 28.
- 15 other files end with a zero-length state-0 row.
- `50690_MV_2.tsv` (row 53) and `50690_TV.tsv` (row 39) jump back in time by 8.6 s and 7.2 s.
- 79 transitions in 45 files skip or repeat a state, for example S1 straight to diastole.
- Most boundaries meet exactly. There are 538 small gaps or overlaps, all but 10 under 10 ms, and 6 recordings have a segment ending after the audio ends.
- **Recordings at one patient's locations are not synchronised.** They were made one after another, so their lengths differ.
- **Clipping.** 1,970 of the 3,163 recordings reach full scale (−32768 or 32767) at least once, 83,638 samples in all (0.03 % of the samples).
- **Header fields.** The `.hea` initial-value and checksum fields don't describe the samples: the checksum never matches, and the initial value equals the first sample in only 21 recordings. The WAV data itself agrees with `wfdb`.
- **Recording length** ranges from 5.2 to 64.5 s, 20.1 h in total.
- **No exact ages.** `age` is a category (Neonate, Infant, Child, Adolescent, Young adult). It is missing for 74 patients. Height is missing for 116 and weight for 105.
## Usage
```python
# pip install datasets soundfile numpy
import io
import numpy as np
import soundfile as sf
from datasets import Audio, load_dataset
ds = load_dataset("dronefreak/CirCor-DigiScope-PCG", split="train")
ds = ds.cast_column("audio", Audio(decode=False)) # keep the original WAV bytes
row = ds[0]
x, fs = sf.read(io.BytesIO(row["audio"]["bytes"]), dtype="int16") # exact samples, fs = 4000
print(row["recording"], row["murmur"], row["murmur_at_location"], row["outcome"])
# S1 onsets in samples
s1 = [round(s["start_s"] * fs) for s in row["segmentation"] if s["state"] == 1]
# one row per patient, for patient-level labels and splits
patients = load_dataset("dronefreak/CirCor-DigiScope-PCG", "patients", split="train")
```
---
# Dataset Sources
## Citation
Please cite the dataset paper and the PhysioNet release:
```bibtex
@article{oliveira2022circor,
author = {Oliveira, Jorge and Renna, Francesco and Costa, Paulo Dias and Nogueira, Marcelo and Oliveira, Cristina and Ferreira, Carlos and Jorge, Al{\'i}pio and Mattos, Sandra and Hatem, Thamine and Tavares, Thiago and Elola, Andoni and Rad, Ali Bahrami and Sameni, Reza and Clifford, Gari D. and Coimbra, Miguel T.},
title = {The {CirCor} {DigiScope} Dataset: From Murmur Detection to Murmur Classification},
journal = {IEEE Journal of Biomedical and Health Informatics},
volume = {26},
number = {6},
pages = {2524--2535},
year = {2022},
doi = {10.1109/JBHI.2021.3137048}
}
@misc{PhysioNet-circor-heart-sound-1.0.3,
author = {Oliveira, Jorge and Renna, Francesco and Costa, Paulo and Nogueira, Marcelo and Oliveira, Ana Cristina and Elola, Andoni and Ferreira, Carlos and Jorge, Alipio and {Bahrami Rad}, Ali and Reyna, Matthew and Sameni, Reza and Clifford, Gari and Coimbra, Miguel},
title = {{The CirCor DigiScope Phonocardiogram Dataset}},
note = {Version 1.0.3, PhysioNet},
year = {2022},
doi = {10.13026/tshs-mw03}
}
```
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
The CirCor DigiScope Phonocardiogram Dataset is made available under the **Open Data Commons Attribution License v1.0 (ODC-By)**: https://physionet.org/content/circor-heart-sound/view-license/1.0.3/. This repository contains information from the CirCor DigiScope Phonocardiogram Dataset, published on PhysioNet. If you publicly use or redistribute this data or a work produced from it, keep this attribution and the license notice.