Skip to main content
Scientific Data logoLink to Scientific Data
. 2022 Jul 19;9:421. doi: 10.1038/s41597-022-01545-6

A large collection of real-world pediatric sleep studies

Harlin Lee 1, Boyue Li 1, Shelly DeForte 2, Mark L Splaingard 2, Yungui Huang 2, Yuejie Chi 1,, Simon L Linwood 3,
PMCID: PMC9296671  PMID: 35853958

Abstract

Despite being crucial to health and quality of life, sleep—especially pediatric sleep—is not yet well understood. This is exacerbated by lack of access to sufficient pediatric sleep data with clinical annotation. In order to accelerate research on pediatric sleep and its connection to health, we create the Nationwide Children’s Hospital (NCH) Sleep DataBank and publish it at Physionet and the National Sleep Research Resource (NSRR), which is a large sleep data common with physiological data, clinical data, and tools for analyses. The NCH Sleep DataBank consists of 3,984 polysomnography studies and over 5.6 million clinical observations on 3,673 unique patients between 2017 and 2019 at NCH. The novelties of this dataset include: (1) large-scale sleep dataset suitable for discovering new insights via data mining, (2) explicit focus on pediatric patients, (3) gathered in a real-world clinical setting, and (4) the accompanying rich set of clinical data. The NCH Sleep DataBank is a valuable resource for advancing automatic sleep scoring and real-time sleep disorder prediction, among many other potential scientific discoveries.

Subject terms: Sleep disorders, Paediatric neurological disorders, Paediatric research, Paediatric research, Biomarkers


Measurement(s) Polysomnogram • Electronic Health Record • Electroencephalogram Measurement • Electrocardiogram • Electrooculogram • Electromyogram
Technology Type(s) Polysomnography • Electronic Health Record System • Electroencephalography (EEG) • Electrocardiography • Electrooculography • Electromyography
Sample Characteristic - Organism Homo Sapiens
Sample Characteristic - Environment Hospital
Sample Characteristic - Location United States Of America

Background & Summary

Sleep is an active process associated with physiological changes that involve multiple organ systems, and is vital for the maturation and daily functioning of infants, children and adolescents. Consequently, disruption of the complex interplay between sleep and other physiological processes can lead to significant medical consequences1. Sleep disorders, like obstructive sleep apnea (OSA)2,3, can lead to derangements in function that contribute to significant morbidity and even mortality. Sleep can also be disrupted by many organ-specific diseases like asthma, sickle cell disease, renal failure, or depression that alter the course of a particular medical condition and result in a poorer quality of life.

Sleep disturbances in children are classified as behavioral insomnias of children, sleep-related breathing disorders, parasomnias, sleep-related movement disorders, circadian rhythm disorders or hypersomnias4. These sleep disorders may be associated with excessive daytime sleepiness (rare in young children), hyperactivity–impaired attention, poor school performance from impaired concentration and vigilance, and behavior problems including irritability.

Sleep problems suffer from under-reporting by parents and under-diagnosis by primary care physicians, but are conservatively estimated to occur in approximately 25% of healthy children younger than 5 years and in up to 80% of children with special health care needs. Estimates of prevalence of sleep disorders in children vary more widely for behavioral sleep problems like insomnia than organic sleep problems like OSA.

While some childhood sleep disorders need only medical history to be properly diagnosed and managed, some infants and children require an analysis of the child actually sleeping, called an overnight sleep study or polysomnography (PSG), to accurately diagnose their sleep-related condition. During an overnight PSG, the sleeping child’s physiological signals are recorded under the direct supervision of specially trained sleep technicians, who attach monitoring sensors to special computer software and adjust them during the night. The technician also provides observations about the child’s sleep that are invaluable in making an accurate diagnosis. Video monitoring is also incorporated into the PSG, allowing review of movements necessary to diagnose nocturnal seizures, which occur in about 20% of children with epilepsy.

The physiological data collected during a PSG provide a picture of clinically useful information about different sleep stages, sleep disruption, respiratory status during different sleep stages, leg movements, and changes in cardiac rate and rhythm during sleep. For instance, episodes of OSA may consist of decreased airflow in spite of normal respiratory effort in thoracic and abdominal belts, changes in electroencephalogram (EEG) pattern called arousals, cardiac deceleration, and oxygen desaturation. These findings may be mild during non-random eye movement (non-REM) sleep but profound during REM sleep.

Computational algorithms that learn from large amounts of data have seen remarkable success in healthcare, particularly with the proliferation of electronic health records (EHR) and improved sensors. Regrettably, without a curated and comprehensive dataset of substantial size and accessibility, pediatric sleep has not been able to fully benefit from such opportunities yet. As a first step, this data descriptor introduces the Nationwide Children’s Hospital (NCH) Sleep DataBank, which has 3,984 pediatric sleep studies on 3,673 unique patients conducted at NCH between 2017 and 2019, along with the patients’ longitudinal clinical data. They were gathered in the real-world clinical setting at NCH as opposed to, for example, a controlled clinical trial. The published PSG contain the patient’s physiological signals as well as the technician’s assessment of the sleep stages and descriptions of additional irregularities5. The accompanying 5.6 million records of clinical data are extracted from the EHR, and are separated into encounters, medications, measurements (e.g. body mass index), diagnoses, and procedures. The dataset is deposited in the National Sleep Research Resource (NSRR)6 and Physionet7,8, and can be requested from https://sleepdata.org/datasets/nchsdb or https://physionet.org/content/nch-sleep. Accompanying code in Python to assist users in interacting with the dataset is published at https://github.com/liboyue/sleep_study.

We expect the NCH Sleep DataBank to be used to study many problems related to pediatric sleep, including but not limited to:

  • Automatic sleep stage classification, especially algorithms that combine modalities beyond EEG or ECG913.

  • Automatic real-time sleep disorder (e.g. OSA) detection14,15.

  • Diagnosis prediction.

  • Patient subtyping. There is increasing evidence that many sleep disorders (e.g. insomnia16) are heterogeneous and have different subtypes. Identifying them can help us understand the disorder better and develop a more tailored course of treatment for different groups of patients.

  • Treatment (e.g. medications and procedures) efficacy analysis.

Methods

Sleep study data acquisition

