Literature DB >> 35749799

The Sleep Well Baby project: an automated real-time sleep-wake state prediction algorithm in preterm infants.

Thom Sentner1, Xiaowan Wang2, Eline R de Groot2, Lieke van Schaijk1, Maria Luisa Tataranno2,3, Daniel C Vijlbrief2, Manon J N L Benders2,3, Richard Bartels1, Jeroen Dudink2,3.   

Abstract

STUDY
OBJECTIVES: Sleep is an important driver of early brain development. However, sleep is often disturbed in preterm infants admitted to the neonatal intensive care unit (NICU). We aimed to develop an automated algorithm based on routinely measured vital parameters to classify sleep-wake states of preterm infants in real-time at the bedside.
METHODS: In this study, sleep-wake state observations were obtained in 1-minute epochs using a behavioral scale developed in-house while vital signs were recorded simultaneously. Three types of vital parameter data, namely, heart rate, respiratory rate, and oxygen saturation, were collected at a low-frequency sampling rate of 0.4 Hz. A supervised machine learning workflow was used to train a classifier to predict sleep-wake states. Independent training (n = 37) and validation datasets were validation n = 9) datasets were used. Finally, a setup was designed for real-time implementation at the bedside.
RESULTS: The macro-averaged area-under-the-receiver-operator-characteristic (AUROC) of the automated sleep staging algorithm ranged between 0.69 and 0.82 for the training data, and 0.61 and 0.78 for the validation data. The algorithm provided the most accurate prediction for wake states (AUROC = 0.80). These findings were well validated on an independent sample (AUROC = 0.77).
CONCLUSIONS: With this study, to the best of our knowledge, a reliable, nonobtrusive, and real-time sleep staging algorithm was developed for the first time for preterm infants. Deploying this algorithm in the NICU environment may assist and adapt bedside clinical work based on infants' sleep-wake states, potentially promoting the early brain development and well-being of preterm infants. © Sleep Research Society 2022. Published by Oxford University Press on behalf of the Sleep Research Society.

Entities:  

Keywords:  automated sleep staging; machine learning; neonatal intensive care; preterm; sleep

Mesh:

Year:  2022        PMID: 35749799      PMCID: PMC9548667          DOI: 10.1093/sleep/zsac143

Source DB:  PubMed          Journal:  Sleep        ISSN: 0161-8105            Impact factor:   6.313


To the best of our knowledge, this is first time that a nonobtrusive, real-time bedside automated sleep–wake state classification method is developed for preterm infants. Compared to gold standard polysomnography, our algorithm doesn’t require any additional electrodes and opens up unique opportunities for routine sleep assessment and long-term monitoring of sleep patterns in the NICU environment, which are especially valuable in improving the quality of neonatal health care and in facilitating neuroprotective Interventions. By tracking sleep-wake transitions in the real clinical setting, clinicians and caregivers are able to plan elective care based on the infant’s sleep–wake states, thus protecting their sleep quality and promoting optimal early brain development.

Introduction

Annually, 15 million infants are born before 37 completed weeks of gestational age (GA) [1]. Preterm infants experience a sudden environmental change, from the safe womb to an incubator in the neonatal intensive care unit (NICU), affecting critical developmental processes and may lead to lifelong problems [2]. During their NICU stay, preterm infants are sensitive to well-known risk factors for atypical neurodevelopment, such as stress and pain [3]. Sleep is essential for promoting optimal early brain development [4-6]. Four major sleep–wake states can be discerned in preterm infants: active sleep (AS), quiet sleep (QS), intermediate sleep (IS), and wake (W) [7, 8]. Given the different roles of each sleep–wake state in early development, it is necessary that the infant experiences all these states with sufficient quality and quantity [9, 10]. However, preterm infants in the NICU are usually exposed to a myriad of extrinsic stimuli that radically alter their sleep-wake states [11, 12]. Therefore, it would be ideal to schedule elective interventions and care procedures in the NICU based on the infants’ sleep–wake states [13, 14]. Different sleep–wake states have unique behavioral and physiological characteristics [15]. AS is characterized by high motor activity levels, rapid brain activity, and irregular cardiorespiratory activity. The untrained observer can easily confuse AS with a W state. QS is characterized by low motor activity, slower brain activity, and more regular cardiorespiratory features. The W state can be subdivided into multiple stages or behaviors, such as drowsy, or crying. Sleep–wake states in preterm infants are usually evaluated manually at the NICU, either by the direct observation of behavioral signs, or by the visual assessment of multiple physiological parameters recorded via polysomnography (PSG) [15-17]. The most valuable PSG parameters for preterm sleep assessment include electroencephalogram (EEG), electrocardiogram (ECG), and respiratory signals [16]. However, behavioral sleep observation and PSG methods are significantly limited by the time-consuming nature of training clinical staff and of the scoring process [17]. Moreover, the two manual sleep assessment techniques require significant expertise for final data interpretation. Thus, real-time sleep annotation results are scarce. For these reasons, it is desirable to design a nonobtrusive, real-time bedside automated sleep–wake state classification method. Machine learning (ML) classification techniques have exhibited great potential for identifying sleep–wake states automatically in preterm infants [18-24]. However, a common factor of the existing automated sleep staging methods is that they could not be easily implemented in NICUs, with the main concern being the availability of data. Most of these methods were developed based on multichannel EEG [18-23], which is not commonly used in NICUs and requires additional electrodes that may damage the vulnerable skin of preterm infants. Furthermore, these EEG-based algorithms were only able to distinguish between QS and non-QS stages despite the importance of AS in brain development [10, 25, 26]. Our group has demonstrated that cardiorespiratory characteristics, especially heart rate (HR) and respiration frequency, play an important role in distinguishing between sleep–wake states [27]. Until now, however, a reliable automated sleep staging model based on these parameters has not been readily available for preterm infants admitted to the NICU. A recent study conducted by Werth et al. [24] employed a convolutional neural network (CNN)-based algorithm combining HR variability (HRV), ECG data, and patient information to distinguish between sleep–wake states of preterm infants, with a kappa range between 0.33 and 0.44. However, using HRV and other ECG features requires data with a high sampling rate (250–500 Hz), which is not available at most NICUs [28]. The current study aimed to develop an automatic system with which preterm sleep–wake states can be easily classified at the bedside in NICUs. To broaden its applicability, our goal was to build a system based on vital physiological parameters at a low sampling rate, which is widely available in most NICUs.

