Background: Progress in advancing sleep research employing polysomnography (PSG) has been negatively impacted by the limited availability of widely available, open-source sleep-specific analysis tools.
New method: Here, we introduce Counting Sheep PSG, an EEGLAB-compatible software for signal processing, visualization, event marking and manual sleep stage scoring of PSG data for MATLAB.
Results: Key features include: (1) signal processing tools including bad channel interpolation, down-sampling, re-referencing, filtering, independent component analysis, artifact subspace reconstruction, and power spectral analysis, (2) customizable display of polysomnographic data and hypnogram, (3) event marking mode including manual sleep stage scoring, (4) automatic event detections including movement artifact, sleep spindles, slow waves and eye movements, and (5) export of main descriptive sleep architecture statistics, event statistics and publication-ready hypnogram.
Comparison with existing methods: Counting Sheep PSG was built on the foundation created by sleepSMG (https://sleepsmg.sourceforge.net/). The scope and functionalities of the current software have made significant advancements in terms of EEGLAB integration/compatibility, preprocessing, artifact correction, event detection, functionality and ease of use. By comparison, commercial software can be costly and utilize proprietary data formats and algorithms, thereby restricting the ability to distribute and share data and analysis results.
Conclusions: The field of sleep research remains shackled by an industry that resists standardization, prevents interoperability, builds-in planned obsolescence, maintains proprietary black-box data formats and analysis approaches. This presents a major challenge for the field of sleep research. The need for free, open-source software that can read open-format data is essential for scientific advancement to be made in the field.
Keywords: Automatic detection; Electroencephalography; Event marking; Graphical user interface; Hypnogram; Open-source; Polysomnography; Scoring; Signal processing; Sleep architecture.
Crown Copyright © 2024. Published by Elsevier B.V. All rights reserved.