Temporal Feature Extraction and Machine Learning for Classification of Sleep Stages Using Telemetry Polysomnography
<p>Illustration of the architecture designed for sleep stage detection. (<b>A</b>) PSG preprocessing pipeline consisting of the following steps: annotation of PSG sleep stages from hypnogram, band pass filtering, and epoching. (<b>B</b>) Robust features are extracted from the epoched PSG using various feature extraction measures. Different combinations of these measures were employed with classifiers to find the optimal model. (<b>C</b>) Training pipeline incorporating Synthetic Minority Oversampling Technique (SMOTE) for rectifying class imbalance and stratified K-fold cross-validation across 15 folds. (<b>D</b>) Testing pipeline utilising imbalanced dataset for evaluating trained classifiers.</p> "> Figure 2
<p>Sleep stage distribution plot. (<b>a</b>) Patient A, (<b>b</b>) Patient B, (<b>c</b>) Patient C.</p> "> Figure 3
<p>Power spectral density plot. (<b>a</b>) Patient A, (<b>b</b>) Patient B, (<b>c</b>) Patient C.</p> "> Figure 4
<p>Accuracy of individual feature extraction measures across different classifiers for 5-stage classification.</p> "> Figure 5
<p>Accuracy of combined feature extraction measures across different classifiers for 5-stage classification. The bar “Average” represents the mean of RF, ET, LGBM, and XGB for every combination of feature extraction measures.</p> "> Figure 6
<p>Confusion matrix for XGBoost classifier for 5-stage sleep classification using all feature extraction measures together.</p> "> Figure 7
<p>Confusion matrix for XGBoost classifier for 4-stage sleep classification using all feature extraction measures together.</p> "> Figure 8
<p>Confusion matrix for XGBoost classifier for 3-stage sleep classification using all feature extraction measures together.</p> "> Figure 9
<p>Confusion matrix for XGBoost classifier for 2-stage (Non-REM vs. REM) sleep stage classification using all feature extraction measures together.</p> "> Figure 10
<p>Confusion matrix for XGBoost classifier for 2-stage (Awake vs. Asleep) sleep classification using All feature extraction measures together.</p> "> Figure 11
<p>Accuracy of combined feature extraction measures for each sleep stage configuration.</p> ">
Abstract
:1. Introduction
- Wake (W): Marked by low-amplitude, mixed-frequency brain waves, with normal muscle tone and high mentation.
- Stage 1 (N1): First NREM stage. EEG shows low-voltage and mixed-frequency activity while eye movement and muscle activity begin to decrease.
- Stage 2 (N2): Marked by sleep spindles and K-complexes in the EEG signal. Muscle tone, heart rate, and eye movement further slow down, and body temperature drops.
- Stages 3 and 4 (N3/N4): Deepest stage of NREM. Crucial for physical restoration and memory consolidation. This stage is also known as the slow-wave sleep stage. EEG shows high-amplitude and low-frequency delta waves. There is minimal eye movement, and muscle tone is at its lowest during NREM sleep.
- REM (R): Marked by rapid eye movement, dreaming, and temporary muscle paralysis to prevent physical stimulation from dreams. EEG shows low-amplitude and mixed-frequency activity, which is similar to the N1 stage.
- Extreme Gradient Boosting (XGBoost);
- Light Gradient Boosting Machine (LGBM);
- Random Forest (RF);
- Extremely Randomized Trees/Extra Trees (ET).
- To develop a model that combines an optimal feature extraction method with an optimal supervised learning model to distinguish between the different sleep stages with high accuracy.
- To evaluate the performance of the following feature extraction measures:
- –
- Power spectral density (PSD);
- –
- Singular value decomposition (SVD) entropy;
- –
- Higuchi fractal dimension (HFD);
- –
- Permutation entropy (PE);
- –
- Detrended fluctuation analysis (DFA);
- –
- Mean;
- –
- Standard deviation (Std Dev);
- –
- Kurtosis;
- –
- Skewness.
- To evaluate the performance of this model in accurately distinguishing between various sleep stages in the following configurations:
- –
- Five sleep stages, consisting of Wake (W), N1, N2, N3/4, and REM (R);
- –
- Four sleep stages, consisting of W, Light Sleep, Deep Sleep, and R;
- –
- Three sleep stages, consisting of W, Non-REM, and REM;
- –
- Two sleep stages, consisting of Non-REM and REM;
- –
- Two sleep stages, consisting of Wake (W) and Sleep (Non-REM and REM).
RQ: To what extent do SVD entropy, PSD, HFD, PE, DFA, mean, Std Dev, kurtosis, and skewness, as feature extraction measures, differentiate between the different stages of sleep?
2. Related Work
3. Materials and Methods
3.1. Dataset
- Sleep Cassette (SC): This project focused on analysing age-related effects on sleep in a healthy Caucasian demographic ranging from 25 to 101 years old, with participants abstaining from any sleep-related medications. This investigation conducted two successive polysomnography (PSG) recordings, each spanning approximately 20 h, during consecutive day–night cycles at the participants’ residences. The components of each PSG incorporated electrooculography (EOG), electroencephalography (EEG), and submental electromyography (EMG) signals. While the EEG and EOG data were sampled at a rate of 100 Hz, the EMG data were gathered at 1 Hz. Furthermore, parameters such as oro-nasal airflow, rectal body temperature, and event markers were logged at a frequency of 1 Hz. The recording of the PSG data was facilitated by a device akin to a Sony Walkman cassette.
- Sleep Telemetry (ST): This study investigated temazepam medication effects on sleep in 22 Caucasian men and women with no other medications. The subjects complained of having mild difficulty falling asleep but had no other conditions. Nine-hour PSG recordings were conducted in a hospital for two nights. Prior to recording PSG, temazepam was administered to the patient on one of the nights, and a placebo was given on the other. EOG, EMG, and EEG signals were sampled at 100 Hz with an event marker at 1 Hz.
3.2. Preprocessing
- Data ingestion: Raw PSG files were loaded using the MNE python package [42]. A Finite Impulse Response (FIR) filter was implemented to perform filtering with a high-pass filter of 0.3 Hz to reduce low-frequency drift and a low-pass filter of 40 Hz. The Firwin method was used for this filter, which incorporates a Hamming window with 0.0194 passband ripple and 53 dB stopband attenuation. Raw hypnogram files were loaded using the MNE package and integrated with the PSG data as annotations. These annotations provided information about the different sleep stages and their durations in the time domain.
- Sleep stage mapping: Sleep stages were mapped to different configurations as 5-stage (Wake, N1, N2, N3/N4, REM), 4-stage (Wake, Light, Deep, REM), 3-stage (Wake, Non-REM, REM), 2-stage (REM, NREM), and another 2-stage (Wake and REM). Figure 2 shows the distribution of these sleep stages with respect to time for 3 different subjects. Each event was mapped to an Event ID, as shown in the figure. As is evident, Wake stages are skewed towards the left, which is the initial part of the sleep cycle, while the REM stages are skewed towards the right, indicating their occurrence towards the later phases of the sleep cycle. Furthermore, sleep stage 2 has the highest number of events, indicating that the average individual spends the most amount of time in Light Sleep. Stages 3 and 4 were combined into one class named N3/N4. Furthermore, classes M and ‘’?” were excluded. Execution of the whole pipeline was conducted for each configuration, making a total of 6 different runs.
- Event and epoch extraction: After defining the sleep stage mapping configuration, the PSG data were segmented into epochs, each representing a 30 s window. Using the MNE package, the annotations were converted into events. Based on these events, epochs were extracted from the PSG data, wherein each epoch was labelled with the corresponding sleep stage.
- SMOTE: An imbalance in the classes of the target variable (i.e., sleep stage) was observed in the dataset, wherein the number of events for the different sleep stages was highly varied. This issue became more pronounced in 2-stage and 3-stage sleep classification tasks, where multiple classes were integrated. To balance the dataset, the Synthetic Minority Oversampling Technique (SMOTE) was employed [43].
3.3. Feature Extraction
3.3.1. Power Spectral Density
3.3.2. Singular Value Decomposition (SVD) Entropy
3.3.3. Higuchi Fractal Dimension (HFD)
3.3.4. Permutation Entropy
3.3.5. Detrended Fluctuation Analysis
- First, x is integrated into series , where , and is the mean of .
- The integrated series is then divided into segments of equal length n, such that in each segment, a least-squared line is fit to the data, which represents the trend within that segment. The y-coordinate of these linear segments is labelled .
- Using the equation:
- Lastly, the fluctuation is calculated by computing the slope of the line relating to .
3.3.6. Statistical Time-Domain Features
- Mean
- Standard Deviation
- Skewness
- Kurtosis
3.4. Classification
- Extreme Gradient Boosting (XGBoost);
- Light Gradient Boosting Machine (LGBM);
- Random Forest Classifier (RF);
- Extra Trees Classifier (ET).
- Five-stage sleep detection: distinguishing between Wake, N1, N2, N3/4, and REM stages;
- Four-stage sleep detection: distinguishing between Wake, Light (N1 + N2), Deep (N3 + N4), and REM stages;
- Three-stage sleep detection: distinguishing between Wake, Non-REM (N1 + N2 + N3 + N4), and REM stages;
- Two-stage sleep detection (a): distinguishing between Non-REM (N1 + N2 + N3 + N4) and REM stages;
- Two-stage sleep detection (b): distinguishing between Wake (W) and Asleep (N1 + N2 + N3 + N4 + REM).
3.5. Evaluation Metrics
- Recall
- Precision
- Accuracy
4. Results
4.1. Five-Stage Sleep Classification
4.1.1. Individual Performance of Feature Extraction Measures
4.1.2. Combined Performance of Feature Extraction Measures
- SVD Ent, HFD, DFA, and PE;
- PSD and statistical measures (i.e., mean, standard deviation, skewness, and kurtosis);
- PSD, SVD Ent, HFD, DFA, and PE;
- All combined together (PSD, SVD Ent, HFD, DFA, PE, mean, standard deviation, skewness, and kurtosis).
4.2. Four-Stage Sleep Classification
4.3. Three-Stage Sleep Classification
4.4. Two-Stage Sleep Classification
- Distinguishing between Non-REM (N1, N2, N3, N4) and REM (R);
- Distinguishing between Awake (W) and Asleep (N1, N2, N3, N4, R).
4.4.1. REM vs. Non-REM
4.4.2. Awake vs. Asleep
5. Comparison with Recent Works
6. Discussion
- Feature extraction: A combination of PSD, SVD entropy, HFD, DFA, PE, and statistical measures, namely—mean, standard deviation, skewness, and kurtosis.
- Classifier: Extreme Gradient Boosting (XGBoost).
- Five-stage sleep classification (W, N1, N2, N3/N4, R): 87.44%;
- Four-stage sleep classification (W, Light Sleep N1, N2, Deep Sleep N3, N4, R): 90.08%;
- Three-stage sleep classification (W, Non-REM N1, N2, N3, N4, REM R): 93.31%;
- Two-stage sleep classification (Non-REM, REM): 95.34%;
- Two-stage sleep classification (Awake W, Asleep N1, N2, N3, N4, R): 97.34%.
7. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Hirshkowitz, M.; Whiton, K.; Albert, S.M.; Alessi, C.; Bruni, O.; DonCarlos, L.; Hazen, N.; Herman, J.; Adams Hillard, P.J.; Katz, E.S.; et al. National Sleep Foundation’s updated sleep duration recommendations: Final report. Sleep Health 2015, 1, 233–243. [Google Scholar] [CrossRef]
- Streatfeild, J.; Smith, J.; Mansfield, D.; Pezzullo, L.; Hillman, D. The social and economic cost of sleep disorders. Sleep 2021, 44, zsab132. [Google Scholar] [CrossRef] [PubMed]
- Duffy, J.F.; Abbott, S.M.; Burgess, H.J.; Crowley, S.J.; Emens, J.S.; Epstein, L.J.; Gamble, K.L.; Hasler, B.P.; Kristo, D.A.; Malkani, R.G.; et al. Workshop report. Circadian rhythm sleep–wake disorders: Gaps and opportunities. Sleep 2021, 44, zsaa281. [Google Scholar] [CrossRef]
- Eldele, E.; Chen, Z.; Liu, C.; Wu, M.; Kwoh, C.K.; Li, X.; Guan, C. An Attention-Based Deep Learning Approach for Sleep Stage Classification With Single-Channel EEG. IEEE Trans. Neural Syst. Rehabil. Eng. 2021, 29, 809–818. [Google Scholar] [CrossRef]
- Tiwari, S.; Arora, D.; Nagar, V. Detection of insomnia using advanced complexity and entropy features of sleep stage data of EEG recordings. Meas. Sens. 2022, 24, 100498. [Google Scholar] [CrossRef]
- Guo, Y.; Zou, G.; Shao, Y.; Chen, J.; Li, Y.; Liu, J.; Yao, P.; Zhou, S.; Xu, J.; Hu, S.; et al. Increased connectivity of the anterior cingulate cortex is associated with the tendency to awakening during N2 sleep in patients with insomnia disorder. Sleep 2022, 46, zsac290. [Google Scholar] [CrossRef] [PubMed]
- Taksokhan, A.; Kim, K. Lateral Preoptic Hypothalamus: A Window to Understanding Insomnia. J. Neurosci. 2023, 43, 682–684. [Google Scholar] [CrossRef] [PubMed]
- Martín-Montero, A.; Armañac-Julián, P.; Gil, E.; Kheirandish-Gozal, L.; Álvarez, D.; Lázaro, J.; Bailón, R.; Gozal, D.; Laguna, P.; Hornero, R.; et al. Pediatric sleep apnea: Characterization of apneic events and sleep stages using heart rate variability. Comput. Biol. Med. 2023, 154, 106549. [Google Scholar] [CrossRef] [PubMed]
- Pal, A.; Martinez, F.; Akey, M.A.; Aysola, R.S.; Henderson, L.A.; Malhotra, A.; Macey, P.M. Breathing rate variability in obstructive sleep apnea during wakefulness. J. Clin. Sleep Med. 2022, 18, 825–833. [Google Scholar] [CrossRef] [PubMed]
- Shen, N.; Luo, T.; Chen, C.; Zhang, Y.; Zhu, H.; Zhou, Y.; Wang, Y.; Chen, W. Towards an automatic narcolepsy detection on ambiguous sleep staging and sleep transition dynamics joint model. J. Neural Eng. 2022, 19, 056009. [Google Scholar] [CrossRef]
- Lopez, R.; Barateau, L.; Laura Rassu, A.; Evangelista, E.; Chenini, S.; Scholz, S.; Jaussent, I.; Dauvilliers, Y. Rapid eye movement sleep duration during the multiple sleep latency test to diagnose hypocretin-deficient narcolepsy. Sleep 2022, 46, zsac247. [Google Scholar] [CrossRef] [PubMed]
- Ni, Y.N.; Thomas, R.J. A longitudinal study of the accuracy of positive airway pressure therapy machine-detected apnea-hypopnea events. J. Clin. Sleep Med. 2022, 18, 1121–1134. [Google Scholar] [CrossRef] [PubMed]
- Johann, A.F.; Feige, B.; Hertenstein, E.; Nissen, C.; Benz, F.; Steinmetz, L.; Baglioni, C.; Riemann, D.; Spiegelhalder, K.; Akram, U. The Effects of Cognitive Behavioral Therapy for Insomnia on Multidimensional Perfectionism. Behav. Ther. 2023, 54, 386–399. [Google Scholar] [CrossRef] [PubMed]
- Balla, V.; Partanen, E.; Shtyrov, Y.; Leminen, M.; Turunen, P.; Leminen, A. Daytime slow-wave sleep promotes memory consolidation for novel morphology. In Proceedings of the ICON 2022, International Conference of Cognitive Neuroscience, ICON 2022, Helsinki, Finland, 18–22 May 2022. [Google Scholar] [CrossRef]
- Hanke, J.M.; Schindler, K.A.; Seiler, A. On the relationships between epilepsy, sleep, and Alzheimer’s disease: A narrative review. Epilepsy Behav. 2022, 129, 108609. [Google Scholar] [CrossRef] [PubMed]
- Acebo, C.; LeBourgeois, M.K. Actigraphy. Respir. Care Clin. N. Am. 2006, 12, 23–30. [Google Scholar] [CrossRef]
- Alakuijala, A.; Sarkanen, T.; Jokela, T.; Partinen, M. Accuracy of Actigraphy Compared to Concomitant Ambulatory Polysomnography in Narcolepsy and Other Sleep Disorders. Front. Neurol. 2021, 12, 629709. [Google Scholar] [CrossRef] [PubMed]
- Myllymäki, T.; Kyröläinen, H.; Savolainen, K.; Hokka, L.; Jakonen, R.; Juuti, T.; Martinmäki, K.; Kaartinen, J.; Kinnunen, M.L.; Rusko, H. Effects of vigorous late-night exercise on sleep quality and cardiac autonomic activity. J. Sleep Res. 2011, 20, 146–153. [Google Scholar] [CrossRef]
- Khalili, E.; Mohammadzadeh Asl, B. Automatic Sleep Stage Classification Using Temporal Convolutional Neural Network and New Data Augmentation Technique from Raw Single-Channel EEG. Comput. Methods Programs Biomed. 2021, 204, 106063. [Google Scholar] [CrossRef]
- Chambon, S.; Galtier, M.N.; Arnal, P.J.; Wainrib, G.; Gramfort, A. A Deep Learning Architecture for Temporal Sleep Stage Classification Using Multivariate and Multimodal Time Series. IEEE Trans. Neural Syst. Rehabil. Eng. 2018, 26, 758–769. [Google Scholar] [CrossRef] [Green Version]
- Yildirim, O.; Baloglu, U.B.; Acharya, U.R. A Deep Learning Model for Automated Sleep Stages Classification Using PSG Signals. Int. J. Environ. Res. Public Health 2019, 16, 599. [Google Scholar] [CrossRef] [Green Version]
- Loh, H.W.; Ooi, C.P.; Dhok, S.G.; Sharma, M.; Bhurane, A.A.; Acharya, U.R. Automated detection of cyclic alternating pattern and classification of sleep stages using deep neural network. Appl. Intell. 2022, 52, 2903–2917. [Google Scholar] [CrossRef]
- You, Y.; Zhong, X.; Liu, G.; Yang, Z. Automatic sleep stage classification: A light and efficient deep neural network model based on time, frequency and fractional Fourier transform domain features. Artif. Intell. Med. 2022, 127, 102279. [Google Scholar] [CrossRef] [PubMed]
- Zhai, Q.; Tang, T.; Lu, X.; Zhou, X.; Li, C.; Yi, J.; Liu, T. Machine Learning-Enabled Noncontact Sleep Structure Prediction. Adv. Intell. Syst. 2022, 4, 2100227. [Google Scholar] [CrossRef]
- Mousavi, S.; Afghah, F.; Acharya, U.R. SleepEEGNet: Automated sleep stage scoring with sequence to sequence deep learning approach. PLoS ONE 2019, 14, e0216456. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Tim Cvetko, T.C.; Tinkara Robek, T.R. Deep Learning Analysis for Estimating Sleep Syndrome Detection Utilizing the Twin Convolutional Model FTC2. BOHR Int. J. Internet Things Artif. Intell. Mach. Learn. 2022, 1, 14–19. [Google Scholar] [CrossRef]
- Manjunatha, P.; Rangappa, V.C.; Varati, A.; Narayanappa, C.K. Automatic Detection of Sleep Stages Using Deep Learning Algorithm. In Proceedings of the 2022 4th International Conference on Circuits, Control, Communication and Computing (I4C), Bangalore, India, 21–23 December 2022; pp. 436–439. [Google Scholar] [CrossRef]
- Satapathy, S.K.; Thakkar, S.; Patel, A.; Patel, D.; Patel, D. An Effective EEG Signal-Based Sleep Staging System using Machine Learning Techniques. In Proceedings of the 2022 IEEE 6th Conference on Information and Communication Technology (CICT), Gwalior, India, 18–20 November 2022; pp. 1–6. [Google Scholar] [CrossRef]
- Al-Salman, W.; Li, Y.; Wen, P. Detection of EEG K-Complexes Using Fractal Dimension of Time Frequency Images Technique Coupled With Undirected Graph Features. Front. Neuroinform. 2019, 13, 45. [Google Scholar] [CrossRef] [Green Version]
- Yücelbaş, C.; Yücelbaş, Ş.; Özşen, S.; Tezel, G.; Küççüktürk, S.; Yosunkaya, Ş. A novel system for automatic detection of K-complexes in sleep EEG. Neural Comput. Appl. 2018, 29, 137–157. [Google Scholar] [CrossRef]
- 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. [Google Scholar] [CrossRef]
- Hasan, M.J.; Shon, D.; Im, K.; Choi, H.K.; Yoo, D.S.; Kim, J.M. Sleep State Classification Using Power Spectral Density and Residual Neural Network with Multichannel EEG Signals. Appl. Sci. 2020, 10, 7639. [Google Scholar] [CrossRef]
- De Zambotti, M.; Rosas, L.; Colrain, I.M.; Baker, F.C. The Sleep of the Ring: Comparison of the ŌURA Sleep Tracker Against Polysomnography. Behav. Sleep Med. 2019, 17, 124–136. [Google Scholar] [CrossRef]
- Altini, M.; Kinnunen, H. The Promise of Sleep: A Multi-Sensor Approach for Accurate Sleep Stage Detection Using the Oura Ring. Sensors 2021, 21, 4302. [Google Scholar] [CrossRef] [PubMed]
- Fujimoto, K.; Ding, Y.; Takahashi, E. Sleep stage detection using a wristwatch-type physiological sensing device. Sleep Biol. Rhythm. 2018, 16, 449–456. [Google Scholar] [CrossRef]
- Toften, S.; Pallesen, S.; Hrozanova, M.; Moen, F.; Grønli, J. Validation of sleep stage classification using non-contact radar technology and machine learning (Somnofy®). Sleep Med. 2020, 75, 54–61. [Google Scholar] [CrossRef] [PubMed]
- Penzel, T.; Kantelhardt, J.; Grote, L.; Peter, J.; Bunde, A. Comparison of detrended fluctuation analysis and spectral analysis for heart rate variability in sleep and sleep apnea. IEEE Trans. Biomed. Eng. 2003, 50, 1143–1151. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Kuula, L.; Pesonen, A.K. Heart Rate Variability and Firstbeat Method for Detecting Sleep Stages in Healthy Young Adults: Feasibility Study. JMIR Mhealth Uhealth 2021, 9, e24704. [Google Scholar] [CrossRef] [PubMed]
- Kemp, B.; Zwinderman, A.; Tuk, B.; Kamphuisen, H.; Oberye, J. Analysis of a sleep-dependent neuronal feedback loop: The slow-wave microcontinuity of the EEG. IEEE Trans. Biomed. Eng. 2000, 47, 1185–1194. [Google Scholar] [CrossRef]
- Goldberger, A.; Amaral, L.; Glass, L.; Hausdorff, J.; Ivanov, P.C.; Mark, R.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, e215–e220, Sleep-EDF Expanded Dataset. Available online: https://physionet.org/content/sleep-edfx/ (accessed on 28 June 2023). [CrossRef] [Green Version]
- Wolpert, E.A. A Manual of Standardized Terminology, Techniques and Scoring System for Sleep Stages of Human Subjects. Arch. Gen. Psychiatry 1969, 20, 246–247. [Google Scholar] [CrossRef]
- Gramfort, A.; Luessi, M.; Larson, E.; Engemann, D.A.; Strohmeier, D.; Brodbeck, C.; Goj, R.; Jas, M.; Brooks, T.; Parkkonen, L.; et al. MEG and EEG Data Analysis with MNE-Python. Front. Neurosci. 2013, 7, 267. [Google Scholar] [CrossRef] [Green Version]
- Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: Synthetic Minority over-Sampling Technique. J. Artif. Int. Res. 2002, 16, 321–357. [Google Scholar] [CrossRef]
- Solomon, O.M., Jr. PSD Computations Using Welch’s Method. [Power Spectral Density (PSD)]; Sandia National Lab.: Albuquerque, NM, USA, 1991. [Google Scholar] [CrossRef]
- Weng, X.; Perry, A.; Maroun, M.; Vuong, L.T. Singular Value Decomposition and Entropy Dimension of Fractals. arXiv 2022, arXiv:2211.12338. [Google Scholar]
- Roberts, S.J.; Penny, W.; Rezek, I. Temporal and spatial complexity measures for electroencephalogram based brain-computer interfacing. Med. Biol. Eng. Comput. 1999, 37, 93–98. [Google Scholar] [CrossRef] [PubMed]
- Bao, F.S.; Liu, X.; Zhang, C. PyEEG: An open source Python module for EEG/MEG feature extraction. Comput. Intell. Neurosci. 2011, 2011, 406391. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Shamsi, E.; Ahmadi-Pajouh, M.A.; Seifi Ala, T. Higuchi fractal dimension: An efficient approach to detection of brain entrainment to theta binaural beats. Biomed. Signal Process. Control 2021, 68, 102580. [Google Scholar] [CrossRef]
- La Torre, F.C.D.; González-Trejo, J.I.; Real-Ramírez, C.A.; Hoyos-Reyes, L.F. Fractal dimension algorithms and their application to time series associated with natural phenomena. J. Phys. Conf. Ser. 2013, 475, 012002. [Google Scholar] [CrossRef]
- Bandt, C.; Pompe, B. Permutation entropy: A natural complexity measure for time series. Phys. Rev. Lett. 2002, 88, 174102. [Google Scholar] [CrossRef] [PubMed]
- Peng, C.; Havlin, S.; Stanley, H.E.; Goldberger, A.L. Quantification of scaling exponents and crossover phenomena in nonstationary heartbeat time series. Chaos Interdiscip. J. Nonlinear Sci. 1995, 5, 82–87. [Google Scholar] [CrossRef] [Green Version]
- Zan, H.; Yildiz, A. Local Pattern Transformation-Based convolutional neural network for sleep stage scoring. Biomed. Signal Process. Control 2023, 80, 104275. [Google Scholar] [CrossRef]
- Jin, Z.; Jia, K. SAGSleepNet: A deep learning model for sleep staging based on self-attention graph of polysomnography. Biomed. Signal Process. Control 2023, 86, 105062. [Google Scholar] [CrossRef]
- Kwon, K.; Kwon, S.; Yeo, W.H. Automatic and Accurate Sleep Stage Classification via a Convolutional Deep Neural Network and Nanomembrane Electrodes. Biosensors 2022, 12, 155. [Google Scholar] [CrossRef]
- Arslan, R.S.; Ulutas, H.; Köksal, A.S.; Bakir, M.; Çiftçi, B. Sensitive deep learning application on sleep stage scoring by using all PSG data. Neural Comput. Appl. 2023, 35, 7495–7508. [Google Scholar] [CrossRef]
- Zhang, J.; Yao, R.; Ge, W.; Gao, J. Orthogonal convolutional neural networks for automatic sleep stage classification based on single-channel EEG. Comput. Methods Programs Biomed. 2020, 183, 105089. [Google Scholar] [CrossRef] [PubMed]
- Zhou, J.; Wang, G.; Liu, J.; Wu, D.; Xu, W.; Wang, Z.; Ye, J.; Xia, M.; Hu, Y.; Tian, Y. Automatic Sleep Stage Classification With Single Channel EEG Signal Based on Two-Layer Stacked Ensemble Model. IEEE Access 2020, 8, 57283–57297. [Google Scholar] [CrossRef]
- Hassan, A.R.; Bhuiyan, M.I.H. An automated method for sleep staging from EEG signals using normal inverse Gaussian parameters and adaptive boosting. Neurocomputing 2017, 219, 76–87. [Google Scholar] [CrossRef]
- Tripathi, P.; Ansari, M.A.; Gandhi, T.K.; Mehrotra, R.; Heyat, M.B.B.; Akhtar, F.; Ukwuoma, C.C.; Muaad, A.Y.; Kadah, Y.M.; Al-Antari, M.A.; et al. Ensemble Computational Intelligent for Insomnia Sleep Stage Detection via the Sleep ECG Signal. IEEE Access 2022, 10, 108710–108721. [Google Scholar] [CrossRef]
- Sulistyono, M.Y.T.; Ernawati, D.; Sari, W.S.; Hadiati Nugraini, S. Artifact-EOG Denoising Using FIR-Filtering In EEG Channel Selection For Monitoring and Rehabilitation of Stroke Patients. In Proceedings of the 2022 International Seminar on Application for Technology of Information and Communication (iSemantic), Semarang, Indonesia, 17–18 September 2022; pp. 82–88. [Google Scholar] [CrossRef]
- Ma, Y.; Chen, B.; Ren, P.; Zheng, N.; Indiveri, G.; Donati, E. EMG-Based Gestures Classification Using a Mixed-Signal Neuromorphic Processing System. IEEE J. Emerg. Sel. Top. Circ. Syst. 2020, 10, 578–587. [Google Scholar] [CrossRef]
- Ganesan, R.A.; Jain, R. Binary State Prediction of Sleep or Wakefulness Using EEG and EOG Features. In Proceedings of the 2020 IEEE 17th India Council International Conference (INDICON), New Delhi, India, 10–13 December 2020; pp. 1–7. [Google Scholar] [CrossRef]
- Jaggard, J.B.; Wang, G.X.; Mourrain, P. Non-REM and REM/paradoxical sleep dynamics across phylogeny. Curr. Opin. Neurobiol. 2021, 71, 44–51. [Google Scholar] [CrossRef]
- Terzano, M.; Parrino, L.; Sherieri, A.; Chervin, R.; Chokroverty, S.; Guilleminault, C.; Hirshkowitz, M.; Mahowald, M.; Moldofsky, H.; Rosa, A.; et al. Atlas, rules, and recording techniques for the scoring of cyclic alternating pattern (CAP) in human sleep. Sleep Med. 2001, 2, 537–553, Erratum in Sleep Med. 2002, 3, 185. [Google Scholar] [CrossRef]
- Goldberger, A.; Amaral, L.; Glass, L.; Hausdorff, J.; Ivanov, P.C.; Mark, R.; Mietus, J.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, e215–e220, St. Vincent’s University Hospital/University College Dublin Sleep Apnea Database. Available online: https://physionet.org/content/ucddb/1.0.0/ (accessed on 28 June 2023). [CrossRef] [Green Version]
Model | Accuracy | AUC | Recall | Prec. | F1 |
---|---|---|---|---|---|
XGBoost | 0.8744 | 0.9793 | 0.8547 | 0.8777 | 0.8755 |
LGBM | 0.8714 | 0.9791 | 0.8561 | 0.8764 | 0.873 |
RF | 0.8614 | 0.9743 | 0.8396 | 0.8661 | 0.863 |
ET | 0.86 | 0.9732 | 0.8329 | 0.8612 | 0.8601 |
SVM | 0.7922 | 0.9112 | 0.7954 | 0.8166 | 0.7979 |
KNN | 0.786 | 0.9295 | 0.794 | 0.8227 | 0.794 |
LDA | 0.7688 | 0.9387 | 0.7622 | 0.7957 | 0.7771 |
Ridge | 0.7401 | 0.8988 | 0.7493 | 0.7739 | 0.7459 |
QDA | 0.4053 | 0.781 | 0.5103 | 0.6533 | 0.3153 |
NB | 0.3388 | 0.7714 | 0.4021 | 0.5742 | 0.2118 |
Feature Extraction Measure | Classifier Model | Accuracy | AUC | Recall | Precision |
---|---|---|---|---|---|
Statistical measures | RF | 82.17 | 96.45 | 78.84 | 83.51 |
ET | 81.75 | 96.19 | 77.28 | 82.84 | |
LGBM | 81.2 | 96.14 | 76.25 | 82.21 | |
XGB | 80.93 | 96.07 | 77.32 | 82.4 | |
PSD | XGB | 82.25 | 95.99 | 79.1 | 82.63 |
LGBM | 81.67 | 95.92 | 79.21 | 82.47 | |
RF | 81.12 | 95.4 | 78.12 | 81.46 | |
ET | 80.9 | 95.18 | 79.96 | 81 | |
HFD | ET | 67.69 | 88 | 64.66 | 68.06 |
RF | 66.79 | 88 | 65.07 | 67.86 | |
LGBM | 64.9 | 88.94 | 67.26 | 68.69 | |
XGB | 67.69 | 88 | 64.66 | 68.06 | |
SVD entropy | ET | 68.97 | 88.76 | 63.76 | 69.63 |
LGBM | 68.88 | 89.77 | 66.67 | 71.21 | |
XGB | 68.25 | 89.53 | 65.96 | 70.71 | |
RF | 68.43 | 88.67 | 64.18 | 69.77 | |
PE | ET | 72.22 | 91.01 | 68.71 | 73.08 |
RF | 71.52 | 90.91 | 68.92 | 72.86 | |
LGBM | 71.33 | 91.93 | 71.7 | 74.23 | |
XGB | 70.78 | 91.72 | 71 | 73.73 | |
DFA | LGBM | 68.64 | 89.51 | 66.25 | 71.03 |
ET | 68.26 | 88.25 | 63.08 | 69.04 | |
XGB | 68.16 | 89.29 | 66.03 | 70.77 | |
RF | 67.63 | 88.14 | 63.37 | 69.06 |
Feature Extraction Measure | Classifier Model | Accuracy | AUC | Recall | Precision |
---|---|---|---|---|---|
PSD + statistical measures | XGB | 85.34 | 97.22 | 82.25 | 85.59 |
LGBM | 84.95 | 97.17 | 82.37 | 85.39 | |
RF | 83.02 | 96.29 | 79.85 | 83.35 | |
ET | 82.53 | 95.94 | 78.79 | 82.73 | |
HFD, PE, DFA, SVD Ent | ET | 85.12 | 97.03 | 82.66 | 85.3 |
RF | 84.66 | 96.87 | 83 | 85.18 | |
XGB | 84.16 | 96.99 | 83.48 | 85.15 | |
LGBM | 83.58 | 96.89 | 83.44 | 84.81 | |
PSD, HFD, PE, DFA, SVD Ent | XGB | 86.85 | 97.78 | 85 | 87.19 |
LGBM | 86.47 | 97.72 | 85.27 | 87.04 | |
ET | 85.49 | 97.17 | 82.67 | 85.6 | |
RF | 85.45 | 97.24 | 83.7 | 85.89 | |
All combined | XGB | 87.44 | 97.93 | 85.47 | 87.77 |
LGBM | 87.14 | 97.91 | 85.61 | 87.64 | |
RF | 86.14 | 97.43 | 83.96 | 86.61 | |
ET | 86 | 97.32 | 83.29 | 86.12 |
Sleep Stage | Precision | Recall | F1-Score | Support |
---|---|---|---|---|
W | 89 | 90 | 90 | 840 |
N1 | 61 | 69 | 65 | 685 |
N2 | 92 | 87 | 90 | 3883 |
N3/N4 | 86 | 91 | 89 | 1292 |
R | 88 | 90 | 89 | 1598 |
Accuracy | 87 |
Classifier | Accuracy | AUC | Recall | Precision |
---|---|---|---|---|
XGB | 90.08 | 97.95 | 91.94 | 90.33 |
LGBM | 89.69 | 97.77 | 91.32 | 90.01 |
RF | 88.48 | 97.17 | 90.05 | 88.93 |
ET | 87.66 | 96.9 | 89.21 | 88.11 |
Sleep Stage | Precision | Recall | F1-Score | Support |
---|---|---|---|---|
W | 83 | 93 | 88 | 840 |
Light (N1/N2) | 93 | 88 | 91 | 4568 |
Deep (N3/N4) | 85 | 92 | 88 | 1292 |
R | 88 | 91 | 89 | 1598 |
Accuracy | 90 |
Classifier | Accuracy | AUC | Recall | Precision |
---|---|---|---|---|
XGB | 93.31 | 98.59 | 93.04 | 93.61 |
LGBM | 93.18 | 98.57 | 93.22 | 93.56 |
RF | 92.36 | 98.07 | 92.34 | 92.88 |
ET | 91.58 | 97.83 | 91.59 | 92.16 |
Sleep Stage | Precision | Recall | F1-Score | Support |
---|---|---|---|---|
W | 83 | 93 | 88 | 840 |
Non-REM (N1, …N4) | 97 | 94 | 95 | 5860 |
REM (R) | 86 | 91 | 88 | 1598 |
Accuracy | 93 |
Classifier | Accuracy | AUC | Recall | Precision |
---|---|---|---|---|
XGB | 95.34 | 98.76 | 91.45 | 87.68 |
LGBM | 95.29 | 98.76 | 92.41 | 87.07 |
RF | 95.19 | 98.54 | 88.98 | 89.21 |
ET | 94.56 | 98.23 | 86.74 | 88.43 |
Sleep Stage | Precision | Recall | F1-Score | Support |
---|---|---|---|---|
Non-REM | 98 | 97 | 97 | 5851 |
REM | 88 | 91 | 90 | 1618 |
Accuracy | 96 |
Classifier | Accuracy | AUC | Recall | Precision |
---|---|---|---|---|
XGB | 97.34 | 99.47 | 97.77 | 99.27 |
LGBM | 97.14 | 99.46 | 97.48 | 99.33 |
RF | 96.63 | 99.25 | 96.83 | 99.4 |
ET | 96.7 | 99.34 | 96.9 | 99.43 |
Sleep Stage | Precision | Recall | F1-Score | Support |
---|---|---|---|---|
Awake | 84 | 93 | 88 | 840 |
Asleep | 99 | 98 | 99 | 7458 |
Accuracy | 97 |
Study | Year | Dataset | Classification Method | Feature Extraction Method | Modality | Overall Accuracy |
---|---|---|---|---|---|---|
This study | 2023 | PhysioNet Sleep-EDF-18 | XGBoost | SVD entropy, Higuchi FD, DFA, PE, PSD, statistical measures | PSG | 90.1% (4-stage), 93.34% (3-stage) |
Zan et al. [52] | 2023 | PhysioNet Sleep-EDF-13 | CNN | 1-D Local Binary Patterns, Local Neighbour Descriptive Pattern, Local Gradient Pattern, Local Neighbor Gradient Pattern | PSG | 84.80% |
Jin et al. [53] | 2023 | PhysioNet Sleep-EDF-18, UCD and CAP | GCN and BiGRU | Short-Time Fourier Transform | PSG | 80.07% |
Kwon et al. [54] | 2022 | ISRUC | CNN | Multi-taper Spectrogram and CNN | PSG | 81.52% |
Zhai et al. [24] | 2022 | Original Dataset and MIT dataset | CRNN | CRNN | PSG and Radio Frequency | 79.20% |
Arslan et al. [55] | 2022 | Original Dataset | DNN | General preprocessing and undersampling | PSG | 91.60% |
Loh et al. [22] | 2022 | Cyclic Alternating Pattern (CAP) dataset | CNN | No explicit feature extraction | EEG | 90.46% |
Cvetko et al. [26] | 2022 | PhysioNet Sleep-EDF-13 and Sleep-EDF-18 | CNN-LSTM | CEEMDAN, FFT, and PE | EEG | 90.43% |
You et al. [23] | 2022 | PhysioNet Sleep-EDF-13 Montreal Archive of Sleep Studies (MASS) | Bidirectional LSTM | Fractional Fourier Transform | EEG | 81.60% |
Zhang et al. [56] | 2020 | Not Open Access | Orthogonal-CNN | Hilbert–Huang transform, | EEG | 88.40% |
Zhou et al. [57] | 2020 | PhysioNet Sleep-EDF-13 and Sleep-EDF-18 | Ensemble ML model— Random Forest + LGBM | Standard deviation, spectral entropy, Kraskov entropy, Renyi entropy, Hjorth parameters, Katz FD, Petrosian FD, Maximum-Minimum Distance, Hurst exponent and log root sum of sequential variations | EEG | 91.20% |
Mousavi et al. [25] | 2019 | PhysioNet Sleep-EDF-13 and Sleep-EDF-18 | CNN and Bi-RNN | CNN and Bi-RNN | EEG | 84.26% |
Hassan et al. [58] | 2017 | PhysioNet Sleep Edf and St. Vincent’s University Hospital/University College Dublin Sleep Apnea Database | AdaBoost | TQWT and NIG Probability Density Function | EEG | 94% |
Tripathi et al. [59] | 2022 | PhysioNet Sleep-EDF-13 | Ensemble ML | PSD, Pan-Tompking method for HRV extraction | ECG | 96% (2-stage) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Lal, U.; Mathavu Vasanthsena, S.; Hoblidar, A. Temporal Feature Extraction and Machine Learning for Classification of Sleep Stages Using Telemetry Polysomnography. Brain Sci. 2023, 13, 1201. https://doi.org/10.3390/brainsci13081201
Lal U, Mathavu Vasanthsena S, Hoblidar A. Temporal Feature Extraction and Machine Learning for Classification of Sleep Stages Using Telemetry Polysomnography. Brain Sciences. 2023; 13(8):1201. https://doi.org/10.3390/brainsci13081201
Chicago/Turabian StyleLal, Utkarsh, Suhas Mathavu Vasanthsena, and Anitha Hoblidar. 2023. "Temporal Feature Extraction and Machine Learning for Classification of Sleep Stages Using Telemetry Polysomnography" Brain Sciences 13, no. 8: 1201. https://doi.org/10.3390/brainsci13081201
APA StyleLal, U., Mathavu Vasanthsena, S., & Hoblidar, A. (2023). Temporal Feature Extraction and Machine Learning for Classification of Sleep Stages Using Telemetry Polysomnography. Brain Sciences, 13(8), 1201. https://doi.org/10.3390/brainsci13081201