Methods

Patient inclusion

The current study employed two independent datasets of preterm infants admitted to the NICU of the Wilhelmina Children’s Hospital (WKZ), Utrecht, the Netherlands. The first dataset (37 infants; postmenstrual age [PMA] 31.1 ± 1.5 weeks) was used to train and evaluate the performance of the automated sleep classification algorithm, while the second dataset (9 infants; PMA 30.9 ± 1.3) was used to validate the algorithm. Exclusion criteria were: congenital malformations, seizures, major brain damage or abnormalities, and mother’s use of recreational drugs during pregnancy. Written informed consent was obtained from parents before enrollment. Permission to use patient data was obtained from the Medical Ethical Review Committee of the University Medical Center (UMC) Utrecht (No. 21-066-C). Clinicians pseudonymized all data prior to the analysis. Patient demographics were compared between the two datasets using Student’s t-test (t value) for continuous variables, Mann–Whitney U test (Z score) for ordinal variables, and chi-squared test (χ 2) for categorical variables.

Sleep observation

A behavioral sleep–wake state classification system developed in-house was used for sleep observation, producing four different sleep–wake states: AS, QS, IS, and W [29]. Four observers performed sleep–wake state annotations for the training dataset and two other observers for the validation dataset. A single observer was present in each run. The observers recorded sleep–wake states at the end of a 1-minute time window. During observation, a confidence score of +1, 0, or −1 was assigned to each window, corresponding to high-to-low confidence level of an observer for a specific window. For both datasets, each infant was observed for approximately 3 consecutive hours. For the validation dataset, one infant was observed at two separate instances days apart. Sleep–wake state and confidence score distributions were compared between the two datasets using multivariate analysis of variance (MANOVA) according to Wilks’ lambda (Λ) statistic. Significant MANOVA tests were followed by univariate analysis of variance post-hoc tests, with p-values corrected using Bonferroni correction. The 95% confidence intervals (CIs) on the sleep–wake state distributions were generated from 250-fold bootstrapping with replacement. To better account for correlations between consecutive 1-minute observations, the full data from single observation runs of patients were resampled to create simulated populations rather than resampling individual 1-minute observations.

Physiological data collection

The vital physiological parameters were measured using IntelliVue MP70 patient monitors (Philips Healthcare, Best, the Netherlands) and recorded by a software solution developed in-house (BedBase, UMC Utrecht, the Netherlands). For each patient admitted to the NICU, HR, respiration rate (RR), and oxygen saturation (SpO2) were routinely monitored. Except for the HR in the validation dataset, all signals were acquired with a sampling rate of 0.4 Hz. Due to a software update, the sampling frequency of the HR for validation patients was 1 Hz. A down-sampling procedure from 1 Hz to 0.4 Hz was applied to these data to ensure a homogeneous database. For each included patient, 24-hour reference data were collected to correct signals for inter-patient variability. Given the rapid neonatal developmental changes, a 24-hour period with consecutive data availability was selected as close as possible in time to the observation period.

Data cleaning: observations

