Research on Biomedical Engineering
Research on Biomedical Engineering
Original article

Alternative class III distributed polysomnography system

Felipe Britto Azevedo Schneider, Alexandre Secchin de Melo, Rodrigo Varejão Andreão, Rodolfo de Figueiredo Dalvi

Downloads: 1
Views: 176


Introduction: Impairment of sleep quality directly increases the risk of heart attack, obesity, and stroke, among other conditions, which makes polysomnography (PSG) an important public health tool. However, the inherent problems with PSG render the correct diagnosis of sleep diseases a difficult task. As a novel alternative to the class II PSG system, this work presents a distributed system composed of three modules, which together are capable of the simultaneous monitoring of environmental variables and patient signals. This system could reduce the distress of a PSG exam in certain cases, dismiss the need for an overnight sleep in a healthcare/sleep centre, and facilitate self-setup and internet-based diagnosis.

Methods: Hardware and software capable of synchronously monitoring, processing and logging into a μSD card environmental parameters (temperature, humidity, visible light intensity and audible noise level) and directly measured patient signals (electrocardiogram, electrooculogram, and body and limb posture) were designed and implemented. Results: A novel alternative to the class III PSG system was demonstrated with independent boards capable of operating for more than 16 hours powered by a 750 mAh/3.7 V battery with 0.003% data loss during preliminary PSG exams. Additionally, a computer-based library capable of reading, decoding, estimating respiration through ECG, and calculating the heart rate was developed and described.

Conclusion: This article contributes to PSG research through the development of a new PSG system and the improvement of patient comfort. All software and hardware developed are fully open source and available on GitHub.


Polysomnography, Biomedical instrumentation, Sleep, EDR, Homecare


Agnew HW Jr, Webb WB, Williams RL. The First Night Effect: an EEG study of sleep. Psychophysiology. 1966; 2(3):263-6. PMid:5903579.

American Association of Sleep Technologist – AAST. Technical Guideline - Out of Center Sleep Testing (OCST). Chicago: AAST; 2012a.

American Association of Sleep Technologist – AAST. Technical Guideline - Standard Polysomnography. Chicago: AAST; 2012b.

Buendía-Fuentes F, Arnau-Vives MA, Arnau-Vives A, Jiménez-Jiménez Y, Rueda-Soriano J, Zorio-Grima E, Osa-Sáez A, Martínez-Dolz LV, Almenar-Bonet L, Palencia-Pérez MA. High-Bandpass filters in electrocardiography: source of error in the interpretation of the ST segment. ISRN Cardiol. 2012; 2012:1-10. PMid:22778996.

Caldwell J. Single-supply, electret microphone pre-amplifier reference design. Dallas: Texas Instruments; 2015.

Cattrysse F, Peeters M, Calaerts S, Ferson K, Degryse J-M. Detection of sleep apnea by case-finding and home monitoring with Somnolter®: a pilot study. BMC Res Notes. 2014; 7(1):616. PMid:25200902.

Chan E. FatFs - Generic FAT Filesystem Module. 2016. [cited 2016 Feb 5]. Available from:

Chang D-W, Liu Y-D, Young C-P, Chen J-J, Chen Y-H, Chen C-Y, Hsu Y-C, Shaw F-Z, Liang S-F. Design and Implementation of a Modularized Polysomnography System. Instrum Meas IEEE Trans. 2012; 61(7):1933-44.

Drinnan MJ, Murray A, Griffiths CJ, Gibson GJ. Interobserver variability in recognizing arousal in respiratory sleep disorders. Am J Respir Crit Care Med. 1998; 158(2):358-62. PMid:9700107.

Escourrou P, Luriau S, Rehel M, Nedelcoux H, Lanoe JL. Needs and costs of sleep monitoring. Stud Health Technol Inform. 2000; 78:69-85. PMid:11151608.
Flemons WW, Douglas NJ, Kuna ST, Rodenstein DO, Wheatley J. Access to diagnosis and treatment of patients with suspected sleep apnea. Am J Respir Crit Care Med. 2004; 169(6):668-72. PMid:15003950.

GitHub. Sox software: command line audio synthesizer. 2013. [cited 2017 October 6]. Available from:

Goldberger AL, Amaral LAN, Glass L, Hausdorff JM, Ivanov PC, Mark RG, Mietus JE, Moody GB, Peng C-K, Stanley HE. PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation. 2000; 101(23):E215-20. PMid:10851218.

Goodrich S, Orr WC. An investigation of the validity of the Lifeshirt in comparison to standard polysomnography in the detection of obstructive sleep apnea. Sleep Med. 2009; 10(1):118-22. PMid:18083629.

Grandner MA, Pack AI. Sleep disorders, public health, and public safety. JAMA. 2011; 306(23):2616-7. PMid:22187285.

Halperin D. Environmental noise and sleep disturbances: a threat to health? Sleep Sci. 2014; 7(4):209-12. PMid:26483931.

Hao W, Chen Y, Xin Y. ECG baseline wander correction by mean-median filter and discrete wavelet transform. In: EMBC, 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society; 2011 Aug 30-Sep 3; Boston, MA. USA: IEEE; 2011. p. 2712–5. PMid:22254901.

