Open Access

The Random Forest with Hybrid Principal Component Analysis for detecting Healthy and Insomnia individuals in three subtypes of Cyclic Alternating Pattern Sleep Study

Nadhim Azeez Sayel1*, Mohammad Fayaz2
1University of UoITC, -, Iraq
2Allameh Tabataba i University (ATU), Tehran, Iran
* Corresponding author: nazim201369@uoitc.edu.iq

Presented at the Cognitive Models and Artificial Intelligence Conference (AICCONF2024), İstanbul, Türkiye, May 25, 2024

SETSCI Conference Proceedings, 2024, 17, Page (s): 1-6 , https://doi.org/10.36287/setsci.17.1.001

Published Date: 24 June 2024

Sleep disorders such as insomnia, sleep bruxism, narcolepsy, and sleep-disordered breathing have different sleep quality parameters such as cyclic alternating pattern phases and A subtype phases. This study aims to analyze and predict the A phase subtypes from electroencephalography (EEG) data. The EEG dataset for 27 (8 control, 2 bruxism, 8 insomnia, 5 narcolepsy, and 4 sleep-disordered breathing) people were downloaded and processed. The re-reference method is a common average reference (CAR), and the filtering method is a basic FIR method with lower and higher edge of frequency pass bands of 0.5 and 40 Hz, respectively. The sinusoidal artifacts (line noise) were removed with a CleanLine plug-in. The remaining noises were execrated visually and then Independent Component Analysis (ICA) with ICLabel plug-in. The Power Spectral Density (PSD) Parameters such as 0.5 to 2 Hz for Delta, 4 to 6 Hz for Theta, 8 to 12 for Alpha, 18 to 22 Hz for Beta and 30 to 60 for Gamma brainwaves, alpha peak frequency, and alpha asymmetry were calculated with eegstats plugin. The hybrid principal component analysis (HPCA) was used to estimate the functional, longitudinal, and location effects, and functional principal components analysis (FPCA) was estimated to reach at least 90% fraction of variance (FVE). Finally, the random forest with HPCA and FPCA were compared. The CAP time, NREM time, and CAP Rate were calculated. The PSD difference between groups is not statistically significant for most of the frequency bands, meaning they did not show any differences between different groups. The HPCA is estimated for each dimension with 90% FVE. The result of random forest on training and testing dataset with first to nine HPCA and FPCA eigenfunctions of time domain showed that in all subtypes, the HPCA performs better than FPCA according to the accuracy, sensitivity, and specificity. The random forest with HPCA had the best performance while the random forest without FPCA had an accuracy of about 40% in training and testing.  

Keywords - Sleep Disorders, Functional Data Analysis, Cyclic Alternating Pattern, Phase A subtypes, Random Forest

1. Morin CM, Jarrin DC. Epidemiology of insomnia: prevalence, course, risk factors, and public health burden. Sleep medicine clinics. 2022;17(2):173-91.

2. Lim DC, Najafi A, Afifi L, Bassetti CL, Buysse DJ, Han F, et al. The need to promote sleep health in public health agendas across the globe. The Lancet Public Health. 2023;8(10):e820-e6.

3. Sarkanen T, Partinen M, Bjorvatn B, Merikanto I, Benedict C, Nadorff MR, et al. Association between hypersomnolence and the COVID-19 pandemic: The International COVID-19 Sleep Study (ICOSS). Sleep medicine. 2023;107:108-15.

4. Mendonça F, Mostafa SS, Morgado-Dias F, Ravelo-Garcia AG, Penzel T. A review of approaches for sleep quality analysis. Ieee Access. 2019;7:24527-46.

5. Mendonça F, Fred A, Mostafa SS, Morgado-Dias F, Ravelo-García AG. Automatic detection of cyclic alternating pattern. Neural Computing and Applications. 2022;34(13):11097-107.

6. Terzano MG, Parrino L. Origin and significance of the cyclic alternating pattern (CAP). Sleep medicine reviews. 2000;4(1):101-23.

7. Migueis D, Lopes M, Ignacio P, Thuler L, Araujo-Melo M, Spruyt K, et al. A systematic review and meta-analysis of the cyclic alternating pattern across the lifespan. Sleep Medicine. 2021;85:25-37.

8. Carra M, Rompré P, Kato T, Parrino L, Terzano MG, Lavigne G, et al. Sleep bruxism and sleep arousal: an experimental challenge to assess the role of cyclic alternating pattern. Journal of oral rehabilitation. 2011;38(9):635-42.

9. Chouvarda I, Mendez MO, Rosso V, Bianchi AM, Parrino L, Grassi A, et al. Cyclic alternating patterns in normal sleep and insomnia: structure and content differences. IEEE transactions on neural systems and rehabilitation engineering. 2012;20(5):642-52.

