Skip to main content
Log in

Automatic detection of sleep spindles with the use of STFT, EMD and DWT methods

  • New Trends in data pre-processing methods for signal and image classification
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

Sleep staging is a significant process to diagnose sleep disorders. Like other stages, several parameters are required for the determination of N-REM2 stage. Sleep spindles (SSs) are among them. In this study, a methodology was presented to automatically determine starting and ending positions of SSs. To accomplish this, short-time Fourier transform–artificial neural networks (STFT–ANN), empirical mode decomposition (EMD) and discrete wavelet transform (DWT) methods were used. Two considerable methods which were determination envelope and thresholding of the decomposed signals by EMD and DWT were also presented in this study. A database from the EEG signals of nine healthy subjects—which consisted of 100 epochs including 172 SSs in total—was prepared. According to the test results, the highest sensitivity rate was obtained as 100 and 99.42 % for EMD and DWT methods. However, the sensitivity rate for the STFT–ANN method was recorded as 55.93 %. The results indicated that the EMD method could be confidently used in the automatic determination of SSs. Thanks to this study, the sleep experts will be able to reliably find out the epochs with SSs and also know the places of SSs in these epochs, automatically. Another important point of the study was that the sleep staging process—tiring, time-consuming and high fallibility for the experts—could be performed in less time and at higher accuracy rates.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