To avoid bias, all IS states (considered as an inherently noisy label), observations explicitly indicated as uncertain (i.e. confidence score of −1), and missing periods (e.g. due to a clinical intervention during the observation period) were excluded from further analysis. In total, 34.3% of raw observation data (2956/8605 min) were excluded.

Data cleaning: physiological parameters

Missing data points in the physiological data were removed from further analysis. Using the mean and standard deviation of the 24-hour reference data, HR and RR data were corrected for inter-patient variability by applying a standard scalar (Equation S1). Patients who did not have a consecutive 24-hour reference data in the 3.5 days before or after the observation period were excluded (7/37 patients in the training dataset; no patients in the validation dataset). A rescaling correction was applied to the reference data to ensure similar distributions between the 3-hour observation and reference period (see Supplementary Section 1). The reference correction procedure was not applied for validation patients to ensure generalizability to a real clinical setting.

Feature calculation: physiological parameters

Subsequently, a comprehensive set of time-series features was calculated based on HR, RR, and SpO2 parameters using tsfresh for 60-, 120-, 240-, and 480-s time windows preceding each epoch. Observations with > 50% missing data for any of the feature windows were removed from further analysis (86/3251 min in the training set). For each feature window, the following nine statistics were calculated: median, mean, variance, maximum, minimum, linear trend slope, linear trend intercept, linear trend p-value, and linear trend R-value

ML model development and bedside implementation

Three commonly used classification methods were chosen for model development: logistic regression, decision tree, and random forest. Logistic regression is a simple model that makes predictions based on a linear combination of input features. Decision trees produce prediction rules by recursively dividing data into subgroups that are homogeneous until a final prediction is reached. Random forest is an ensemble of decision trees each trained on a random subset of the data and the prediction is made by majority voting. As an ensemble learning method, the random forest generally outperforms the other two classifiers but is less interpretable [30]. The three classifiers were trained using nested cross-validation (nCV) on the training dataset (see Figure 1 for an overview of the whole workflow). In both the inner and outer cross-validation loop, a fourfold grouped, stratified split was applied, with grouping on a patient level and stratification on the amount of wake states. Within the inner loop, training data were randomly oversampled on a patient level to equalize the amount of data per patient. Hyperparameters were optimized in the inner loop using grid search (see Supplementary Table S1). The outer loop was used to estimate out-of-sample performance for each model. The macro-averaged area-under-the-receiver-operator-characteristic (AUROC) was maximized and used to assess model performance. This metric represents the predictive performance of the classifier over all possible threshold values for all classes and is insensitive to the class imbalance present in our dataset [31].
Figure 1.

Schematic representation of the machine-learning model development. The nested cross-validation procedure was applied to select the random-forest classifier over other models and identify its optimal hyperparameters. The regular cross-validation procedure was applied to approximate out-of-sample performance using the training dataset, which was later validated using the validation dataset.

Schematic representation of the machine-learning model development. The nested cross-validation procedure was applied to select the random-forest classifier over other models and identify its optimal hyperparameters. The regular cross-validation procedure was applied to approximate out-of-sample performance using the training dataset, which was later validated using the validation dataset. After selecting the best model via the nCV procedure, the inner loop was applied once more using all training data. We used an elbow method to fix hyperparameters and to choose a less overfit model at the expense of a slight decrease in model performance (see Supplementary Section 2). Subsequently, a regular cross-validation procedure was applied to the model with fixed hyperparameters, and prediction probabilities were calibrated using isotonic regression in a separate cross-validation procedure. Model calibration was evaluated using the Brier score (BS) and Brier skill score (BSS). The BS ranges from 0 to 1, with 0 implying that forecasted probabilities match observed probabilities. The BSS indicates whether the calibration of one model is better than that of another, with higher values indicating better performance. Model predictions for training samples were calculated using cross-validation to better balance out-of-sample errors and ensure generalizability of results. Feature importance was assessed through SHapley Additive exPlanations (SHAP) values [32]. A final calibrated model was fitted on all training data and applied to the validation dataset. The 95% CIs on the model performance were generated from 250-fold bootstrapping with replacement of whole observation runs of patients. Finally, as the aim of the current study was to develop a sleep–wake state classification algorithm that can be continuously available for preterm infants at the NICU, an architecture was designed to allow real-time predictions at the bedside. Data version control was applied to guarantee proper architecture functionality, and code tests were written.

Comparison with previous state-of-the-art methods

To provide a clear view of the pros and cons of the proposed sleep–wake state classification algorithm, we compared it with seven state-of-the-art methods that were previously developed for preterm sleep staging. Werth et al. [24] employed a sequential CNN model to classify AS and QS using ECG and HRV features. Koolen et al. [18] trained a support vector machine (SVM) classifier with a set of EEG characteristics as input to identify AS and QS. The remaining five studies were carried out by the same research group. They used eight-channel EEG signals to detect QS from non-QS states, in which least squares SVM (LS-SVM) [19], cluster-based adaptive sleep staging (CLASS) [20], deep CNN [21], end-to-end CNN [22], and multiscale deep CNN [23] techniques were adopted, respectively.

