Keywords

1 Introduction

EOG artifact (or Ocular artifact) is very common and dramatically influences on EEG signal. Especially , eye blink and eye movement are two major sources of the ocular artifact that cause the most impact on the EEG signal, both in amplitude and frequency perspective. Many researchers have proposed their methodologies to suppress the EOG artifact that all work so effectively. However, the problem of those methods is the trade-off between the performance of removing EOG artifact and their simplicity. For that reason, researchers in the BCI research community are spending their attention on finding a simple, fast, and reliable method to minimize the effect of those EOG noises without the need for the EOG reference channel instead [1]. For example, authors of [2] and have proposed a method that used only one prefrontal channel EEG.

There are many well-known algorithms to eliminate EOG artifact without EOG reference such as Wavelet + ICA hybrid [3], ICA − Independent Component Analysis [4], Regression + ICA hybrid [5], template matching based [6], Stationary Wavelet + Adaptive thresholding [7]. Those methods are all showed very good results in SNR increase, RMSE reduction, or increase in accuracy and sensitivity. However, they are such tough algorithms to understand and implement, especially with non-Computer-science-background students and researchers. Because of that reason, researchers and students with non-Computer-science-background are commonly using either coefficients threshold like wavelet coefficient in [8] or high-pass method like in [9] because of their simplicity and acceptable performance.

Since coefficient thresholding and high-pass filtering are simple and a little bit effective, we proposed a method that combines both of their main ideas to keep their simplicity while gaining a better performance. The combining is using thresholds in both the time and frequency domain. The uniqueness of our method is that we did not use a conventional coefficient like the wavelet coefficient. Instead, we have proposed using a cubed and scaled amplitude coefficient with multiple threshold values both in time and frequency domain. It helps target the contaminated parts in the signal and selectively subtracts it out to avoid altering other uncontaminated parts in the signal. We also compared our result with the wavelet coefficient thresholding method and high-pass filtering method when applying those on the semi-simulated signal taken from the EEG-EOG data set of Klados and Bamidis [10] to achieve a more objective evaluating. The result shows that our proposed method is simple and has better performance than the conventional thresholding and high-pass filtering method.

2 Materials and Methods

2.1 EEG-EOG Data Set

As mentioned in the introduction section, to obtain an objective evaluation for the outcomes, we have used the semi-simulated EEG-EOG data set of Klados and Bamidis [10]. They created the data set to help researchers evaluate their EOG artifact removal method performance objectively. They recorded the signal at 200 Hz sampling frequency, Notch filtered it at 50 Hz, and band-pass filtered it at 0.5–40 Hz. The data set contains samples from 27 subjects (males and females) with 19 electrodes placed according to the 10–20 International system layout. Each sample lasts about 30 s. The data set contains 4 files: “Pure_Data.mat” is EOG artifact-free EEG signal recorded during eye closed, “HEOG.mat” and “VEOG.mat” are respectively horizontal and vertical EOG data, and finally, “Contaminated_Data” is the semi-simulated EOG artifact contaminated data created by the following formula:

$${\text{Contaminated}}\_{\text{EEG}}_{{\text{i j}}} = {\text{ Pure}}\_{\text{EEG}}_{{\text{i j}}} + {\text{ a}}_{{\text{j}}} {\text{VEOG}} + {\text{b}}_{{\text{j}}} {\text{HEOG}}$$
(1)

where index i indicates the subject’s number and index j is for the electrode’s number. Finally, aj and bj are the contamination coefficients of VEOG and HEOG, respectively [10].

We also would like to thank the authors of [10] have allowed us to use their data set.

2.2 A Summary of Influence of EOG on EEG Signal

Ocular (or EOG) artifact reflects the eye activities’ influence on the EEG signal, mainly by the electrical field in anterior of the head be changed due to the polarity of the eye globes. It causes a big impact on the electrodes near the eyes and quickly decreases its impact degree in the anterior–posterior direction. Eyeblink and eye movement are 2 types of activities that affect the EEG signal greatest [11, 12].

A blink happens in a very short duration, about 0.1–0.5 s, or 2–10 Hz frequency. The amplitude of blink artifact varies from about 40 μV in the central plane, 80 μV in the frontal plane, and over 200 μV in the frontopolar plane. The authors of [11] also pointed out that blink artifact is bearing beneath the <5 Hz frequency range of the signal.