Huang TC, Chen HY, Fang WC. Real-time obstructive sleep apnea detection based on ECG derived respiration signal. In: IEEE International Symposium on Circuits and Systems (ISCAS); 2012 May 20-23; Seoul, South Korea. USA: IEEE; 2012. vol. 1, p. 341-4.

Jafari B, Mohsenin V. Polysomnography. Clin Chest Med. 2010; 31(2):287-97. PMid:20488287.

Kawada T. Acute myocardial infarction and sleep apnea. Int J Cardiol. 2015; 187:486-7. PMid:25846659.

Kortelainen JM, Mendez MO, Bianchi AM, Matteucci M, Cerutti S. Sleep staging based on signals acquired through bed sensor. IEEE Trans Inf Technol Biomed. 2010; 14(3):776-85. PMid:20403790.

Lokavee S, Puntheeranurak T, Kerdcharoen T, Watthanwisuth N, Tuantranont A. Sensor pillow and bed sheet system: Unconstrained monitoring of respiration rate and posture movements during sleep. In: IEEE International Conference on Systems, Man, and Cybernetics (SMC); 2012 Oct 14-17; Seoul, South Korea. USA: IEEE; 2012. p. 1564-8.

Lubecke VM, Boric-Lubecke O. Wireless technologies in sleep monitoring. In: RWS 2009 IEEE Radio and Wireless Sympium Proceedings; 2009 Jan 18-22; San Diego, CA. USA: IEEE; 2009. p. 135-8.

Müller MR, Guimarães SS. Impacto dos transtornos do sono sobre o funcionamento diário e a qualidade de vida. Estud Psicol. 2007; 24:519-28.

Okamoto-Mizuno K, Mizuno K. Effects of thermal environment on sleep and circadian rhythm. J Physiol Anthropol. 2012; 31(14):1-9. PMid:22738673.

Pan J, Tompkins WJ. A Real-time QRS detection algorithm. IEEE Trans Biomed Eng. 1985; 32(3):230-6. PMid:3997178.

Penzel T, Moody GB, Mark RG, Goldberger AL, Peter JH. The apnea-ECG database. Comput Cardiol. 2000; 2000(27):255-8.

Ramos AR, Gangwisch JE. Is sleep duration a risk factor for stroke? Neurology. 2015; 84(11):1066-7. PMid:25716359.

Redmond S, Heneghan C. Electrocardiogram-based automatic sleep staging in sleep disordered breathing. In: Computers in Cardiology; 2003 Sep 21-24; Thessaloniki Chalkidiki, Greece. USA: IEEE; 2003. p. 609-12.

Rosenthal NE, Joseph-Vanderpool JR, Levendosky AA, Johnston SH, Allen R, Kelly KA, Souetre E, Schultz PM, Starz KE. Phase-shifting effects of bright morning light as treatment for delayed sleep phase syndrome. Sleep. 1990; 13(4):354-61. PMid:2267478.

Sadr N, De Chazal P. A fast approximation method for principal component analysis applied to ECG derived respiration for OSA detection. In: Proceedings of the IEEE 38th Annual International Conference of the Engineering in Medicine and Biology Society (EMBC); 2016 Aug 16-20; Orlando, FL. USA: IEEE; 2016. p. 6198–201.

Schneider FBA. Distributed_PSG [Internet]. 2017. [cited 2017 Nov 7]. Available from:

Sharma H, Sharma KK. ECG-derived respiration using Hermite expansion. Biomed Signal Process Control. 2018; 39:312-26.

Silber MH, Ancoli-Israel S, Bonnet MH, Chokroverty S, Grigg-Damberger MM, Hirshkowitz M, Kapen S, Keenan SA, Kryger MH, Penzel T, Pressman MR, Iber C. The visual scoring of sleep in adults. J Clin Sleep Med. 2007; 3(2):121-31. PMid:17557422.

Silva I, Moody GB. An open-source toolbox for analysing and processing physionet databases in MATLAB and Octave. J Open Res Softw. 2014; 2(1):e27. PMid:26525081.

Song C, Liu K, Zhang X, Chen L, Xian X. An obstructive sleep apnea detection approach using a discriminative Hidden Markov Model from ECG signals. IEEE Trans Biomed Eng. 2016; 63(7):1532-42. PMid:26560867.

Stepnowsky C, Levendowski D, Popovic D, Ayappa I, Rapoport DM. Scoring accuracy of automated sleep staging from a bipolar electroocular recording compared to manual scoring by multiple raters. Sleep Med. 2013; 14(11):1199-207. PMid:24047533.

Texas Instruments. OPT3001 Ambient Light Sensor. Dallas: Texas Instruments; 2014.

Texas Instruments. HDC1050 low power: high accuracy digital humidity sensor with temperature sensor PACKAGE. Dallas: Texas Instruments; 2015.

Van de Water ATM, Holmes A, Hurley DA. Objective measurements of sleep for non-laboratory settings as alternatives to polysomnography - a systematic review. J Sleep Res. 2011; 20(1 Pt 2):183-200. PMid:20374444.

5b2b7ba60e8825a11bc6d934 rbejournal Articles
Links & Downloads

Res. Biomed. Eng.

Share this page
Page Sections