Software

Preprocessing and modeling were performed in Python 3.7 using the packages NumPy 1.20.3, pandas 1.2.5, scikit-learn 1.0.1, SciPy 1.6.3, shap 0.36.0, statsmodels 0.11.1, and tsfresh 0.17.0.

Results

Patient demographics

Patient characteristics are shown in Table 1, with respective statistical tests summarized in Supplementary Table S2. The training dataset consisted of 30 patients ranging between 28.3 and 33.5 weeks PMA. The validation dataset comprised 9 patients ranging between 29.0 and 33.3 weeks PMA. None of the patient characteristics differed significantly (p-values ≥ .05) apart from the per-epoch confidence score counts (p-value < .001). Furthermore, W was the clear minority class, observed in 8.3% of time points in the training dataset, while AS and QS were observed 37.1% and 32.7%, respectively.
Table 1.

Summarized patient demographics, observation, and parameter data, for the training and validation datasets.

VariableTraining patients (N = 30)Validation patients (N = 9)
Gender, male, % (n)60% (18)56% (5)
Delivery method, % (n)
 Spontaneous37% (11)44% (4)
 Cesarean section47% (14)33% (3)
 Medicinally induced labor0% (0)11% (1)
 Unknown17% (5)11% (1)
Birth weight, g, mean ± SD1156 ± 3681215 ± 355
Multiple birth, % (n)33% (10)0% (0)
Apgar score, median (Q1, Q3) [n unknown]
 At 1 min5 (3, 7) [8]4 (3, 6) [5]
 At 5 min7 (6, 8) [8]6 (4, 6) [5]
 At 10 min8 (8, 9) [11]8 (5, 8) [5]
Gestational age, weeks, mean ± SD28.9 ± 2.029.0 ± 1.4
Postmenstrual age at study, weeks, mean ± SD31.2 ± 1.530.9 ± 1.3
Observation period length per patient, minutes, median (Q1, Q3)180 (178, 180)180 (180, 180)
Observed sleep-wake states, % (n)
 Confidence score −119.5% (1035)7.8% (138)
 Confidence score 045.7% (2424)73.5% (1307)
 Confidence score 134.9% (1851)18.7% (333)
Observed sleep-wake states with confidence score ≥0, % (X – X%, 95% C.I.) (n)
 Active sleep37.1% (30.5–43.0%) (1584)48.3% (43.2–54.1%) (792)
 Intermediate sleep21.9% (19.4–24.7%) (938)23.0% (18.7–27.7%) (378)
 Quiet sleep32.7% (27.0–38.8%) (1399)21.0% (16.8–25.7%) (344)
 Wake8.3% (5.3–12.1%) (354)7.7% (3.4–11.9%) (126)
Summarized patient demographics, observation, and parameter data, for the training and validation datasets.

Model performance

The following macroaveraged AUROCs for the three classifiers were obtained from the nCV procedure: 0.710 ± 0.039 (decision tree), 0.750 ± 0.044 (logistic regression), and 0.782 ± 0.038 (random forest). Random forest was selected as the reference model, as it performed best, and its hyperparameters were fixed (see Supplementary Section 2). Subsequent discussion will refer to this model. Model generalization was tested by applying the random-forest model to the validation dataset. An extensive overview of performance metrics can be found in Table 2. The CIs of all metrics overlap between the two datasets, indicating that the model generalizes to unseen data. The properties and performance of our algorithm are compared with recently proposed state-of-the-art sleep staging methods in Table 3.
Table 2.

Overview of performance metrics of the regular cross-validation procedure and validation dataset, with 95% CI values between brackets, calculated using 250-fold bootstrapping. Any metrics indicated with a sleep–wake state were calculated for that specific sleep–wake state vs the combination of other sleep–wake states.

Training datasetValidation dataset
Balanced accuracy Wake70.0% (61.0–77.0%)63.0% (47.0–77.0%)
Sensitivity Wake47.0% (29.0–60.0%)43.0% (8.0–74.0%)
Specificity Wake93.0% (88.0–96.0%)84.0% (69.0–93.0%)
F1 score (macroaveraged)59.0% (50.0–66.0%)48.0% (37.0–57.0%)
F1 score Wake46.0% (26.0–61.0%)29.0% (5.0–50.0%)
AUROC (macro-averaged)76.0% (69.0–82.0%)70.0% (61.0–78.0%)
AUROC Active Sleep68.7% (59.1–75.9%)66.0% (58.7–72.8%)
AUROC Quiet Sleep78.3% (72.6–84.0%)66.8% (54.2–78.1%)
AUROC Wake80.0% (70.0–88.0%)77.0% (63.0–87.0%)
Cohen’s kappa0.376 (0.259–0.472)0.235 (0.089–0.357)
Cohen’s kappa Active Sleep0.314 (0.186–0.417)0.232 (0.108–0.361)
Cohen’s kappa Quiet Sleep0.434 (0.325–0.528)0.268 (0.110–0.414)
Cohen’s kappa Wake0.398 (0.189–0.553)0.188 (–0.042–0.42)
Brier Active Sleep0.224 (0.203–0.254)0.243 (0.216–0.276)
Brier Quiet Sleep0.185 (0.159–0.215)0.190 (0.165–0.219)
Brier Wake0.082 (0.064–0.103)0.108 (0.074–0.147)
Table 3.