The NCH Sleep DataBank contains sleep studies acquired under standard care at NCH between Dec. 16, 2017 and Dec. 31, 2019 using Natus Sleepworks versions 8 and 917,18. Physiological data collected during an overnight sleep study contain:

  • Electroencephalogram (EEG) to identify sleep stages,

  • Electromyelogram (EMG) of chin activity to help identify the decreased tone seen during REM sleep,

  • Leg EMG to measure leg movements,

  • Electrooculogram (EOG) to identify characteristic eye movements seen during REM sleep,

  • Electrocardiogram (ECG) to monitor cardiac rate and rhythm,

  • Nasal and oral sensors to measure airflow,

  • Thoracic and abdominal belts to measure chest and abdominal movements during breathing, which is helpful in demonstrating increased or decreased respiratory effort,

  • Pulse oximetry to measure blood oxygen saturation,

  • End-tidal carbon dioxide (CO2) measurement of exhaled air to indirectly measure blood CO2 to assess for hypoventilation.

Sleep studies were annotated in real time by technicians at the time of the study, and then were staged and scored by a second technician after the study was completed. Technicians annotated studies using a combination of free-form text entries and selections within Natus Sleepworks. Technicians tried to identify all events of interest, however each technician may have their own style of text annotation. Due to the variability in sleep stages in children, NCH does not use automatic scoring of sleep stages. All sleep stages were manually scored by a technician and then verified or changed by a physician board certified in sleep medicine.

Sleep studies were manually downloaded and converted to EDF + format between May 2019 and Feb. 2020 using Natus Sleepworks version 9. Any gaps in the time-series data were padded with zeros as part of the conversion. The specific acquisition equipment, setup, and montage all followed standard care protocol at NCH. While changes may have been made to some studies, the NCH protocol for PSG is in accordance with the rules and technical specifications recommended by the American Academy of Sleep Medicine10,11. Standard channel names are used and documented in the header of the EDF files, allowing inference of the montage.

Patient cohort

The NCH Sleep DataBank consists of 3,984 sleep studies performed on 3,673 unique patients. Of them, 3,400 patients have one sleep study in the dataset, 238 have two studies, and 35 patients have more than two studies, with a maximum of 5 sleep studies for one patient. In terms of gender distribution, 2,068 patients were male, and 1,604 were female, with one unknown. Table 1 shows the distribution of the unique patients’ races, where the majority of the patients were White, and about a fifth were Black or African American. In regards to ethnicity, 186 patients were Hispanic or Latino, 3,446 patients were Not Hispanic or Latino, and 41 had ethnicity of Other, Unknown, or No Information.

Table 1.

The distribution of 3,673 unique patients’ races.

Race description Count Percentage
White 2,433 66.24%
Black or African American 738 20.09%
Multiple races 277 7.54%
Asian 93 2.53%
Others and unknown 132 3.59%
Total 3,673 100%

The majority of patients (2,412) in the dataset were less than 10 years old at the time of the sleep study, as seen in Fig. 1. Figure 2 summarizes the length of care at NCH before and after the first sleep study. The length of care prior to first sleep study was calculated as the time between the patient’s earliest EHR entry (i.e. diagnosis, encounter, medication, measurement, procedure) and their first sleep study. If the patient’s earliest EHR entry was after the first sleep study, length of care is defined as 0. The length of follow up was calculated as the time between the patient’s first sleep study and their last recorded EHR entry. Patients had a median of 289 days of follow-up after their first sleep study, and 74% (2,718) had follow-up between 90 days and 2 years.

Fig. 1.

Fig. 1

Age at the time of sleep study, where 20 patients that are more than 30 years old are not shown.

Fig. 2.

Fig. 2

Length of care at NCH before and after first sleep study, where each patient has two entries: one negative for length of care prior to first sleep study (in years), and one positive for follow up after first sleep study (in days). One entry above 1200 days and 5 entries below −25 years are not shown.

Patient data linkage

Sleep study recordings and associated reports at NCH are stored in a database that is independent from the EHR, using Natus Sleepworks as a front end. It was therefore necessary to link patient information in two places. The first link was between the header information in the EDF + files and the patient data entered in Natus Sleepworks. The second link was between the patient information in Natus and the EHR.

A spreadsheet listing all sleep studies was exported from Natus Sleepworks. This listing included the date and time of each sleep study and patient information such as first and last name, date of birth and medical record number (MRN) for most sleep studies. Sleep studies were then downloaded from Natus in mini-batches, and exported to EDF + . Sleep study specific header information in the EDF + files were used to match these files to the Natus spreadsheet export. When ambiguity was present, or when MRNs were not present in Natus, we removed the EDF + file from our dataset. We then used each patient’s last name, date of birth, and MRNs extracted from Natus to retrieve patient records from the EHR. When matches could not be confidently made to the EHR, the sleep studies were removed from the dataset.

Data de-identification and IRB exemption

Each unique patient was given a random identifier (STUDY_PAT_ID), and each sleep study was given a separate random identifier (SLEEP_STUDY_ID). A single patient may have multiple sleep studies in the dataset, and therefore have multiple associated SLEEP_STUDY_IDs, but only one STUDY_PAT_ID. Sleep studies were then renamed (STUDY_PAT_ID)_(SLEEP_STUDY_ID).edf.

