Next Article in Journal
Development and Validation of a Digital Image Processing-Based Pill Detection Tool for an Oral Medication Self-Monitoring System
Next Article in Special Issue
A Remote Sensing-Based Analysis of the Impact of Syrian Crisis on Agricultural Land Abandonment in Yarmouk River Basin
Previous Article in Journal / Special Issue
A Hidden Markov Ensemble Algorithm Design for Time Series Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automatic Muscle Artifacts Identification and Removal from Single-Channel EEG Using Wavelet Transform with Meta-Heuristically Optimized Non-Local Means Filter

1
Department of Electrical Engineering, National Institute of Technology Silchar, Silchar 788010, Assam, India
2
Department of Information Technology, Gauhati University, Guwahati 781014, Assam, India
3
Department of Geomatics Engineering, University of Calgary, Calgary, AB T2N 1N4, Canada
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(8), 2948; https://doi.org/10.3390/s22082948
Submission received: 6 February 2022 / Revised: 20 March 2022 / Accepted: 10 April 2022 / Published: 12 April 2022
(This article belongs to the Special Issue Advances in Time Series Analysis)

Abstract

:
Electroencephalogram (EEG) signals may get easily contaminated by muscle artifacts, which may lead to wrong interpretation in the brain–computer interface (BCI) system as well as in various medical diagnoses. The main objective of this paper is to remove muscle artifacts without distorting the information contained in the EEG. A novel multi-stage EEG denoising method is proposed for the first time in which wavelet packet decomposition (WPD) is combined with a modified non-local means (NLM) algorithm. At first, the artifact EEG signal is identified through a pre-trained classifier. Next, the identified EEG signal is decomposed into wavelet coefficients and corrected through a modified NLM filter. Finally, the artifact-free EEG is reconstructed from corrected wavelet coefficients through inverse WPD. To optimize the filter parameters, two meta-heuristic algorithms are used in this paper for the first time. The proposed system is first validated on simulated EEG data and then tested on real EEG data. The proposed approach achieved average mutual information (MI) as 2.9684 ± 0.7045 on real EEG data. The result reveals that the proposed system outperforms recently developed denoising techniques with higher average MI, which indicates that the proposed approach is better in terms of quality of reconstruction and is fully automatic.

1. Introduction

Brain–computer interface (BCI) is a collaborative setup between the human brain and a computer device, which takes brain signals as input and tries to decode them into computer commands to direct external activities such as cursor control, wheelchair control, and silent-speech recognition [1,2]. The electroencephalogram (EEG) is widely used as a non-invasive way of measuring brain signals in BCI systems due to its high temporal resolutions. It captures cerebral activities through electrodes placed over the scalp. EEG is also used in diagnosing several neurological disorders such as Alzheimer’s and epileptic seizures [3]. Generally, BCI records the brain activities, pre-processes them to extract features from the data and finally classifies them for identifying mental states [4]. Therefore, analyzing the information contained in the EEG is of great importance. Although EEG is intended to record cerebral activities in the form of electrical pulses, it also captures electrical activities other than the cerebral activities, known as artifacts. EEG signals are widely contaminated with different types of artifact sources such as cardiogenic (ECG), ocular (EOG), and myogenic (EMG). These artifacts suppress the information contained in the EEG signal and lead to wrong interpretation of BCI systems and medical diagnosis. Hence, the elimination of artifacts from the EEG signal is of great importance for practical uses.
The elimination of EMG artifacts from an EEG is more challenging as compared to removing other types of artifacts from an EEG signal. Generally, the EMG artifacts occur in EEG signals due to various muscle movements near the head. Various muscle movements such as teeth clenching, swallowing, head movement, chewing, jaw movement, and tongue movement are also captured through electrodes and contaminate the EEG signals with higher amplitude, broad anatomical distribution, and wide frequency spectrum [5]. Specifically, the EMG has a wide spectral band and broad spatial distribution [6]. The power-frequency spectrum of EMG artifacts ranges from 2 Hz to 100 Hz [6]. Their wide spectrum easily overlaps with the frequencies of interest of the EEG. Because of the influence of both the volume conduction and the broad distribution of muscles across the face, neck, and head, it can be observed anywhere on the scalp.
In contrast, the spatial distribution of ECG and EOG are comparatively localized. EMG artifacts occur from the movement of spatially distributed and functionally independent muscle groups with distinct topographic and spectral signatures [7]. The spectral signatures may vary across different muscles and also with the intensity of muscle contraction. In addition, ECG and EOG artifacts can be removed with the help of a reference channel, while it is difficult to remove EMG artifacts by using reference channels. Due to the complex muscle distribution, the placement of reference electrode for EMG artifact removal is very difficult [7] in a practical situation. Hence, it is challenging to remove EMG artifacts without using any reference channels.
Numerous techniques have been proposed in the literature to overcome these difficulties of EMG removal from EEG. In early research, approaches based on blind source separation (BSS) were explored for the automatic removal of EMG artifacts from multichannel EEG [8]. The authors in [9,10,11] showed that independent component analysis (ICA) resulted in a good performance for removing EMG artifacts from the multichannel EEG data. Janani et al. [12] showed that canonical correlation analysis (CCA) outperformed the ICA to eliminate EMG from EEG successfully. Chen et al. [13] proved that independent vector analysis (IVA) could successfully denoise the EEG signal from EMG. However, BSS-based denoising techniques assume that the number of concerned sources is equal to or less than the number of channels. In this case, BSS can also be implemented for single-channel EEG data [14], where single-channel EEG data was at first decomposed with some decomposition techniques. Then artifactual components from the results of decomposition are used for BSS processing.
However, the recent trend in mobile healthcare applications has led to the reduction in the number of EEG channels for health monitoring, and in some cases only a single channel is used [15]. In such applications, BSS may not perform well. To overcome this issue, several attempts based on the decomposition techniques have been proposed to remove EMG artifacts from a few channels and single-channel EEG data. Fitzgibbon et al. [16] removed EMG artifacts from central channels through the surface Laplacian transform (SLT). They stated that brain activities captured through central channels are affected only by a group of nonadjacent muscles as there is no muscle under the center of the scalp [16] and SLT performed well in removing muscle contamination of scalp signals. However, the neuronal activities from other channels are affected by both the adjacent and the distant group of muscles. Yong et al. [17] removed EMG artifacts from both the non-central and distant channels through morphological component analysis (MCA) by assuming that the EEG recordings are a linear combination of neuronal activities, artifacts, and electronic noise. However, as the EEG and EMG have non-stationary morphology, the performance of the MCA is not always satisfactory with the chosen dictionaries in MCA. Further, the above-mentioned decomposition techniques are not fully data-driven, which make them unfit for automatic and online applications. Bhardwaj et al. [18] proposed wavelet-transform-based EMG artifact removal. Multiscale principal component analysis (MSPCA) is another effective hybrid denoising technique for EMG artifacts correction, in which PCA is combined with multiscale wavelet transform [19,20,21]. Wavelets separate stochastic and deterministic processes and approximately uncorrelated the autocorrelation between calculations, whereas PCA offers interactions between distinct variables. The wavelet transform is an ideal approach for EEG signal analysis due to its multi-resolution characteristics.
In recent years, several hybrid methods [12,22,23,24,25,26,27,28,29,30,31,32] have been proposed to overcome the difficulties of individual techniques for the removal of EMG artifacts from the EEG data, and their summary is shown in Table 1. It is observed from the table that EMD-based methods have been widely used for EMG artifacts correction. However, these methods ignore significant cross-channel interdependence information and consider the dependent information between spatially adjacent channels for the source separation procedure [33]. On the other hand, EMD-based techniques perform well on few channel EEG data compared to the single-channel EEG data, whereas wavelet-based techniques perform well on single-channel EEG data. The main idea of wavelet-based techniques is to threshold the wavelet coefficients to remove the artifacts from the signal. To threshold the wavelet coefficients, several thresholding techniques such as statistical threshold and universal threshold calculations are widely used. However, Phadikar et al. [34] showed that these threshold functions may vary with the data, which makes the system unfit for automatic and online implementation. Recently, Bajaj et al. [35] proposed a tuneable artifact removal technique based on wavelet packet decomposition (WPD). Their denoising method automatically removes EMG artifacts from the corrupted EEG signal. However, the challenge associated with wavelet analysis remains in the selection of proper wavelet function and decomposition level.
Zhang et al. [36] proposed a convolutional neural network-based approach for the removal of muscle artifacts from the EEG signals. However, their approach is limited to only 2 s of EEG epoch. A better configuration of CNN is needed for longer duration of EEG. More recently, NLM filter-based methods were employed for the removal of EMG artifacts from the EEG data. Earlier it was designed for image denoising [37]. Eltrass et al. [38] proposed a hybrid method in which an NLM filter is combined with the multi-kernel normalized least mean square with a coherence-based sparsification (MKNLMS-CS) algorithm for the successful removal of the EMG artifacts from the EEG data.
While numerous methods have been studied for the elimination of EMG, developing robust single or hybrid algorithms that can operate automatically is still very challenging. In addition, most of the techniques are suitable for multi-channel EEG (performance degrades for single-channel EEG), hence, developing an automatic EMG artifact removal technique for single-channel EEG is still challenging. However, the combination of multiple cascading algorithms is essentially an unexplored area. The significance of cascading algorithms is to suppress the artifacts in a single stage, which suppresses artifact sources and achieves a higher degree of robustness. In this manuscript, a novel automatic cascaded system is proposed in which wavelet transform is combined with the NLM filter for the elimination of EMG artifacts from the EEG signals.
In the proposed work, an EMG-contaminated EEG signal is automatically identified and decomposed into wavelet coefficients through WPD. Wavelet transform is used to separate the EEG features into different scales so that significant features of the EEG signals are preserved and noises can be removed. The mother wavelet and with an appropriate decomposition level is selected through a proper procedure. It is to be noted that artifacts will be reflected in the wavelet coefficients. Hence, correcting the corrupted wavelet coefficients will result in denoising the EEG signal. In the proposed method, corrupted wavelet coefficients are corrected through an optimized NLM algorithm. Finally, all the corrected coefficients are used in the inverse operation to get back the original artifact-free EEG signal. In this approach, no threshold calculation method is employed; instead, wavelet coefficients are corrected through an NLM filter, which makes the system automatic and fit for implementation in online applications. In addition, a modified NLM algorithm is proposed, in which all the parameters of the algorithm are optimized in a proper way. The proposed approach preserves the information of interest in the EEG signal, which is reflected in higher average correlation coefficients (CC) and higher MI values. The main contributions of the proposed denoising algorithm are stated as:
(1)
The proposed algorithm employs the wavelet transform for its good time-frequency localization and optimized NLM filter for better removal of wide frequency spectrum EMG artifacts from the corrupted EEG signals.
(2)
The main challenge in wavelet-transform-based denoising is the selection of appropriate threshold values. Hence, instead of thresholding the wavelet coefficients, they are corrected through NLM estimation.
(3)
The issue of optimum parameter selection for the NLM is properly addressed with the help of a meta-heuristic algorithm.
(4)
Further, the proposed algorithm corrects only the EMG-corrupted portion of the EEG and keeps the clean portion untouched. Hence, the proposed system preserves the true information contained in the EEG signal.
The novelty of the proposed hybrid method in which SVM, WPD and NLM are combined is described as below:
  • SVM is one of the most efficient classifiers and hence was used in this work. Different artifacts have different characteristics, for example, eyeblink artifacts contaminate the EEG signals with 5 to 10 times’ larger amplitude than the normal EEG signals with very low frequency (typically 0.1 to 3 Hz), and EMG artifacts contaminate the EEG signals with higher amplitude and higher frequency components. Similarly, ECG artifacts contaminate the EEG signals with periodic discharges. Moreover, we do not know which EEG patterns are hidden in the artifact portions (there is no ground truth). Hence, before removal of artifacts, it is necessary to identify which artifacts contaminate the EEG signals, because different artifacts have different characteristics and affect the EEG signals distinctively. If the system does not have any prior knowledge about the type of artifacts, then the system will be capable of denoising the EEG signals but the true EEG pattern (or the original ground truth) will not be reconstructed properly. Therefore, first the EEG signals corrupted with EMG artifacts are identified with SVM as a classifier.
  • The frequency of muscle artifacts overlaps with the frequency of interest of EEG signals. Hence, removing those particular frequencies by making the relevant wavelet coefficients zero will result in a significant loss of information. Therefore, at first EEG signals are decomposed into wavelet coefficients using WPD to represent the different frequency bands of EEG signals with respect to time. Note that designing an efficient NLM-based filter for a very wide frequency band is very difficult. Thus, the corrupted EEG signal is decomposed into different frequency bands at different levels in WPD so that efficient NLM filters can be designed for decomposed signals at different levels for the effective removal (correction) of EMG artifacts.
  • The optimization of parameters, especially the bandwidth parameter, λ of NLM algorithm at different levels (set of λ), simultaneously is a challenging task, and meta-heuristic algorithms are the most efficient ones in solving this type of problem. Hence, one of the recently developed meta-heuristic algorithms, GWO, is used for the task.
