Next Article in Journal
Quality Assessment of Single-Channel EEG for Wearable Devices
Next Article in Special Issue
Synergistic Myoelectrical Activities of Forearm Muscles Improving Robust Recognition of Multi-Fingered Gestures
Previous Article in Journal
Improvement to the Carrier Transport Properties of CdZnTe Detector Using Sub-Band-Gap Light Radiation
Previous Article in Special Issue
Spatial Reorganization of Myoelectric Activities in Extensor Digitorum for Sustained Finger Force Production
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Unsupervised Multichannel Artifact Detection Method for Sleep EEG Based on Riemannian Geometry

1
Czech Technical University in Prague, Jugoslávských partyzánů 1580/3, 160 00 Prague, Czech Republic
2
National Institute of Mental Health, Topolová 748, 250 67 Klecany, Czech Republic
3
GIPSA-lab, University Grenoble Alpes, CNRS, Grenoble-INP, 38000 Grenoble, France
4
Charles University, Third Faculty of Medicine, Ruská 2411/87, 100 00 Prague, Czech Republic
*
Author to whom correspondence should be addressed.
Sensors 2019, 19(3), 602; https://doi.org/10.3390/s19030602
Submission received: 15 December 2018 / Revised: 11 January 2019 / Accepted: 29 January 2019 / Published: 31 January 2019
(This article belongs to the Special Issue Neurophysiological Data Denoising and Enhancement)

Abstract

:
In biomedical signal processing, we often face the problem of artifacts that distort the original signals. This concerns also sleep recordings, such as EEG. Artifacts may severely affect or even make impossible visual inspection, as well as automatic processing. Many proposed methods concentrate on certain artifact types. Therefore, artifact-free data are often obtained after sequential application of different methods. Moreover, single-channel approaches must be applied to all channels alternately. The aim of this study is to develop a multichannel artifact detection method for multichannel sleep EEG capable of rejecting different artifact types at once. The inspiration for the study is gained from recent advances in the field of Riemannian geometry. The method we propose is tested on real datasets. The performance of the proposed method is measured by comparing detection results with the expert labeling as a reference and evaluated against a simpler method based on Riemannian geometry that has previously been proposed, as well as against the state-of-the-art method FASTER. The obtained results prove the effectiveness of the proposed method.

1. Introduction

Human electroencephalography (EEG) refers to recordings of brain activity obtained using electrodes placed on the surface of the head. EEG investigation is one of the main research methods in sleep medicine. It aims at recording electrical activity caused by internal processes during pre-sleep wakefulness and sleep. The number of electrodes and their locations are set according to the areas of interest. Modern sleep research often utilizes at least 19 channels distributed evenly over the head. Some recent studies have applied up to 256-channel high-density EEG [1,2]. Manual data inspection is a demanding and tedious task, especially in long-term recordings such as a whole-night EEG. This makes automatic processing methods highly needed in sleep medicine research.
Events not related to brain activity may noticeably affect automatic analysis or make it even impossible. Such events are called artifacts. Typical causes of artifacts are technical issues (detached electrodes, sweating, electrical noise) and physiological events (muscle contractions, movements, eye rolling) of the body. For instance, artifacts caused by blinking are characterized by slow-frequency/high-amplitude waves that can be seen mainly in frontal electrodes. The typical waveform corresponding to such artifacts is shown in Figure 1a. Blinking occurs only during the awake state. Artifacts associated with movements may arise during both being awake and asleep, the latter divided into rapid eye movement (REM), non-REM 1, 2, and 3 sleep stages [3]. Such artifacts are characterized by an unusually high amplitude and unusual frequency in several electrodes, as is shown in Figure 1b. Electrode artifacts may arise during the whole recording, and they may have different characteristics. Voltage jumps could be seen in all channels and are illustrated in Figure 1c. A loss of contact of electrodes may produce noise in a channel or high amplitude anomalies, as shown in Figure 1d.
Manual artifact detection is a time-consuming task requiring specific skills. Manual detection is more difficult in high density EEG recordings (128 or 256 channels), and it might lead to a higher number of undetected artifacts on one side and to false detection on the other side. There is a wide choice of automated artifact detection methods available in the literature [4]. They include approaches based on signal decomposition such as Fourier transform [5], wavelet transform [6,7], or empirical mode decomposition [8,9]. A popular method for eye blinking artifact detection is regression [10,11]. Blind source separation (BSS) methodologies like independent component analysis (ICA) [4,5,12] and independent vector analysis [13] are often used for ocular, muscular, and cardiac artifact rejection. Once the decomposition has been achieved, components corresponding to artifact activity may be rejected manually or using automatic methods [14]. A combination of BSS and other signal decomposition techniques may bring benefits for muscular artifact removal [15,16]. Many recent studies have proposed methods based on classification techniques such as random forest classifiers [7], artificial neural networks [17], or support vector machine classifiers [18,19], where training examples determine the types of artifacts to be detected. Another direction of modern artifact detection is the optimization of existing approaches [20,21], adjusting them to the increasing volume of recorded data. Research in the field of sleep data processing mainly focuses on the detection and elimination of the most expected artifacts during sleep [22] through single-channel approaches [23]. These methods concentrate only on certain artifact types. Therefore, artifact-free data are obtained after sequential application of different methods, and single-channel approaches must be applied to all channels alternately.
The aim of the study is to develop an artifact detection method in multichannel sleep EEG capable of rejecting different artifact types at once. The inspiration for the study is gained from the idea of the Riemannian potato [24], an automatic and adaptive artifact detection method proposed for online brain-computer interface (BCI) experiments. It considers spatial patterns of awake EEG data and exploits the fact that clean data tend to form a cluster in the manifold of symmetric positive matrices (the “potato”), the space on which the EEG data is mapped, while artifacts tend to be distributed outside the cluster. In our study, we assume that the number of clusters for clean data may be superior to one, and we introduce an unsupervised and adaptive method for constructing the clusters. It allows us to achieve better performance for complex data such as sleep EEG, where we cannot assume a unique cluster because the spatial patterns vary widely across sleep stages and because sleep data within the same stage may be captured more accurately by several clusters. Different sleep stages have their own characteristics. In the present study, we investigate the proposed method and test it on real sleep EEG data. Performance is evaluated by comparing the obtained detection to a provided expert scoring. Results are examined in contrast to the outcome of the (one-cluster) Riemannian potato artifact detector [24] and the fully-automated statistical thresholding for EEG artifact rejection method (FASTER) [25], which performs artifact detection by analyzing statistical properties in separate channels.