All EDF + headers were de-identified by replacing the first 256 bytes of the EDF + file with a standard de-identified header. As such, users are advised to ignore all header information in the EDF files (such as patientID, recordID, startdate, duration), but instead rely on the metadata in the accompanying .csv files to interpret the PSG results. Annotation channels were read from EDF + using Python MNE19 and written to text. All EDF + files were converted to EDF by removing the annotation channel using Luna (https://zzz.bwh.harvard.edu/luna). Annotation text files were then de-identified by replacing any word that was not in a whitelist with “XXX”. This process affected 10,888 annotations, which is about 0.22% of the total number of annotations (5,046,370). The whitelist was a combination of 162 common phrases found in the annotations obtained by manual inspection, and a larger whitelist used by the de-identification program Philter20. The Philter whitelist contains approximately 195,000 tokens of medical terms and codes and common medical abbreviations, in addition to 20,000 most common English words, and excludes the most common Social Security and Census names. The tab delimited, de-identified annotations were then renamed to match the EDF filenames.

To protect every patient’s privacy, random date shifts were applied to all data: for each patient (i.e. patients with the same STUDY_PAT_ID), one random date shift of +/− 180 days was chosen and applied to all data that are linked to the patient.

Finally, we considered the risk of re-identification through rare diagnoses. Say a malicious user of this dataset is interested in re-identifying a specific patient, and the attacker has some information about the patient such as their sex and race, as well as the fact that the patient has been diagnosed for a very rare genetic disease at NCH. If this diagnostic information is visible within the NCH Sleep DataBank, then the malicious user can likely figure out who this patient is, e.g. by searching for a female Asian child born between 2012 and 2016 with this very rare disease. Therefore, we redacted rare diagnosis codes from DIAGNOSIS.csv through the following procedure as an extra precaution.

The EHR in NCH and the diagnoses table in NCH Sleep DataBank (DIAGNOSIS.csv) contain several variables. One is DX_CODE (diagnosis code), which holds the International Classification of Diseases (ICD) code for each diagnosis. On Oct. 1, 2015, hospitals in the United States, including NCH, have switched from using ICD 9 (the 9th revision of ICD) codes to ICD 10 (the 10th revision of ICD) codes in EHR. Another relevant variable is DX_SOURCE_TYPE (diagnosis source type), which indicates whether the diagnosis was given at admission, presented as a part of the patient’s previous medical history, etc. We were interested in the ones labeled “Final Dx”, i.e. the final diagnoses the clinicians gave after relevant examinations and tests.

Using these variables, we defined rare diagnosis codes as ICD 10 or ICD 9 codes that were given as Final Dx to less than 10 unique patients in the entire NCH patient population (not limited to the NCH Sleep DataBank patients) during a given time period. Specifically, we queried (1) for every ICD 9 code, the number of unique NCH patients given the diagnosis as Final Dx between Jan. 1, 2000 and Sep. 30, 2015, and (2) for every ICD 10 code, the number of unique NCH patients given the diagnosis as Final Dx between Oct. 1, 2015 and Dec. 31, 2020. If a code had less than 10 unique patients in either ICD 9 or ICD 10 lists, it was deemed a rare diagnosis code for our purpose. We did not consider diagnoses before 2000 since the earliest diagnosis in NCH Sleep DataBank was from 2001.

Then, in every row of DIAGNOSIS.csv where a rare diagnosis code appeared, we changed the entries in DX_CODE, DX_NAME (diagnosis name), DX_ALT_CODE (corresponding ICD 10 codes for records before Oct 2015, and ICD 9 codes for those after Oct 2015), CLASS_OF_PROBLEM (“Stage 1”, “Chronic”, “Acute”, “Present upon Admission”), CHRONIC_YN (Indication of chronic disease) to the phrase “redacted”. This process affected a total of 6,460 rows and 834 unique patients in DIAGNOSIS.csv.

As this project concerns analysis on de-identified data, the project did not fit the definition of Human Subjects Research as defined by the United States Department of Health and Human Services and Food and Drug Administration. Therefore, this study received NCH Institutional Review Board (IRB) exemption with HIPAA waiver. The protocol that concerns the de-identification and processing of the data, which requires handling identified data, and the collection and publication of data and summary statistics, was approved under “STUDY00000505: Preparation of sleep study data” on September 22, 2019.

Data Records

The raw data for NCH Sleep DataBank8 is available at Physionet https://physionet.org/content/nch-sleep, or at National Sleep Research Resource (NSRR) https://sleepdata.org/datasets/nchsdb.

The NCH Sleep DataBank consists of two folders: Sleep_Data and Health_Data. Sleep_Data contains annotated PSG recordings, while Health_Data contains patient demographic and clinical data extracted from the EHR. Inside Sleep_Data, PSG sleep studies are provided in the EDF format, and annotations are provided in a separate tab-delimited file. Sleep studies and their matched annotations share the same file name (STUDY_PAT_ID)_(SLEEP_STUDY_ID) but different extensions (.edf, .tsv). Clinical data in Health_Data are in .csv files, and they are linked to the files in Sleep_Data through the same STUDY_PAT_ID. Variables follow EHR conventions, and descriptions can be found in the file Sleep_Study_Data_File_Format.pdf in Health_Data.

Sleep studies

The 3,984 sleep study files (.edf) contain PSG recordings taken in clinical setting at NCH. An example plot of the signals can be seen in Fig. 3. Almost half (1,972) of the files have 26 channels, a quarter (1,012) have 29, a fifth (820) have 25, and the rest have 28, 24, 40, 27, 9, or 56 channels, in decreasing order of frequency. The most commonly appearing channel names are summarized in Table 2. The channel PATIENT EVENT was not used and can be excluded from analyses. We note again that all EDF headers were replaced with a standard de-identified version as part of the de-identification process.

Fig. 3.

Fig. 3

Visual verification that a randomly chosen 30-second segment of sleep data on Natus Sleepworks (top) matches the sleep data in the corresponding EDF file (bottom), especially at the region of interest marked by red box. Natus Sleepworks may denoise or auto-scale some signals for the viewer.

Table 2.

List of 33 most common channels and their frequencies in 3,984 EDF files.

Channel name Description Count Percentage
EEG C3-M2 3,971 99.67%
EEG O1-M2 3,971 99.67%
EEG O2-M1 3,971 99.67%
EEG CZ-O1 3,971 99.67%
RATE Pulse oximeter signal integrity 3,970 99.65%
ETCO2 End tidal CO2 3,970 99.65%
CAPNO End tidal CO2 waveform 3,970 99.65%
RESP RATE Respiratory rate 3,970 99.65%
SPO2 (2,819) or OSAT (1,152) Oxygen saturation 3,970 99.65%
EEG F3-M2 3,969 99.62%
RESP THORACIC (2,821) or RESP CHEST (1,148) Thoracic inductance 3,969 99.62%
RESP ABDOMINAL (2,821) or RESP ABDOMEN (1,148) Abdominal inductance 3,969 99.62%
SNORE Measure of snore or air vibrations 3,968 99.60%
EEG C4-M1 3,962 99.45%
EEG F4-M1 3,960 99.40%
C-FLOW Continuous positive airflow waveform (PAP only) 3,943 98.97%
EOG LOC-M2 3,933 98.72%
EOG ROC-M1 3,931 98.67%
EMG CHIN1-CHIN2 3,782 94.93%
PRESSURE CPAP pressure (PAP only) 2,824 70.88%
EMG LLEG-RLEG 2,820 70.78%
ECG EKG2-EKG 2,820 70.78%
RESP AIRFLOW Airway pressure with a thermistor 2,820 70.78%
TIDAL VOL Exhaled tidal volume (PAP only) 2,818 70.73%
RESP PTAF Airway pressure with nasal cannula 2,817 70.71%
PATIENT EVENT 2,722 68.32%
TCCO2 Transcutaneous CO2 1,417 35.57%
SNORE_DR Derived snore from PTAF 1,148 28.82%
XFLOW Derived airflow from Resp chest and abdominal 1,148 28.82%
EMG LLEG + -LLEG- 1,146 28.77%
EMG RLEG + -RLEG- 1,146 28.77%
ECG LA-RA 1,146 28.77%
FLOW_DR Derived flow from Resp airflow 1,146 28.77%
RESP FLOW Airflow channel 1,146 28.77%
C-PRESSURE Positive pressure delivered via a PAP device 1,146 28.77%
EEG CHIN1-CHIN2 136 3.41%

Other 101 channels appear in less than 1% of the files. Brief descriptions are included for channels that are not measuring EEG, EOG, or EMG. CO2 is carbon dioxide, PAP is positive airway pressure, CPAP is continuous PAP, and PTAF is pressure transducer.

The total length of recording in the NCH Sleep DataBank amounts to 40,884 hours, where the minimum length of study is 3 minutes, the maximum is 16.5 hours, and the mean is 10.3 hours. 94.85% of the files contain between 8 and 12 hours of recordings, and the patients slept for a subset of those times. Users of the dataset should take into account that the majority of the recordings (3,204) are collected with a sampling frequency of 256 Hz, but 581 studies were sampled in 400 Hz, and the rest (199) in 512 Hz.

Sleep study annotations

The 3,984 annotation files (.tsv) contain a total of 5,046,370 annotations. The minimum number of annotations contained in a sleep study is 5, while the maximum is 6,047, and the mean value is 1,267. Each annotation has the following information, where an example is given in Table 3.

  • onset: The start time of the event since the beginning of the study in seconds.

  • duration: The length of the event in seconds.

  • description: The description of the event, which may be sleep stage label or free-form text entry by the NCH technician, or standard sleep event label by Natus Sleepworks.

Table 3.

Example annotations from a .tsv file.

Onset Duration Description
15985.234375 0.0 Chewing motion
15990.93359375 30.0 Sleep stage W
16002.09375 0.0 Movement
16002.34375 1.21875 Limb Movement

“Chewing motion” and “Movement” are free text entries by the NCH technician, while “Limb Movement” is a standard sleep event labeled by Natus Sleepworks.

35,821 unique descriptions appear in NCH Sleep DataBank. In particular, sleep stages are found in annotations with a duration of 30 seconds, where the descriptions include “Sleep stage W”, “Sleep stage N1”, “Sleep stage N2”, “Sleep stage N3”, “Sleep stage R”, or “Sleep stage?”. In sleep stage classification, W indicates awake, R stands for REM sleep, and N1, N2, N3 are non-REM stages 1, 2, 3, respectively. The annotation “Sleep stage?” typically occurs after “Lights On”, and physiological data acquired during that time can usually be ignored, as it indicates that the study has ended. Of the total number of annotations, 79.48% were related to sleep staging: 6.88% (347,294) are “Sleep stage?”, 13.19% (665,676) are “Sleep stage W”, 2.54% (128,410) are “Sleep stage N1”, 27.41% (1,383,765) are “Sleep stage N2”, 17.35% (875,486) are “Sleep stage N3”, and 12.11% (611,320) are “Sleep stage R”. This is equivalent to 30,539 hours of data with sleep stage labels. The mean length of such data per study is 7.7 hours, and 96.63% (3,850) of the studies contain between 6 and 10 hours of sleep data with stage labels.

Besides sleep stage labels, the most common events include: Oxygen Desaturation, Oximeter Event, EEG Arousal, Obstructive Hypopnea, Limb Movement, Gain/Filter Change, Move, Body Position: (Left, Right, Supine, Prone, Upright), Obstructive Apnea, Hypopnea, Central Apnea, and Mixed Apnea.

Free text annotations by the NCH technician typically describe events in the room, movements, and other patient activities, and will often have a duration of 0 seconds. Additionally, hypopneas, apneas, seizures, and other patient events may be mentioned in the free text annotations. On the other hand, standard sleep event annotations are selected in, or automatically applied by Natus Sleepworks17,18, and are likely to have varying durations other than 0 or 30 seconds.

While there may be some variation, the general format for sleep studies is as follows: Sleep staging begins at the annotation “Lights Off” and ends at “Lights On”. Descriptive annotations will typically precede sleep stage scoring at irregular intervals prior to “Lights Off”. Sleep stages are annotated in 30 second epochs, beginning at “Lights Off”; however not all studies include this annotation.

Clinical data

The NCH Sleep DataBank includes patient demographics and longitudinal clinical data such as encounters, medication, measurements, diagnoses, and procedures. The number of observations and variables for each file are listed in Table 4. More details about the variables can be found in Sleep_Study_Data_File_Format.pdf in the same folder. Note that the age of the patient at the time of sleep study is calculated in SLEEP_STUDY.csv. Measurements include body mass index, body mass index percentile, or blood pressure.

Table 4.

The variable names and number of observations for each patient data file in Health_Data. More details about the variables can be found in Sleep_Study_Data_File_Format.pdf in the same folder.

File name Variable names Rows
DEMOGRAPHIC.csv study pat ID, birth date, pcori gender cd, pcori race cd, pcori hispanic cd, gender descr, race descr, ethnicity descr, language descr, peds gest age num weeks, peds gest age num days 3,673
SLEEP_STUDY.csv study pat ID, sleep study ID, sleep study start datetime, sleep study duration datetime, age at sleep study days 3,984
SLEEP_ENC_ID.csv study pat ID, sleep study ID, study enc ID 3,964
ENCOUNTER.csv study enc ID, study pat ID, encounter date, visit start datetime, visit end datetime, adt arrival datetime, ed departure datetime, encounter type, visit type cd, visit type descr, ICU visit Y/N, prov ID, prov type, dept ID, dept specialty, admit source, hosp admit source, discharge disposition, discharge destination, drg code, drg name, visit reason 495,138
MEDICATION.csv study med ID, study enc ID, study pat ID, med start datetime, med end datetime, med order datetime, med taken datetime, med source type, quantity, days supply, frequency, effective drug dose, eff drug dose source value, drug dose unit, refills, RxNorm code, RxNorm term type, medication descr, generic drug descr, drug order status, drug action, route, route source value, prescribing prov ID, pharm class, pharm subclass, thera class, thera subclass 3,035,986
MEASUREMENT.csv study meas ID, study pat ID, study enc ID, meas recorded datetime, meas type, meas value number, meas value text, meas source, study prov ID 332,569
DIAGNOSIS.csv study dx ID, study enc ID, study pat ID, dx start datetime, dx end datetime, dx source type, dx enc type, dx code type, dx code, dx name, dx alt code, class of problem, chronic Y/N, prov ID 1,513,853
PROCEDURE.csv study proc ID, study pat ID, study enc ID, procedure datetime, study prov ID, proc ID NCH, proc code, proc code type, proc descr 283,599
PROCEDURE_SURG_HX.csv study surghx ID, study pat ID, proc noted date, proc start time, proc end time, proc code, cpt code, proc descr 10,190

Table 5 lists 20 diagnoses that are given to the highest number of unique patients in the NCH Sleep DataBank according to DIAGNOSIS.csv. Only diagnoses indicated as Final Dx in DX_SOURCE_TYPE were considered for this analysis. Any DX_CODEs recorded in ICD 9 code were converted to the corresponding ICD 10 codes, according to the ICD 10 codes provided under the variable DX_ALT_CODE in DIAGNOSIS.csv. 17 unique ICD 9 diagnoses (across 75 rows) that did not have corresponding ICD 10 codes were disregarded from further consideration. We leveraged the hierarchical structure of ICD 10 codes to get a broad overview of the patient population. For example, ICD 10 code “G47.33 Obstructive sleep apnea (adult) (pediatric)” fall under the more general ICD 10 code “G47.3 Sleep apnea” which in turn is under the even more general ICD 10 code “G47 Sleep disorders.” Therefore, two patients with “G47.33 Obstructive sleep apnea (adult) (pediatric)” and “G47.61 Periodic limb movement disorder”, respectively, counted as two patients diagnosed with “G47 Sleep disorders” in Table 5. Note that we started by considering all diagnoses in the EHR data, not just the diagnoses resulting from the specific sleep studies included the NCH Sleep DataBank.

Table 5.

20 diagnoses that are given to the highest number of unique patients in the NCH Sleep DataBank according to DIAGNOSIS.csv.

Diagnosis ICD 10 code Patients, N
Sleep disorders G47 3,379
 Sleep apnea G47.3 2,558
 Sleep disorder, unspecified G47.9 1,163
 Other sleep disorders G47.8 914
 Circadian rhythm sleep disorders G47.2 566
 Insomnia G47.0 388
 Hypersomnia G47.1 257
 Sleep related movement disorders G47.6 180
 Parasomnia G47.5 165
 Narcolepsy and cataplexy G47.4 47
Abnormalities of breathing R06 2,776
Encounter for immunization Z23 1,720
Chronic diseases of tonsils and adenoids J35 1,686
Encounter for general examination without complaint, suspected or reported diagnosis Z00 1,587
Acute upper respiratory infections of multiple and unspecified sites J06 1,537
Body mass index (BMI) Z68 1,417
Suppurative and unspecified otitis media H66 1,378
Symptoms and signs concerning food and fluid intake R63 1,369
Acute pharyngitis J02 1,260
Other symptoms and signs involving the circulatory and respiratory system R09 1,256
Other functional intestinal disorders K59 1,185
Cough R05 1,176
Lack of expected normal physiological development in childhood and adults R62 1,097
Encounter for follow-up examination after completed treatment for conditions other than malignant neoplasm Z09 1,068
Nausea and vomiting R11 1,051
Fever of other and unknown origin R50 1,043
Specific developmental disorders of speech and language F80 1,002
Asthma J45 991
Gastro-esophageal reflux disease K21 982

Note that the diagnoses were abstracted to a higher level before being counted. For example, patients with diagnosis “G47.33 Obstructive sleep apnea (adult) (pediatric)” were counted under G47 and G47.3.

Technical Validation

Validation of de-identification procedure

After EDF files were de-identified, we performed several validation steps to confirm that the data matched the original EDF + export. We loaded all channels from both the de-identified EDF file and the original EDF + export and confirmed that all signal channels matched. Finally, all files included in the data set have been read by Python MNE through this validation procedure and any files with read errors were not included in the data set.

Validation of data maps

We identified and tested three separate points in our data pipeline: (1) mapping of sleep study from Natus Sleepworks to the de-identified EDF file, (2) mapping of clinical data from EHR to the de-identified CSV files, and (3) the linkage between the sleep study and the clinical data.

The first was the mapping between the de-identified EDF file and the original sleep data file accessible via Natus Sleepworks. We first chose four random sleep studies (about 0.1% of the dataset), and a random 30-second segment from each study. Then we confirmed that the sleep data viewed on Natus Sleepworks (Fig. 3 top) matched data visualized from the corresponding EDF file in the published dataset (Fig. 3 bottom).

The second mapping was between the de-identified clinical data and the EHR. We extracted from the dataset all clinical data associated with the four random patients chosen in the first verification step, and confirmed that they are identical to the medical records viewed from the physician interface of the EPIC electronic medical record.

The last mapping we verified was SLEEP_STUDY_ID, the random identifier linking the sleep studies to the patient data. We verified this by matching the sleep study, which is represented by SLEEP_STUDY_ID, with its corresponding encounter in the patient data, which is represented by STUDY_ENC_ID. If an encounter had procedure codes and departmental codes associated with sleep study, had the same randomly assigned STUDY_PAT_ID as the sleep study, and the same starting date and time (within a window of +/− one hour) as the sleep study start time obtained from Natus Sleepworks, we considered it a match. We were able to match 3,964 sleep studies to encounter codes in the patient data using this method, therefore providing validation of a mapping between the sleep studies and patient data and consistency of date shifting. This information is provided in the file SLEEP_ENC_ID.csv.

Sleep stage classification for PSG data validation

We developed a baseline sleep stage classifier and included it in the codebase to demonstrate the technical quality as well as a potential utility of the dataset, especially the PSG data. This simple algorithm predicts the sleep stages (W, N1, N2, N3, R) based on 30 seconds of 7 EEG channels (F4-M1, O2-M1, C4-M1, O1-M2, F3-M2, C3-M2, CZ-O1) after they are down sampled to 128 Hz.

Wavelet transform is a powerful method that can flexibly represent the time-frequency content of a signal. As such, it is particularly useful in analyzing non-stationary signals, and have previously been used for EEG-based sleep stage classification2124. After applying multi-resolution Daubechies wavelet transform25 to each EEG channel, we computed summary statistics such as min, max, mean, and standard deviation of the coefficients, resulting in 84 features. A random forest classifier with 100 decision trees was then trained on these features using 67% of the dataset, and tested on the rest.

Table 6 reports the 3-fold stratified cross validation results on 3,928 sleep studies that had the 7 EEG channels, in addition to the results on some subgroups (0 to 1 year old, 1 to 2 years old, and 18 + patients). Fitting the classifier with default parameters from Scikit-learn26 took 1 hour on Intel Xeon Gold 3.60 GHz CPU in parallel; subgroups took less than 2 minutes each. This quick and straightforward algorithm, without any denoising or parameter tuning, achieves a classification accuracy of over 80% on the 222 adult sleep studies, suggesting high quality of the PSG recordings. Moreover, the difference in classification results between age groups supports the importance of having a dataset dedicated to pediatric sleep.

Table 6.

Sleep stage classification results of our baseline algorithm applied to different age groups.

Automated score sleep stage
W N1 N2 N3 R
Manual score sleep stage, N W (661,645) 63.1 0. 34.0 1.5 1.4
N1 (127,602) 23.9 0.9 68.1 2.1 5.0
N2 (1,375,678) 4.4 0. 88.6 5.8 1.1
N3 (871,200) 1.7 0. 27.2 70.7 0.
R (608,180) 6.7 0. 76.6 1.5 15.1
Manual score sleep stage, N W (52,979) 89.5 0.1 8.2 0.5 1.7
N1 (8,263) 37.5 2.5 47.4 0.6 12.1
N2 (80,275) 5.6 0.1 89.1 2.9 2.3
N3 (30,612) 2.6 0. 18.3 79.1 0.
R (24,006) 9.2 0. 24.7 0.6 65.5
Manual score sleep stage, N W (63,041) 83.3 0. 2.4 2.8 11.4
N1 (4,579) 28.7 1.1 24.7 6.2 39.2
N2 (38,525) 9.4 0. 62.9 10.2 17.4
N3 (64,512) 4.5 0. 3.7 83.3 8.5
R (60,167) 11.1 0. 5.0 7.1 76.8

(a) All age groups. 3,928 sleep studies and 3,644,305 samples. Overall accuracy is 64.4%.

(b) 18 years and older. 222 sleep studies and 196,135 samples. Overall accuracy is 81.1%.

(c) 0–1 year olds. 242 sleep studies and 230,824 samples. Overall accuracy is 76.6%.

One sample is a 30-second epoch of sleep. Cell (row i, column j) of the normalized confusion matrix indicates the percentage (%) of samples in stage i (manually scored by NCH technician) that were predicted to be in stage j (by our automated algorithm). Each row adds to 100%. Bolded diagonal entries are the percentages of samples in each stage that were correctly classified. Overall accuracy is the total number of correctly classified samples divided by the total number of samples in %. All numbers reported are averaged over 3-fold stratified cross validation trials and rounded to one decimal point. Standard deviation was <1% for all entries except one and not shown here.

Prader-Willi syndrome (PWS) patient analysis for EHR data validation

The availability of EHR allows the study of clinically meaningful patient subpopulations in the NCH Sleep DataBank. As a use case, we examine the sleep patterns of PWS patients within this dataset. To provide context, PWS is a rare genetic disorder that is estimated to affect 1 out of 10,000 to 30,000 people, and many researchers and clinicians are interested in sleep abnormalities and sleep-disordered breathing of PWS patients2731. We construct two PSG cohorts, where Cohort 1 includes the PSGs of PWS patients, and Cohort 2 consists of PSGs of obese but non-PWS patients. To control for the effect of OSA, both cohorts only consider PSGs during which patients were diagnosed OSA.

To construct the PSG cohorts, we first searched for all STUDY_ENC_IDs in DIAGNOSIS.csv during which a patient was given a final diagnosis of OSA. Then, we only kept the encounter IDs that were also present in SLEEP_ENC_ID.csv, as we have matched them with SLEEP_STUDY_IDs in an earlier validation step. This process identified 860 PSGs (763 unique patients) with OSA diagnoses. Among these, 16 PSGs (12 unique patients) were designated Cohort 1, since they were associated with STUDY_PAT_IDs that had a final diagnosis of PWS in the EHR. For reference, the NCH Sleep DataBank has a total of 34 unique patients who had final diagnosis of PWS in the EHR. On the other hand, 370 PSGs (311 unique patients) were associated with STUDY_PAT_IDs with obesity diagnoses but not PWS, and selected Cohort 2.

For every PSG in Cohort 1 and Cohort 2, we tallied the number of each sleep stage (W, N1, N2, N3, R) annotation, and extracted the following sleep characteristics: total length of sleep (sleep time) by counting 30 seconds of sleep for each sleep stage annotation, and distribution of sleep stages, e.g., W constitutes 20% of the sleep time. Table 7 describes summary statistics of the two cohorts’ sleep characteristics. In summary, the ease-of-navigation of the EHR data makes it possible to conduct disease-specific data mining using NCH Sleep DataBank, e.g. extraction of sleep characteristics such as apnea-hypopnea index (AHI), and refined statistical analysis that accounts for potential confounding variables such as BMI and age.

Table 7.

Summary statistics of sleep time and distribution of sleep stages for two PSG cohorts.

Cohort 1 Cohort 2
PSG, N 16 370
Unique patients, N 12 311
Age, mean ± s.d. (years) 10.5 ± 5.6 13.2 ± 4.7
Sleep time, mean ± s.d. (hours) 8.0 ± 0.7 7.5 ± 0.9
 W, mean ± s.d. (%) 14.4 ± 7.1 20.5 ± 16.1
 N1, mean ± s.d. (%) 4.1 ± 2.7 3.5 ± 3.4
 N2, mean ± s.d. (%) 45.2 ± 7.3 39.9 ± 11.5
 N3, mean ± s.d. (%) 20.5 ± 6.7 21.1 ± 8.5
 R, mean ± s.d. (%) 15.8 ± 6.0 15.0 ± 7.3
 N1 N2, mean ± s.d. (%) 49.3 ± 6.7 43.4 ± 11.8
 N1 N2 N3, mean ± s.d. (%) 69.8 ± 6.3 64.5 ± 13.4

Cohort 1: PSGs with OSA diagnoses on PWS patients, Cohort 2: PSGs with OSA diagnoses on obese but not PWS patients; sleep time: total amount of time spent in sleep stages W, N1, N2, N3, and R; s.d.: standard deviation. Percentage of each sleep stage is calculated by dividing time spent in each sleep stage by sleep time. All numbers are rounded to one decimal point.

Usage Notes

The NCH Sleep DataBank can potentially be used to study many problems related to pediatric sleep, including but not limited to:

  • Automatic sleep scoring (sleep stage classification): Sleep scoring divides sleep into two stages, rapid eye movement (REM), and non-REM, then further divides the latter into shallow sleep (stages N1 and N2) and deep sleep (stage N3)911, in addition to wake (Stage W). In typical pediatric clinical settings, this is a time-consuming and tedious process done by a technician. Many computational algorithms have shown promise for automatic sleep scoring in adults12, which encourage exploration on automatic sleep scoring for infants and children. Algorithms that combine PSG modalities beyond EEG or ECG13 especially warrant more investigation.

  • Automatic sleep disorder (e.g. obstructive apnea) detection: Large sets of PSG signals published with expert annotations can be leveraged to develop computational algorithms in sleep disorder detection, unleashing the potential of eventual real-time systems that read these signals and detect sleep disorders at their onsets14,15. OSA detection is particularly important, as OSA is associated with various cardiovascular, respiratory, and neurocognitive deficits and morbidity among infants and children2,3.

  • Diagnosis prediction: Statistical models that predict or measure the risk of diagnoses using other variables (e.g. other diagnoses, demographic, features from PSG, encounters, measurement values) can be constructed and validated to create hypotheses for further experiment.

  • Identifying patient subgroups: Given the demographics and medical history, patients can be divided into clinically meaningful subgroups before further analysis, as demonstrated in this paper for PWS. Additionally, data-driven approaches may be developed to reveal clusters within the patient population, which could affect their symptoms or best courses of treatment, e.g. as suggested for insomnia16.

  • Treatment efficacy analysis: Retrospective studies using the accompanying longitudinal clinical data (e.g. medications and procedures) can be used to analyze efficacy of different treatments options.

Acknowledgements

Research reported in this publication was supported by the National Institute Of Biomedical Imaging And Bioengineering of the National Institutes of Health under Award Number R01EB025018. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. The authors thank Tim Held for data identification, Melody Kitzmiller for data query, Dan Digby for data pipelines, Rajesh Ganta for data validation, Iris Karhoff for the interpretation of PSG channel names, Rahul Ragesh, Ramachandra Mannava, and Jacob Hoffman for help with sleep stage classifier development, Daniel Mobley and Michael Rueschman for publishing the data to NSRR, and Lucas McCullum and Tom Polland for publishing the data to Physionet.

Author contributions

Y.C. and S.L.L. designed and supervised the study. S.D., Y.H., B.L. and H.L. prepared the dataset. M.L.S. provided clinical interpretations. H.L., B.L. and S.D. conducted data analysis and technical validation. H.L., Y.C., S.D., M.S., Y.H., B.L. and S.L.L. drafted the manuscript.

Code availability

The code that was used to analyze patient data, read EDF files, run baseline sleep stage classifier, and generate figures and tables in this paper is published at https://github.com/liboyue/sleep_study.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Yuejie Chi, Email: yuejiechi@cmu.edu.

Simon L. Linwood, Email: simon.linwood@ucr.edu

References

  • 1.Splaingard, M. L. & May, A. Sleep disturbances (nonspecific). In McInerny, T. K. et al. (eds.) American Academy of Pediatrics Textbook of Pediatric Care, chap. 194 (American Academy of Pediatrics, 2016).
  • 2.Lumeng JC, Chervin RD. Epidemiology of pediatric obstructive sleep apnea. Proc. Am. Thorac. Soc. 2008;5:242–252. doi: 10.1513/pats.200708-135MG. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Beebe DW, et al. Neuropsychological effects of pediatric obstructive sleep apnea. J. Int. Neuropsychol. Soc. 2004;10:962. doi: 10.1017/S135561770410708X. [DOI] [PubMed] [Google Scholar]
  • 4.American Academy of Sleep Medicine. International classification of sleep disorders, 3rd edn (American Academy of Sleep Medicine, 2014).
  • 5.Kushida CA, et al. Practice parameters for the indications for polysomnography and related procedures: an update for 2005. Sleep. 2005;28:499–523. doi: 10.1093/sleep/28.4.499. [DOI] [PubMed] [Google Scholar]
  • 6.Zhang G-Q, et al. The national sleep research resource: towards a sleep data commons. Journal of the American Medical Informatics Association. 2018;25:1351–1358. doi: 10.1093/jamia/ocy064. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Goldberger AL, et al. Physiobank, physiotoolkit, and physionet: components of a new research resource for complex physiologic signals. circulation. 2000;101:e215–e220. doi: 10.1161/01.cir.101.23.e215. [DOI] [PubMed] [Google Scholar]
  • 8.Lee H, Li B, Huang Y, Chi Y, Lin S. 2021. NCH sleep databank: a large collection of real-world pediatric sleep studies with longitudinal clinical data (version 3.1.0) PhysioNet. [DOI]
  • 9.Grigg-Damberger M, et al. The visual scoring of sleep and arousal in infants and children. J. Clin. Sleep Med. 2007;3:201–240. doi: 10.5664/jcsm.26819. [DOI] [PubMed] [Google Scholar]
  • 10.Berry, R. B. et al. The AASM manual for the scoring of sleep and associated events: rules, terminology and technical specifications. Version 2.4. (American Academy of Sleep Medicine, 2017).
  • 11.Berry, R. B. et al. The AASM manual for the scoring of sleep and associated events: rules, terminology and technical specifications. Version 2.5. (American Academy of Sleep Medicine, 2018).
  • 12.Fiorillo L, et al. Automated sleep scoring: A review of the latest approaches. Sleep Med. Rev. 2019;48:101204. doi: 10.1016/j.smrv.2019.07.007. [DOI] [PubMed] [Google Scholar]
  • 13.Yan R, et al. Multi-modality of polysomnography signals’ fusion for automatic sleep scoring. Biomed. Signal Process. Control. 2019;49:14–23. doi: 10.1016/j.bspc.2018.10.001. [DOI] [Google Scholar]
  • 14.Mendonca F, Mostafa SS, Ravelo-García AG, Morgado-Dias F, Penzel T. A review of obstructive sleep apnea detection approaches. IEEE J. Biomed. Health Inform. 2018;23:825–837. doi: 10.1109/JBHI.2018.2823265. [DOI] [PubMed] [Google Scholar]
  • 15.Xie B, Minn H. Real-time sleep apnea detection by classifier combination. IEEE Trans. Inf. Technol. Biomed. 2012;16:469–477. doi: 10.1109/TITB.2012.2188299. [DOI] [PubMed] [Google Scholar]
  • 16.Benjamins JS, et al. Insomnia heterogeneity: characteristics to consider for data-driven multivariate subtyping. Sleep Med. Rev. 2017;36:71–81. doi: 10.1016/j.smrv.2016.10.005. [DOI] [PubMed] [Google Scholar]
  • 17.SleepWorks 8 reference manual (Natus Medical Incorporated, 2017).
  • 18.SleepWorks 9 reference manual (Natus Medical Incorporated, 2017).
  • 19.Gramfort, A. et al. MEG and EEG data analysis with MNE-Python. Front. Neurosci. 7, 267. [DOI] [PMC free article] [PubMed]
  • 20.Norgeot B, et al. Protected Health Information filter (Philter): accurately and securely de-identifying free-text clinical notes. NPJ Digit. Med. 2020;3:1–8. doi: 10.1038/s41746-020-0258-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Ebrahimi, F., Mikaeili, M., Estrada, E. & Nazeran, H. Automatic sleep stage classification based on EEG signals by using neural networks and wavelet packet coefficients. In 2008 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, 1151–1154 (IEEE, 2008). [DOI] [PubMed]
  • 22.Fraiwan L, Lweesy K, Khasawneh N, Wenz H, Dickhaus H. Automated sleep stage identification system based on time–frequency analysis of a single EEG channel and random forest classifier. Comput. Methods Programs Biomed. 2012;108:10–19. doi: 10.1016/j.cmpb.2011.11.005. [DOI] [PubMed] [Google Scholar]
  • 23.Hassan AR, Bhuiyan MIH. A decision support system for automatic sleep staging from EEG signals using tunable Q-factor wavelet transform and spectral features. J. Neurosci. Methods. 2016;271:107–118. doi: 10.1016/j.jneumeth.2016.07.012. [DOI] [PubMed] [Google Scholar]
  • 24.Şen B, Peker M, Çavuşoğlu A, Çelebi FV. A comparative study on classification of sleep stage based on EEG signals using feature selection and classification algorithms. J. Med. Syst. 2014;38:18. doi: 10.1007/s10916-014-0018-0. [DOI] [PubMed] [Google Scholar]
  • 25.Daubechies I. Orthonormal bases of compactly supported wavelets. Comm. Pure Appl. Math. 1988;41:909–996. doi: 10.1002/cpa.3160410705. [DOI] [Google Scholar]
  • 26.Pedregosa F, et al. Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 2011;12:2825–2830. [Google Scholar]
  • 27.Vela-Bueno A, et al. Sleep in the prader-willi syndrome: clinical and polygraphic findings. Arch. Neurol. 1984;41:294–296. doi: 10.1001/archneur.1984.04050150072020. [DOI] [PubMed] [Google Scholar]
  • 28.Hertz G, Cataletto M, Feinsilver SH, Angulo M. Sleep and breathing patterns in patients with prader willi syndrome (pws): effects of age and gender. Sleep. 1993;16:366–371. doi: 10.1093/sleep/16.4.366. [DOI] [PubMed] [Google Scholar]
  • 29.Nixon GM, Brouillette RT. Sleep and breathing in prader-willi syndrome. Pediatr. Pulmonol. 2002;34:209–217. doi: 10.1002/ppul.10152. [DOI] [PubMed] [Google Scholar]
  • 30.Meyer SL, et al. Outcomes of adenotonsillectomy in patients with prader-willi syndrome. Arch. Otolaryngol. Head Neck Surg. 2012;138:1047–1051. doi: 10.1001/2013.jamaoto.64. [DOI] [PubMed] [Google Scholar]
  • 31.Pavone M, et al. Sleep disordered breathing in patients with prader–willi syndrome: A multicenter study. Pediatr. Pulmonol. 2015;50:1354–1359. doi: 10.1002/ppul.23177. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Citations

  1. Lee H, Li B, Huang Y, Chi Y, Lin S. 2021. NCH sleep databank: a large collection of real-world pediatric sleep studies with longitudinal clinical data (version 3.1.0) PhysioNet. [DOI]

Data Availability Statement

The code that was used to analyze patient data, read EDF files, run baseline sleep stage classifier, and generate figures and tables in this paper is published at https://github.com/liboyue/sleep_study.


Articles from Scientific Data are provided here courtesy of Nature Publishing Group

RESOURCES