The rest type of EOG artifact is the eye movement or saccade, which can be seen both at horizontal and vertical EOG electrodes. The eye movement causes a longer duration, about 1.25 s (but just ~ 150 ms for Onset-to-peak duration), and with approximately the same peak amplitude with eyeblink on EEG signals [11]. See Fig. 1 for an example of typical waveforms of blink and saccade artifact on the EEG signal.

Fig. 1
figure 1

Typical waveforms of a blink and a saccade we extracted from Klados and Bamidis [10] data set

2.3 The Methodology

The idea of our method has 2 main parts:

  • Locating the contaminated parts in the signal, both in time and frequency domain.

  • Selective subtracting that component out to get a corrected signal with as least alter as possible on the uncontaminated parts.

The diagram in Fig. 2 explains the stream of the signal's flow through steps in our method.

Fig. 2
figure 2

Signal processing flowchart

Detail explanation

(Note: In this study, we use the signal of referential montage to process. We have not tested on other montages yet.)

  • Step 1: Make out 2 copies of the original contaminated signal. One goes into the estimating process (denoted with a dotted frame), the other one is the reference signal for later subtracting step.

  • Step 2: Low-pass filter steps. This step is primarily to extract the rough EOG artifact out of the EEG signal. We used 6 Hz as a cut-off value because this value is slightly higher than 5 Hz—the frequency that contains both blink and saccade artifacts, to be sure that all peak values are captured as correctly as possible.

  • Step 3: Smooth 1 step helps attenuate the leakage frequency of the previous low-pass filter to gain better results in the final. Because the shortest duration of blink and saccade is about 100 ms long (or 10 Hz), we will take a bit shorter duration length 0.08*Fs (or 12.5 Hz, slightly higher than 10 Hz) as the window width, where Fs is the sampling frequency, to retains peak values.

  • Step 4: Deduct moving median. This step helps retain low-frequency characteristics of the signal in the contaminated part. To do this, subtract the resulting signal from step 3 with the value of itself after going through the moving median filter to exclude the low-frequency oscillations out of estimated EOG. A duration of 3–5 s is optimal for window width.

  • Step 5 and 6: Steps 4 and 5 can be call coefficient calculating step. First, scale the signal m times to make the sample points lower than m become lower than 1. Then, we raised them to the power of n to make a distinct gap for scaled sample points gained above. The value m was set to 50 (μV) as we found that this is the highest amplitude of below 5 Hz frequency oscillations in the awake adult’s EEG signal. When choosing the value n, we individually tried with a different value and got n = 3 as optimal when applying to the data, using the ROC curve as the evaluating tool. Remember to take the absolute value of the coefficient before going to the next step to avoid a flat and discontinuous error for the best result.

  • Step 7Smooth 2 step. Step 4 and step 5 above makes the artifact’s waveform narrower than its actual width. This step helps expand the width of them to make locating step to be more accurate. We advise using 1*Fs to 1.8*Fs window width because this is the average onset to end duration range of EOG artifact duration [11]. Note: the bigger the window width, the more inclusive the artifact range we get accompany with more susceptible we cause to artifact-free trials. We empirically recommend value 1.5*Fs as an optimal window width for natural eye open condition.

  • Step 8 and 9Comparing coefficient with threshold p. This step is to locate the contaminated trials (position and range). We have calculated the average maximum coefficient value for 50 clean trials (picked manually) and found that they are always below roughly 0.15. As a result, we have taken p = 0.15 for the final threshold value. The value points below threshold are considered as cleans and were scaled-down by 3 (30%) because these clean ones still include about 18–50% of EOG artifact in them (including type II error miss-detected trials) [11]. At the end of this step, we are now able to extract the estimated EOG artifact component in the contaminated EEG signal.

  • Step 10Final step. Scale the estimated EOG 97% and multiply it with (−1) to get a negative value. After that, plus the reference signal from step 1 with the result. Due to the negative value, we can subtract (or in other word, eliminate) 97% of the estimated EOG when adding it with the reference signal. We use a 97% value because we do not want to strictly remove the estimated EOG since it is still just an estimated one, there are probably still have some components of the EEG signal underlying in it. As 97% is just a semi-arbitrary value, in practice, researchers could use any value from 95 to 100%.

  • For the rest of EEG channels on the head, use the result from step 8—the estimated EOG artifact, and remove it out from the desire channels, referencing their hemisphere. The only thing that changes between channels is the percentage value chosen to subtract artifact component out from the signal in step 8. Lins et al. [11] have described more detail about those percentages for different EEG channels.