2. Data

2.1. Dreams Dataset

The open-source Dreams dataset [26] contains 15-min recordings of sleep data, 20 recordings in total. Channels originally referenced to A1 were re-referenced to Cz. All available EEG channels O1-Cz, O2-Cz, Fp1-Cz, and Fp2-Cz were used in the study. The sampling frequencies were 50 Hz, 100 Hz, and 200 Hz. We excluded from analysis the recordings sampled at 50 Hz due to the fact that with such a sampling rate, the frequency band-pass is too restricted for sleep data analysis [3]. Furthermore, we excluded recording Numbers 3, 6, 10, and 16 because the proportion of artifacts exceeded 40%. Sleep stage scoring and artifact labeling have been performed by a trained clinician and provided, as well. Each recording contains a mix of sleep stages. The distribution of the sleep stages in the dataset is: wakefulness 33%, REM 25%, non-REM 1 18%, non-REM 2 23%, and other 1%. Information on the artifact rate is shown in Table 1.

2.2. InSleep Datasets

The InSleep datasets were obtained from the National Institute of Mental Health, Czech Republic. The study was conducted in accordance with the Declaration of Helsinki, and the protocol was approved by the Ethics Committee of the National Institute of Mental Health (Project Number 6/15). The whole-night EEG as a part of the polysomnography (PSG) was recorded from subjects suffering from insomnia. Each recording was obtained using 19 channels placed according to the 10-20 system: Pz, Cz, Fz, T6, T5, T4, T3, F8, F7, O2, O1, P4, P3, C4, C3, F4, F3, Fp2, Fp1. Channels were referenced to an average of Cz, Fz, and Pz. The sampling frequency was 250 Hz. Sleep stages were scored by a trained clinician. Each recording contained 10–20 min of data corresponding to a single sleep stage (REM, non-REM 2, or non-REM 3) or awake activity. The non-REM 1 sleep stage was not presented in the dataset due to its short duration in sleep recordings. Artifacts were labeled by an expert. Visual inspection of EEG was performed separately for each recording in the EEG Lab software using function “reject continuous data by eye” [27]. The expert was instructed to label all visible artifacts. The total number of obtained recordings was 44. Details of the artifact rate are provided in Table 1.

3. Materials and Methods

3.1. Theoretical Background

This section describes the theoretical aspects of working with multichannel data. We denote by x t R n the signal vector at n channels and at time point t. X = [ x s , , x s + m 1 ] R n × m denotes an epoch starting at sample s and lasting m samples. For X, we estimate the spatial covariance matrix using the usual sample covariance matrix (SCM) estimator:
C = 1 m 1 X X T R n × n .
The matrix C is symmetric positive-definite (SPD). Often, SPD matrices are considered in a Euclidean space with the associated Frobenius norm C F . However, the native space of SPD matrices is not Euclidean, but a Riemannian space [28]. Riemannian geometry starts by defining an inner product (metric) at each tangent space to the manifold, which varies smoothly from point to point. Applying the affine-invariant (Fisher) metric [28], the distance δ between two points C i and C j on the manifold is given by:
δ ( C i , C j ) = i = 1 n l o g 2 λ i 1 / 2 ,
where the λ i are the eigenvalues of C i 1 C j .
A centroid (called the geometric mean) of an SPD matrix set can be defined using the above distance [29]. The geometric mean M of a covariance matrix set C i is calculated using an iterative algorithm. First, M is initialized by the arithmetic mean of C i . Then, the following iteration is repeated:
M = M 1 / 2 exp [ 1 / k k ln ( M 1 / 2 C k M 1 / 2 ) ] M 1 / 2
until convergence, which is obtained when:
k ln ( M 1 / 2 C k M 1 / 2 ) F < ε .
The distance of a set of covariance matrices to their geometric mean does not have a symmetric distribution. To make the distribution symmetric, we may use the standardized distances to the geometric mean [30]; define the geometric mean μ of the distances δ k as:
μ = exp ( 1 k k ln δ k )
and the geometric standard deviation σ of the distances as:
σ = exp ( 1 k k ( ln δ k μ ) 2 ) .
Then, the standardized distance measures are:
δ k = ln δ k μ ln σ .

3.2. The Riemannian Potatoes’ Artifact Detection

