• Logo
  • HamaraJournals

Designing an Intelligent System for Diagnosing Type of Sleep Apnea and Determining Its Severity

Zeinab Kohzadi, Reza Safdari, Khosro Sadeghniiat Haghighi



Introduction: Sleep apnea syndrome can be considered as one of the most serious risk factors of sleep disorder. Due to the lack of information about this disease, many causes of unexpected deaths have been identified. With increasing the number of patients with this disease around the world, many patients suffer apnea complications.  Most of them are not treated because of the complex and costly and time-consuming polysomnography (PSG) diagnostic procedure.

Material and Methods: This descriptive-analytical study was performed on 50 patients referred to sleep clinic of Imam Khomeini Hospital in Tehran,  Attempts to design, and develop a system for detection of sleep apnea and its severity using ECG signals, RR intervals and airflow. The random forest algorithm and MATLAB2016 were used in the design of the system that the algorithm inputs are extracted 8 features nonlinear in time-frequency domain from airflow and ECG signals and 10 nonlinear features of RR intervals.

Results: The accuracy for normal, obstructive, central and mixed apnea was obtained at 95.3%, 97.92%, 99.60%, and 97.29%, respectively, and the accuracy For detection of normal, mild, moderate and severe apnea was obtained 96%, 94%, 94%, 96% respectively. According to the results, the proposed system can correctly classify the types of sleep apnea and its severity.

Conclusion: The proposed system, which has high performance capability in addition to increasing the physician speed and accuracy in the diagnosis of apnea can be used in home systems and the areas where healthcare facilities are not sufficient.


Bradley TD, Logan AG, Kimoff RJ, Sériès F, Morrison D, Ferguson K, et al. Continuous positive airway pressure for central sleep apnea and heart failure. N Engl J Med. 2005; 353(19): 2025-33. PMID: 16282177 DOI: 10.1056/NEJMoa051001

Gillberg M, Kecklund G, Åkerstedt T. Relations between performance and subjective ratings of sleepiness during a night awake. Sleep. 1994; 17(3): 236-41. PMID: 7939123 DOI: 10.1093/sleep/17.3.236

Chung KF. Use of the epworth sleepiness scale in Chinese patients with obstructive sleep apnea and normal hospital employees. J Psychosom Res. 2000; 49(5): 367-72. PMID: 11164062 DOI: 10.1016/s0022-3999(00)00186-0

Quan SF, Gillin JC, Littner MR, Shepard JW. Sleep-related breathing disorders in adults: Recommendations for syndrome definition and measurement techniques in clinical research. Sleep. 1999; 22(5): 662-89. PMID: 10450601

Mirrakhimov AE, Sooronbaev T, Mirrakhimov EM. Prevalence of obstructive sleep apnea in Asian adults: A systematic review of the literature. BMC Pulm Med. 2013; 13(1): 10. PMID: 23433391 DOI: 10.1186/1471-2466-13-10

Degache F, Sforza E, Dauphinot V, Celle S, Garcin A, Collet P, et al. Relation of central fat mass to obstructive sleep apnea in the elderly. Sleep. 2013; 36(4): 501-7. PMID: 23564997 DOI: 10.5665/sleep.2532

Ahbab S, Ataoğlu HE, Tuna M, Karasulu L, Çetin F, Temiz LÜ, et al. Neck circumference, metabolic syndrome and obstructive sleep apnea syndrome; evaluation of possible linkage. Med Sci Monit. 2013; 19: 111-7. PMID: 23403781 DOI: 10.12659/MSM.883776

Lin YN, Li QY, Zhang XJ. Interaction between smoking and obstructive sleep apnea: Not just participants. Chin Med J (Engl). 2012; 125(17): 3150-6. PMID: 22932197

Peppard PE, Young T, Palta M, Skatrud J. Prospective study of the association between sleep-disordered breathing and hypertension. N Engl J Med. 2000; 342: 1378-84. PMID: 10805822 DOI: 10.1056/NEJM200005113421901

Gottlieb DJ, Yenokyan G, Newman AB, O'Connor GT, Punjabi NM, Quan SF, et al. Prospective study of obstructive sleep apnea and incident coronary heart disease and heart failure: The sleep heart health study. Circulation. 2010; 122(4): 352-60. PMID: 20625114 DOI: 10.1161/CIRCULATIONAHA.109.901801

Chou YT, Lee PH, Yang CT, Lin CL, Veasey S, Chuang LP, et al. Obstructive sleep apnea: A stand-alone risk factor for chronic kidney disease. Nephrol Dial Transplant. 2011; 26(7): 2244-50. PMID: 21317406 DOI: 10.1093/ndt/gfq821

Yaggi H, Mohsenin V. Sleep-disordered breathing and stroke. Clinics in Chest Medicine. 2003; 24(2): 223-37.

Botros N, Concato J, Mohsenin V, Selim B, Doctor K, Yaggi HK. Obstructive sleep apnea as a risk factor for type 2 diabetes. Am J Med. 2009; 122(12): 1122-7. PMID: 19958890 DOI: 10.1016/j.amjmed.2009.04.026