Comparison of the proposed SWB algorithm to the state-of-the-art preterm sleep-prediction methods.

AlgorithmData typeSampling rateAUC%Mean kappa (SD)State pairsProsCons
Vital signs-based classifierSWB (random forest)HR, RR, SpO20.4 Hz760.38 (0.05)AS–QS–WAllow real-time and bedside monitoring in the NICU; allow AS and W prediction; only needs routine data with low sampling rateModerate sleep-prediction performance
Sequential CNN [24]HRV and other ECG-derived features500 Hz0.43 (0.08)AS–QSRelatively higher prediction performance; allow AS predictionThe required ECG signals with high sampling rate are expensive and not commonly available in NICUs; no W prediction
EEG-based classifierSVM (feature-based) [18]8-channel EEG256 Hz88AS–QSRelatively higher prediction performance; allow AS predictionThe required EEG signals are expensive and not commonly available in NICUs; additional sensors required; holds challenges for long-term routine monitoring; no W prediction
LS-SVM (feature-based) [19]8-channel EEG250 Hz90QS–non-QSRelatively higher prediction performanceThe required EEG signals are expensive and not commonly available in NICUs; additional sensors required, holds challenges for long-term routine monitoring; no AS and W prediction
CLASS (cluster-based) [20]920.66 (0.24)
Deep CNN [21]930.68 (0.22)
End-to-end CNN [22]950.76 (0.22)
Sinc (multiscale deep CNN) [23]880.77 (−)
Overview of performance metrics of the regular cross-validation procedure and validation dataset, with 95% CI values between brackets, calculated using 250-fold bootstrapping. Any metrics indicated with a sleep–wake state were calculated for that specific sleep–wake state vs the combination of other sleep–wake states. Comparison of the proposed SWB algorithm to the state-of-the-art preterm sleep-prediction methods. The macroaveraged AUROCs of the random-forest classifier are illustrated in Figure 2. Prediction performance was best for W in both datasets, with an AUROC of 0.80 (95% CI, 0.70–0.88) in the training dataset and 0.77 (95% CI, 0.63–0.87) in the validation dataset. Supplementary material, Section 4.1 discusses the confusion matrix, which further illustrates that it is unlikely that W gets confused with QS, and that AS is predicted with the highest precision, at 75%, when fixing the prediction threshold.
Figure 2.

AUROCs calculated for the random forest classifier using (A) the regular cross-validation procedure on the training dataset and (B) the validation dataset. Performance mean and 95% Confidence Intervals (solid lines and filled areas, respectively) were calculated using 250-fold bootstrapping. Left, macroaveraged over all sleep–wake states; right, for the individual sleep–wake states.

AUROCs calculated for the random forest classifier using (A) the regular cross-validation procedure on the training dataset and (B) the validation dataset. Performance mean and 95% Confidence Intervals (solid lines and filled areas, respectively) were calculated using 250-fold bootstrapping. Left, macroaveraged over all sleep–wake states; right, for the individual sleep–wake states. Figure 3 shows the calibration curves, that is, the correspondence between predicted and actual probabilities, for model predictions of the sleep–wake states. The predictions on the cross-validated training data appear well calibrated. Compared to a model without isotonic calibration, BS scores of 11.5% (AS), 6.5% (QS), and 25.8% (W) were observed, indicating that calibration was warranted. For a calibrated model predicted probabilities can be summed to estimate the total time spent in a sleep–wake state over extended time periods. It should be noted that the spread in accuracy among patients is still substantial (Figure 3, bottom panels). Furthermore, predictions for the validation dataset appear less well calibrated, which can, in part, be attributed to the small number of patients (see Supplementary material, Section 5).
Figure 3.