A Riemannian potatoes artifact detection method (RPs) is proposed in this study. It relies on the assumption that on the SPD manifold, contaminated epochs are mapped far away from clusters of clean data. In contrast to the simple potato [24], here we take into consideration the fact that several clusters may be needed to describe the distribution of clean sleep data. In the first step, RPs restore these clusters from a recorded EEG. In the second step, we obtain continuous scoring by analyzing the data in a sliding window and comparing them to the obtained clusters. Finally, artifacts are detected by applying a threshold. The method overview is depicted in Figure 2. As in [24], we filtered the data before further processing. However, we used a low-pass filter under 30 Hz to save frequencies significant for sleep stages [3].
The cluster construction process starts with splitting the filtered data into non-overlapping 1-s epochs. Such an epoch length is a standard for Riemannian geometry analysis [24]. Covariance matrices are extracted from every epoch. Then, distances between all pairs of covariance matrices are calculated by Equation (2). The average distance d i is the mean value of distances from the ith epoch to all the other epochs. Epochs with a d value greater than a threshold are removed from further analysis. We consider the mean value of d as the threshold. Then, we cluster the remaining matrices using the k-means algorithm with the distance measure defined by Equation (2). To determine the number of clusters, we use the following procedure: the number of clusters increases iteratively from one to a maximum of 10; centroids are obtained as the geometric means; the process is finished once the constructed clusters satisfy an overall normality condition, that is when the distribution of standardized distances to the centroids is normal in all clusters. Normality is tested using D’Agostino’s K 2 test. The distribution of distances to the centroid within a cluster is examined separately. The overall normality p-value is obtained as a combination of the obtained p-values using Stouffer’s Z-score method. The cluster construction process is stopped when the combined p-value is superior to 0.05 . If the cluster construction finishes without achieving overall normality, then we choose the number of clusters achieving the greatest p-value. In the case of tied p-values, we retain the one corresponding to the smaller number of clusters. The rationale for this procedure is that when the distances of the points in the cluster from the center of mass have a Gaussian distribution, we assume that the cluster is a good representative of a region in the manifold covered by the data and that further splitting is therefore unnecessary.
In the second step, RPs analyze the n-channel data in a sliding window of a size of 1 s with a step equal to 0.1 -times the sampling frequency. Assume there are k clusters obtained in the previous step and denote O j R n × n , j [ 1 , k ] their centroids. For each ith window, we obtain covariance matrix C i R n × n . All k distances σ i j between C i and every O j centroid are calculated. Then, the closest cluster j * to C i is determined by the minimum distance among the σ i j values. The geometric mean and standard deviation within the cluster were determined in the cluster construction step. Therefore, we can obtain σ i * as a standardized distance σ i j * to the centroid O j * by Equation (7). Due to the cluster construction, standardized distances within a cluster are distributed normally. We can consider the obtained σ i * as a z-score and translate it into a probability value p i using the Gaussian cumulative distribution function. The value p i indicates a probability of epoch i with covariance matrix C i to belong to a given cluster. Hence, the value of p i equals 1 p i and indicates a probability of epoch i with covariance matrix C i to be an outlier.
We consider that the values σ i * correspond to the center of the ith epoch and that in an epoch, the scoring starts and ends with 0. Therefore, we interpolate the obtained values within the epoch. The obtained score is then smoothed with a moving average filter to make the output more robust. The local minima of these scores define segments. Finally, a segment whose score is above a threshold for at least 0.4 s is considered as an artifact. This value was established as a minimum artifact duration by the experts.

4. Experimental Results

4.1. Results Evaluation

Artifact detection performance was evaluated by comparing the detection obtained by the automatic artifact detection methods to a scoring provided by human experts. The comparison was performed on a sample-by-sample basis. We denote the number of true positives, false positives, true negatives, and false negatives as TP, FP, TN, and FN respectively.
Precise artifact borders are hard to determine. Human and automatic scoring may differ and yet be both considered correct, as is shown in Figure 3. To handle this, we added a fuzzy area on each artifact border labeled by an expert. Thus, residual segments with no matching labeling as Segments A-B and C-D in Figure 4 were treated as TP and TN, respectively, if they lasted for at least 10% of the artifact duration and no more than 1.5 s. Otherwise, they were counted as FP or FN, respectively. The parameters used for results evaluation were estimated based on experience and consultancy with neurological experts who described their visual inspection process.
Following [22], we computed Cohen’s kappa K and the percentage of agreement S. K is considered a more robust measure than S because it takes into account agreement occurrence by chance. Values of K greater than 0.6 are considered as good and values higher than 0.8 indicate an excellent agreement [31]. We have:
K = P o P r 1 P r ,
where:
P o = TP + TN TP + TN + FP + FN ,
P r = ( TP + FN ) ( TP + FP ) + ( FP + TN ) ( TN + FP ) ( TP + TN + FP + FN ) 2 .
Sensitivity S e and false discovery rate ( F D R ) were also compared in this study.
S e = TP TP + FN ,
F D R = FP TP + FP .
The non-parametric Wilcoxon signed rank test was used for comparing metrics. This test does not require normality of the samples and is also suitable for small sample sizes.

4.2. Results

