Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Jun 2;20(1):70.
doi: 10.1186/s12984-023-01179-8.

Single-trial extraction of event-related potentials (ERPs) and classification of visual stimuli by ensemble use of discrete wavelet transform with Huffman coding and machine learning techniques

Affiliations

Single-trial extraction of event-related potentials (ERPs) and classification of visual stimuli by ensemble use of discrete wavelet transform with Huffman coding and machine learning techniques

Hafeez Ullah Amin et al. J Neuroeng Rehabil. .

Abstract

Background: Presentation of visual stimuli can induce changes in EEG signals that are typically detectable by averaging together data from multiple trials for individual participant analysis as well as for groups or conditions analysis of multiple participants. This study proposes a new method based on the discrete wavelet transform with Huffman coding and machine learning for single-trial analysis of evenal (ERPs) and classification of different visual events in the visual object detection task.

Methods: EEG single trials are decomposed with discrete wavelet transform (DWT) up to the [Formula: see text] level of decomposition using a biorthogonal B-spline wavelet. The coefficients of DWT in each trial are thresholded to discard sparse wavelet coefficients, while the quality of the signal is well maintained. The remaining optimum coefficients in each trial are encoded into bitstreams using Huffman coding, and the codewords are represented as a feature of the ERP signal. The performance of this method is tested with real visual ERPs of sixty-eight subjects.

Results: The proposed method significantly discards the spontaneous EEG activity, extracts the single-trial visual ERPs, represents the ERP waveform into a compact bitstream as a feature, and achieves promising results in classifying the visual objects with classification performance metrics: accuracies 93.60[Formula: see text], sensitivities 93.55[Formula: see text], specificities 94.85[Formula: see text], precisions 92.50[Formula: see text], and area under the curve (AUC) 0.93[Formula: see text] using SVM and k-NN machine learning classifiers.

Conclusion: The proposed method suggests that the joint use of discrete wavelet transform (DWT) with Huffman coding has the potential to efficiently extract ERPs from background EEG for studying evoked responses in single-trial ERPs and classifying visual stimuli. The proposed approach has O(N) time complexity and could be implemented in real-time systems, such as the brain-computer interface (BCI), where fast detection of mental events is desired to smoothly operate a machine with minds.

Keywords: Discrete wavelet transform; Huffman coding; Machine learning classifiers; Single trials analysis (ERPs); Visual object detection.

PubMed Disclaimer

Conflict of interest statement

The corresponding author declares on behalf of all authors that there is no conflict of interest.

Figures

Fig. 1
Fig. 1
An illustration of the visual object detection task
Fig. 2
Fig. 2
EEG preprocessing for ERPs analysis
Fig. 3
Fig. 3
Illustration of the proposed method for single-trial analysis and classification of visual events
Fig. 4
Fig. 4
Fourth-level DWT Decomposition, where d1 refers to detailed coefficients and a1 denotes the approximation coefficients at level 1, L refers to level, Freq. stands for frequency in hertz
Fig. 5
Fig. 5
Bi-orthogonal B-Spline mother wavelet (bior3.5) analysis and synthesis
Fig. 6
Fig. 6
Average ERP from 40 trials of one subject at Pz a target trials and b standard trials. Single trials bandpass EEG signal (black), reconstructed ERP signal from optimum wavelet coefficients (red) of one subject (five out of 40 trials) at Pz c target trials, and d standard trials
Fig. 7
Fig. 7
Illustration of a Confusion Matrix and b Area under the ROC Curve of SVM classifier, c Confusion Matrix and d Area under the ROC Curve of k-NN Classifier
Fig. 8
Fig. 8
An illustration of averaged ERPs over multiple trials of a single subject for the Standard and Target events elicited at the Pz site with corresponding whole-brain topographic maps at peak amplitude, shown as a vertical black dotted line

Similar articles

Cited by

References

    1. Wirth C, Dockree PM, Harty S, Lacey E, Arvaneh M. Towards error categorisation in BCI: single-trial EEG classification between different errors. J Neural Eng. 2019;17(1):016008. doi: 10.1088/1741-2552/ab53fe. - DOI - PubMed
    1. Vanderperren K, Mijović B, Novitskiy N, Vanrumste B, Stiers P, Van den Bergh BR, Lagae L, Sunaert S, Wagemans J, Van Huffel S, et al. Single trial ERP reading based on parallel factor analysis. Psychophysiology. 2013;50(1):97–110. doi: 10.1111/j.1469-8986.2012.01405.x. - DOI - PubMed
    1. Quiroga RQ, Atienza M, Cantero J, Jongsma M. What can we learn from single-trial event-related potentials? Chaos Complexity Lett. 2007;2(2):345–363.
    1. Makeig S, Westerfield M, Jung T-P, Enghoff S, Townsend J, Courchesne E, Sejnowski TJ. Dynamic brain sources of visual evoked responses. Science. 2002;295(5555):690–694. doi: 10.1126/science.1066168. - DOI - PubMed
    1. Guo J, Zhang Y, Chen L, Xu L, Mo X. Biocompatibility evaluation of electrospun PLCL/fibrinogen nanofibers in anterior cruciate ligament reconstruction. Sheng Wu Yi Xue Gong Cheng Xue Za Zhi. 2022;39(3):544–550. - PMC - PubMed

Publication types

LinkOut - more resources