Top panels: model calibration per sleep–wake state (W = Wake, AS = Active Sleep, QS = Quiet Sleep), with data points split over 20 quantiles (bins) per sleep–wake state, for (A) training dataset and (B) validation dataset. The horizontal axis indicates the mean value of all predicted probability in each bin and the vertical axis indicates the proportion of positive class samples in each bin. Bottom panels: predicted time spent in a sleep–wake state (horizontal axis) versus the observed time in the sleep–wake state (vertical axis). Dots represent individual patients and are colored by sleep–wake state (Green/W = Wake, Orange/AS = Active Sleep, Red/QS = Quiet Sleep). Predicted time corresponds to summation of all model probability predictions. Panel (C) shows results for the training dataset. Panel (D) shows the results for the validation dataset.

Top panels: model calibration per sleep–wake state (W = Wake, AS = Active Sleep, QS = Quiet Sleep), with data points split over 20 quantiles (bins) per sleep–wake state, for (A) training dataset and (B) validation dataset. The horizontal axis indicates the mean value of all predicted probability in each bin and the vertical axis indicates the proportion of positive class samples in each bin. Bottom panels: predicted time spent in a sleep–wake state (horizontal axis) versus the observed time in the sleep–wake state (vertical axis). Dots represent individual patients and are colored by sleep–wake state (Green/W = Wake, Orange/AS = Active Sleep, Red/QS = Quiet Sleep). Predicted time corresponds to summation of all model probability predictions. Panel (C) shows results for the training dataset. Panel (D) shows the results for the validation dataset. To explore feature contributions, SHAP values are shown in Figure 4. HR-related features dominate the top 10 features for each sleep–wake state. A model based solely on HR-related features performs similar to a model including all parameters (see Supplementary material, Section 4.2). As expected, some features contribute oppositely to different sleep–wake states. For instance, a higher maximum HR during the last 480 s indicates a higher probability of W but a lower probability of QS. Moreover, while the top features of W are strongly dominated by amplitude-related HR features, variance of HR and SpO2 contribute most to QS and AS predictions.
Figure 4.

SHAP values of top-10 features of Active sleep (top left), Quiet sleep (top right) and Wake (bottom left). Naming convention is _____. Dots represent individual data points. Feature values are indicated on a red-blue scale, with red representing a high value for that specific feature. Given the feature and its value for a specific data point, the impact on the model output (SHAP-value) is depicted on the x-axis.

SHAP values of top-10 features of Active sleep (top left), Quiet sleep (top right) and Wake (bottom left). Naming convention is _____. Dots represent individual data points. Feature values are indicated on a red-blue scale, with red representing a high value for that specific feature. Given the feature and its value for a specific data point, the impact on the model output (SHAP-value) is depicted on the x-axis. In Supplementary material, Sections 4.3–4.4, additional model performance checks are discussed.

Bedside implementation

Figure 5 illustrates a bedside implementation architecture currently being tested at the NICU of the WKZ, UMC Utrecht. Data are collected and stored in a database by the BedBase application. Every minute, BedBase sends a POST request to the sleep-prediction application: Sleep Well Baby (SWB). The POST request includes vital parameter data (HR, RR, SpO2) and patient age encoded in JSON format. Inside the SWB application, several checks are performed. Validity checks are made for the vital parameters by ascertaining that they fall within the expected physical ranges and ensuring that the percentage of missing data is <50%, in line with the model design mentioned above. In addition, the PMA is used to check whether the patient falls within the age range of 28–34 weeks PMA, for which SWB was developed. If all criteria are met, SWB returns a prediction of “wake”, “active sleep”, or “quiet sleep”. Additional eligibility criteria related to the patient’s health—such as receiving invasive respiratory support—are to be verified by healthcare professionals. BedBase stores the predictions in the database and visualizes the current prediction and historical trends. Furthermore, BedBase returns probabilities per sleep–wake state.
Figure 5.

Bedside implementation architecture. Every minute, the BedBase application extracts real-time patient information and sends a POST request to the SWB API. Other than age, no identifiable data leaves the NICU. Before each prediction the SWB application assures that the data is valid (e.g. no more than 50% missing values per parameter in each time window, range of allowed values per parameter, etc.) and checks that the patient age falls within the range the algorithm was designed for (28–34 weeks postmenstrual age). If all criteria are met a sleep-state prediction is made and the result returned. Aggregated performance metrics are logged, e.g. ratio of wake predictions per day, such that an ICT and data scientists can monitor performance without compromising patient privacy. Data and code version control is implemented to ensure the SWB API always uses the correct model version from the model repository.

Bedside implementation architecture. Every minute, the BedBase application extracts real-time patient information and sends a POST request to the SWB API. Other than age, no identifiable data leaves the NICU. Before each prediction the SWB application assures that the data is valid (e.g. no more than 50% missing values per parameter in each time window, range of allowed values per parameter, etc.) and checks that the patient age falls within the range the algorithm was designed for (28–34 weeks postmenstrual age). If all criteria are met a sleep-state prediction is made and the result returned. Aggregated performance metrics are logged, e.g. ratio of wake predictions per day, such that an ICT and data scientists can monitor performance without compromising patient privacy. Data and code version control is implemented to ensure the SWB API always uses the correct model version from the model repository.