The manuscript is organized as: Section 1 introduces the background, state-of-arts, challenges, objectives, and notations and preliminaries used in this paper are described in Table 2, Section 2 depicts the tools and ideas employed in this methodology, Section 3 states the proposed methodology, Section 4 depicts the outcome of the research, Section 5 discusses about the experiment, and Section 6 completes the manuscript by drawing conclusions alongside the strategies for the future works.

2. Materials and Methods

2.1. Support Vector Machine (SVM)

The SVM is generally used as a classifier that competently categorizes the data using a supervised machine learning algorithm [39]. It creates an optimal hyperplane using the training data to classify the test data. The optimal hyperplane, also known as support vector, creates a decision border from the nearby samples of different data. If the data are linearly inseparable in their original finite dimensions, then they can be remapped into relatively higher dimensions using kernel tricks. For more details, readers may follow the details described in [40,41].

2.2. Wavelet Packet Decomposition (WPD)

The wavelet transform decomposes the signals into approximation (cA) and detail (cD) coefficients [42]—cD consists of high-frequency information about the signal, whereas cA consists of low-frequency information. In DWT, after decomposing the signal into cA and cD, only the cA is being decomposed for further higher-level decomposition. To cover the shortage of fixed time-frequency decomposition in DWT, WPD was proposed as an extension of DWT [43]. The WPD not only decomposes the cA but also cD simultaneously. As a result, the WPD has the same frequency bandwidth in each resolution while DWT does not.
For an EEG signal x(t), the WPD coefficients can be derived as shown in Equation (1) [43]:
d 0 , 0 t = x t , d i , 2 j 1 t = 2 k h k d i 1 , j 2 t k , d i , 2 j t = 2 k g k d i 1 , j 2 t k

2.3. Wavelet Base and Decomposition Level Selection

In the wavelet-transform-based signal analysis, the selection of the appropriate mother wavelet and decomposition level is a challenging task. Several mother wavelets are available in the wavelet family. The performance of the wavelet transform is affected by individual wavelet functions. Because hit and trial approach is a time-consuming task, the appropriate mother wavelet is selected according to the reconstruction error in this paper. It is to be noted that when any transformation technique transforms a signal into another domain, and again reconstructs the original signal through inverse operation, the reconstruction error should be ideally zero. The wavelet function is selected that gives the minimum reconstruction error. The reconstruction error ( ε ) is calculated from Equation (2):
ε = M S E X X r e c o n    
The decomposition level is selected by calculating the Shannon entropy (non-normalized) from the wavelet coefficients [44]. Non-normalized Shannon entropy is calculated as shown in Equation (3):
S E j = K = 1 N E j k log E j k  
E j k   defines as:
E D j k = cD j k 2  
E A j k = cA j k 2    
Because most of the information in the wavelet-transformed signals are stored in the approximation coefficients, the optimum level of decomposition is selected at which the entropy of cA becomes less than that of cD.