References

  1. Rechtschaffen A, Kales A (1968) A manual of standardized techniques and scoring system for sleep stages of human subjects. US Government Printing Office NIH Public, Washington

    Google Scholar 

  2. AASM (1999) Sleep-related breathing disorders in adults: recommendations for syndrome definition and measurement techniques in clinical research. The Report of an American Academy of Sleep Medicine Task Force. Sleep 22:667–689

    Article  Google Scholar 

  3. Estrada E, Nazeran H, Nava P et al (2004) EEG feature extraction for classification of sleep stages. In: Conference proceedings: annual international conference of the IEEE engineering in medicine and biology society, vol. 1, pp 196–199. doi:10.1109/IEMBS.2004.1403125

  4. Hanaoka M, Kobayashi M, Yamazaki H (2000) Automated sleep stage scoring by decision tree learning. In: 2001 conference proceedings of the 23rd annual international conference of the IEEE engineering in medicine and biology society, vol. 33, pp 1751–1754. doi:10.1006/cbmr.2000.1549

  5. Tian JY, Liu JQ (2005) Automated sleep staging by a hybrid system comprising neural network and fuzzy rule-based reasoning. In: Conference proceedings: annual international conference of the IEEE engineering in medicine and biology society, vol. 4, pp 4115–4118. doi:10.1109/IEMBS.2005.1615368

  6. Van Hese P, Philips W, De Koninck J et al (2001) Automatic detection of sleep stages using the EEG. In: 2001 conference proceedings of the 23rd annual international conference of the IEEE engineering in medicine and biology society 1944–1947. doi:10.1109/IEMBS.2001.1020608

  7. Agarwal R, Gotman J (2001) Computer-assisted sleep staging. IEEE Trans Biomed Eng 48:1412–1423. doi:10.1109/10.966600

    Article  Google Scholar 

  8. Zoubek L, Charbonnier S, Lesecq S et al (2007) Feature selection for sleep/wake stages classification using data driven methods. Biomed Signal Process Control 2:171–179. doi:10.1016/j.bspc.2007.05.005

    Article  Google Scholar 

  9. Šušmáková K, Krakovská A (2008) Discrimination ability of individual measures used in sleep stages classification. Artif Intell Med 44:261–277. doi:10.1016/j.artmed.2008.07.005

    Article  Google Scholar 

  10. Acharya UR, Ec-P Chua, Chua KC et al (2010) Analysis and automatic identification of sleep stages using higher order spectra. Int J Neural Syst 20:509–521. doi:10.1142/S0129065710002589

    Article  Google Scholar 

  11. Acharya UR, Bhat S, Faust O et al (2015) Nonlinear dynamics measures for automated EEG-based sleep stage detection. Eur Neurol 74:268–287. doi:10.1159/000441975

    Article  Google Scholar 

  12. Doroshenkov LG, Konyshev VA, Selishchev SV (2007) Classification of human sleep stages based on EEG processing using hidden Markov models. Med Tekh 41:24–28. doi:10.1007/s10527-007-0006-5

    Google Scholar 

  13. Ebrahimi F, Mikaeili M, Estrada E, Nazeran H (2008) Automatic sleep stage classification based on EEG signals by using neural networks and wavelet packet coefficients. In: Conference proceedings: annual 30th international conference of the IEEE Engineering in Medicine and Biology Society. pp 1151–1154. Vancouver, British Columbia, Canada, August 20–24

  14. Vural C, Yildiz M (2010) Determination of sleep stage separation ability of features extracted from EEG signals using principle component analysis. J Med Syst 34:83–89. doi:10.1007/s10916-008-9218-9

    Article  Google Scholar 

  15. Acharya UR, Faust O, Kannathal N et al (2005) Non-linear analysis of EEG signals at various sleep stages. Comput Methods Programs Biomed 80:37–45. doi:10.1016/j.cmpb.2005.06.011

    Article  Google Scholar 

  16. Jankel WR, Nidermeyer E (1985) Sleep spindles. J Clin Neurophysiol 2:1–35

    Article  Google Scholar 

  17. Wei HG, Riel E, Czeisler CA, Dijk DJ (1999) Attenuated amplitude of circadian and sleep-dependent modulation of electroencephalographic sleep spindle characteristics in elderly human subjects. Neurosci Lett 260:29–32. doi:10.1016/S0304-3940(98)00851-9

    Article  Google Scholar 

  18. Nonclercq A, Urbain C, Verheulpen D et al (2013) Sleep spindle detection through amplitude-frequency normal modelling. J Neurosci Methods 214:192–203. doi:10.1016/j.jneumeth.2013.01.015

    Article  Google Scholar 

  19. Güneş S, Dursun M, Polat K, Yosunkaya Ş (2011) Sleep spindles recognition system based on time and frequency domain features. Expert Syst Appl 38:2455–2461. doi:10.1016/j.eswa.2010.08.034

    Article  Google Scholar 

  20. Camilleri TA, Camilleri KP, Fabri SG (2014) Automatic detection of spindles and K-complexes in sleep EEG using switching multiple models. Biomed Signal Process Control 10:117–127. doi:10.1016/j.bspc.2014.01.010

    Article  Google Scholar 

  21. Causa L, Held CM, Causa J et al (2010) Automated sleep-spindle detection in healthy children polysomnograms. IEEE Trans Biomed Eng 57:2135–2146. doi:10.1109/TBME.2010.2052924

    Article  Google Scholar 

  22. Erdamar A, Duman F, Yetkin S (2012) A wavelet and teager energy operator based method for automatic detection of K-Complex in sleep EEG. Expert Syst Appl 39:1284–1290. doi:10.1016/j.eswa.2011.07.138

    Article  Google Scholar 

  23. Ventouras EM, Monoyiou EA, Ktonas PY et al (2005) Sleep spindle detection using artificial neural networks trained with filtered time-domain EEG: a feasibility study. Comput Methods Programs Biomed 78:191–207. doi:10.1016/j.cmpb.2005.02.006

    Article  Google Scholar 

  24. Ventouras EM, Panagi M, Tsekou H et al (2014) Amplitude normalization applied to an artificial neural network-based automatic sleep spindle detection system. In: Conference proceedings: annual international conference of the IEEE Engineering in Medicine and Biology Society 2014, pp 3240–3243. doi:10.1109/EMBC.2014.6944313

  25. Liang SF, Kuo CE, Hu YH et al (2012) An adaptive neuro-fuzzy inference system for sleep spindle detection. In: 2012 international conference on fuzzy theory and its applications, iFUZZY 2012. pp 369–373

  26. Najafi M, Ghanbari Z, Molaee-Ardekani B et al (2011) Sleep spindle detection in sleep EEG signal using sparse bump modeling. In: 2011 1st middle east conference on biomedical engineering, MECBME 2011. pp 196–199

  27. Imtiaz SA, Saremi-Yarahmadi S, Rodriguez-Villegas E (2013) Automatic detection of sleep spindles using Teager energy and spectral edge frequency. In: 2013 IEEE biomedical circuits and systems conference, Bio CAS 2013. pp 262–265

  28. Imtiaz SA, Rodriguez-Villegas E (2014) Evaluating the use of line length for automatic sleep spindle detection. In: 2014 36th annual international conference of the IEEE Engineering in Medicine and Biology Society, EMBC 2014. pp 5024–5027

  29. Babadi B, McKinney SM, Tarokh V, Ellenbogen JM (2012) DiBa: a data-driven Bayesian algorithm for sleep spindle detection. IEEE Trans Bio-Med Eng 59:483–493. doi:10.1109/TBME.2011.2175225

    Article  Google Scholar 

  30. Patti CR, Chaparro-Vargas R, Cvetkovic D (2014) Automated sleep spindle detection using novel EEG features and mixture models. In: Conference proceedings: annual international conference of the IEEE Engineering in Medicine and Biology Society 2014, 2221–2224. doi:10.1109/EMBC.2014.6944060

  31. Hekmatmanesh A, Noori SMR, Mikaili M (2014) Sleep spindle detection using modified extreme learning machine generalized radial basis function method. 22nd Iranian Conference On Electrical Engineering, No. Icee, May 2014, pp 1898–1902

  32. Parekh A, Selesnick IW, Rapoport DM, Ayappa I (2015) Sleep spindle detection using time-frequency sparsity. In: 2014 IEEE signal processing in medicine and biology symposium, IEEE SPMB 2014—Proceedings. doi:10.1109/SPMB.2014.7002965

  33. Gorur D, Halici U, Aydin H et al (2002) Sleep spindles detection using short time Fourier transform and neural networks. In: Proceedings of the 2002 international joint conference on neural networks IJCNN’02 (Cat No02CH37290). doi:10.1109/IJCNN.2002.1007762

  34. Venkatakrishnan P, Sangeetha S, Sukanesh R (2008) Detection of sleep spindles from electroencephalogram (EEG) signals using auto recursive (AR) model. In: Proceedings—1st international conference on emerging trends in engineering and technology, ICETET 2008. pp 645–648

  35. Ahmed B, Redissi A, Tafreshi R (2009) An automatic sleep spindle detector based on wavelets and the teager energy operator. In: Proceedings of the 31st annual international conference of the IEEE Engineering in Medicine and Biology Society: Engineering the Future of Biomedicine, EMBC 2009, pp 2596–2599

  36. Wendt SL, Christensen JAE, Kempfner J et al (2012) Validation of a novel automatic sleep spindle detector with high performance during sleep in middle aged subjects. In: Proceedings of the annual international conference of the IEEE Engineering in Medicine and Biology Society, EMBS, pp 4250–4253

  37. Huupponen E, Himanen SL, Hasan J, Värri A (2003) Automatic analysis of electro-encephalogram sleep spindle frequency throughout the night. Med Biol Eng Comput 41:727–732. doi:10.1007/BF02349981

    Article  Google Scholar 

  38. Kabir MM, Tafreshi R, Boivin DB, Haddad N (2015) Enhanced automated sleep spindle detection algorithm based on synchrosqueezing. Med Biol Eng Comput 53:635–644. doi:10.1007/s11517-015-1265-z

    Article  Google Scholar 

  39. Sciarretta G, Bricolo A (1970) Automatic detection of sleep spindles by analysis of harmonic components. Med Biol Eng 8:517–519

    Article  Google Scholar 

  40. Klemm M, Haueisen J, Ivanova G (2009) Independent component analysis: comparison of algorithms for the investigation of surface electrical brain activity. Med Biol Eng Comput 47:413–423

    Article  Google Scholar 

  41. Estevez PA, Held CM, Holzmann CA, Perez CA, Perez JP, Heiss J, Garrido M, Peirano P (2002) Polysomnographic pattern recognition for automated classification of sleep-waking states in infants. Med Biol Eng Comput 40:105–113

    Article  Google Scholar 

  42. Huupponen E, Gomez-Herrero G, Saastamoinen A, Varri A, Hasan J, Himanen S (2007) Development and comparison of four sleep spindle detection methods. Artif Intell Med 40:157–170

    Article  Google Scholar 

  43. Schönwald SV, Santa-Helena EL, Rossatto R, Chaves ML, Gerhardt GJ (2006) Benchmarking matching pursuit to find sleep spindles. J Neurosci Methods 156:314–321

    Article  Google Scholar 

  44. Pan J, Tompkins WJ (1985) A real-time QRS detection algorithm. IEEE Trans Biomed Eng. doi:10.1109/TBME.1985.325532

    Google Scholar 

  45. Sanei S, Chambers JA (2007) EEG signal processing. Chem Biodivers. doi:10.1002/9780470511923

    Google Scholar 

  46. https://en.wikipedia.org/wiki/Short-time_Fourier_transform. Last accessed 26 Sept 2015

  47. Huang N, Shen Z, Long S et al (1998) The empirical mode decomposition and the Hilbert spectrum for nonlinear and non-stationary time series analysis. Proc R Soc Math Phys Eng Sci 454(995):903. doi:10.1098/rspa.1998.0193

    Article  MathSciNet  MATH  Google Scholar 

  48. Labate D, La Foresta F, Occhiuto G et al (2013) Empirical mode decomposition vs. wavelet decomposition for the extraction of respiratory signal from single-channel ECG: a comparison. IEEE Sens J 13:2666–2674. doi:10.1109/JSEN.2013.2257742

    Article  Google Scholar 

  49. Ocak H (2009) Automatic detection of epileptic seizures in EEG using discrete wavelet transform and approximate entropy. Expert Syst Appl 36:2027–2036. doi:10.1016/j.eswa.2007.12.065

    Article  Google Scholar 

  50. Mallat SG (1989) A theory for multiresolution signal decomposition: the wavelet representation. IEEE Trans Pattern Anal Mach Intell 11:674–693. doi:10.1109/34.192463

    Article  MATH  Google Scholar 

  51. Lewis DD, Gale WA (1994) A sequential algorithm for training text classifiers. In: Proceedings of the 17th international conference on research and development in information retrieval (SIGIR’94) 3–12. doi:10.1145/219587.219592

  52. Ma Y, Guo L, Cukic B (2006) A statistical framework for the prediction of fault proneness. Advances in machine learning application in software engineering. Idea Group Inc.

Download references

Acknowledgments

This study is supported by the Scientific and Technological Research Council of Turkey (Project No. 113E591) and the Scientific Research Projects Coordination Unit of Selcuk University.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Cüneyt Yücelbaş.

Ethics declarations

Conflict of interest

The authors declare that there is no conflict of interests regarding the publication of this article.

Ethical standard

All procedures performed in studies involving human participants were in accordance with the ethical standards of the institutional and/or national Non-invasive Clinical Research Medical Ethics Review Board and with the 1964 Helsinki Declaration and its later amendments or comparable ethical standards.

Informed consent

Proper informed consent was obtained from all individual participants included in the study.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Yücelbaş, C., Yücelbaş, Ş., Özşen, S. et al. Automatic detection of sleep spindles with the use of STFT, EMD and DWT methods. Neural Comput & Applic 29, 17–33 (2018). https://doi.org/10.1007/s00521-016-2445-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-016-2445-y

Keywords

Navigation