Our RPs artifact detection method was implemented in Python and applied to the Dreams and InSleep datasets. The Riemannian potato [24] method was chosen as the benchmark. We used the original implementation of the Riemannian potato artifact detector provided by the authors in the covariance toolbox for MATLAB (github.com/alexandrebarachant/covariancetoolbox). Visual comparison of scoring obtained by RPs and by the benchmark is provided in Figure 5 and Figure 6. Detection results were compared with scoring provided by an expert, and the three statistical metrics presented in the previous section were computed as well as percentage of data labeled as artifacts by methods. Each recording of the Dream dataset contains a mix of sleep stages and awake EEG. Some of the presented sleep stages have a short duration and do not include artifacts. Testing results grouped for such EEG types would not be representative. Therefore, metric values for the Dreams dataset were obtained for the entire recordings. Recordings in the InSleep dataset contain activity of a single stage. That allowed us to access the method performance on separate sleep stages and wakefulness. Table 2 reports the obtained results for the benchmark, and Table 3 contains values for the proposed method. Cohen’s kappa for both methods on all datasets is shown in Figure 7.
The proposed method, RPs, performed better than the benchmark in terms of F D R for the Dreams dataset (p-value < 0.05 ) and InSleep REM and non-REM 2 data (p-value < 0.05 and p-value < 0.01 , respectively). With respect to sensitivity, RPs did not outperform the benchmark. Finally, RPs significantly outperformed the benchmark method on non-REM 2 (p-value < 0.01 ) and non-REM 3 (p-value < 0.05) in terms of agreement with the expert scoring. A similar trend is observed for the InSleep dataset, as shown in Figure 7 (p-value < 0.1 ).
Visual inspection in the Dreams dataset revealed that the benchmark method tended to detect incorrectly as artifacts characteristic EEG patterns of non-dominant sleep stages such as high amplitude delta-waves corresponding to non-REM 3 activity in recordings with a dominant non-REM 2 sleep stage, as illustrated in Figure 8.
F D R values obtained on InSleep non-REM 2 indicated a big proportion of false positive events. Both methods incorrectly detected injections of non-REM 3 sleep in non-REM 2. This activity is defined as high amplitude slow waves lasting 1–5 s. An example is provided in Figure 9a. Such events account for a small proportion of the recording for which the methods do not appear adapted. Furthermore, the non-REM 2 sleep data also contained K-complexes and sleep spindles characterized as a single high-amplitude delta wave and sigma bursts, respectively. An example is depicted in Figure 9b. A wide range of patterns of such events complicates the detection for both methods. Moreover, artifacts in stages non-REM 2 and non-REM 3 occurred rarely according to Table 1; this made the metrics values for these datasets more sensitive to false detections.
As we have mentioned, RPs utilizes 1-s epochs, which is a standard window length for Riemannian geometry analysis. We have also applied RPs using 2-s and 4-s epoch lengths to all datasets to test whether longer epoch lengths are more suitable for capturing the dynamics of slow waves. The obtained results are presented in Table 4 and Table 5 respectively. The results showed no significant increase in K in all datasets. In fact, a significant decrease in K was observed for wakefulness and REM InSleep (p-value < 0.01 ). Indeed, the number of events corresponding to normal slow wave activity and incorrectly determined as artifacts in non-REM 2 and 3 decreased. However, using such modifications decreased the number of detected events in general and increased the number of false results. This is caused by an increased number of missed small artifacts. Moreover, the detected events were too long, which led to an increase of the FP value and, consequently, F D R .
Additionally, we have applied FASTER [25] to all datasets. This method rejects epochs of a single-channel EEG based on calculated thresholds. The process is repeated for each channel. Mean, variance, amplitude range, and mean gradient are used for decision making. The results are presented in Table 6. The proposed RPs method significantly outperformed FASTER in K for all datasets (p-value < 0.05 for InSleep non-REM 3, p-value < 0.01 for others). Moreover, RPs achieves significantly better S e in InSleep wakefulness (p-value < 0.01 ), REM, and non-REM 2 (p-value < 0.05 for both datasets) and significantly smaller F D R for Dreams, InSleep non-REM 2 and 3 (p-value < 0.01 , p-value < 0.05 , and p-value < 0.01 , respectively). The method performed well in the detection of movement artifacts. However, often, it incorrectly detected a high amplitude delta in non-REM 2 (Figure 9a) and non-REM 3 (Figure 9c) as an artifact. Furthermore, it missed many short and small-amplitude artifacts (Figure 9d).
For the estimation of time consumption, we ran FASTER and RPs on 15-min 19-channel recordings. A Windows 10 Pro computer with an Intel Core i7 2.40-GHz CPU and 16 GB of RAM was used. Testing of FASTER, excluding the ICA decomposition, which was very time consuming, was performed using MATLAB R2014b. The processing time was 5.44 ± 0.01 s per recording. Testing of RPs was performed using Python 2.7. The processing time of RPs was 43.86–112.63 s per recording depending on the number of constructed clusters. Cluster construction took 0.03 s for a single cluster and 68.72 s for the construction of six clusters. Testing on the Dreams dataset resulted in 1–4 clusters. The number of clusters in the InSleep dataset varied in the range of 1–6 for awake and REM EEG and in the range of 1–4 for non-REM 2 and 3 activity. The number of clusters did not depend on the number of channels, but only on the presence of different activities, which could be distinguished in terms of the Riemannian geometry of the data.

5. Discussion

The performance of RPs was compared to a previously-developed artifact detection method based on Riemannian geometry. Testing on rest-state awake data confirmed the effectiveness of both RPs and the benchmark approaches. The results obtained for sleep data proved that the proposed method was more favorable. The reason why RPs outperformed the benchmark in sleep data is that the multiple cluster construction was adapted to the variability of normal spatial patterns in sleep stages. This resulted in a reduction of false detections and improved agreement with the expert. The method was fully unsupervised and adaptive; therefore, detection was dependent only on the input data and could be completely automated. Testing results proved that on the data we considered, a 1-s epoch length was an optimal choice for RPs. Furthermore, the proposed method is scalable and may be applied for any number of channels. Nevertheless, using highly-correlated signals makes the application of the method cumbersome because the estimated covariance matrices may be badly conditioned. Therefore, in the case of a very large number of EEG channels, a dimensionality-reduction pre-processing step is recommended. To do this, methods inspired by the Riemannian geometry of SPD matrices may be used; see [32,33].
In comparison to FASTER, which relies on statistical properties in separate channels, the methods based on Riemannian geometry achieved better performance on all datasets. FASTER missed too many artifacts, mostly small ocular and short electrode artifacts. Nevertheless, all tested methods equally performed well on the detection of high frequency/amplitude artifacts. Such artifacts prevailed in wakefulness, which allowed FASTER to achieve better performance among all datasets therein. For sleep, FASTER overestimated artifact activity, which lad to low performance. In non-REM 2, it detected only injections of non-REM 3 activity, which noticeably affected the metric values. All methods detected injections of non-REM 3 sleep into non-REM 2 as an artifact. Even if such events were not labeled by the expert as artifacts, their elimination led to improvement of the spectral characteristics of non-REM 2 activity. As for computational efforts, FASTER significantly outperformed RPs, since it utilized simple signal statistics, whereas RPs was based on eigenvalue estimations for computing Riemannian distances. The time required by the RPs method, however, is low in absolute terms and very acceptable for any practical purpose.
This study shows once more that automatic artifact detection in sleep EEG is a challenging task and demonstrates the low efficiency of methods developed for awake EEG. Many studies addressing this problem have proposed methods for artifact detection without information about sleep stages [22]. However, EEG investigation pipelines in modern sleep research laboratories include analysis of sleep data with already labeled sleep stages. Some recent studies have proposed artifact detection based on analysis of 20- and 30-s epochs [23]. Evaluation using 20-s (30-s) epochs is required for data investigation at a macro level in sleep scoring by humans, whereas for an automatic artifact rejection, it can be performed at a micro-level, and it is preferable to consider smaller epochs. A way to make the automatic method more comparable to human scoring would be to reject whole 20-s (30-s) segments if the majority of 1-s epochs forming them were rejected. Moreover, sleep disorders increase the inter-subject variability of the EEG, as well as the number of artifacts, which makes the task of artifact detection even more demanding. For these and other situations, a fully-unsupervised and adaptive strategy such as RPs is theoretically appealing.