2.4. Grey Wolf Optimization (GWO)

A swarm-based intelligent algorithm, GWO, was first proposed by Mirjalili et al. [45], which is followed by the hunting strategy of grey wolves. GWO is a global search-based optimizer that finds the optimum value through mimicking the hunting strategy of grey wolves [46]. Wolves are grouped into four classes, for example: alpha, beta, delta, and omega. Alpha is the strongest among the wolves and is followed by beta, delta, and omega. The hunting process follows three major steps: searching for prey, encircling the prey, and finally attacking the prey. For more details readers may refer to [45].

2.5. NLM Algorithm

The goal of the NLM algorithm is to solve the issues with local smoothing filters by computing the smoothed value as a weighted average of other values in the signal based on the similarity of the neighborhoods [47]. The weights depend on the similarity between blocks/patch. In the NLM algorithm, the similarity between two blocks (patches) is measured in terms of similarity between their neighborhoods. However, employing the NLM method for denoising of EEG signal is very challenging because of the non-stationary characteristics of the EEG signals.
Let v be noisy observation, where, u is the original signal and n is the noise, then v is expressed as in Equation (6):
v = u + n
Then, the estimation u ˜ s for a given sample s is calculated by weighted sum of the values at the other point η that are within N(s), where, N(s) is the “search neighbourhood”, as described in Equations (7) and (8) [48].
  u ˜ s = 1 Z s η ϵ N s w s , η v η
Z s = η w s , η
And the weights w(s,   η ) are expressed as [48]:
w s , η = exp δ ϵ Δ v s + δ v η + δ 2 2 L Δ λ 2 exp d 2 s , η 2 L Δ λ 2
It is evident from Equation (9) that the NLM algorithm extracts the non-local information contained in the data. Therefore, the similarity between non-local patches is exploited in the NLM technique. It is to be noted that the weights depend upon the patch similarities instead of the gap between them [48]. Hence, averaging over similar patches yields a better estimation of the sample. Subsequently, the EEG signal is repetitive in nature and the NLM algorithm may be considered an effective denoising technique.
In the NLM algorithm, estimation is achieved based on the selected similar patches. The main challenge associated with NLM-based EEG denoising is the selection of appropriate filter parameters. There are three key parameters: bandwidth parameter (λ), search neighbourhood half-width (M), and patch half-width (P) that need to be optimized for a better estimation. The value of P determines the number of patches. The size of M specifies the area of search, and hence, the larger size of M results in higher computational complexity. Generally, M is limited to reduce the complexity of the system. Out of the three parameters, selection of appropriate λ is more complicated. The level of the signal’s smoothness is determined by the λ. A very small value leads to inadequate averaging, while a very large number can induce signal blurring by causing dissimilar patches to look like identical patches [49]. Generally, λ is calculated as 0.06σ, σ2 is the variance of noise and equal to the 0.002 microvolts [49]. However, only the noisy signal is observed; it is more complicated to estimate the standard deviation of the noise before applying any denoising technique to the corrupted EEG signal. Defining a universal value of λ for EEG signal analysis may be unrealistic as the artifacts that contaminate the EEG signals are not always uniform. A modified NLM algorithm is proposed in this paper, in which the optimum value of λ is selected through meta-heuristic algorithm.

2.6. Performance Matrices

To validate and test the proposed method, following parameters are evaluated:

2.6.1. Mutual Information (MI)

The mutual information measures how much information is drawn from the original corrupted EEG signal to reconstructed clean EEG signal [50]. MI is calculated as in Equation (10):
MI = P X , X ^ log P X , X ^ P X P X ^ d X   d X ^

2.6.2. Average Correlation Coefficient (CC)

The average CC computes the degree of similarity between original clean EEG signal and reconstructed clean EEG signal of same duration [50]. The average CC is calculated as in Equation (11):
CC = C X ^ , y * C y * , y *     C X ^ , X ^  

2.6.3. Structure Similarity Index (SSIM)

The SSIM calculates the similarity index between original clean EEG signal and reconstructed clean EEG signal of same duration [50]. It is defined as in Equation (12):
SSIM = 2 μ X ^ μ y * μ X ^ 2 + μ y * 2 × 2 σ X ^ σ y * σ X ^ 2 + σ y * 2 × σ X ^ y * σ X ^ σ y *
The SSIM and average CC are evaluated on simulated EEG data as the ground truth is available. In the case of recorded real EEG dataset, the ground truth is unavailable, and hence to determine how much information are preserved from corrupted EEG to reconstructed clean EEG during denoising process, MI is evaluated.

3. Proposed Methodology

In this report, a novel hybrid technique for automatic recognition of EMG artifacts and its subsequent elimination from EEG is proposed. The basic flowchart of the proposed algorithm is shown in Figure 1. Initially the EEG data is recorded and subsequently processed to remove the artifacts. The stages of the proposed model are as follow:
Step 1:
The corrupted EEG (C-EEG) is identified and separated from the non-corrupted EEG (NC-EEG) with the help of a pre-trained SVM.
Step 2:
The corrupted EEG is decomposed into wavelet coefficients through WPD using mother wavelet function up to level i (the mother wavelet and the decomposition level are selected as described in Section 2.3).
Step 3:
The wavelet coefficients are then corrected (estimated) through the weighted average of the non-local patches using optimized NLM algorithm. The key parameter (λ) of the NLM algorithm is optimized using meta-heuristic optimization technique.
Step 4:
Finally, all the corrected wavelet coefficients are reconstructed using the inverse operation to obtain the clean EEG signal.
The different steps of the proposed approach are elaborated in the subsequent section.

3.1. Data Recording and Processing

Data were recorded from 40 subjects consisting of 26 male and 14 female students (mean age: 21.5 years) to measure the stress of individuals [51]. Ethical clearance was obtained from the institutional ethics committee and a consent from was signed by individual subjects. The subjects performed various recognition and arithmetic tasks that were selected to elicit short-term stress in students while their EEG was being recorded. The data were recorded from 32 channels in accordance with the international 10–20 system for placing the electrodes and were sampled at 128 samples per second (1024 Hz internal). The recording was carried out with a wearable 32-channel EMOTIV-EPOC flex gel kit.
The subject was initially asked to relax for a period of 25 s during which relaxing music was played to ease the subject. The subject was instructed to stay calm after completion of every impulse type, after which the instructions for the Stroop color and word test (SCWT) were shown to the subject. The subject was exposed to SCWT for 25 s. The subject then relaxed for 5 s and then the instructions for the next impulse were displayed for 10 s. In the next impulse, the subject was shown mirror images and was asked to identify whether the images are symmetric or asymmetric and respond with a thumbs up or thumbs down gesture, depending on whether the images displayed represent symmetric mirror images or not. The mirror image symmetry task was carried out for 25 s, after which the subject again relaxed for 5 s and then the instructions for the next impulse were displayed for 10 s. Finally, the subject was instructed to solve arithmetic problems mentally and respond with a thumbs up or thumbs down gesture, depending on whether the answer displayed on the screen was a correct solution for the arithmetic problem or not. The arithmetic task was also repeated for 25 s. The completion of the arithmetic task marked the completion of a trial. Moreover, when the subject was responding, an operator also gave feedback as to whether the answers provided by the subject were incorrect or correct. The experimental setup is shown in Figure 2.
In our experiment, students performed various arithmetic tasks and color tests to measure the stress of individuals. During the experiments it was obvious for a subject to move the head or swallow or move the tongue, which caused the EMG artifacts in the EEG signals. The presence of EMG artifacts in our recorded EEG data were visually inspected by a clinical expert. Generally, normal waveforms of the EEG ranges from 0.1 to 40 Hz. In our experiment, EEG signals were filtered between 0.1 to 40 Hz to remove the frequency components above 40 Hz.

3.2. Identification of C-EEG