Discussion

An automated, real-time sleep staging algorithm, called Sleep Well Baby, was developed for preterm infants. The algorithm was based on HR, RR, and SpO2 signals sampled in low frequency and identified W, QS, and AS states. The random-forest classifier achieved good performance on the training dataset (macroaveraged AUROC range 0.69–0.82), which was validated in an independent dataset (macro-averaged AUROC range 0.61–0.78). To the best of our knowledge, the current algorithm is the first to combine multiple cardiorespiratory measures for automated preterm sleep–wake classification. The predictive performance of the SWB algorithm (training dataset κ = 0.38 ± 0.05, validation dataset κ = 0.24 ± 0.07) is comparable to previous work focusing on cardiorespiratory parameters. Research conducted by Werth et al. [24] showed that AS and QS could be distinguished based on a CNN algorithm using HRV, with a Cohen’s kappa of κ = 0.43 ± 0.08 (Table 3). Notably, the SWB algorithm was able to achieve similar performance to this method, but with less complex computations and without the need for high sampling frequency measurements that are expensive and not commonly available in NICUs. When comparing the SWB algorithm to existing sleep staging methods based on EEG [18, 21], there is still room for improvement in model performance (Table 3). Nonetheless, our algorithm may be applied with minimal intrusion and at most NICUs, as it uses routinely collected data without additional requirements. Feature contribution analyses showed that HR contributes the most in the prediction of sleep–wake states. HR is regulated by the autonomic nervous system (ANS). As sleep–wake state changes, the ANS controls the heart directly, inducing immediate HR changes and affecting the respiratory and other physiological systems [33]. Our results, therefore, provided evidence that HR might play a more important role than other parameters in sleep–wake autonomic regulation of preterm infants. Oxygen saturation was also included in the algorithm, although it was not expected to be directly affected by the sleep–wake cycle based on literature. However, it did show some predictive value, possibly because of its close link with breathing. Mispredictions of the SWB model often involve AS classifications when the infant is awake. Conversely, AS is predicted with the greatest precision of the sleep–wake states, at 75%. Since it is believed that AS is important for early brain maturation [10, 25, 26], it is of utmost priority to not disturb this sleep state during infants’ stay in the NICU. In this context, mispredictions of our model tend to align positively with clinical impact. In addition, qualitative analysis of the time-ordered predictions for individual patients showed that a large percentage of mispredictions was only a few minutes ahead or behind the actual time of observation, for example, a wake prediction one minute too early (Supplementary material, Section 4.4). As such, the sleep–wake transition trend was still well captured by the SWB model, with little negative effect on its practical application. Consequently, despite the possible incorrect predictions made by the SWB model, it constitutes a helpful and practical implementation in the NICU. Several limitations need to be mentioned. Compared to statistical models usually used in medical research, such as linear regression, the random-forest model used in this study is less interpretable and explanations for its predictions require additional techniques such as SHAP. However, the SWB algorithm is designed to improve the quality of neonatal health care by continuously monitoring sleep–wake states, rather than making high-stake decisions. It does so by only presenting the predicted sleep–wake state, without further explanation on how it came to its conclusion. Given its intended use and since model predictions are presented independently without explanation, we believe it is reasonable to employ a black-box model providing better prediction performance over a more interpretable model. Another limitation is that the behavioral sleep observations were performed by one observer at a time in this study to prevent crowding in the NICU. Despite the overall high reliability and validity of the employed behavioral sleep–wake observation scale [29], this could inherently limit the potential performance of our model because some observers only achieved moderate reliability (κ = 0.46–0.82). Nonetheless, by including various experiences and knowledge of different observers, the SWB model may transcend the limitations of individual observers and be considered more stable and reliable [24]. Finally, to create better reference profiles, we only included those who had consecutive 24-hour vital signs data closely before or after the sleep observation, which resulted in the limited sample size. A larger patient cohort is beneficial to better assess and improve calibration performance. Although we do not expect improvements in discriminative power from a larger patient sample (see Supplementary material, Section 4.3), the isotonic calibration procedure benefits from a larger patient cohort [34]. Since isotonic calibration of the model can be performed after model training, future sleep–wake state observations of new patients can be used to improve calibration without affecting discriminative power (see Supplementary material, Section 5). The SWB algorithm is being implemented and tested in our NICU at the bedside, with which nurses are able to plan elective care based on the sleep–wake state predictions and future research is able to further explore whether sleep protection in clinical practice improves preterm infants’ outcomes. Moreover, cardiorespiratory parameters are a convenient starting point for automated sleep–wake state classification. It would be interesting for future research to combine them with other typical sleep-relevant features, such as body twitches unobtrusively captured by video analysis. In addition to real-time application in the NICU, the concept of assessing sleep stages based on cardiorespiratory parameters with low sampling rates also makes the SWB algorithm an attractive solution in a plethora of situations. For example, the algorithm can be applied in pre-clinical animal studies such as preterm lambs, or be adjusted for (preterm) infants once they are at home. In summary, the current study developed an automated, real-time sleep staging system, called SWB, for preterm infants based on low-frequency vital physiological parameters, which are most often monitored in the NICU. A three-class classifier was designed to predict the infant’s sleep–wake states. The SWB system achieved good predictive performance on a training dataset and provided the most accurate prediction for wake, which was well validated by an independent sample. HR contributed most to the predictive power of the algorithm. The proposed bedside implementation architecture of the SWB system is being tested and deployed in the NICU of UMC Utrecht. By tracking sleep–wake transitions in clinical practice, the SWB system allows for individualized caregiving activities according to the infant’s state in the NICU, thereby improving their sleep quality and protecting their vulnerable developing brain. Click here for additional data file.
  28 in total

