If you find this code useful, please cite:
Lee H, Li B, DeForte S, Splaingard M, Huang Y, Chi Y, & Lin S. NCH Sleep DataBank: A Large Collection of Real-world Pediatric Sleep Studies. Preprint at https://arxiv.org/abs/2102.13284 (2021)
The NCH Sleep DataBank can be accessed from https://sleepdata.org/datasets/nchsdb and https://physionet.org/content/nch-sleep/.