'High-Density-SleepCleaner': An open-source, semi-automatic artifact removal routine tailored to high-density sleep EEG

J Neurosci Methods. 2023 May 1:391:109849. doi: 10.1016/j.jneumeth.2023.109849. Epub 2023 Apr 17.

Abstract

Background: With up to 256 channels, high-density electroencephalography (hd-EEG) has become essential to the sleep research field. The vast amount of data resulting from this magnitude of channels in overnight EEG recordings complicates the removal of artifacts.

New method: We present a new, semi-automatic artifact removal routine specifically designed for sleep hd-EEG recordings. By employing a graphical user interface (GUI), the user assesses epochs in regard to four sleep quality markers (SQMs). Based on their topography and underlying EEG signal, the user eventually removes artifactual values. To identify artifacts, the user is required to have basic knowledge of the typical (patho-)physiological EEG they are interested in, as well as artifactual EEG. The final output consists of a binary matrix (channels x epochs). Channels affected by artifacts can be restored in afflicted epochs using epoch-wise interpolation, a function included in the online repository.

Results: The routine was applied in 54 overnight sleep hd-EEG recordings. The proportion of bad epochs highly depends on the number of channels required to be artifact-free. Between 95% and 100% of bad epochs could be restored using epoch-wise interpolation. We furthermore present a detailed examination of two extreme cases (with few and many artifacts). For both nights, the topography and cyclic pattern of delta power look as expected after artifact removal.

Comparison with existing methods: Numerous artifact removal methods exist, yet their scope of application usually targets short wake EEG recordings. The proposed routine provides a transparent, practical, and efficient approach to identify artifacts in overnight sleep hd-EEG recordings.

Conclusion: This method reliably identifies artifacts simultaneously in all channels and epochs.

Keywords: Artifact removal; Graphical user interface; High-density electroencephalography; Outlier detection; Sleep.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Algorithms
  • Artifacts
  • Electroencephalography* / methods
  • Signal Processing, Computer-Assisted
  • Sleep*