Export file:


  • RIS(for EndNote,Reference Manager,ProCite)
  • BibTex
  • Text


  • Citation Only
  • Citation and Abstract

A machine learning approach using EEG signals to measure sleep quality

Department of Electrical & Computer Engineering, New York Institute of Technology (NYIT), 1855 Broadway, New York, NY 10023, USA

Sleep quality has a vital effect on good health and well-being throughout a life. Getting enough sleep at the right times can help protect mental health, physical health, quality of life, and safety. In this study, an electroencephalography (EEG)-based machine-learning approach is proposed to measure sleep quality. The advantages of this approach over standard Polysomnography (PSG) method are: 1) it measures sleep quality by recognizing three sleep categories rather than five sleep stages, thus higher accuracy can be expected; 2) three sleep categories are recognized by analyzing EEG signals only, so the user experience is improved because fewer sensors are attached to the body during sleep. Using quantitative features obtained from EEG signals, we developed a new automatic sleep-staging framework that consists of a multi-class support vector machine (SVM) classification based on a decision tree approach. We used polysomnographic data from PhysioBank database to train and evaluate and test the performance of the framework, where the sleep stages have been visually annotated. The results demonstrated that the proposed approach achieves high classification performance, which helps to measure sleep quality accurately. This framework can provide a robust and accurate sleep quality assessment that helps clinicians to determine the presence and severity of sleep disorders, and also evaluate the efficacy of treatments.
  Article Metrics

Keywords automatic sleep quality measurement; electroencephalography (EEG); machine learning; time-frequency features; dendrogram-support vector machine classifier

Citation: Maryam Ravan. A machine learning approach using EEG signals to measure sleep quality. AIMS Electronics and Electrical Engineering, 2019, 3(4): 347-358. doi: 10.3934/ElectrEng.2019.4.347


  • 1. Aboalayon KAI, Faezipour M, Almuhammadi WS, et al. (2016) Sleep stage classification using EEG signal analysis: A Comprehensive Survey and New Investigation. Entropy 18: 272.    
  • 2. Iber C (2006) The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology and Technical Specifications. 1st ed. Westchester, IL: American Academy of Sleep Medicine.
  • 3. Zhu G, Li Y, Wen PP (2014) Analysis and classification of sleep stages based on difference visibility graphs from a single-channel EEG signal. IEEE J Biomed Health 18: 1813-1821.
  • 4. Liu Y, Yan L, Zeng B, et al. (2010) Automatic sleep stage scoring using Hilbert-Huang transform with BP neural network. Proc IEEE Int Conf Bioinf Biomed Eng, 1-4.
  • 5. Sanders TH, McCurry M, Clements MA (2014) Sleep stage classification with cross frequency coupling. Proc IEEE Ann Int Conf Eng Med Biol Soc, 4579-4582.
  • 6. Phan H, Do Q, Do TL, et al. (2013) Metric learning for automatic sleep stage classification. Proc IEEE Ann Int Conf Eng Med Biol Soc, 5025-5028.
  • 7. Lajnef T, Chaibi S, Ruby P, et al. (2015) Learning machines and sleeping brains: Automatic sleep stage classification using decision-tree multi-class support vector machines. J Neurosci Meth 250: 94-105.
  • 8. Younes M (2107) The case for using digital EEG analysis in clinical sleep medicine. Sleep Science and Practice 1: 2.
  • 9. Carden KA (2009) Recording sleep: The electrodes, 10/20 recording system, and sleep system specifications. Sleep Medicine Clinics 4: 333-341.
  • 10. Goldberger AL, Amaral LAN, Glass L, et al. (2000) PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation 101: 215-220.
  • 11. Zhao W, Wang X, Wang Y (2010) Automated sleep quality measurement using EEG signal: first step towards a domain specific music recommendation system. Proc ACM Int Conf Multimedia, 1079-1082.
  • 12. Krystal AD, Edinger JD (2008) Measuring sleep quality. Sleep Med 9: S10-S17.    
  • 13. da Silva FHL, Niedermeyer E (1999) Electroencephalography: basic principles, clinical applications, and related fields. 4th ed. Philadelphia, PA: Lippincott Williams & Wilkins.
  • 14. Buckelmuller J, Landolt HP, Stassen HH, et al. (2006) Trait-like individual differences in the human sleep electroencephalogram. Neuroscience 138: 351-356.
  • 15. van Dongen HPA, Vitellaro KM, Dinges DF (2005) Individual differences in adult human sleep and wakefulness: Leitmotif for a research agenda. Sleep 28: 479-498.
  • 16. Rechtschaffen A, Kales A (1969) A manual of standardized terminology, techniques and scoring system for sleep stages of human subjects. Electroencephalography and Clinical Neurophysiology 26: 644.
  • 17. Thakor NV, Tong S (2004) Advances quantitative electroencephalogram analysis methods. Annu Rev Biomed Eng 6: 453-495.
  • 18. Primer A, Burrus CS, Gopinath RA (1998) Introduction to Wavelets and Wavelet Transforms. Upper Saddle River, NJ: Prentice Hall.
  • 19. Webster JG, Clark JW (1998) Medical Instrumentation, Application and Design. 3rd ed. Hoboken, NJ: Wiley.
  • 20. Bandt C, Pompe B (2002) Permutation entropy: a natural complexity measure for time series. Phys Rev Lett 88: 174102.
  • 21. Fell J, Roschke J, Mann K, et al. (1996) Discrimination of sleep stages: a comparison between spectral and nonlinear EEG measures. Electroencephalography and Clinical Neurophysiology 98: 401-410.
  • 22. Peng H, Long F, Ding C (2005) Feature selection based on mutual information: criteria of max-dependency, max-relevance, and min-redundancy. IEEE T Pattern Anal 27: 1226-1238.
  • 23. Yu L, Liu H (2003) Feature selection for high-dimensional data: A fast correlation-based filter solution. Proc Int Conf Machine Leaning, Washington, 856-863.
  • 24. Platt JC (1998) Sequential minimal optimization: a fast algorithm for training support vector machines. Technical Report.


Reader Comments

your name: *   your email: *  

© 2019 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution Licese (http://creativecommons.org/licenses/by/4.0)

Download full text in PDF

Export Citation

Copyright © AIMS Press All Rights Reserved