From the recorded data, clean and corrupted EEG segments were extracted by an expert by studying various parameters such as the variance, Shannon entropy. In addition, the expert visually inspected the EEG for segmenting. A total of 400 segments (duration: 10 s) were extracted to represent each of the two classes, namely C-EEG and NC-EEG. The SVM network was trained with the features extracted from both the dataset of same size of 10 s. The data were split in an 80:20 ratio for training and testing. Further, 10-fold cross-validation was used for evaluating the experimental performance. Three distinctive features, variance, Shannon entropy, and peak-to-peak, were calculated from all the signals and provided to train the SVM network. To demonstrate their effectiveness in classifying C-EEG from NC-EEG, an SVM network was trained with these features extracted from EEG data of both the datasets. The average values of these extracted features of NC-EEG, and C-EEG were evaluated respectively and are shown in Figure 3, which demonstrates the extracted features are distinctive between both the classes. The MATLAB function “fitcsvm” was used to train the classifier with default parameters.

3.3. Wavelet Decomposition

After successful identification of the EMG-corrupted EEG signal, it was passed to the second stage of the proposed algorithm for EMG correction. The C-EEG was decomposed into wavelet coefficients through WPD. Wavelet transform was used to separate the EEG features into different scales so that significant features of the EEG signals were preserved and noises could be removed. To cover the shortage of fixed time-frequency decomposition in DWT, WPD was employed in the work, which not only decomposed the cA but also cD simultaneously. As a result, the WPD had the same frequency bandwidth in each resolution while DWT did not.

Mother Wavelet and Decomposition Level Selection

The mother wavelet was carefully chosen by considering the lower reconstruction error as described in Section 2.3. With the minimum reconstruction error, the mother wavelet was selected for decomposing the artifact signal. Several artifact EEG signals were analysed using several mother-wavelet functions, and their average reconstruction error is presented in Table 3. It is observed from the table that “fk6” provides the lowest average reconstruction error in analysing EEG signals. As stated in [38], the decomposition level was selected in which the Shannon entropy of cA became less than that of the cD. Hence, the artifact signal was decomposed into wavelet coefficients using “fk6” as mother wavelet up to level 5, and their corresponding Shannon entropy values are compared in Table 4. It is evident from the table that Shannon entropy of cA is less than cD at decomposition level 3. Therefore, in the proposed method, the C-EEG was decomposed into WPD coefficients using “fk6” as mother wavelet up to level 3.

3.4. Correction of the Wavelet Coefficients

It is to be noted that the EMG artifacts present in the EEG signal will be reflected in the corresponding wavelet coefficients. Hence, correcting them will successfully remove the EMG artifacts from the EEG signal. Now the artifact free wavelet coefficients are estimated from the artifact wavelet coefficients using weighted average of the similar patches as described in Equation (7). The estimation is performed through the NLM algorithm. The selection of the optimum parameter of the NLM algorithm is described below.
An artifact EEG signal was decomposed into WPD coefficients. All the artifacts will be reflected in WPD coefficients. Then, artifact-free coefficients were estimated through the NLM algorithm by tuning its parameters (P, M, λ). Four corrupted EEG signals of duration 10 s were analysed by varying the parameters of the NLM algorithm. The SAR improvements achieved by varying several values of P and M are shown in Figure 4. It is evident from the figure that SAR varies with the different values of P. However, P = 4 provides the maximum SAR for different EEG signals. It is also noted that M does not affect the SAR, but it increases the computational time as shown in Table 5. The SAR values for different λ are also compared and shown in Figure 5. Unlike P and M, λ is different for different EEG signals yielding the highest SAR. Hence, for NLM-based automatic EEG denoising, it is required to optimize the λ to prevent the over smoothing and incorrect patch similarity. In addition, wavelet coefficients at different scales have different characteristics; hence, single λ for all the scales will degrade the smoothness of the EEG signal. In the proposed work, 2i number of λ were optimized for the 2i number of wavelet coefficients (where, i is the decomposition level) through GWO. The selection of appropriate parameters of the NLM algorithm is explained in Section 3.4.1.

3.4.1. Parameter Selection of NLM-Based Denoising

The parameters of the NLM algorithm were carefully chosen so that the proposed algorithm gave the best performance for removing EMG artifacts from the EEG signals. In the proposed algorithm, several sizes of P and M were investigated and their performance in terms of SAR was compared in the abovementioned Figure 4. It is observed from the figure that the P = 4 performed better in terms of SAR and M = 50 for lower computational time irrespective of the characteristics of EEG signal.
The bandwidth parameter, λ is the most important parameter in the NLM algorithm as it decides the degree of smoothness. In the proposed algorithm, λ was selected through meta-heuristic optimization technique as to avoid the over-smoothing problem as well as to select the correct similar patches. Two meta-heuristic optimizers, PSO, widely used by researchers due to its fast convergence, and GWO, due to its better execution, were employed for searching the optimal λ for performance comparison.
Let x(t) be an EEG signal and n(t) be a muscle artifact; together they formed C-EEG as in Equation (13):
Y = x t + n t
Now the WPD coefficient d i , j is extracted from the Y using “fk6” as mother wavelet up to level i. Next, corrected WPD coefficients ( d i , j ^ ) were estimated from d i , j using the proposed optimized NLM algorithm. The bandwidth parameter λ n   n = 1 , 2 , , 2 i was optimized for each coefficient vector. For example, in the proposed method, Y was decomposed up to level 3, which implies that eight coefficient vectors were extracted from Y as D 3 , 1 ,   D 3 , 2 ,   ,   D 3 , 8 . To remove the EMG artifacts from each coefficient vectors, eight values of λ were optimized in the proposed method. Mathematically d i , j ^ was estimated as in Equation (14):
d i , j ^ = f d i , j ,   P ,   M ,   λ n      
where f(.) denotes the NLM function. As suggested in [44], the bandwidth parameter λ was selected as 0.06σ, where σ2 is the noise-variance and equal to the 0.002. However, EMG artifacts vary with muscle contraction; in this case, σ2 may vary. Considering this fact, λ was randomly initialized between 0.01 to 0.9 in the proposed algorithm. The fitness function used for PSO and GWO is stated in Equations (15) and (16):
f i t n e s s   f u n c t i o n = m a x S A R
S A R j = 10 log 10 s t d d i , j s t d d i , j d i , j ^  

3.4.2. Correction

After estimating the parameters of the NLM algorithm, the corrupted wavelet coefficients were corrected through the modified NLM algorithm. In the proposed method, P = 4 and M = 50 was selected through a hit-and-trial approach, and the λ was selected through GWO. Next, all the corrected wavelet coefficients were passed to the final stage of the proposed method.

3.5. Reconstruction

After successfully estimating the clean wavelet coefficients, all the corrected coefficients were used in inverse WPD to reconstruct the original artifact-free EEG signal. The inverse WPD function is expressed as Equation (17). Finally, the artifact-free reconstructed clean EEG signal was provided by the proposed model as output.
X ^ = W 1 d i , j ^    

4. Results

The proposed technique was first tested on simulated EMG artifact EEG data and then verified on multi-channel real EEG data. The testing was performed on a simulated signal as the original clean EEG signal (the ground truth) was known. As a result, it was possible to compare the original EEG signal and its correction after adding EMG artifacts with the original EEG. In this way, using a simulated EEG signal, the proposed method was tested.

4.1. Test on Single-Channel Simulated EEG