Limitations and Future Work

The RPs method we have proposed has several disadvantages and therefore can be further improved. First, infrequent EEG patterns might not be represented in the clusters of artifact-free activity due to the cluster construction procedure. Thus, they might be incorrectly detected as artifacts. An improvement could be achieved by setting an automatic method for identification of expected patterns like K-complexes and post-processing analysis. Moreover, the method seems to fail in rejecting artifacts that are not widely distributed on the scalp, such as muscular or cardiac artifacts. This may be obviated by constructing smaller potatoes that include only a small number of channels and by combining the rejection of all the potatoes (Riemannian potato fields), which is currently under investigation. The method was not tested on high-density EEG. In this case, the problem of highly-correlated signals in high-density EEG must be carefully considered. Future work will also be focused on improvements of the method in order to eliminate false detections of K-complexes and sleep spindles. The application of the method is currently under consideration for semi-automatic artifact rejection at the National Institute of Mental Health of Czech Republic. At this stage, probability scoring will be provided along with data to support manual investigation. Additionally, the method will be extended to multimodal PSG recordings. Other directions of future research include application of the proposed method and analysis of the obtained clusters for automatic sleep stage identification using supervised machine learning approaches.

6. Conclusions

The study presents an unsupervised multichannel artifact detection method for sleep EEG based on Riemannian geometry. The presented method forms clusters of artifact-free EEG data considering their spatial patterns. Application of the proposed method to sleep recordings brings significant benefits. The method is scalable, fully unsupervised and adaptive, independent of artifact types, and the outcome is easily interpreted. In comparison to the Riemannian potato artifact detector, it demonstrates better performance on complex sleep data in terms of agreement with human scoring and reduces the number of events incorrectly identified as artifacts. The RPs toolbox is available at https://gitlab.ciirc.cvut.cz/open-source/rps.

Author Contributions

E.S. was co-responsible for the development of the proposed methods, program coding, paper writing, and revision. M.C. was co-responsible for development of the proposed methods, participated in the study conception and design, and provided a review. D.D. provided the data collection and labeling. L.L. provided funding acquisition and participated in drafting and critical revision of the manuscript. J.K. participated in drafting and critical revision of the manuscript. V.G. conducted research for the related works and helped with data analysis.

Funding

Research was supported by the project “Temporal context in analysis of long-term non-stationary multidimensional signal”, Register Number 17-20480S of the Grant Agency of the Czech Republic. This work was also supported by the Charles University research program PROGRES Q35, by the project No. LO1611 with financial support from the MEYS under the NPU I program and by the Ministry of Health of the Czech Republic, grant No. NV18-07-00272. All rights reserved.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BCIBrain-computer interface
BSSBlind source separation
EEGElectroencephalogram
FASTERFully-automated statistical thresholding for EEG artifact rejection
FNFalse negative
FPFalse positive
ICAIndependent component analysis
non-REMNon-rapid eye movement (sleep stage)
PSGPolysomnography
REMRapid eye movement (sleep stage)
RPsRiemannian potatoes
SCMSample covariance (matrix)
SPDSymmetric positive-definite (matrix)
TNTrue negative
TPTrue positive