McEvoy RD, Antic NA, Heeley E, Luo Y, Ou Q, Zhang X, et al. CPAP for prevention of cardiovascular events in obstructive sleep apnea. N Engl J Med. 2016; 375(10): 919-31. PMID: 27571048 DOI: 10.1056/NEJMoa1606599

Korcarz CE, Benca R, Barnet J, Stein J. Treatment of sleep apnea rapidly reduces arterial tone, improves endothelial function and left ventricular diastolic function in normotensive adults. Journal of the American College of Cardiology. 2016; 67(13S): 1941.

Bloch KE. Polysomnography: A systematic review. Technol Health Care. 1997; 5(4): 285-305. PMID: 9429270 [PubMed]

Douglas NJ. Clinicians' guide to sleep medicine. Arnold; 2002.

Quan SF, Gillin JC, Littner MR, Shepard JW. Sleep-related breathing disorders in adults: Recommendations for syndrome definition and measurement techniques in clinical research. Sleep. 1999; 22(5): 667-89. PMID: 10450601

Varon C, Van Huffel S. Complexity and nonlinearities in cardiorespiratory signals in sleep and sleep apnea. In: Barbieri R, Scilingo EP, Valenza G (Eds.). Complexity and nonlinearity in cardiovascular signals. Springer, Cham; 2017.

Khandoker AH, Palaniswami M, Karmakar CK. Support vector machines for automated recognition of obstructive sleep apnea syndrome from ECG recordings. IEEE Trans Inf Technol Biomed. 2009; 13(1): 37-48. PMID: 19129022 DOI: 10.1109/TITB.2008.2004495

Alvarez D, Hornero R, Marcos JV, Del Campo F, Lopez M. Spectral analysis of electroencephalogram and oximetric signals in obstructive sleep apnea diagnosis. International Conference of Engineering in Medicine and Biology. IEEE; 2009.

Koley BL, Dey D. On-line detection of apnea/hypopnea events using SpO2 signal: A rule-based approach employing binary classifier models. IEEE J Biomed Health Inform. 2013; 18(1): 231-9. PMID: 24403421 DOI: 10.1109/JBHI.2013.2266279

Yang W, Fan J, Wang X, Liao Q. Sleep apnea and hypopnea events detection based on airflow signals using LSTM network. International Conference of Engineering in Medicine and Biology. IEEE; 2019.

Travieso CM, Alonso JB, del Pozo-Baños M, Ticay-Rivas JR, Lopez-de-Ipiña K. Automatic apnea identification by transformation of the cepstral domain. Cognitive Computation. 2013; 5(4): 558-65.

Pan J, Tompkins WJ. A real-time QRS detection algorithm. IEEE Trans Biomed Eng. 1985; 32(3): 230-6. PMID: 3997178 DOI: 10.1109/TBME.1985.325532

Selesnick IW, Baraniuk RG, Kingsbury NC. The dual-tree complex wavelet transform. IEEE Signal Processing Magazine. 2005; 22(6): 123-51.

Mendez MO, Ruini DD, Villantieri OP, Matteucci M, Penzel T, Cerutti S, et al. Detection of sleep apnea from surface ECG based on features extracted by an autoregressive model. International Conference of Engineering in Medicine and Biology. IEEE; 2007.

Subasi A. EEG signal classification using wavelet feature extraction and a mixture of expert model. Expert Systems with Applications. 2007; 32(4): 1084-93.

de Chazal P, Penzel T, Heneghan C. Automated detection of obstructive sleep apnoea at different time scales using the electrocardiogram. Physiol Meas. 2004; 25(4): 967-83. PMID: 15382835 DOI: 10.1088/0967-3334/25/4/015

Breiman L. Random forests. Machine Learning. 2001; 45(1): 5-32.

Genuer R, Poggi JM, Tuleau-Malot C. Variable selection using random forests. Pattern Recognition Letters. 2010; 31(14): 2225-36.

Verikas A, Gelzinis A, Bacauskiene M. Mining data with random forests: A survey and results of new tests. Pattern Recognition. 2011; 44(2): 330-49.

Yuan X, Cohen MB, Memon AM. GUI interaction testing: Incorporating event context. IEEE Transactions on Software Engineering. 2010; 37(4): 559-74.

Farooq U, Lam CP, Li H. Towards automated test sequence generation. Australian Conference on Software Engineering. IEEE; 2008.

Gutiérrez-Tobal GC, Álvarez D, Del Campo F, Hornero R. Utility of adaboost to detect sleep apnea-hypopnea syndrome from single-channel airflow. IEEE Trans Biomed Eng. 2016; 63(3): 636-46. PMID: 26276985 DOI: 10.1109/TBME.2015.2467188

Hassan AR, Haque MA. An expert system for automated identification of obstructive sleep apnea from single-lead ECG using random under sampling boosting. Neurocomputing. 2017; 235: 122-30.

Lakhan P, Ditthapron A, Banluesombatkul N, Wilaiprasitporn T. Deep neural networks with weighted averaged overnight airflow features for sleep apnea-hypopnea severity classification. IEEE Region Conference. IEEE; 2018.

DOI: http://dx.doi.org/10.30699/fhi.v10i1.287


  • There are currently no refbacks.