The EEG signal was contaminated with EMG artifacts, but the information suppressed by the artifacts was not known (there was no ground truth). Hence, to validate the proposed approach, it was evaluated on simulated C-EEG data for which the ground truth was available. The EMG-contaminated C-EEG signal was simulated in MATLAB using the method described in [52]. At first, the clean EEG segments of duration 10 s were simulated by adding 20 sinusoids together with frequencies selected randomly from 0.1 to 30 Hz with sampling frequency as 250 Hz. Next, the muscle activities were modelled using random noise bandpass filtered between 5 to 45 Hz. Finally, clean EEG segments and muscle activities were added together to form the C-EEG signal.
The simulated artifactual EEG signal was passed through the pre-trained SVM as a classifier. The SVM automatically recognized C-EEGs through the extracted features. The performance in terms of accuracy, specificity, and sensitivity of the SVM classifier was compared with the Naïve Bias Classifier (NBC) and is shown in Table 6. It is evident from the table that the SVM effectively classified the C-EEG from NC-EEG using extracted features. Next, the identified C-EEG signal was decomposed into eight WPD coefficient vectors using “fk6” as wavelet function as described above. For estimating clean WPD coefficient vectors, the proposed NLM algorithm was applied on eight coefficient vectors. For finding the optimum λ, both the optimizer PSO and GWO were implemented, and their performance in term of convergence is presented in Figure 6. It is observed from the figure that GWO attains excellence solution with maximum fitness as compared to PSO. The simulated clean EEG signal and EMG signal are shown in Figure 7a,b, respectively. By adding them, the C-EEG signal was generated and is shown in Figure 7c. EMG artifacts were observed in the time of 0 to 1.3 s, 2 to 4.2 s, and 7.6 to 8.5 s in C-EEG. In Figure 7d, the corrected EEG signal denoised through the proposed algorithm is shown. It is observed that the proposed algorithm successfully removed the EMG artifacts from C-EEG while preserving true EEG structure. The power spectral density of C-EEG, clean EEG, and reconstructed EEG were also analysed to verify the proposed algorithm and are compared in Figure 8. It is observed that the proposed denoising algorithm preserved most of the frequency bands in the reconstructed EEG.
To check the superiority, the proposed model was compared with the recently reported EEG denoising techniques [14,35,38] and is presented in Figure 9. In Figure 9a,b, it is observed that MKNLMS-CS [38] and tuneable WPD [35] removed muscle artifacts from the C-EEG, respectively, while distorting the other portion of the C-EEG where no muscle artifacts are present. EEMD-CCA [14] slightly improves the distortion that occurred in the clean portion of the C-EEG as shown in Figure 9c. In Figure 9d it is observed that the proposed method successfully removed the muscle artifacts while preserving the maximum information contained in the C-EEG. In addition to the pictorial evidence, how much information was preserved by all the methods during denoising process was also investigated in a quantitative manner. The CC between the clean portion of C-EEG and clean portion of reconstructed clean EEG was evaluated to verify how much information was lost during denoising the EEG. It is observed from Figure 9 that the EEG portion ranged from 4.3 s to 7.3 s and did not contain any muscle artifacts. Hence, CC between the C-EEG portion (ranges from 4.3 s to 7.3 s) and reconstructed clean EEG portion (ranges from 4.3 s to 7.3 s) was calculated with all the denoising techniques and compared in Table 7. It is evident from the table that the proposed model highly preserved the information contained in the original EEG during denoising the EEG signal. Further, CC and SSIM was calculated between C-EEG and the corrected EEG by all the methods. The performance matrices CC and SSIM were evaluated for all four denoising methods and the proposed method, and are compared in Table 8.

4.2. Test on Multi-Channel Recorded EEG Data

After successfully verifying on single-channel simulated C−EEG, the proposed model was also tested on recorded EEG. The 32-channel raw EEG data of duration of 10 s were chosen from the dataset and filtered between 0.1–40 Hz through a bandpass filter. However, all the channels were affected by the EMG artifacts. The proposed model automatically recognized the EMG artifact EEG data and subsequently corrected them. The proposed model successfully eliminated all the EMG artifacts from the corrupted EEG while preserving the true EEG structure. For quantitative analysis, MI between the corrupted EEG signal and reconstructed clean EEG was measured and compared with the recently developed techniques as presented in Table 9.

5. Discussion

In this paper, a fully automatic denoising method is proposed for removing EMG artifacts from the EEG signals. At first, the artifact EEG signals are identified through SVM as a classifier. After that, the corrupted EEG signals are decomposed into wavelet coefficients through WPD. Wavelet transform is used to separate the EEG features into different scales so that significant features of the EEG signals are preserved and artifacts can be removed. Generally, in wavelet denoising techniques, wavelet coefficients are thresholded to remove the artifacts. However, selection of an appropriate threshold makes the system unfit for automatic operation. In the proposed method, the corrupted wavelet coefficients are corrected through a modified NLM algorithm instead of thresholding them. The NLM algorithm has various parameters and needed adjustment for different types of EEG data. The NLM algorithm has been modified in this paper by optimizing the bandwidth parameter through GWO. In addition, a set of λ is optimized at different scales of the wavelet-transformed EEG signal, which enhances the performance of the proposed method for denoising the EEG signals. Finally, all the corrected wavelet coefficients are used in inverse operation to get back the original clean EEG signal. The proposed method is fully automatic and does not need any intervention of the user.
The proposed method was first validated on simulated EEG signals (the ground truth is available) and then tested on recorded EEG data. It is observed from the experimental results that the proposed method is superior among all the denoising methods in terms of highest CC and SSIM. Hence, the proposed algorithm preserves more true structure of the clean EEG signal compared to other recently reported EEG denoising algorithms. For recorded EEG data, the original true clean EEG is unavailable (there is no ground truth); hence, MI is calculated to check how much information is mutual between corrupted EEG and denoised EEG. It is observed that the proposed approach achieved higher MI as compared to other recently developed techniques.
One of the main advantages of the proposed hybrid method is that it is insensitive to any threshold value and there is no need to tune the parameters of the NLM algorithm, which makes the system fully automatic and it can be implemented in online applications. WPD efficiently deals with the non-stationary characteristics of EEG signals. Although the proposed method is capable of correcting EMG artifacts from the multi-channel EEG signals, correcting one by one increases the computational time.

6. Conclusions and Future Scope

In this paper, a new automatic hybrid system for denoising muscle artifacts from EEG is introduced for the first time, in which WPD is combined with an optimized NLM algorithm. The WPD is adopted for its multi-resolution analysis while using only a single-channel EEG. Unlike other current state-of-art methods, the proposed system removes artifacts from its time-frequency response of the EEG signal through an optimized NLM algorithm instead of thresholding. The proposed system removes the muscle artifacts from the EEG signal, no matter how many artifacts contaminate the EEG. Further, several challenges using the NLM algorithm for EEG denoising are discussed and properly addressed in this work. One major challenge associated with the NLM algorithm is the selection of proper bandwidth parameter. It is also shown that the bandwidth parameter is different for different EEG. In this work, a meta-heuristically optimized NLM algorithm is presented, in which the bandwidth parameter is selected according to the nature of the EEG. The proposed system can operate automatically and does not require any intervention of the user while using it. The proposed system was first validated with a simulated C-EEG in which ground truth was available, which demonstrated better performance, and then tested with recorded real EEG data for its practical validation. In addition to a single channel, the proposed system is also able to remove the muscle artifacts from multi-channel EEG data. Future studies are likely to investigate the performance of the proposed method in removing other kinds of artifacts.

Author Contributions

Conceptualization, S.P. and E.G.; data curation, R.G.; formal analysis, S.P. and R.G.; investigation, S.P. and N.S.; project administration, N.S.; supervision, N.S.; validation, S.P. and N.S.; visualization, N.S. and R.G.; writing—original draft, S.P.; sriting—review and editing, N.S., R.G. and E.G. All authors have read and agreed to the published version of the manuscript.

Funding

The research work is funded by NPIU-MHRD, Government of India, under the CRS Project entitled “Monitoring Stress in Students using EEG”, with CRS-ID: 1-5770264050.

Data Availability Statement