10. Poryazova R, Werth E, Parrino L, Terzano MG, Bassetti CL. Cyclic alternating pattern in narcolepsy patients and healthy controls after partial and total sleep deprivation. Clinical neurophysiology. 2011;122(9):1788-93.

11. Thomas RJ, Terzano MG, Parrino L, Weiss JW. Obstructive sleep-disordered breathing with a dominant cyclic alternating pattern—a recognizable polysomnographic variant with practical clinical implications. Sleep. 2004;27(2):229-34.

12. Gnoni V, Drakatos P, Higgins S, Duncan I, Wasserman D, Kabiljo R, et al. Cyclic alternating pattern in obstructive sleep apnea: a preliminary study. Journal of Sleep Research. 2021;30(6):e13350.

13. Fayaz M. The Bibliometric Analysis of EEGLAB software in the Web of Science indexed Articles. Neuroscience Informatics. 2023:100154.

14. Somervail R, Cataldi J, Stephan AM, Siclari F, Iannetti GD. Dusk2Dawn: an EEGLAB plugin for automatic cleaning of whole-night sleep electroencephalogram using Artifact Subspace Reconstruction. Sleep. 2023;46(12):zsad208.

15. Ray LB, Sockeel S, Soon M, Bore A, Myhr A, Stojanoski B, et al. Expert and crowd-sourced validation of an individualized sleep spindle detection method employing complex demodulation and individualized normalization. Frontiers in human neuroscience. 2015;9:507.

16. Cui J, Huang Z, Wu J. Automatic detection of the cyclic alternating pattern of sleep and diagnosis of sleep-related pathologies based on cardiopulmonary resonance indices. Sensors. 2022;22(6):2225.

17. Vergara-Sánchez DL, Calvo H, Moreno-Armendáriz MA. Distributional Representation of Cyclic Alternating Patterns for A-Phase Classification in Sleep EEG. Applied Sciences. 2023;13(18):10299.

18. Terzano MG, Parrino L, Sherieri A, Chervin R, Chokroverty S, Guilleminault C, et al. Atlas, rules, and recording techniques for the scoring of cyclic alternating pattern (CAP) in human sleep. Sleep medicine. 2001;2(6):537-54.

19. Goldberger AL, Amaral LA, Glass L, Hausdorff JM, Ivanov PC, Mark RG, et al. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. circulation. 2000;101(23):e215-e20.

20. Huang H, Zhang J, Zhu L, Tang J, Lin G, Kong W, et al. EEG-based sleep staging analysis with functional connectivity. Sensors. 2021;21(6):1988.

21. Terzano M, Mancia D, Salati M, Costani G, Decembrino A, Parrino L. The cyclic alternating pattern as a physiologic component of normal NREM sleep. Sleep. 1985;8(2):137-45.

22. Parrino L, Ferri R, Bruni O, Terzano MG. Cyclic alternating pattern (CAP): the marker of sleep instability. Sleep medicine reviews. 2012;16(1):27-45.

23. Delorme A, Makeig S. EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysis. Journal of neuroscience methods. 2004;134(1):9-21.

24. Pion-Tonachini L, Kreutz-Delgado K, Makeig S. ICLabel: An automated electroencephalographic independent component classifier, dataset, and website. NeuroImage. 2019;198:181-97.

25. Scheffler A, Telesca D, Li Q, Sugar CA, Distefano C, Jeste S, et al. Hybrid principal components analysis for region-referenced longitudinal functional EEG data. Biostatistics. 2020;21(1):139-57.

26. Fayaz M, Abadi A, Khodakarim S. The Comparison between Visually and Auditory Oddball Tasks in the EEG Experiment with Healthy Subjects. Frontiers in Biomedical Technologies. 2020.

27. Febrero-Bande M, De La Fuente MO. Statistical computing in functional data analysis: The R package fda. usc. Journal of statistical Software. 2012;51:1-28.

28. Fayaz M, Abadi A, Khodakarimd S. Random-Splitting Random Forest with Multiple Mixed-Data Covariates. Journal of Biostatistics and Epidemiology. 2023;9(1):20-34.

29. Fayaz M, Abadi A, Khodakarim S. The Functional Regression With Reconstructed Functions From Hybrid Principal Components Analysis: With EEG-fMRI Application. Statistics, Optimization & Information Computing. 2022;10(3):890-903.

0
Citations (Crossref)
4K
Total Views
40
Total Downloads

Licence Creative Commons This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
SETSCI 2025
info@set-science.com
Copyright © 2025 SETECH
Tokat Technology Development Zone Gaziosmanpaşa University Taşlıçiftlik Campus, 60240 TOKAT-TÜRKİYE