1.  Infant polysomnography: reliability. Collaborative Home Infant Monitoring Evaluation (CHIME) Steering Committee.

Authors:  D H Crowell; L J Brooks; T Colton; M J Corwin; T T Hoppenbrouwers; C E Hunt; L E Kapuniai; G Lister; M R Neuman; M Peucker; S L Ward; D E Weese-Mayer; M Willinger
Journal:  Sleep       Date:  1997-07       Impact factor: 5.849

Review 2.  A functional role for REM sleep in brain maturation.

Authors:  G A Marks; J P Shaffery; A Oksenberg; S G Speciale; H P Roffwarg
Journal:  Behav Brain Res       Date:  1995 Jul-Aug       Impact factor: 3.332

3.  The Newborn Individualized Developmental Care and Assessment Program (NIDCAP) with Kangaroo Mother Care (KMC): Comprehensive Care for Preterm Infants.

Authors:  Heidelise Als; Gloria B McAnulty
Journal:  Curr Womens Health Rev       Date:  2011-08

Review 4.  Dysmaturation of Premature Brain: Importance, Cellular Mechanisms, and Potential Interventions.

Authors:  Joseph J Volpe
Journal:  Pediatr Neurol       Date:  2019-02-27       Impact factor: 3.372

Review 5.  The value of cardiorespiratory parameters for sleep state classification in preterm infants: A systematic review.

Authors:  Eline R de Groot; Marit S Knoop; Agnes van den Hoogen; Xiaowan Wang; Xi Long; Sigrid Pillen; Manon Benders; Jeroen Dudink
Journal:  Sleep Med Rev       Date:  2021-03-14       Impact factor: 11.609

Review 6.  The behavioural states of the newborn infant (a review).

Authors:  H F Prechtl
Journal:  Brain Res       Date:  1974-08-16       Impact factor: 3.252

7.  A convolutional neural network outperforming state-of-the-art sleep staging algorithms for both preterm and term infants.

Authors:  Amir H Ansari; Ofelie De Wel; Kirubin Pillay; Anneleen Dereymaeker; Katrien Jansen; Sabine Van Huffel; Gunnar Naulaers; Maarten De Vos
Journal:  J Neural Eng       Date:  2020-01-14       Impact factor: 5.379

8.  Creating an optimal observational sleep stage classification system for very and extremely preterm infants.

Authors:  E R de Groot; A Bik; C Sam; X Wang; R A Shellhaas; T Austin; M L Tataranno; M J N L Benders; A van den Hoogen; J Dudink
Journal:  Sleep Med       Date:  2022-02-01       Impact factor: 3.492

Review 9.  How to improve sleep in a neonatal intensive care unit: A systematic review.

Authors:  Agnes van den Hoogen; Charlotte J Teunis; Renée A Shellhaas; Sigrid Pillen; Manon Benders; Jeroen Dudink
Journal:  Early Hum Dev       Date:  2017-07-15       Impact factor: 2.079

10.  Early Development of Functional Network Segregation Revealed by Connectomic Analysis of the Preterm Human Brain.

Authors:  Miao Cao; Yong He; Zhengjia Dai; Xuhong Liao; Tina Jeon; Minhui Ouyang; Lina Chalak; Yanchao Bi; Nancy Rollins; Qi Dong; Hao Huang
Journal:  Cereb Cortex       Date:  2017-03-01       Impact factor: 5.357

View more
  1 in total

1.  A Perspective on a Quality Management System for AI/ML-Based Clinical Decision Support in Hospital Care.

Authors:  Richard Bartels; Jeroen Dudink; Saskia Haitjema; Daniel Oberski; Annemarie van 't Veen
Journal:  Front Digit Health       Date:  2022-07-06
  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.