It is described in the data section and cited the original article [51].

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Zhang, X.; Yao, L.; Wang, X.; Monaghan, J.; McAlpine, D.; Zhang, Y. A survey on deep learning-based non-invasive brain signals: Recent advances and new frontiers. J. Neural Eng. 2021, 18, 031002. [Google Scholar] [CrossRef] [PubMed]
  2. Jin, Z.; Zhou, G.; Gao, D.; Zhang, Y. EEG classification using sparse Bayesian extreme learning machine for brain–computer interface. Neural Comput. Applic 2020, 32, 6601–6609. [Google Scholar] [CrossRef]
  3. Ghosh, R.; Sinha, N.; Biswas, S.K. Removal of Eye-Blink Artifact from EEG Using LDA and Pre-trained RBF Neural Network. In Smart Computing Paradigms: New Progresses and Challenges; Springer: Singapore, 2020; pp. 217–225. [Google Scholar]
  4. Phadikar, S.; Sinha, N.; Ghosh, R. A Survey on Feature Extraction Methods for EEG Based Emotion Recognition. In International Conference on Innovation in Modern Science and Technology; Springer: Cham, Switzerland, 2019; pp. 31–45. [Google Scholar]
  5. Shackman, A.J.; McMenamin, B.W.; Slagter, H.A.; Maxwell, J.S.; Greischar, L.L.; Davidson, R.J. Electromyogenic artifacts and electroencephalographic inferences. Brain Topogr. 2009, 22, 7–12. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Goncharova, I.I.; McFarland, D.J.; Vaughan, T.M.; Wolpaw, J.R. EMG contamination of EEG: Spectral and topographical characteristics. Clin. Neurophysiol. 2003, 114, 1580–1593. [Google Scholar] [CrossRef]
  7. Chen, X.; Liu, Q.; Tao, W.; Li, L.; Lee, S.; Liu, A.; Chen, Q.; Cheng, J.; McKeown, M.J. ReMAE: User-friendly toolbox for removing muscle artifacts from EEG. IEEE Trans. Instrum. Meas. 2019, 69, 2105–2119. [Google Scholar] [CrossRef]
  8. Mowla, M.R.; Ng, S.C.; Zilany, M.S.; Paramesran, R. Artifacts-matched blind source separation and wavelet transform for multichannel EEG denoising. Biomed. Signal Process. Control. 2015, 22, 111–118. [Google Scholar] [CrossRef]
  9. Frølich, L.; Dowding, I. Removal of muscular artifacts in EEG signals: A comparison of linear decomposition methods. Brain Inform. 2018, 5, 13–22. [Google Scholar] [CrossRef] [Green Version]
  10. Jiang, X.; Bian, G.B.; Tian, Z. Removal of artifacts from EEG signals: A review. Sensors 2019, 19, 987. [Google Scholar] [CrossRef] [Green Version]
  11. Chang, C.Y.; Hsu, S.H.; Pion-Tonachini, L.; Jung, T.P. Evaluation of artifact subspace reconstruction for automatic artifact components removal in multi-channel EEG recordings. IEEE Trans. Biomed. Eng. 2019, 67, 1114–1121. [Google Scholar] [CrossRef]
  12. Janani, A.S.; Grummett, T.S.; Lewis, T.W.; Fitzgibbon, S.P.; Whitham, E.M.; DelosAngeles, D.; Pope, K.J. Improved artefact removal from EEG using Canonical Correlation Analysis and spectral slope. J. Neurosci. Methods 2018, 298, 1–15. [Google Scholar] [CrossRef]
  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. 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, 19, 8420–8431. [Google Scholar] [CrossRef]
  15. Minguillon, J.; Lopez-Gordo, M.A.; Pelayo, F. Trends in EEG-BCI for daily-life: Requirements for artifact removal. Biomed. Signal Process. Control. 2017, 31, 407–418. [Google Scholar] [CrossRef]
  16. Fitzgibbon, S.P.; Lewis, T.W.; Powers, D.M.; Whitham, E.W.; Willoughby, J.O.; Pope, K.J. Surface laplacian of central scalp electrical signals is insensitive to muscle contamination. IEEE Trans. Biomed. Eng. 2012, 60, 4–9. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Yong, X.; Ward, R.K.; Birch, G.E. Artifact removal in EEG using morphological component analysis. In Proceedings of the 2009 IEEE International Conference on Acoustics, Speech and Signal Processing, Taipei, Taiwan, 19–24 April 2009; pp. 345–348. [Google Scholar]
  18. Bhardwaj, S.; Jadhav, P.; Adapa, B.; Acharyya, A.; Naik, G.R. Online and automated reliable system design to remove blink and muscle artefact in EEG. In Proceedings of the 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Milan, Italy, 25–29 August 2015; pp. 6784–6787. [Google Scholar]
  19. Sadiq, M.T.; Siuly, S.; Ateeq Ur, R. Evaluation of power spectral and machine learning techniques for the development of subject-specific BCI. In Artificial Intelligence-Based Brain-Computer Interface; Academic Press: Cambridge, MA, USA, 2022; pp. 99–120. [Google Scholar]
  20. Yu, X.; Aziz, M.Z.; Sadiq, M.T.; Jia, K.; Fan, Z.; Xiao, G. Computerized Multidomain EEG Classification System: A New Paradigm. IEEE J. Biomed. Health Inform. 2022. [Google Scholar] [CrossRef] [PubMed]
  21. Bakshi, B.R. Multiscale PCA with application to multivariate statistical process monitoring. AICHE J. 1998, 7, 1596–1610. [Google Scholar] [CrossRef]
  22. Mijović, B.; De Vos, M.; Gligorijević, I.; Taelman, J.; Van Huffel, S. Source separation from single-channel recordings by combining empirical-mode decomposition and independent component analysis. IEEE Trans. Biomed. Eng. 2010, 57, 2188–2196. [Google Scholar] [CrossRef]
  23. Sweeney, K.T.; McLoone, S.F.; Ward, T.E. The use of ensemble empirical mode decomposition with canonical correlation analysis as a novel artifact removal technique. IEEE Trans. Biomed. Eng. 2012, 60, 97–105. [Google Scholar] [CrossRef] [Green Version]
  24. 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] [Green Version]
  25. Chen, X.; He, C.; Peng, H. Removal of muscle artifacts from single-channel EEG based on ensemble empirical mode decomposition and multiset canonical correlation analysis. J. Appl. Math. 2014, 2014, 261347. [Google Scholar] [CrossRef] [Green Version]
  26. Zeng, K.; Chen, D.; Ouyang, G.; Wang, L.; Liu, X.; Li, X. An EEMD-ICA approach to enhancing artifact rejection for noisy multivariate neural data. IEEE Trans. Neural Syst. Rehabil. Eng. 2015, 24, 630–638. [Google Scholar] [CrossRef] [PubMed]
  27. 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. 2017, 67, 359–370. [Google Scholar] [CrossRef]
  28. Xu, X.; Chen, X.; Zhang, Y. Removal of muscle artefacts from few-channel EEG recordings based on multivariate empirical mode decomposition and independent vector analysis. Electron. Lett. 2018, 54, 866–868. [Google Scholar] [CrossRef]
  29. Maddirala, A.K.; Shaik, R.A. Separation of sources from single-channel EEG signals using independent component analysis. IEEE Trans. Instrum. Meas. 2017, 67, 382–393. [Google Scholar] [CrossRef]
  30. Dora, C.; Patro, R.N.; Rout, S.K.; Biswal, P.K.; Biswal, B. Adaptive SSA Based Muscle Artifact Removal from Single Channel EEG using Neural Network Regressor. IRBM 2021, 42, 324–333. [Google Scholar] [CrossRef]
  31. Liu, Y.; Zhou, Y.; Lang, X.; Liu, Y.; Zheng, Q.; Zhang, Y.; Jiang, X.; Zhang, L.; Tang, J.; Dai, Y. An Efficient and Robust Muscle Artifact Removal Method for Few-Channel EEG. IEEE Access 2019, 7, 176036–176050. [Google Scholar] [CrossRef]
  32. Li, Y.; Wang, P.T.; Vaidya, M.P.; Liu, C.Y.; Slutzky, M.W.; Do, A.H. Electromyogram (EMG) Removal by Adding Sources of EMG (ERASE)—A novel ICA-based algorithm for removing myoelectric artifacts from EEG. Front. Neurosci. 2021, 14, 1408. [Google Scholar] [CrossRef]
  33. Chen, X.; Xu, X.; Liu, A.; Lee, S.; Chen, X.; Zhang, X.; McKeown, M.J.; Wang, Z.J. Removal of muscle artifacts from the EEG: A review and recommendations. IEEE Sens. J. 2019, 19, 5353–5368. [Google Scholar] [CrossRef]
  34. Phadikar, S.; Sinha, N.; Ghosh, R. Automatic eye blink artifact removal from eeg signal using wavelet transform with heuristically optimized threshold. IEEE J. Biomed. Health Inform. 2021, 25, 475–484. [Google Scholar] [CrossRef]
  35. Bajaj, N.; Carrión, J.R.; Bellotti, F.; Berta, R.; De Gloria, A. Automatic and tunable algorithm for EEG artifact removal using wavelet decomposition with applications in predictive modeling during auditory tasks. Biomed. Signal Process. Control. 2020, 55, 101624. [Google Scholar] [CrossRef]
  36. Zhang, H.; Wei, C.; Zhao, M.; Wu, H.; Liu, Q. A novel convolutional neural network model to remove muscle artifacts from EEG. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Virtual Conference, 6–12 June 2021; pp. 1265–1269. [Google Scholar]
  37. Buades, A.; Coll, B.; Morel, J.M. A review of image denoising algorithms, with a new one. Multiscale Model. Simul. 2005, 4, 490–530. [Google Scholar] [CrossRef]
  38. Eltrass, A.S.; Ghanem, N.H. A new automated multi-stage system of non-local means and multi-kernel adaptive filtering techniques for EEG noise and artifacts suppression. J. Neural Eng. 2021, 18, 036023. [Google Scholar] [CrossRef] [PubMed]
  39. Ghosh, R.; Sinha, N.; Biswas, S.K. Automated eye blink artefact removal from EEG using support vector machine and autoencoder. IET Signal Process. 2019, 13, 141–148. [Google Scholar] [CrossRef]
  40. Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef]
  41. Pisner, D.A.; Schnyer, D.M. Support vector machine. In Machine Learning; Academic Press: Cambridge, MA, USA, 2020; pp. 101–121. [Google Scholar]
  42. Ghaderpour, E.; Pagiatakis, S.D.; Hassan, Q.K. A survey on change detection and time series analysis with applications. Appl. Sci. 2021, 11, 6141. [Google Scholar] [CrossRef]
  43. Ting, W.; Guo-Zheng, Y.; Bang-Hua, Y.; Hong, S. EEG feature extraction based on wavelet packet decomposition for brain computer interface. Measurement 2008, 41, 618–625. [Google Scholar] [CrossRef]
  44. Jaffery, Z.A.; Ahmad, K.; Sharma, P. Selection of optimal decomposition level based on entropy for speech denoising using wavelet packet. J. Bioinform. Intell. Control. 2012, 1, 196–202. [Google Scholar] [CrossRef]
  45. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey wolf optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef] [Green Version]
  46. Ghosh, R.; Sinha, N.; Biswas, S.K.; Phadikar, S. A modified grey wolf optimization based feature selection method from EEG for silent speech classification. J. Inf. Optim. Sci. 2019, 40, 1639–1652. [Google Scholar] [CrossRef]
  47. Van De Ville, D.; Kocher, M. SURE-based non-local means. IEEE Signal Process. Lett. 2009, 16, 973–976. [Google Scholar] [CrossRef] [Green Version]
  48. Singh, P.; Pradhan, G.; Shahnawazuddin, S. Denoising of ECG signal by non-local estimation of approximation coefficients in DWT. Biocybern. Biomed. Eng. 2017, 37, 599–610. [Google Scholar] [CrossRef]
  49. Ghanem, N.H.; Eltrass, A.S.; Ismail, N.H. Investigation of EEG noise and artifact removal by patch-based and kernel adaptive filtering techniques. In Proceedings of the 2018 IEEE International Symposium on Medical Measurements and Applications (MeMeA), Rome, Italy, 11–13 June 2018; pp. 1–5. [Google Scholar]
  50. Phadikar, S.; Sinha, N.; Ghosh, R. Automatic EEG eyeblink artefact identification and removal technique using independent component analysis in combination with support vector machines and denoising autoencoder. IET Signal Process. 2020, 14, 396–405. [Google Scholar] [CrossRef]
  51. Ghosh, R.; Deb, N.; Sengupta, K.; Phukan, A.; Choudhury, N.; Kashyap, S.; Dutta, P. SAM 40: Dataset of 40 subject EEG recordings to monitor the induced-stress while performing Stroop color-word test, arithmetic task, and mirror image recognition task. Data Brief 2022, 40, 107772. [Google Scholar] [CrossRef] [PubMed]
  52. Chen, X.; Liu, A.; Chiang, J.; Wang, Z.J.; McKeown, M.J.; Ward, R.K. Removing muscle artifacts from EEG data: Multichannel or single-channel techniques? IEEE Sens. J. 2016, 16, 1986–1997. [Google Scholar] [CrossRef]