References

  1. Siclari, F.; Bernardi, G.; Cataldi, J.; Tononi, G. Dreaming in NREM Sleep: A High-Density EEG Study of Slow Waves and Spindles. J. Neurosci. 2018, 38, 9175–9185. [Google Scholar] [CrossRef] [PubMed]
  2. Ratti, P.L.; Amato, N.; David, O.; Manconi, M. A high-density polysomnographic picture of disorders of arousal. Sleep 2018, 41, zsy162. [Google Scholar] [CrossRef] [PubMed]
  3. Iber, C.; American Academy of Sleep Medicine. The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology and Technical Specifications; American Academy of Sleep Medicine: Darien, IL, USA, 2007. [Google Scholar]
  4. Islam, M.K.; Rastegarnia, A.; Yang, Z. Methods for artifact detection and removal from scalp EEG: A review. Neurophysiol. Clin./Clin. Neurophysiol. 2016, 46, 287–305. [Google Scholar] [CrossRef] [PubMed]
  5. Szentkirályi, A.; Wong, K.K.; Grunstein, R.R.; D’Rozario, A.L.; Kim, J.W. Performance of an automated algorithm to process artefacts for quantitative EEG analysis during a simultaneous driving simulator performance task. Int. J. Psychophysiol. 2017, 121, 12–17. [Google Scholar] [CrossRef] [PubMed]
  6. Taherisadr, M.; Dehzangi, O.; Parsaei, H. Single Channel EEG Artifact Identification Using Two-Dimensional Multi-Resolution Analysis. Sensors 2017, 17, 2895. [Google Scholar] [CrossRef] [PubMed]
  7. Anastasiadou, M.N.; Christodoulakis, M.; Papathanasiou, E.S.; Papacostas, S.S.; Mitsis, G.D. Unsupervised detection and removal of muscle artifacts from scalp EEG recordings using canonical correlation analysis, wavelets and random forests. Clin. Neurophysiol. 2017, 128, 1755–1769. [Google Scholar] [CrossRef] [PubMed]
  8. Bono, V.; Das, S.; Jamal, W.; Maharatna, K. Hybrid wavelet and EMD/ICA approach for artifact suppression in pervasive EEG. J. Neurosci. Methods 2016, 267, 89–107. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  9. Chen, X.; Xu, X.; Liu, A.; McKeown, M.J.; Wang, Z.J. The Use of Multivariate EMD and CCA for Denoising Muscle Artifacts From Few-Channel EEG Recordings. IEEE Trans. Instrum. Meas. 2018, 67, 359–370. [Google Scholar] [CrossRef]
  10. Klados, M.A.; Papadelis, C.; Braun, C.; Bamidis, P.D. REG-ICA: A hybrid methodology combining Blind Source Separation and regression techniques for the rejection of ocular artifacts. Biomed. Signal Process. Control 2011, 6, 291–300. [Google Scholar] [CrossRef]
  11. Borowicz, A. Using a multichannel Wiener filter to remove eye-blink artifacts from EEG data. Biomed. Signal Process. Control 2018, 45, 246–255. [Google Scholar] [CrossRef]
  12. Mayeli, A.; Zotev, V.; Refai, H.; Bodurka, J. Real-time EEG artifact correction during fMRI using ICA. J. Neurosci. Methods 2016, 274, 27–37. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Chen, X.; Peng, H.; Yu, F.; Wang, K. Independent Vector Analysis Applied to Remove Muscle Artifacts in EEG Data. IEEE Trans. Instrum. Meas. 2017, 66, 1770–1779. [Google Scholar] [CrossRef]
  14. Chang, C.; Hsu, S.; Pion-Tonachini, L.; Jung, T. Evaluation of Artifact Subspace Reconstruction for Automatic EEG Artifact Removal. In Proceedings of the 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Honolulu, HI, USA, 17–21 July 2018; pp. 1242–1245. [Google Scholar] [CrossRef]
  15. Chen, X.; Chen, Q.; Zhang, Y.; Wang, Z.J. A Novel EEMD-CCA Approach to Removing Muscle Artifacts for Pervasive EEG. IEEE Sens. J. 2018, 1. [Google Scholar] [CrossRef]
  16. Chen, X.; Liu, A.; Peng, H.; Ward, R.K. A Preliminary Study of Muscular Artifact Cancellation in Single-Channel EEG. Sensors 2014, 14, 18370–18389. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Nguyen, H.A.T.; Musson, J.; Li, F.; Wang, W.; Zhang, G.; Xu, R.; Richey, C.; Schnell, T.; McKenzie, F.D.; Li, J. EOG artifact removal using a wavelet neural network. Neurocomputing 2012, 97, 374–389. [Google Scholar] [CrossRef]
  18. Levitt, J.; Nitenson, A.; Koyama, S.; Heijmans, L.; Curry, J.; Ross, J.T.; Kamerling, S.; Saab, C.Y. Automated detection of electroencephalography artifacts in human, rodent and canine subjects using machine learning. J. Neurosci. Methods 2018, 307, 53–59. [Google Scholar] [CrossRef] [PubMed]
  19. Dhindsa, K. Filter-Bank Artifact Rejection: High performance real-time single-channel artifact detection for EEG. Biomed. Signal Process. Control 2017, 38, 224–235. [Google Scholar] [CrossRef]
  20. Acharyya, A.; Jadhav, P.N.; Bono, V.; Maharatna, K.; Naik, G.R. Low-complexity hardware design methodology for reliable and automated removal of ocular and muscular artifact from EEG. Comput. Methods Prog. Biomed. 2018, 158, 123–133. [Google Scholar] [CrossRef]
  21. Gerla, V.; Kremen, V.; Covassin, N.; Lhotska, L.; Saifutdinova, E.; Bukartyk, J.; Marik, V.; Somers, V. Automatic identification of artifacts and unwanted physiologic signals in EEG and EOG during wakefulness. Biomed. Signal Process. Control 2017, 31, 381–390. [Google Scholar] [CrossRef]
  22. Wallant, D.C.; Muto, V.; Gaggioni, G.; Jaspar, M.; Chellappa, S.L.; Meyer, C.; Vandewalle, G.; Maquet, P.; Phillips, C. Automatic artifacts and arousals detection in whole-night sleep EEG recordings. J. Neurosci. Methods 2016, 258, 124–133. [Google Scholar] [CrossRef]
  23. Malafeev, A.; Omlin, X.; Wierzbicka, A.; Wichniak, A.; Jernajczyk, W.; Riener, R.; Achermann, P. Automatic artefact detection in single-channel sleep EEG recordings. J. Sleep Res. 2018, e12679. [Google Scholar] [CrossRef] [PubMed]
  24. Barachant, A.; Andreev, A.; Congedo, M. The Riemannian Potato: An Automatic and Adaptive Artifact Detection Method for Online Experiments Using Riemannian Geometry. In Proceedings of the TOBI Workshop lV, Sion, Switzerland, 23–25 January 2013. [Google Scholar]
  25. Nolan, H.; Whelan, R.; Reilly, R. FASTER: Fully Automated Statistical Thresholding for EEG artifact Rejection. J. Neurosci. Methods 2010, 192, 152–162. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  26. Devuyst, S.; Dutoit, T.; Ravet, T.; Stenuit, P.; Kerkhofs, M.; Stanus, E. Automatic Processing of EEG-EOG-EMG Artifacts in Sleep Stage Classification. In Proceedings of the 13th International Conference on Biomedical Engineering, Singapore, 3–6 December 2008. [Google Scholar]
  27. Delorme, A.; Makeig, S. EEGLAB: An open source toolbox for analysis of single-trial EEG dynamics including independent component analysis. J. Neurosci. Methods 2004, 134, 9–21. [Google Scholar] [CrossRef] [PubMed]
  28. Congedo, M.; Barachant, A.; Bhatia, R. Riemannian geometry for EEG-based brain-computer interfaces; a primer and a review. Brain-Comput. Interfaces 2017, 4, 155–174. [Google Scholar] [CrossRef]
  29. Congedo, M.; Phlypo, R.; Barachant, A. A fixed-point algorithm for estimating power means of positive definite matrices. In Proceedings of the 2016 24th European Signal Processing Conference (EUSIPCO), Budapest, Hungary, 29 August–2 September 2016; pp. 2106–2110. [Google Scholar] [CrossRef]
  30. Congedo, M. EEG Source Analysis. Habilitation Thesis, Doctoral School EDISCE, University of Grenoble, Grenoble, France, 2013. [Google Scholar]
  31. Landis, J.R.; Koch, G.G. The Measurement of Observer Agreement for Categorical Data. Biometrics 1977, 33, 159–174. [Google Scholar] [CrossRef] [PubMed]
  32. Congedo, M.; Rodrigues, P.L.C.; Bouchard, F.; Barachant, A.; Jutten, C. A closed-form unsupervised geometry-aware dimensionality reduction method in the Riemannian Manifold of SPD matrices. In Proceedings of the 2017 39th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Jeju Island, Korea, 11–15 July 2017; pp. 3198–3201. [Google Scholar] [CrossRef]
  33. Rodrigues, P.L.C.; Bouchard, F.; Congedo, M.; Jutten, C. Dimensionality Reduction for BCI classification using Riemannian geometry. In Proceedings of the 7th Graz Brain-Computer Interface Conference (BCI 2017), Graz, Austria, 18–22 September 2017. [Google Scholar] [CrossRef]