This research applies the Declaration of Helsinki principles in human studies.

3 Result and Disscusion

In this study, we compare the result of our proposed with 2 most relevant method: Wavelet Coefficient Thresholding (WCT) and High-pass Filtering (HF) in 2 perspective, quality and quantity.

3.1 Quality Evaluating

The easiest way to evaluate the result of one EOG artifact removal method is by looking at how it altered our signal. A good filtering method will shift the EOG artifacts slipping down to the baseline and did as minimum as possible change on clean parts. Because we are using a semi-simulated data set, we have a pure signal as the reference for the corrected result.

For further comparison of the performance between the methods, besides the RMSE value, we also used an additional value \(\Delta SNR\) in percentage unit. The \(\Delta SNR\) was calculated using 3 simple steps. First, we calculated SNR of pure signal versus reference EOG signal and called it SNRref. Then, we calculated SNR for each of the used methods and called it SNRmethod. Finally, the \(\Delta SNR\) was calculated using the following formula:

$$\Delta SNR\left(\mathrm{\%}\right)=\frac{{SNR}_{method }- {SNR}_{ref}}{{SNR}_{ref}}\times 100\mathrm{\%}$$
(2)

As seen in Figs. 3, 4, and 5, applied on over a hundred of contaminated trials from 54 samples of the data set, in average, the proposed method gives the best corrected-data, which is stick very close to the reference (average RMSE ≈ 10 for amplitude value, average RMSE ≈ 2 for PSD value) and do very little impact on clean trials (see Fig. 5). Also, Fig. 6 shows us the estimated EOG artifact component extracted by the method from channel FP1-ref is also very close with the real VEOG.

Fig. 3
figure 3

Average amplitude before and after remove artifact of three methods

Fig. 4
figure 4

The average value of PSD of before and after removing artifact result of three methods on contaminated trials

Fig. 5
figure 5

One sample of result on contaminated and clean trials of the three methods

Fig. 6
figure 6

The full result of our proposed method, including corrected data and estimated EOG artifact component

In short, our proposed method gives the most accurate corrected result compare with the reference pure signal in the visual look. It also gives a very accurate estimated EOG artifact component when compared with the real EOG signal.

3.2 Quantity Evaluating

Using T-test 2 sample with a significant level of 5%, we found out that the result of our method is better than the others in both time and frequency domain, but the same result in the effect of enhancing SNR value (see Fig. 7).

Fig. 7
figure 7

The distribution of RMSE value in both time and frequency domain (left) and ∆SNR (right) of three methods after applying on the data set

The proposed method gives RMSE value roughly 10 for amplitude and roughly 2 for PSD differences. It also helps double the signal-to-noise ratio (nearly 201%) (see Table 1).

Table 1 Detail about the RMSE of the methods

4 Conclusion

This study proposed a simple and effective method to remove the EOG artifact from the EEG signal, the Multi-Thresholding Technique. The first advantage of this method is that it was able to selectively remove the ocular artifact from contaminated trials without altering clean ones so much. Besides, only one frontopolar or frontal channel is required to detect contaminated trials. Also, FP1or FP2 is the recommended channel, if possible, or F3 and F4 are the alternatives in the case FP channels are not available. Furthermore, this method was able to extract the estimated EOG artifact component from the contaminated signal. Furthermore, the proposed method also has better performance than the coefficient thresholding and high-pass filtering method. Last but not least, this method is very easy to implement with just a few simple steps.

The result does not conflict with the authors’ hypothesis. However, we should conduct a few more statistical studies to fully evaluate the effectiveness of this method or compare its effectiveness with other methods about the ocular artifact removal.

Researchers who want to download our source code, feel free to contact us for further instruction and getting a link to download the code.