Classifying Sleep States Using Persistent Homology and Markov Chains: A Pilot Study

  • Chapter
  • First Online:
Advances in Data Science

Part of the book series: Association for Women in Mathematics Series ((AWMS,volume 26))

  • 834 Accesses

Abstract

Obstructive sleep Apnea (OSA) is a form of sleep disordered breathing characterized by frequent episodes of upper airway collapse during sleep. Pediatric OSA occurs in 1–5% of children and can be related to other serious health conditions such as high blood pressure, behavioral issues, or altered growth. OSA is often diagnosed by studying the patient’s sleep cycle, the pattern with which they progress through various sleep states such as wakefulness, rapid eye-movement, and non-rapid eye-movement. The sleep state data is obtained using an overnight polysomnography test that the patient undergoes at a hospital or sleep clinic, where a technician manually labels each 30 second time interval with the current sleep state. This process is laborious and prone to human error. We seek an automatic method of classifying the sleep state, as well as a method to analyze the sleep cycles. This article is a pilot study in sleep state classification using two approaches: first, we’ll use methods from the field of topological data analysis to classify the sleep state and second, we’ll model sleep states as a Markov chain and visually analyze the sleep patterns. In the future, we will continue to build on this work to improve our methods.

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

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
EUR 29.95
Price includes VAT (Germany)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 106.99
Price includes VAT (Germany)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 139.09
Price includes VAT (Germany)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info
Hardcover Book
EUR 139.09
Price includes VAT (Germany)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Henry Adams, Tegan Emerson, Michael Kirby, Rachel Neville, Chris Peterson, Patrick Shipman, Sofya Chepushtanova, Eric Hanson, Francis Motta, and Lori Ziegelmeier. Persistence images: A stable vector representation of persistent homology. The Journal of Machine Learning Research, 18(1):218–252, January 2017.

    MathSciNet  MATH  Google Scholar 

  2. Jesse Berwald and Marian Gidea. Critical transitions in a model of a genetic regulatory system. Mathematical Biosciences & Engineering, 11(4):723–740, 2014.

    Article  MathSciNet  Google Scholar 

  3. Leo Breiman. Random forests. Machine learning, 45(1):5–32, 2001.

    Article  Google Scholar 

  4. Leo Breiman. Classification and regression trees. Routledge, 2017.

    Book  Google Scholar 

  5. Yu-Min Chung, Chuan-Shen Hu, Yu-Lun Lo, and Hau-Tieng Wu. A persistent homology approach to heart rate variability analysis with an application to sleep-wake classification. ar**v preprint ar**v:1908.06856, 2019.

    Google Scholar 

  6. Herbert Edelsbrunner and John Harer. Computational Topology: An Introduction. American Mathematical Society, 2010.

    MATH  Google Scholar 

  7. Jerome H Friedman. Greedy function approximation: a gradient boosting machine. Annals of statistics, pages 1189–1232, 2001.

    Google Scholar 

  8. Jacob Goldberger, Geoffrey E Hinton, Sam T Roweis, and Russ R Salakhutdinov. Neighbourhood components analysis. In Advances in neural information processing systems, pages 513–520, 2005.

    Google Scholar 

  9. Allen Hatcher. Algebraic Topology. Cambridge University Press, 2002.

    MATH  Google Scholar 

  10. Arthur E Hoerl and Robert W Kennard. Ridge regression: Biased estimation for nonorthogonal problems. Technometrics, 12(1):55–67, 1970.

    Google Scholar 

  11. Firas A. Khasawneh and Elizabeth Munch. Chatter detection in turning using persistent homology. Mechanical Systems and Signal Processing, 70-71:527–541, 2016.

    Article  Google Scholar 

  12. Firas A. Khasawneh and Elizabeth Munch. Utilizing topological data analysis for studying signals of time-delay systems. In Advances in Delays and Dynamics, pages 93–106. Springer International Publishing, 2017.

    Google Scholar 

  13. Firas A. Khasawneh, Elizabeth Munch, and Jose A. Perea. Chatter classification in turning using machine learning and topological data analysis. In Tamas Insperger, editor, 14th IFAC Workshop on Time Delay Systems TDS 2018: Budapest, Hungary, 28–30 June 2018, volume 51, pages 195–200, 2018.

    Google Scholar 

  14. S. Kullback and R.A. Leibler. On Information and Sufficiency. The Annals of Mathematical Statistics, 3 1951.

    Google Scholar 

  15. Gidea M. Topological data analysis of critical transitions in financial networks. In Puzis R. Shmueli E., Barzel B., editor, 3rd International Winter School and Conference on Network Science NetSci-X 2017, Springer Proceedings in Complexity. Springer, Cham, 2017.

    Google Scholar 

  16. Elizabeth Munch. A user’s guide to topological data analysis. Journal of Learning Analytics, 4(2), 2017.

    Google Scholar 

  17. Audun Myers and Firas Khasawneh. On the automatic parameter selection for permutation entropy. ar**v preprint ar**v:1905.06443, 2019.

    Google Scholar 

  18. Steve Y. Oudot. Persistence Theory: From Quiver Representations to Data Analysis (Mathematical Surveys and Monographs). American Mathematical Society, 2015.

    Book  Google Scholar 

  19. F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.

    MathSciNet  MATH  Google Scholar 

  20. Musa Peker. A new approach for automatic sleep scoring: Combining taguchi based complex-valued neural network and complex wavelet transform. Computer Methods and Programs in Biomedicine, 129:203–216, jun 2016.

    Google Scholar 

  21. José A. Perea and John Harer. Sliding windows and persistence: An application of topological methods to signal analysis. Foundations of Computational Mathematics, pages 1–40, 2015.

    Google Scholar 

  22. Charlene E. Gamaldo Susan M. Harding Robin M. Lloyd Stuart F. Quan Matthew M. Troester Bradley V. Vaughn. Richard B. Berry, Rita Brooks. The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology and Technical Specifications. American Academy of Sleep Medicine, Darien, IL, 2017.

    Google Scholar 

  23. Nathaniel Saul and Chris Tralie. Scikit-tda: Topological data analysis for python, 2019.

    Google Scholar 

  24. Johan AK Suykens and Joos Vandewalle. Least squares support vector machine classifiers. Neural processing letters, 9(3):293–300, 1999.

    Google Scholar 

  25. Floris Takens. Detecting strange attractors in turbulence. In Lecture Notes in Mathematics, pages 366–381. Springer Berlin Heidelberg, 1981.

    Google Scholar 

  26. Christopher Tralie. High-dimensional geometry of sliding window embeddings of periodic videos. In 32nd International Symposium on Computational Geometry (SoCG 2016). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2016.

    Google Scholar 

  27. Christopher Tralie, Nathaniel Saul, and Rann Bar-On. Ripser.py: A lean persistent homology library for python. The Journal of Open Source Software, 3(29):925, Sep 2018.

    Google Scholar 

  28. Christopher J Tralie and Jose A Perea. (quasi) periodicity quantification in video data, using topology. SIAM Journal on Imaging Sciences, 11(2):1049–1077, 2018.

    Google Scholar 

  29. Christian H Weiss. An Introduction to Discrete-Valued Time Series. John Wiley & Sons, Ltd, 2018.

    Google Scholar 