Figure 1. The basic block diagram of the proposed algorithm.
Figure 1. The basic block diagram of the proposed algorithm.
Sensors 22 02948 g001
Figure 2. Experimental setup: a subject is performing the various mental tasks.
Figure 2. Experimental setup: a subject is performing the various mental tasks.
Sensors 22 02948 g002
Figure 3. Comparison of the average value of features extracted from C−EEG and NC−EEG.
Figure 3. Comparison of the average value of features extracted from C−EEG and NC−EEG.
Sensors 22 02948 g003
Figure 4. Demonstration of SAR improvement for different values of P at λ = 0.0469. Curves are plotted for different M (50–500). The arrow denotes the increasing values of M.
Figure 4. Demonstration of SAR improvement for different values of P at λ = 0.0469. Curves are plotted for different M (50–500). The arrow denotes the increasing values of M.
Sensors 22 02948 g004
Figure 5. SAR improvements for different values of λ at P = 4 and M = 50.
Figure 5. SAR improvements for different values of λ at P = 4 and M = 50.
Sensors 22 02948 g005
Figure 6. Convergence comparison between PSO and GWO.
Figure 6. Convergence comparison between PSO and GWO.
Sensors 22 02948 g006
Figure 7. Simulated EEG signal and its corrected EEG signal: (a) Simulated Clean EEG Signal, (b) Simulated EMG Artifact Signal, (c) Simulated Corrupted EEG Signal, and (d) Clean EEG Reconstructed by the proposed model.
Figure 7. Simulated EEG signal and its corrected EEG signal: (a) Simulated Clean EEG Signal, (b) Simulated EMG Artifact Signal, (c) Simulated Corrupted EEG Signal, and (d) Clean EEG Reconstructed by the proposed model.
Sensors 22 02948 g007
Figure 8. Comparison of power spectral density among C−EEG, Clean EEG, and Reconstructed EEG.
Figure 8. Comparison of power spectral density among C−EEG, Clean EEG, and Reconstructed EEG.
Sensors 22 02948 g008
Figure 9. Comparison between simulated corrupted EEG and corresponding clean EEG reconstructed by (a) MKNLMS−CS, (b) Tuneable WPD, (c) EEMD−CCA, and (d) proposed methodology.
Figure 9. Comparison between simulated corrupted EEG and corresponding clean EEG reconstructed by (a) MKNLMS−CS, (b) Tuneable WPD, (c) EEMD−CCA, and (d) proposed methodology.
Sensors 22 02948 g009
Table 1. Comparison of recently developed hybrid techniques for the removal of EMG artifacts from the EEG data.
Table 1. Comparison of recently developed hybrid techniques for the removal of EMG artifacts from the EEG data.
Author(s)MethodologyRequirement of Reference ChannelPrior KnowledgeAutomaticOnlineCan Perform on Single Channel
Mijovic et al. [22]EEMD-ICA
Sweeney et al. [23]EEMD-CCA
Chen et al. [24]EEMD-IVA
Chen et al. [25]EEMD-MCCA
Chen et al. [14]MEEMD-CCA
Zeng et al. [26]MEEMD-ICA
Chen et al. [27]MEMD-CCA
Xu et al. [28]MEMD-IVA
Maddirala et al. [29]SSA-ICA
Dora et al. [30]Adaptive SSA-NNR
Liu et al. [31]FMEMD-CCA
Li et al. [32]cICA
✕—No, ✓—Yes; EEMD—Ensemble Empirical Mode Decomposition, MCCA—Multiset Canonical Correlation Analysis, MEEMD—Multivariate EEMD, SSA—Singular Spectrum Analysis, NNR—Neural Network Regressor, FMEMD—Fast Multivariate Empirical Mode Decomposition, cICA—Constrained ICA.
Table 2. Notations and preliminaries.
Table 2. Notations and preliminaries.
NameDetails
cAj(k)Approximation Coefficients at level j and instant k.
cDj(k)Detail Coefficients at level j and instant k.
x(t) or XInput EEG signal
X^Reconstructed clean EEG signal
YSimulated Corrupted EEG
y * Simulated clean EEG
h(k) Highpass Filter in Wavelet Packet Decomposition
g(k) Lowpass Filter in Wavelet Packet Decomposition
d i , j Wavelet Coefficient at ith level and jth node.
d i , j ^ Corrected wavelet coefficients
ε Reconstruction Error
X r e c o n Reconstructed signal
S E j Normalized Shannon Entropy at level j
E j k Wavelet Energy Spectrum at level j and instant k
u ˜ s Estimated version of the signal u
N (S) Search Neighbourhood
W ( S ,   η ) Weights corresponding to given sample S
λBandwidth Parameter
P Patch half-width
M Search neighbourhood half-width
Δ Patch
L Δ Number of samples contained in Δ
d 2 s , t Squared-summation of the point-by-point difference between patches
C-EEG Corrupted EEG signal
NC-EEG Non-corrupted EEG signal
P (,) Joint Probability Distribution Function
P ( ) Marginal Probability Distribution Function
SAR Signal to Artifact Ratio
W 1 Inverse WPD Function
μ Sample Mean
σ Standard Deviation
σ X ^ y * Cross-correlation of the zero mean data X^ and y*
Table 3. Wavelets vs. average reconstruction error.
Table 3. Wavelets vs. average reconstruction error.
Wavelets Average   ε ± StdWavelets Average   ε ± StdWavelets Average   ε ± Std
Haar 4.07 × 10−12 ± 3.21 × 10−12db113.88 × 10−12 ± 1.37 × 10−12coif24.45 × 10−10 ± 1.35 × 10−10
db2 2.62 × 10−11 ± 7.07 × 10−12db123.81 × 10−12 ± 1.57 × 10−12coif32.38 × 10−11 ± 7.33 × 10−12
db3 2.61 × 10−10 ± 9.00 × 10−11sym22.62 × 10−11 ± 7.70 × 10−12coif41.10 × 10−9 ± 3.12 × 10−10
db4 4.91 × 10−11 ± 1.67 × 10−11sym32.61 × 10−10 ± 9.0 × 10−11coif52.43 × 10−7 ± 7.01 × 10−8
db5 7.68 × 10−11 ± 2.83 × 10−11sym42.29 × 10−11 ± 6.65 × 10−12fk48.99 × 10−14 ± 7.67 × 10−14
db6 4.58 × 10−11 ± 1.77 × 10−11sym58.08 × 10−12 ± 2.34 × 10−12fk65.97 × 10−14 ± 3.26 × 10−14
db7 6.18 × 10−11 ± 1.93 × 10−11sym63.57 × 10−11 ± 1.03 × 10−11fk87.56 × 10−8 ± 2.19 × 10−8
db8 1.27 × 10−10 ± 4.50 × 10−11sym73.47 × 10−11 ± 1.00 × 10−11fk141.12 × 10−10 ± 3.26 × 10−11
db9 1.38 × 10−9 ± 4.01 × 10−10sym87.01 × 10−12 ± 2.50 × 10−12fk187.58 × 10−10 ± 6.69 × 10−10
db10 1.46 × 10−10 ± 4.40 × 10−11coif14.23 × 10−11 ± 1.23 × 10−11fk221.80 × 10−8 ± 1.18 × 10−8
Table 4. Shannon entropy value corresponding to the different decomposition levels (mother wavelet: “fk6”).
Table 4. Shannon entropy value corresponding to the different decomposition levels (mother wavelet: “fk6”).
Decomposition LevelShannon Entropy
DetailCoefficientsApproximation Coefficients
11.69 × 1043.07 × 104
21.30 × 1031.69 × 102
30.98 × 103−1.32 × 102
4786.31−1.68 × 103
5−409.13−3.08 × 104
Table 5. Comparison of the computation time for different values of M.
Table 5. Comparison of the computation time for different values of M.
M (Samples)Computational Time (s)
M = 501.8670
M = 1002.7999
M = 1503.7531
M = 2004.6373
M = 2505.4545
M = 3006.5207
M = 3507.2739
M = 4008.0866
M = 4508.8712
M = 50010.4860
Table 6. Performance of the classifier.
Table 6. Performance of the classifier.
PerformanceClassifiers
SVMNBC
Sensitivity98.3194.09
Specificity97.9191.68
Accuracy98.1993.28
Table 7. Comparison of similarity between C-EEG and reconstructed clean EEG (ranges from 4.3 s to 7.3 s).
Table 7. Comparison of similarity between C-EEG and reconstructed clean EEG (ranges from 4.3 s to 7.3 s).
Denoising TechniquesAverage CC
MKNLMS−CS [38]0.2809
Tuneable WPD [35]0.5089
EEMD−CCA [14]0.5557
Proposed Method0.8863
Table 8. Performance comparison on simulated C-EEG.
Table 8. Performance comparison on simulated C-EEG.
MethodsAverage CCSSIM
MKNLMSCS [38]0.59370.3963
Tuneable WPD [35]0.71010.5401
EEMDCCA [14]0.81390.5723
Proposed Method0.86750.6809
Table 9. Comparison of MI on 32-channel recorded real EEG data.
Table 9. Comparison of MI on 32-channel recorded real EEG data.
ChannelsMKNLMS−CS [38]Tuneable WPD [35]EEMD−CCA [14]Proposed Method
11.0091.1062.4172.970
20.9521.1932.3342.972
31.5621.5352.8583.985
42.3891.9863.1983.908
51.4101.4442.5833.207
61.0531.0942.1172.652
71.1191.2742.4262.958
81.6301.6312.9944.179
91.9301.8842.3193.010
101.4271.3613.2023.359
111.6011.6092.1972.387
121.1981.1852.4292.798
131.0391.1652.3352.842
140.9321.5062.0262.127
151.1091.1582.0582.199
162.0111.0542.0422.292
171.5201.0552.3712.747
181.1061.1582.0072.446
191.3211.0332.0632.496
201.0301.1461.8912.305
211.0980.9972.2482.451
221.0320.9002.1202.421
231.0011.0452.2672.691
241.0301.0782.0101.985
251.1311.1321.8641.783
261.0951.3852.5643.289
271.5211.6113.3373.914
281.3021.5352.9303.181
291.0151.2682.5733.151
301.4001.4402.7913.465
311.6121.6153.0824.607
321.5901.7032.9984.211
Average ± Std1.3180 ± 0.34781.3214 ± 0.27472.4578 ± 0.42392.9684 ± 0.7045
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Phadikar, S.; Sinha, N.; Ghosh, R.; Ghaderpour, E. Automatic Muscle Artifacts Identification and Removal from Single-Channel EEG Using Wavelet Transform with Meta-Heuristically Optimized Non-Local Means Filter. Sensors 2022, 22, 2948. https://doi.org/10.3390/s22082948

AMA Style

Phadikar S, Sinha N, Ghosh R, Ghaderpour E. Automatic Muscle Artifacts Identification and Removal from Single-Channel EEG Using Wavelet Transform with Meta-Heuristically Optimized Non-Local Means Filter. Sensors. 2022; 22(8):2948. https://doi.org/10.3390/s22082948

Chicago/Turabian Style

Phadikar, Souvik, Nidul Sinha, Rajdeep Ghosh, and Ebrahim Ghaderpour. 2022. "Automatic Muscle Artifacts Identification and Removal from Single-Channel EEG Using Wavelet Transform with Meta-Heuristically Optimized Non-Local Means Filter" Sensors 22, no. 8: 2948. https://doi.org/10.3390/s22082948

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