| Literature DB >> 34829400 |
Erdenebayar Urtnasan1, Eun Yeon Joo2, Kyu Hee Lee1.
Abstract
Healthy sleep is an essential physiological process for every individual to live a healthy life. Many sleep disorders both destroy the quality and decrease the duration of sleep. Thus, a convenient and accurate detection or classification method is important for screening and identifying sleep disorders. In this study, we proposed an AI-enabled algorithm for the automatic classification of sleep disorders based on a single-lead electrocardiogram (ECG). An AI-enabled algorithm-named a sleep disorder network (SDN)-was designed for automatic classification of four major sleep disorders, namely insomnia (INS), periodic leg movement (PLM), REM sleep behavior disorder (RBD), and nocturnal frontal-lobe epilepsy (NFE). The SDN was constructed using deep convolutional neural networks that can extract and analyze the complex and cyclic rhythm of sleep disorders that affect ECG patterns. The SDN consists of five layers, a 1D convolutional layer, and is optimized via dropout and batch normalization. The single-lead ECG signal was extracted from the 35 subjects with the control (CNT) and the four sleep disorder groups (seven subjects of each group) in the CAP Sleep Database. The ECG signal was pre-processed, segmented at 30 s intervals, and divided into the training, validation, and test sets consisting of 74,135, 18,534, and 23,168 segments, respectively. The constructed SDN was trained and evaluated using the CAP Sleep Database, which contains not only data on sleep disorders, but also data of the control group. The proposed SDN algorithm for the automatic classification of sleep disorders based on a single-lead ECG showed very high performances. We achieved F1 scores of 99.0%, 97.0%, 97.0%, 95.0%, and 98.0% for the CNT, INS, PLM, RBD, and NFE groups, respectively. We proposed an AI-enabled method for the automatic classification of sleep disorders based on a single-lead ECG signal. In addition, it represents the possibility of the sleep disorder classification using ECG only. The SDN can be a useful tool or an alternative screening method based on single-lead ECGs for sleep monitoring and screening.Entities:
Keywords: automatic classification; convolutional neural network; deep learning; electrocardiogram; sleep disorders
Year: 2021 PMID: 34829400 PMCID: PMC8620146 DOI: 10.3390/diagnostics11112054
Source DB: PubMed Journal: Diagnostics (Basel) ISSN: 2075-4418
Figure 1Schematic diagram of this study. (A) CAP sleep database, (B) ECG dataset, (C) deep learning model, and (D) Outputs.
Demographics of the study population.
| Groups | Number ( | Sex (M:F) | Age (Mean ± Std.) |
|---|---|---|---|
| CNT | 7 | 3:4 | 32.6 ± 3.7 |
| INS | 7 | 2:5 | 58.9 ± 10.2 |
| PLM | 7 | 5:2 | 54.7 ± 7.0 |
| RBD | 7 | 6:1 | 72.3 ± 6.7 |
| NFE | 7 | 3:4 | 26.3 ± 8.0 |
| Total | 35 | 19:16 | 48.9 ± 2.1 |
Note: CNT—control, INS—insomnia, PLM—periodic leg movement, RBD—REM sleep behavior disorder, NFE—nocturnal frontal lobe epilepsy.
ECG datasets for the training, validation, and test sets in this study.
| Groups | Training Set | Validation Set | Test Set | Total |
|---|---|---|---|---|
| CNT | 11,087 | 2713 | 3444 | 17,244 |
| INS | 17,475 | 4309 | 5439 | 27,223 |
| PLM | 14,439 | 3675 | 4478 | 22,592 |
| RBD | 17,490 | 4458 | 5543 | 27,491 |
| NFE | 13,644 | 3379 | 4264 | 21,287 |
| Total | 74,135 | 18,534 | 23,168 | 115,837 |
Note: CNT—control, INS—insomnia, PLM—periodic leg movement, RBD—REM sleep behavior disorder, NFE—nocturnal frontal lobe epilepsy.
Detailed structure of the proposed SDN algorithm.
| No. | Layers | Filters, Kernel Size | Output Shape | Parameters |
|---|---|---|---|---|
| 1 | batchnorm_1 | = | 5120 × 1 | 4 |
| 2 | conv1d_1 | 100, 50 × 1 | 5071 × 100 | 5100 |
| 3 | conv1d_2 | 80, 40 × 1 | 2496 × 80 | 320,080 |
| 4 | conv1d_3 | 60, 30 × 1 | 1219 × 60 | 144,060 |
| 5 | conv1d_4 | 40, 20 × 1 | 590 × 40 | 48,040 |
| 6 | gru_1 | 40 | 295 × 40 | 9840 |
| 7 | gru_2 | 40 | 295 × 40 | 9840 |
| 8 | dense_1 | 5 | 40 | 205 |
| Total | 4 conv1d layers (280 filters), 2 gru (80 units) | 537,165 | ||
Performance of the proposed SDN model for the automatic classification of sleep disorders based on a single-lead ECG signal.
| Groups | Precision | Recall | F1-Score | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Train | Valid | Test | Train | Valid | Test | Train | Valid | Test | |
| CNT | 1.00 | 1.00 | 0.99 | 1.00 | 0.99 | 0.99 | 1.00 | 1.00 | 0.99 |
| INS | 1.00 | 1.00 | 0.99 | 0.95 | 0.95 | 0.95 | 0.98 | 0.97 | 0.97 |
| PLM | 1.00 | 1.00 | 0.99 | 0.96 | 0.96 | 0.95 | 0.98 | 0.98 | 0.97 |
| RBD | 0.90 | 0.91 | 0.91 | 1.00 | 1.00 | 1.00 | 0.95 | 0.95 | 0.95 |
| NLF | 1.00 | 1.00 | 1.00 | 0.97 | 0.97 | 0.96 | 0.98 | 0.98 | 0.98 |
Figure 2Confusion matrix of the proposed SDN model for the automatic classification of sleep disorders based on a single-lead ECG signal. The performances of the training set (A), validation set (B), and test set (C), respectively.
Figure 3Example of the intermediate feature map of the designed deep learning SDN model for automatic classification of sleep disorders using a single-lead ECG signal. Intermediate feature maps of (A) INS, (B) PLM, (C) CNT, (D) RBD, and (E) NFE groups.