| Literature DB >> 36015951 |
Pin-Wei Chen1, Megan K O'Brien1,2, Adam P Horin1, Lori L McGee Koch1, Jong Yoon Lee3, Shuai Xu3,4, Phyllis C Zee5, Vineet M Arora6, Arun Jayaraman1,2.
Abstract
Sleep plays a critical role in stroke recovery. However, there are limited practices to measure sleep for individuals with stroke, thus inhibiting our ability to identify and treat poor sleep quality. Wireless, body-worn sensors offer a solution for continuous sleep monitoring. In this study, we explored the feasibility of (1) collecting overnight biophysical data from patients with subacute stroke using a simple sensor system and (2) constructing machine-learned algorithms to detect sleep stages. Ten individuals with stroke in an inpatient rehabilitation hospital wore two wireless sensors during a single night of sleep. Polysomnography served as ground truth to classify different sleep stages. A population model, trained on data from multiple patients and tested on data from a separate patient, performed poorly for this limited sample. Personal models trained on data from one patient and tested on separate data from the same patient demonstrated markedly improved performance over population models and research-grade wearable devices to detect sleep/wake. Ultimately, the heterogeneity of biophysical signals after stroke may present a challenge in building generalizable population models. Personal models offer a provisional method to capture high-resolution sleep metrics from simple wearable sensors by leveraging a single night of polysomnography data.Entities:
Keywords: health outcome; machine learning; rehabilitation; sleep; stroke; wearable sensors
Mesh:
Year: 2022 PMID: 36015951 PMCID: PMC9414899 DOI: 10.3390/s22166190
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.847
Demographics and clinical characteristics of study participants.
| ID | Age | Sex | BMI | Race | Stroke Type | Affected Side | Experiencing Pain | No. of Medications with Sleep-Related Side Effects (Drowsiness, Insomnia) |
|---|---|---|---|---|---|---|---|---|
| 1 | 53 | M | 23.6 | C | Isc+Hem | L | Y | 2 D, 2 I |
| 2 | 52 | F | 40.3 | AA | Isc | R | N | 0 D, 3 I |
| 3 | 56 | M | 38.6 | C | Isc | R | N | 2 D, 2 I |
| 4 | 48 | F | 30.4 | C | Isc | L | N | 1 D, 1 I |
| 5 | 64 | F | 27.5 | AA | Hem | L | Y | 1 D, 4 I |
| 6 | 70 | F | 21.0 | AA | Isc | L | N | 1 D, 5 I |
| 7 | 37 | F | 32.6 | PI | Isc | R | Y | 2 D, 3 I |
| 8 | 56 | M | 39.1 | NA | Isc | L | Y | 2 D, 2 I |
| 9 | 65 | M | 25.8 | A | Hem | L | N | 0 D, 1 I |
| 10 | 80 | M | 23.1 | C | Isc | L | N | 0 D, 2 I |
| Mean (SD)or Count | 58.1 (12.1) | 5 F, | 30.2 | 4 C, | 7 Isc, 2 Hem, 1 Isc+Hem | 7 L, 3 R | 4 Y, 6 N | 1.1 D, 2.5 I |
Isc = Ischemic; Hem = Hemorrhagic; C = Caucasian; AA = African American; PI = Pacific Islander; NA = Native American; A = Asian; D = Drowsiness; I = Insomnia.
Detailed clinical characteristics of participants.
| ID | Stroke Location | Symptom Directed Affect by Stroke | Comorbidities |
|---|---|---|---|
| 1 | Right middle cerebral artery stroke | Reduced balance, coordination, sensation. Hemispatial neglect, inattention, vision deficits. | |
| 2 | Left basal ganglia, caudate, and right parietal-occipital lobes | Impaired ambulation, activities of daily living, eating/swallowing, transfers, bowel and bladder function, cognition, memory, speech. | COPD; deep vein thrombosis and pulmonary embolism |
| 3 | Left subcortical | Reduced strength, endurance, and balance. Dysarthria, spasticity. | |
| 4 | Right pons | Reduced strength, endurance, balance. Impaired cognition. | Anxiety; depression |
| 5 | Right thalamic intracerebral | Fatigue. Reduced strength, endurance, coordination, range of motion. | Urinary incontinence; UTI |
| 6 | Para median pontine (chronic caudate and thalamic infarcts) | Impaired ambulation, activities of daily living, transfers, bowel and bladder function, cognition, memory, speech. Hemiparesis of lower and upper extremities. | Heart murmur; Bordetella infection |
| 7 | Scattered bilateral anterior cerebral artery infarct with left middle cerebral artery distribution | Reduced balance and coordination. Impaired ambulation, activities of daily living, transfers, cognition, and memory. Hemiparesis of lower and upper extremities. | Anxiety; elevated white blood cells |
| 8 | Right lacunar | Reduced balance, coordination, sensation. Spasticity. | Anxiety; spinal stenosis; disc displacement; amnesia; nicotine dependence; GERD; chronic pain |
| 9 | Thalamus and basal ganglia | Impaired ambulation, activities of daily living, transfers, cognition, and speech. | |
| 10 | Perforator of the right basal ganglia and right corona radiata | Reduced balance. Impaired ambulation, activities of daily living, transfers, bladder function, and speech. Hemiparesis of lower and upper extremity weakness. | Hypothyroidism; angina pectoris; UTI; sleep disorder; coronary artery disease |
COPD = chronic obstructive pulmonary disease; GERD = gastroesophageal reflux disease; UTI = urinary tract infection.
Figure 1System configuration for development of a sleep monitoring algorithm in patients with stroke. (A) Placement of PSG electrodes, ActiWatchTM, and ANNETM One wearable sensors. ANNETM system included two wireless devices that were placed on the chest (left of midline) and the limb (index finger of the less-affected side). (B) The ANNETM devices record multimodal physiological data and are encapsulated with soft, flexible materials. EEG = electroencephalography; EOG = electrooculography; EMG = electromyography; ECG = electrocardiography; PPG = photoplethysmography; ACC = tri-axial acceleration; TEMP = skin temperature.
Features extracted from ANNETM sensor data during overnight monitoring.
| Sensor Modality | Sampling Freq (Hz) | No. of Features | Features | ||
|---|---|---|---|---|---|
| ACC | 52 | 33 | Mean (x, y, z) | IQR (x, y, z) | Variance (x, y, z) |
| ECG | 512 | 19 | HR mean | PNN50 | HF power |
| TEMP | 5 | 6 | DPG mean | DPG max | Chest (proximal) mean |
| PPG | 256 | 15 | SpO2 mean | SpO2 DI | TSA70 |
rho = correlation coefficient; p = correlation p-value; IQR = interquartile range; SD = standard deviation; RMS = root mean square; HR = heart rate; NNx (or PNNx) = sum (or percentage) of R-R intervals larger than x ms (or %); LF = low frequency; VLF = very low frequency; HF = high frequency; DPG = distal-to-proximal gradient; TSAx = time spent in apnea, with SpO2 below x%; SpO2 DI = mean absolute difference between successive mean values of SpO2 over 10-s intervals; ODIx = oxygen desaturation index for SpO2 dropping x% from the previous epoch; ZC = zero crossing rate.
Figure 2tSNE plot of sensor features from 10 patients with stroke. Representation of similarities among sensor features in two-dimensional space, color-coded by (A) sleep stage and (B) patient. The clusters illustrate that features are more similar within patients than within sleep classes, suggesting that the similarity within each subject is greater than similarities across different sleep stages. This indicates a machine learning algorithm trained on population data may be challenged to learn characteristic patterns of the different sleep stages that would generalize to new patients.
Models and ActiWatch Autoscore comparisons with pooled Cohen’s kappa.
| Algorithm | Sleep Stage Resolution (No. Classes) | Population Model | Personalized Model |
|---|---|---|---|
| Bagging Classifier | 2 | 0.249 | 0.483 |
| 3 | 0.132 | 0.473 | |
| 4 | 0.003 | 0.527 | |
| Random Forest | 2 | 0.248 | 0.577 |
| 3 |
| 0.532 | |
| 4 |
| 0.517 | |
| Gradient Boosting | 2 |
| 0.549 |
| 3 | 0.110 | 0.602 | |
| 4 | 0.037 |
| |
| XGBoost * | 2 | 0.249 |
|
| 3 | 0.128 |
| |
| 4 | 0.014 | 0.531 | |
| ActiWatch Autoscore | 2 | 0.477 | |
Italic values indicate the best-performing algorithm within each sleep stage resolution (2-stage, 3-stage, 4-stage) for both population and personalized models. Asterisk (*) indicates the algorithm selected for further analysis, based on its best or near-best performance across model designs.
XGBoost algorithm performance (mean and SEM) for population models, including 2-stage, 3-stage, and 4-stage sleep detection.
| Sleep Stage | Specificity | Precision | Sensitivity | F1 | Balanced |
|---|---|---|---|---|---|
| 2-stage | |||||
| Wake | 0.93 (0.03) | 0.45 (0.12) |
| 0.25 (0.06) |
|
| Sleep | 0.30 (0.07) | 0.93 (0.02) | 0.93 (0.03) | 0.92 (0.02) |
|
| 3-stage | |||||
| Wake | 0.87 (0.03) | 0.28 (0.10) | 0.41 (0.07) | 0.28 (0.08) | 0.64 (0.04) |
| NREM | 0.76 (0.03) | 0.58 (0.05) | 0.64 (0.04) | 0.56 (0.02) | |
| REM | 0.72 (0.05) | 0.26 (0.06) | 0.31 (0.07) | 0.26 (0.05) | 0.52 (0.04) |
| 4-stage | |||||
| Wake |
| 0.30 (0.10) | 0.46 (0.09) | 0.29 (0.07) | 0.66 (0.04) |
| Light | 0.55 (0.05) | 0.59 (0.04) | 0.45 (0.04) | 0.49 (0.03) | 0.50 (0.01) |
| Deep | 0.84 (0.06) | 0.05 (0.03) | 0.09 (0.06) | 0.02 (0.01) | 0.46 (0.03) |
| REM | 0.77 (0.03) | 0.24 (0.06) | 0.22 (0.04) | 0.22 (0.04) |
|
Comparison of ActiWatch Autoscore and XGBoost algorithm performance (mean and SEM) for personal models, including 2-stage, 3-stage, and 4-stage sleep detection.
| Sleep Stage | Specificity | Precision | Sensitivity | F1 | Balanced |
|---|---|---|---|---|---|
| 2-stage | |||||
| Wake | 0.97 (0.01) | 0.81 (0.05) | 0.68 (0.06) | 0.68 (0.04) | 0.83 (0.03) |
| Sleep | 0.68 (0.06) | 0.96 (0.01) | 0.97 (0.01) | 0.97 (0.01) | 0.83 (0.03) |
| 3-stage | |||||
| Wake | 0.94 (0.01) | 0.78 (0.03) | 0.81 (0.04) | 0.74 (0.03) | 0.88 (0.02) |
| NREM | 0.80 (0.03) | 0.90 (0.02) | 0.81 (0.03) | 0.83 (0.04) | 0.81 (0.03) |
| REM | 0.89 (0.03) | 0.75 (0.05) | 0.76 (0.04) | 0.71 (0.05) | 0.82 (0.03) |
| 4-stage | |||||
| Wake | 0.96 (0.01) | 0.78 (0.04) | 0.77 (0.04) | 0.72 (0.03) | 0.87 (0.02) |
| Light | 0.79 (0.03) | 0.73 (0.09) | 0.63 (0.07) | 0.66 (0.08) | 0.71 (0.05) |
| Deep | 0.91 (0.02) | 0.57 (0.10) | 0.70 (0.11) | 0.58 (0.10) | 0.76 (0.10) |
| REM | 0.86 (0.04) | 0.69 (0.05) | 0.74 (0.05) | 0.67 (0.05) | 0.80 (0.04) |
| ActiWatch Autoscore Algorithm (2-stage) | |||||
| Wake | 0.92 (0.02) | 0.56 (0.05) | 0.51 (0.08) | 0.50 (0.07) | 0.72 (0.04) |
| Sleep | 0.52 (0.09) | 0.90 (0.02) | 0.93 (0.02) | 0.91 (0.02) | 0.72 (0.04) |
Figure 3Confusion matrix for 4-stage personal model. Percentage of epochs correctly and incorrectly predicted from wearable sensor data, separated by actual sleep stage. Percentages are calculated from the total number of predicted and actual epochs, aggregated across all participants.
Figure 4Example hypnogram for 4-stage personal model. Comparison of the predicted sleep stage from wearable sensor data (green line) and the actual sleep stage from PSG (black line) throughout the night for a single participant (ID 4).