Figure 1. Expert labeling (Expert) of blinking artifacts (a), movement artifact during wakefulness (b), and electrode artifacts in non-REM 3 (c) and REM (d). Solid blue lines are the expert’s artifact marks.
Figure 1. Expert labeling (Expert) of blinking artifacts (a), movement artifact during wakefulness (b), and electrode artifacts in non-REM 3 (c) and REM (d). Solid blue lines are the expert’s artifact marks.
Sensors 19 00602 g001
Figure 2. The method overview.
Figure 2. The method overview.
Sensors 19 00602 g002
Figure 3. Examples of comparison of human scoring and artifact detection (a,b).
Figure 3. Examples of comparison of human scoring and artifact detection (a,b).
Sensors 19 00602 g003
Figure 4. Detection evaluation. Horizontal bold lines represent detected segments. The horizontal dotted line stands for segments labeled as artifact-free data. Vertical dashed lines are the ends of all labeled segments.
Figure 4. Detection evaluation. Horizontal bold lines represent detected segments. The horizontal dotted line stands for segments labeled as artifact-free data. Vertical dashed lines are the ends of all labeled segments.
Sensors 19 00602 g004
Figure 5. Scoring obtained by the benchmark method (RP) and RPs (RPS) on data from the Dreams dataset. Normalized distances to four clusters obtained for this recording with RPs (CL1–4) are shown, as well. Artifacts (Expert) are denoted with the solid blue line.
Figure 5. Scoring obtained by the benchmark method (RP) and RPs (RPS) on data from the Dreams dataset. Normalized distances to four clusters obtained for this recording with RPs (CL1–4) are shown, as well. Artifacts (Expert) are denoted with the solid blue line.
Sensors 19 00602 g005
Figure 6. Scoring obtained by the benchmark method (RP) and RPs (RPS) on data from the InSleep dataset. Normalized distances to three clusters obtained for this recording with RPs (CL1–3) are shown, as well. Artifacts (Expert) are denoted with a solid blue line.
Figure 6. Scoring obtained by the benchmark method (RP) and RPs (RPS) on data from the InSleep dataset. Normalized distances to three clusters obtained for this recording with RPs (CL1–3) are shown, as well. Artifacts (Expert) are denoted with a solid blue line.
Sensors 19 00602 g006
Figure 7. Distribution of Cohen’s kappa for the Dreams and InSleep datasets. White boxes represent the benchmark; grey boxes represent the proposed method.
Figure 7. Distribution of Cohen’s kappa for the Dreams and InSleep datasets. White boxes represent the benchmark; grey boxes represent the proposed method.
Sensors 19 00602 g007
Figure 8. Dreams dataset. Lines represent the expert scoring (Expert), results of the benchmark (RP), and the proposed (RPS) methods.
Figure 8. Dreams dataset. Lines represent the expert scoring (Expert), results of the benchmark (RP), and the proposed (RPS) methods.
Sensors 19 00602 g008
Figure 9. Expert scoring (Expert), results of the FASTER (FASTER), benchmark (RP), and the proposed (RPS) methods of different EEG patterns in delta waves (a), k-complex in non-REM 2 (b), delta waves in non-REM 3 (c), and ocular artifact in REM (d).
Figure 9. Expert scoring (Expert), results of the FASTER (FASTER), benchmark (RP), and the proposed (RPS) methods of different EEG patterns in delta waves (a), k-complex in non-REM 2 (b), delta waves in non-REM 3 (c), and ocular artifact in REM (d).
Sensors 19 00602 g009
Table 1. Dataset details.
Table 1. Dataset details.
DatasetSleep StageNumber of SubjectsLength (minutes)Artifact Rate (%)
Dreams 1215 9.38 ± 9.84
InSleepWakefulness14 15.38 ± 2.26 18 ± 9.9
REM12 13.5 ± 1.88 7.43 ± 5.82
Non-REM 210 15.3 ± 1.77 4.07 ± 5.33
Non-REM 38 14.75 ± 2.76 1.97 ± 1.43
Table 2. Performance of the benchmark artifact detection method.
Table 2. Performance of the benchmark artifact detection method.
DatasetSleep StageK Se FDR Artifact Rate (%)
Dreams 0.58 ± 0.2 0.79 ± 0.19 0.4 ± 0.21 12.23 ± 13.71
InSleepWakefulness 0.84 ± 0.09 0.91 ± 0.08 0.16 ± 0.07 15.2 ± 8.24
REM 0.75 ± 0.24 0.88 ± 0.12 0.28 ± 0.24 8.3 ± 7.14
Non-REM 2 0.40 ± 0.24 0.77 ± 0.21 0.62 ± 0.41 9.12 ± 13.53
Non-REM 3 0.54 ± 0.17 0.62 ± 0.29 0.37 ± 0.21 1.58 ± 1.52
Table 3. Performance of RPs artifact detection.
Table 3. Performance of RPs artifact detection.
DatasetSleep StageK Se FDR Artifact Rate (%)
Dreams 0.74 ± 0.17 0.78 ± 0.18 0.24 ± 0.22 7.49 ± 7.65
InSleepWakefulness 0.85 ± 0.09 0.9 ± 0.08 0.12 ± 0.08 16.6 ± 7.62
REM 0.82 ± 0.11 0.86 ± 0.12 0.18 ± 0.13 9.47 ± 8.22
Non-REM 2 0.50 ± 0.37 0.84 ± 0.17 0.55 ± 0.38 9.06 ± 5.81
Non-REM 3 0.68 ± 0.22 0.68 ± 0.26 0.22 ± 0.22 1.42 ± 1.5
Table 4. Performance of RPs artifact detection with a 2-s epoch length.
Table 4. Performance of RPs artifact detection with a 2-s epoch length.
DatasetSleep StageK Se FDR Artifact Rate (%)
Dreams 0.71 ± 0.17 0.85 ± 0.1 0.31 ± 0.17 12.17 ± 13.29
InSleepWakefulness 0.77 ± 0.13 0.85 ± 0.1 0.2 ± 0.14 18.75 ± 8.17
REM 0.72 ± 0.14 0.8 ± 0.19 0.25 ± 0.19 8.99 ± 5.31
Non-REM 2 0.53 ± 0.41 0.79 ± 0.21 0.49 ± 0.44 9.75 ± 7.78
Non-REM 3 0.67 ± 0.26 0.67 ± 0.26 0.26 ± 0.27 2.74 ± 2.08
Table 5. Performance of RPs artifact detection with a 4-s epoch length.
Table 5. Performance of RPs artifact detection with a 4-s epoch length.
DatasetSleep StageK Se FDR Artifact Rate (%)
Dreams 0.52 ± 0.16 0.8 ± 0.14 0.54 ± 0.16 15.12 ± 15.27
InSleepWakefulness 0.68 ± 0.11 0.84 ± 0.1 0.32 ± 0.14 20.75 ± 8.62
REM 0.53 ± 0.16 0.66 ± 0.2 0.46 ± 0.2 9.59 ± 7.92
Non-REM 2 0.46 ± 0.38 0.77 ± 0.19 0.57 ± 0.38 9.52 ± 7.74
Non-REM 3 0.55 ± 0.23 0.62 ± 0.3 0.46 ± 0.24 2.87 ± 2.18
Table 6. Performance of the FASTER artifact detection method.
Table 6. Performance of the FASTER artifact detection method.
DatasetSleep StageK Se FDR Artifact Rate (%)
Dreams 0.31 ± 0.22 0.81 ± 0.28 0.66 ± 0.26 24.9 ± 11.55
InSleepWakefulness 0.58 ± 0.21 0.52 ± 0.24 0.09 ± 0.14 6.45 ± 6.14
REM 0.46 ± 0.21 0.57 ± 0.24 0.45 ± 0.27 8.64 ± 6.3
Non-REM 2 0.28 ± 0.25 0.43 ± 0.36 0.72 ± 0.25 3.46 ± 2.12
Non-REM 3 0.41 ± 0.21 0.66 ± 0.34 0.64 ± 0.16 3.29 ± 1.57

Share and Cite

MDPI and ACS Style

Saifutdinova, E.; Congedo, M.; Dudysova, D.; Lhotska, L.; Koprivova, J.; Gerla, V. An Unsupervised Multichannel Artifact Detection Method for Sleep EEG Based on Riemannian Geometry. Sensors 2019, 19, 602. https://doi.org/10.3390/s19030602

AMA Style

Saifutdinova E, Congedo M, Dudysova D, Lhotska L, Koprivova J, Gerla V. An Unsupervised Multichannel Artifact Detection Method for Sleep EEG Based on Riemannian Geometry. Sensors. 2019; 19(3):602. https://doi.org/10.3390/s19030602

Chicago/Turabian Style

Saifutdinova, Elizaveta, Marco Congedo, Daniela Dudysova, Lenka Lhotska, Jana Koprivova, and Vaclav Gerla. 2019. "An Unsupervised Multichannel Artifact Detection Method for Sleep EEG Based on Riemannian Geometry" Sensors 19, no. 3: 602. https://doi.org/10.3390/s19030602

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop