55555555Research_on_Evaluating_EEG_Signal_Processing_Metho
55555555Research_on_Evaluating_EEG_Signal_Processing_Metho
2025
Volume: 6| Number 1 | pp. 377 – 395
ISSN: 2633-352X (Print) | ISSN: 2633-3538 (Online)
ijor.co.uk
DOI: https://doi.org/10.61707/s51hjt17
Keywords: EEG Signal, Brain-Computer Interface, Independent Component Analysis, Discrete Wavelet Transform, Bandpass Filter
INTRODUCTION
In BCI systems, optimizing algorithms to enhance accuracy and efficiency is crucial. The quality of the input
signal is vital for ensuring system performance; however, electroencephalogram (EEG) signals are often
significantly impacted by various types of noise from both the environment and the user’s body. Noise includes
unwanted components that infiltrate the data during acquisition, such as artifacts from eye movements, muscle
activity, and interference from nearby electronic devices. These factors complicate the effective extraction and
analysis of information, ultimately reducing the accuracy of BCI algorithms.
Several approaches exist for fine-tuning BCI algorithms, with noise filtering being a common and effective
method. Noise filtering involves removing unwanted components from EEG signals while preserving essential
information, thereby cleaning the signal and improving accuracy during analysis. This research examines the
characteristics of several common types of noise encountered in EEG signal acquisition and evaluates the
effectiveness of various denoising methods. Through testing on real signals, the report seeks to identify the
optimal approach for enhancing signal quality and refining BCI algorithms
In this article, we present analysiss for evaluating EEG data through noise filtering to identify suitable methods
for integrating data into BCI algorithms, with the goal of effectively developing BCI systems.
Analysis and asssessment of denoising methods for EEG Signals
Signal Evaluation Metric
To evaluate the effectiveness of denoising, the signal-to-noise ratio (SNR) can be computed both before and
after the denoising process. The formula for calculating SNR is as follows:
1 HMI lab, University of Engineering and Technology, Vietnam National Univeresity, Hanoi
2 HMI lab, University of Engineering and Technology, Vietnam National Univeresity, Hanoi
3 HMI lab, University of Engineering and Technology, Vietnam National Univeresity, Hanoi
4 HMI lab, University of Engineering and Technology, Vietnam National Univeresity, Hanoi
Research on Evaluating EEG Signal Processing Methods for the Development of BCI Systems
𝑃𝑠𝑖𝑔𝑛𝑎𝑙
𝑆𝑁𝑅(𝐷𝑏) = 20 ∗ 𝑙𝑜𝑔10 𝑃𝑛𝑜𝑖𝑠𝑒
(1)
Where, 𝑎 and 𝑏 are the translation coefficient and dilation coefficient of the daughter wavelet, respectively, 𝛹
is the mother wavelet, and 𝐹(𝑎, 𝑏) is the signal when transformed at the translation coefficient 𝑎 and the
dilation coefficient 𝑏.
ijor.co.uk 378
Ma, Dinh, Minh and Thanh
Formula (3) computes the inner product between the signal and the daughter wavelet using coefficients a and
b, allowing for the assessment of similarity between the two wavelets and the analysis of the signal across
different time and frequency scales.
Figure 2 illustrates the comparison the Morlet-type mother wavelet (in blue) with its variations of daughter
wavelets. These signals are depicted in the time domain, where the horizontal axis represents time and the
vertical axis indicates the amplitude or magnitude of the signal, demonstrating that the daughter wavelets retain
the same amplitude as the mother wavelet. The stretched daughter wavelet—represented by the orange signal—
has a frequency that is half that of the mother wavelet. The compressed daughter wavelet—shown in green—
has a frequency that is double that of the mother wavelet. The shifted daughter wavelet—depicted in yellow—
maintains the same frequency as the mother wavelet, but its position is offset by 0.5 seconds.
Where are coefficients after applying DWT, coVới c0, c1, ... là các hệ số sau khi biến đổi Wavelet, the value
0.6745 allows the median value to approximate the standard deviation in the case of Gaussian noise.
𝑇ℎ𝑟𝑒𝑠ℎ𝑜𝑙𝑑, 𝜏 = 𝛿𝑚𝑒𝑑 √𝑙𝑛 𝑙𝑛 (𝑁) (5)
N number of signal samples.
- Restoring the signal by applying the inverse Wavelet Transform. This process effectively removes noise
while retaining other essential information.
Noise reduction through Wavelet Transform
The noise reduction process for the signal using Wavelet transform on a simulated signal consists of the
following steps: First, generate the simulated signal, referred to as the original signal. Next, add noise to this
signal to create the noisy signal. Then, apply Wavelet transform to decompose and remove the noise. Finally,
compare the resulting signal with the original signal using various evaluation metrics.
ijor.co.uk 380
Ma, Dinh, Minh and Thanh
Figure 4. Original signal (top) and the signal after adding noise (bottom).
Figure 4 depicts the initial simulated EEG signal in two states: before and after the addition of noise. The
original signal is simulated as a combination of sine waves at various frequencies, reflecting the characteristics
of natural brain electrical activity. This signal is then added to three common types of noise:
- White Gaussian Noise (WGN): Composed of random values distributed according to a Gaussian
distribution, this noise is typically evenly spread across the entire frequency range, blurring the original signal.
- Electromyography (EMG) Noise: Simulated from random values with high frequencies (> 40Hz), this
noise mimics the effects of muscle activity, such as teeth grinding or jaw movements.
- Power Line Noise (PLN): Characterized by oscillations at a fixed frequency of 50Hz.
After adding the noise, the original signal becomes severely distorted, making the natural wave characteristics
difficult to identify. The objective of the processing is to eliminate these noise components to restore the signal
to its original condition. This not only enhances the accuracy of signal analysis but also preserves vital features
within the EEG. Using the noisy signal, the Discrete Wavelet Transform (DWT) is applied to decompose it
into sub-waves. Figure 5 presents the results obtained from this process, employing the 'sym12' mother wavelet
at a decomposition level of 5.
ijor.co.uk 382
Ma, Dinh, Minh and Thanh
Figure 7. Denoised signal (bottom) in relation to the original signal (top) and the noisy signal (middle).
Using the SNR calculation formula, we obtain SNR of the original noisy signal is 5.02 dB while those of the
denoised signal is 21.06 dB. These results clearly show that the SNR of the signal significantly improves after
ijor.co.uk 384
Ma, Dinh, Minh and Thanh
Figure 9. Comparison of the signal after passing through different bandpass filters.
Figure 9 illustrates the signal after it has passed through various types of bandpass filters with a high cutoff
frequency. The original signal comprises three distinct frequency ranges, which are clearly visible at the
beginning, middle, and end of the signal. Notably, in the middle segment, the amplitude of the Butterworth
signal remains stable and nearly unchanged compared to the original. In contrast, the amplitudes of the
Chebyshev and Elliptic signals exhibit instability, while the Bessel signal shows attenuation. In Figure 8, the
signal range demonstrates amplitude attenuation as it transitions from the passband to the stopband, known as
the transition band. The transition band of the Elliptic filter is the shortest, followed by Chebyshev,
Butterworth, and the longest being Bessel. A longer transition band indicates that more unwanted information
outside the desired frequency range may be retained. An ideal filter would have a transition band length of zero,
preserving only the desired frequencies.
Figure 10. EEG signal after passing through a 4th-order Butterworth band-pass filter.
Figure 10 displays a segment of the EEG signal after it has passed through a 4th-order Butterworth band-pass
filter (20 to 40 Hz). Some frequency components just outside the passband still persist, although their
amplitudes are diminished. Besides using a fixed filter type, the order of the filter can be increased to enhance
the rate of attenuation in the transition band. However, this approach will also demand additional
computational resources. Based on the study and analysis of the filters mentioned above, we present a
comparison of the filters in Table 1 below.
Attenuation rate in the transition band Normal Quite fast Slow Fast
Based on the features outlined above, it is evident that the Butterworth filter is most effective when the signal
amplitude is stable and closely resembles the original signal within the passband, making it ideal for observing
biological signals. Thus, in this study, we will employ a 4th-order Butterworth band-pass filter to eliminate
unwanted frequency bands.
Noisy reduction using Bandpass Filters
We also simulate the EEG signal as the original signal, then introduce high-frequency noise to generate a noisy
signal, which is subsequently denoised using a 4th-order Butterworth filter (Figure 11).
ijor.co.uk 386
Ma, Dinh, Minh and Thanh
Independent component analysis is highly effective for signals significantly affected by noise and does not rely
on assumptions about the frequency or amplitude of the noise, unlike filters. However, ICA has some
limitations, including the requirement for multi-channel data and high-quality signal acquisition to achieve
ijor.co.uk 388
Ma, Dinh, Minh and Thanh
Figure 17. EMG denoising: original signal (top) and denoising signal (bottom).
The results of EMG denoising using ICA on a specific channel are illustrated in Figure 17. After denoising, the
signal appears stabilized, with clearer waves in the desired frequency range. Undesired fluctuations have been
significantly minimized without compromising the original EEG waves in the lower frequency bands. The
application of ICA proves effective in removing components associated with muscle noise. When using a band-
pass filter to preserve the information of the EEG signal, the filter's frequency range is typically set between 8
and 30 Hz. In these conditions, most muscle noise induced by movement is effectively eliminated. However,
some instances of muscle noise may contain components with frequencies below the 30 Hz threshold, leading
to a small portion of the noise persisting even after the signal passes through the filter.
EOG Signal Denoising
When analyzed, the EEG signal displays EOG segments as large spikes that recur with high amplitude and low
frequency. These spikes obscure the natural characteristics of the EEG waves. Components contributing to
EOG noise can be easily identified and removed using ICA. The outcomes of EOG denoising through ICA
are shown in Figure 18. After denoising, the EEG waves demonstrate increased stability, with no remaining
spikes from eye movement, while preserving the signal's features.
ijor.co.uk 390
Ma, Dinh, Minh and Thanh
Figure 18. EOG signal denoising by ICA original signal (top) and denoising signal (bottom).
Wavelet transform is also an effective method for addressing this type of noise. The results of this approach
are presented in Figure 19. With a decomposition level of 2 and the mother wavelet ‘Daubechies 4’, the signal
after denoising has effectively eliminated the energy spikes caused by eye movements.
Figure 19. EOG signal denoising by wavelet transform original signal (top) and denoising signal (bottom).
Furthermore, EOG noise primarily occurs in the low-frequency range, typically below 8 Hz, and is especially
prominent in the Delta frequency range (1–4 Hz). In current brain-computer interface (BCI) applications, Delta
frequency information is usually not a primary focus, as it mainly reflects states such as deep sleep or less
complex brain activity. Consequently, removing signals in this frequency range does not significantly impact
the quality of analyses related to other frequency bands, such as Alpha (8–12 Hz) or Beta (12–30 Hz). Therefore,
processing EOG noise using a high-pass filter is an effective approach. By raising the cutoff frequency, the
filter can eliminate low-frequency signal information, including spikes caused by eye movements, while retaining
the essential characteristics of brain waves.
Removing noise caused by Poor Electrode Contact
When poor electrode contact occurs during EEG signal acquisition, the subject should adopt a comfortable
seated position and apply additional saline to ensure optimal contact between the electrodes and the scalp. This
practice enhances signal quality and reduces noise. Noise from poor electrode contact can distort signals or
Figure 20. The signal exhibiting noise due to poor electrode contact: before (top) and after (bottom) passing through the band-pass
filter
The ICA approach requires expertise from EEG analysts or physicians experienced in working with EEG
waves. However, the researchers normally face challenges in accessing this specialized knowledge, which may
hinder the approach's effectiveness. In contrast, the success of noise filtering through Wavelet transformation
relies on various parameters selected during the denoising process, including the mother wavelet shape and
threshold settings. Given that EEG waves display distinct characteristics that vary significantly among
individuals, these parameters must be adjusted flexibly, introducing an additional challenge. Consequently, we
considers band-pass filtering to be the most optimal method, balancing computational cost with effective
automatic denoising for signal purification in BCI algorithms.
EEG signal classification after Denoising
To assess the performance of the EEG signal after denoising with the above band-pass filtering approach, we
classified the denoised EEG signal and evaluated the classification performance.
ijor.co.uk 392
Ma, Dinh, Minh and Thanh
Datasets
We conducted experiments using the BCI Competition IV-2a dataset [7]. Published during the 2008
competition focused on developing BCI systems, this dataset is renowned for its high quality and includes a
diverse group of subjects (9 subjects), with data collected in a controlled environment using top-quality EEG
equipment. As a result, it serves as an excellent foundation for theoretical performance testing of machine
learning models. Additionally, the research team collected an experimental dataset (called HMIEEG) involving
imagined motor imagery. Among the 72 electrode positions supported by the Emotiv EPOC Flex device,
certain electrodes exhibited clearer characteristics for imagination than others. These electrodes are generally
positioned near the motor cortex, the brain region responsible for planning, controlling, and executing
voluntary motor tasks. Moreover, a study [8] indicated that the number of EEG signal channels could be
reduced without significantly compromising signal quality and classification performance. Leveraging this
insight, the research team streamlined the EEG data collection process by using only 22 electrodes arranged
according to the layout shown in Figure 21 [7]. This dataset was collected with the Emotiv EPOC Flex device
at a sampling frequency of 128Hz. The research team utilized these recording sessions for subjects to familiarize
themselves with and calibrate the VR-BCI system and the BCI-vSpeller test, while also re-evaluating the
classification performance of the models based on the EEG data collected from the team’s device.
Where: 𝑝0 is the overall accuracy of the model, and 𝑝𝑒 is the frequency of agreement between the model’s
predictions and the true class values.
We utilized the BCI Competition IV-2a dataset and the HMIEEG dataset to evaluate the performance of the
LDA algorithm [9] using CSP features [10] across four different parameter sets, labeled A, B, C, and D, as
detailed in Table 2. The training results from the BCI Competition IV-2a dataset were assessed based on
Accuracy and K-score, as presented in Table 3.
Table 2. Diffirent dataset parameter sets
Subjects A B C D
In Table 3, parameter set B utilizes a larger signal window than parameter set A, resulting in more EEG data
and a higher average classification outcome. However, for some subjects, the distinction in EEG signals
between the imagined motor imagery tasks for the left and right hands is not clear, which leads to poor
classification performance. Furthermore, employing a signal window longer than 2 seconds decreases the
usability of the BCI system, resulting in extended sessions for patients. Consequently, during testing with
parameter sets C and D, the team adopted a 1-second signal window, varying the imagined motor imagery tasks
and adjusting the bandpass filter. In parameter set C, the team compared the tasks for the right hand and leg,
using the same bandpass filter as in parameter sets A and B. Although the average classification result showed
a slight decrease compared to parameter set B, it remained consistent and stable across all 9 subjects, with none
achieving a performance below 50%. To provide additional data for the classification algorithm, parameter set
ijor.co.uk 394
Ma, Dinh, Minh and Thanh
D incorporated a wider bandpass filter (8–30 Hz), which yielded the best classification results in terms of both
Accuracy and average K-score. We then selected and applied the signal window and bandpass filter parameters
from set D to test the LDA algorithm on the HMIEEG experimental dataset. The classification results are
presented in Table 4 below.
Table 4. LDA algorithm performance on HMIEEG dataset
The experiments demonstrated that the denoised signals achieved high performance and hold significant
potential for the implementation of BCI applications.
CONCLUSION
In this article, we examined several common errors encountered during the acquisition of EEG signals. We
also analyzed various noise processing approaches suitable for EEG data. Independent Component Analysis
(ICA) is effective for high-level noise filtering; however, it requires expert knowledge to identify and remove
noise components, making it less suitable for automatic noise filtering. The effectiveness of Discrete Wavelet
Transform (DWT) in noise filtering depends on the choice of the mother wavelet, decomposition level, and
threshold selection. Bandpass filters necessitate defining the frequency range of signals to ensure effective noise
reduction while preserving EEG signal information, providing stable filtering that can eliminate most noise at
a low cost.
Additionally, we applied a bandpass filter to denoise the signals prior to classification for BCI application
implementation. Experiments demonstrated high classification performance when the bandpass filter was used
for denoising.
REFERENCES
Mamun, Md, Mahmoud Al-Kadi, and Mohd Marufuzzaman. "Effectiveness of Wavelet denoising on electroencephalogram
signals." Journal of applied research and technology 11.1 (2013): 156-160. doi: 10.1016/S1665-6423(13)71524-4.
Burrus, Charles & Gopinath, R. & Guo, H.. (1998). Introduction to Wavelets and Wavelet Transform—A Primer. Recherche.
67.
Li Tan. Digital Signal Processing Fundamentals and Applications (3rd Edition). Academic press. ISBN: 978-0-12-374090-8. 2018.
Mika, Dariusz, Grzegorz Budzik, and Jerzy Jozwik. "Single channel source separation with ICA-based time-frequency
decomposition." Sensors 20.7 (2020): 2019. doi: 10.3390/s20072019.
Bhandari, Ayush, et al. "Wavelet based compression technique of Electro-oculogram signals." 3rd Kuala Lumpur International
Conference on Biomedical Engineering 2006: Biomed 2006, 11–14 December 2006 Kuala Lumpur, Malaysia. Springer Berlin
Heidelberg, 2007. doi: 10.1007/978-3-540-68017-8_111.
Goncharova, Irina I., et al. "EMG contamination of EEG: spectral and topographical characteristics." Clinical neurophysiology
114.9 (2003): 1580-1593. doi: 10.1016/S1388-2457(03)00093-2.
C. Brunner et al., "BCI Competition 2008–Graz data set A,” Institute for knowledge discovery (laboratory of brain-computer
interfaces), Graz University of Technology, vol. 16, pp. 1-6, 2008.
Altaheri H, Muhammad G, Alsulaiman M, Amin SU, Altuwaijri GA, Abdul W, Bencherif MA, Faisal M. Deep learning techniques
for classification of electroencephalogram (EEG) motor imagery (MI) signals: A review. Neural Computing and Applications.
2023 Jul;35(20):14681-722. doi: 10.1007/s00521-021-06352-5.
Fisher, Ronald A. "The use of multiple measurements in taxonomic problems." Annals of eugenics 7.2 (1936): 179-188. doi:
10.1111/j.1469-1809.1936.tb02137.x.
Ramoser, Herbert, Johannes Muller-Gerking, and Gert Pfurtscheller. "Optimal spatial filtering of single trial EEG during
imagined hand movement." IEEE transactions on rehabilitation engineering 8.4 (2000): 441-446. doi: 10.1109/86.895946.