Download references

Acknowledgements

This work was started at the second Women in Data Science and Mathematics workshop (WiSDM 2) in summer 2019, at The Institute for Computational and Experimental Research in Mathematics (ICERM), Brown University. We thank ICERM for the support. The authors would like to thank their fellow group members, Brenda Praggastis, Melissa Stockman, Kaisa Taipale, Marilyn Vazquez, Sunny Wang, and Emily Winn. We’d especially like to thank Brenda Praggastis for her help preprocessing the time series data and setting up some of the code for the persistent homology analysis. We also thank Mathieu Chalifour for discussion of polysomnography time series. ST was partially funded by NSF grants DMS1800446 and CMMI-1800466. KS was partially funded by NSF grant DMS 1547357. GH would like to thank the National Sciences and Engineering Research Council of Canada (NSERC DG 2016-05167), Seed grant from Women and Children’s Health Research Institute, Biomedical Research Award from American Association of Orthodontists Foundation, and the McIntyre Memorial fund from the School of Dentistry at the University of Alberta.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Giseon Heo .

Editor information

Editors and Affiliations

Appendix

Appendix

This section contains tables and figures referred to in the main article (Tables 4, 5, 6, 7, 8, 9, 10, 11, 12 and Figs. 17, 18, 19, 20, 21).

Table 4 Table corresponding to values for signal C3-M2 in Fig. 5
Table 5 Table corresponding to values for signal LEOG-M2 in Fig. 5
Table 6 Table corresponding to values for signal REOG-M2 in Fig. 5
Table 7 Table corresponding to values in Fig. 6
Table 8 Table corresponding to values in Fig. 7
Table 9 Table corresponding to values in Fig. 8 and 9
Table 10 Table corresponding to values in Fig. 10
Table 11 Table corresponding to values in Fig. 11
Table 12 Table corresponding to values in Fig. 12

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Authors and the Association for Women in Mathematics

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Tymochko, S., Singhal, K., Heo, G. (2021). Classifying Sleep States Using Persistent Homology and Markov Chains: A Pilot Study. In: Demir, I., Lou, Y., Wang, X., Welker, K. (eds) Advances in Data Science. Association for Women in Mathematics Series, vol 26. Springer, Cham. https://doi.org/10.1007/978-3-030-79891-8_11

Download citation

Publish with us

Policies and ethics

Navigation