Multi-Class Classification Methods for EEG Signals of Lower-Limb Rehabilitation Movements
Abstract
1. Introduction
- An EEG acquisition platform tailored for use in lower-limb rehabilitation MI tasks was established. A hybrid cueing paradigm combining visual symbols with instructional videos was adopted to minimize visual distractions and enhance event-related potentials. EEG data were recorded using a 64-channel cap to achieve comprehensive spatial coverage and high signal fidelity.
- An automated artifact rejection tool, based on the MNE toolbox and PyQt5 framework, was implemented. By extracting 15 independent components through ICA, this method accurately identified and efficiently removed various artifacts, such as electromyographic (EMG), electrooculographic (EOG), electrocardiographic (ECG), power-line interference, and impedance noise, significantly outperforming traditional manual methods.
- Comprehensive analyses were conducted to extract motor imagery features across temporal, frequency, and spatial domains. Several enhanced variants of the common spatial pattern (CSP) algorithm were developed, optimizing feature selection for effective multi-class classification using support vector machines (SVMs).
- A novel convolutional neural network (CNN) model was designed to analyze 3D EEG representations, incorporating both temporal sequences and frequency-domain power spectral densities. This CNN architecture integrates deep convolutional layers, effectively capturing spatial features from EEG channels while minimizing the computational complexity. Additionally, a dual-branch input strategy independently encodes spatial dimensions from EEG topographic maps, subsequently merging them into a unified structure for improved classification performance.
2. Related Work
3. Data Acquisition
3.1. Motor Imagery Data Collection During Rehabilitation Tasks
3.2. EEG Signal Preprocessing
4. Methods
4.1. EEG Feature Extraction Methods
4.1.1. Weighted-Criterion Common Spatial Pattern (WC-CSP)
Algorithm 1. Genetic algorithm for feature weight selection. |
Input: BCI_IV_2a Output: Optimized weight vector Wbest 1: Load training EEGdata 2: Compute spatial filter matrix P using CSP 3: Initialize weight vectors W, population size PopSize 4:while termination condition not met max generations do 5: for each weight vector W in population do 6: Compute the weighted spatial filter: WP = P × Wi 7: Extract CSP features using WP, obtain feature vector fnew 8: Evaluate fnew using 5-fold cross-validation with an SVM classifier to obtain classification accuracy 9: Use accuracy as the fitness of individual Wi 10: end for 11: Apply selection, crossover, and mutation to form a new generation 12:end while 13:Return the weight vector Wbest with the highest fitness value |
4.1.2. Superimposed Filter Bank Common Spatial Pattern (SFB-CSP)
Algorithm 2. Frequency band feature extraction and classification based on CSP and SVM |
Data: BCI_IV_2a Result: EEG Classification 1: Load preprocessed EEGdata 2: Initialize output list: Class 3: if Fixed Band Division is enabled then 4: for i ∈ [0, 8] do 5: Set start frequency = 0 Hz, end frequency = 4 × (i + 1) Hz 6: Extract CSP features within the band 7: Perform classification using trained SVM 8: Store the predicted label into Class 9: end if 10: end for 11: if Sliding Window Division is enabled then 12: for j ∈ [1, 7] do 13: Set start frequency = 4 × j Hz, end frequency = (4 × j) + 8 Hz 14: Extract CSP features within the band 15: Store the predicted label into Class 16: end for 17: end if 18: Select the final predicted label by majority voting from Class 19: Return the final classification result |
4.2. Multi-Domain Feature Construction and Input Optimization
4.3. Design of 3DEEG-CNN Model for Four-Class Classification
5. Experiments and Analysis of Results
5.1. Results for Feature Extraction Methods
5.2. Results for Classification Methods
5.3. Computational Complexity and Real-Time Feasibility
6. Conclusions
- Future work will focus on developing an end-to-end deep neural network that unifies the traditionally decoupled processes of feature extraction and classification into a single architecture, enabling direct mapping from raw EEG signals to class outputs.
- Given that the classification performance is highly dependent on the quality of the input features, future studies will explore the incorporation of more diverse feature types or the design of more effective feature fusion strategies to enhance complementarity and information representation.
- The upper bound of the classification accuracy may still be constrained by the capacity of the current models. Therefore, future efforts will aim to design more advanced AI architectures capable of further improving the classification performance under the same feature conditions.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Wu, Z. Future Development Trends of Brain–Computer Interfaces. CAAI Trans. Intell. Syst. 2022, 17, 1. [Google Scholar]
- Nicolas-Alonso, L.F.; Gomez-Gil, J. Brain Computer Interfaces, a Review. Sensors 2012, 12, 1211–1279. [Google Scholar] [CrossRef]
- Khairullah, E.; Arican, M.; Polat, K. Brain-computer interface speller system design from electroencephalogram signals with channel selection algorithms. Med. Hypotheses 2020, 141, 109690. [Google Scholar] [CrossRef]
- Liu, B.C.; Chen, X.G.; Li, X.; Wang, Y.J.; Gao, X.R.; Gao, S.K. Align and Pool for EEG Headset Domain Adaptation (ALPHA) to Facilitate Dry Electrode Based SSVEP-BCI. IEEE Trans. Biomed. Eng. 2022, 69, 795–806. [Google Scholar] [CrossRef]
- Chen, G.Y. Automatic EEG seizure detection using dual-tree complex wavelet-Fourier features. Expert Syst. Appl. 2014, 41, 2391–2394. [Google Scholar] [CrossRef]
- Acharya, U.R.; Oh, S.; Hagiwara, Y.; Tan, J.H.; Adeli, H.; Subha, D.P. Automated EEG-based screening of depression using deep convolutional neural network. Comput. Methods Programs Biomed. 2018, 161, 103–113. [Google Scholar] [CrossRef]
- Craik, A.; He, Y.T.; Contreras-Vidal, J.L. Deep learning for electroencephalogram (EEG) classification tasks: A review. J. Neural Eng. 2019, 16, 031001. [Google Scholar] [CrossRef]
- Long, J.; Zheng, W.; Liu, Y.; Wang, M. Feature Extraction of EEG Signals Based on the Fusion of Permutation Entropy and CSP. Comput. Technol. Dev. 2022, 32, 157–162. [Google Scholar]
- Tang, L. Research on Key Technologies of EEG-Based Epileptic Seizure Monitoring. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2021. [Google Scholar]
- Li, M.A.; Liu, H.N.; Zhu, W.; Yang, J.F. Applying Improved Multiscale Fuzzy Entropy for Feature Extraction of MI-EEG. Appl. Sci. 2017, 7, 92. [Google Scholar] [CrossRef]
- Li, M.A.; Luo, X.Y.; Yang, J.F. Extracting the nonlinear features of motor imagery EEG using parametric t-SNE. Neurocomputing 2016, 218, 371–381. [Google Scholar] [CrossRef]
- Hu, Z.; Zhang, G.; Zhang, S.; Zhang, X. Emotion Recognition of EEG Signals Based on mRMR Feature Selection and SVM. Autom. Appl. 2023, 64, 8–11. [Google Scholar]
- Shan, L. Classification Method of Motor Imagery EEG Signals Based on Wavelet Transform and Improved CNN. Master’s Thesis, Nanchang University, Nanchang, China, 2023. [Google Scholar]
- Yang, J.; Yao, S.W.; Wang, J. Deep Fusion Feature Learning Network for MI-EEG Classification. IEEE Access 2018, 6, 79050–79059. [Google Scholar] [CrossRef]
- Wang, C.; Wu, Y.; Wang, C.; Zhu, Y.; Wang, C.; Niu, Y.X.; Shao, Z.P.; Gao, X.D.; Zhao, Z.Y.; Yu, Y. MI-EEG classification using Shannon complex wavelet and convolutional neural networks. Appl. Soft Comput. 2022, 130, 109685. [Google Scholar] [CrossRef]
- Dai, G.H.; Zhou, J.; Huang, J.H.; Wang, N. HS-CNN: A CNN with hybrid convolution scale for EEG motor imagery classification. J. Neural Eng. 2020, 17, 016025. [Google Scholar] [CrossRef] [PubMed]
- Zhang, J.; Liu, D.; Chen, W.; Pei, Z.; Wang, J. Boosting lower-limb motor imagery performance through an ensemble method for gait rehabilitation. Comput. Biol. Med. 2024, 169, 107910. [Google Scholar] [CrossRef]
- Usman, M.; Lin, W.Y.; Lin, Y.Y.; Hsieh, S.T.; Chen, Y.T.; Lo, Y.C.; Lin, C.L. Classifying developmental delays with EEG: A comparative study of machine learning and deep learning approaches. Biocybern. Biomed. Eng. 2025, 45, 229–246. [Google Scholar] [CrossRef]
- Yang, Y.L.; Zhao, H.L.; Hao, Z.Z.; Shi, C.; Zhou, L.; Yao, X.F. Recognition of brain activities via graph-based long short-term memory-convolutional neural network. Front. Neurosci. 2025, 19, 1546559. [Google Scholar] [CrossRef]
- Han, C.; Hu, Y.; Ren, H.; Chen, W.; Yao, Y.; Li, X.; Yu, X. Lower limb motor imagery EEG signals classification based on 1D-CNN-LSTM algorithm. In Proceedings of the International Conference on Future of Medicine and Biological Information Engineering (MBIE 2024), Shanghai, China, 20–22 April 2024. [Google Scholar]
- Chaudhary, P.; Dhankhar, N.; Singhal, A.; Rana, K.P.S. A two-stage transformer based network for motor imagery classification. Med. Eng. Phys. 2024, 128, 104154. [Google Scholar] [CrossRef]
- Yang, G.Y.; Liu, J.G. A novel multi-scale fusion convolutional neural network for EEG-based motor imagery classification. Biomed. Signal Process. Control. 2024, 96, 106645. [Google Scholar] [CrossRef]
- Wang, Y.J.; Ju, X.Y.; Sun, J.X.; Yu, Y.; Li, M.; Hu, D.W. Improved EEGNet with a Multilevel Spatial Feature Extraction Module for EEG Decoding. IEEE Trans. Instrum. Meas. 2025, 74, 2519512. [Google Scholar] [CrossRef]
- Liu, B.; Wang, Y.X.; Gao, L.; Cai, Z.X. Enhanced electroencephalogram signal classification: A hybrid convolutional neural network with attention-based feature selection. Brain Res. 2025, 1851, 149484. [Google Scholar] [CrossRef] [PubMed]
- BCI Competition IV Dataset 2a. Available online: http://www.bbci.de/competition/iv/#dataset2a (accessed on 12 May 2025).
- Ramoser, H.; Müller-Gerking, J.; Pfurtscheller, G. Optimal spatial filtering of single trial EEG during imagined hand movement. IEEE Trans. Rehabil. Eng. 2000, 8, 441–446. [Google Scholar] [CrossRef] [PubMed]
- Kai Keng, A.; Zheng Yang, C.; Haihong, Z.; Cuntai, G. Filter Bank Common Spatial Pattern (FBCSP) in Brain-Computer Interface. In Proceedings of the 2008 IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence), Hong Kong, China, 1–8 June 2008; pp. 2390–2397. [Google Scholar]
- Lawhern, V.J.; Solon, A.J.; Waytowich, N.R.; Gordon, S.M.; Hung, C.P.; Lance, B.J. EEGNet: A compact convolutional neural network for EEG-based brain-computer interfaces. J. Neural Eng. 2018, 15, 056013. [Google Scholar] [CrossRef] [PubMed]
- Alnaanah, M.; Wahdow, M.; Alrashdan, M. CNN models for EEG motor imagery signal classification. Signal Image Video Process. 2023, 17, 825–830. [Google Scholar] [CrossRef]
Parameter | Value |
---|---|
Kernel Function | RBF |
Kernel Scale | 0.783 |
Regularization | 0.922 |
Parameter | Value |
---|---|
Population Size | 50 |
Number of Generations | 200 |
Crossover Rate | 0.5 |
Mutation Rate | 0.06 |
Filter Bank Type | Filter 1 | Filter 2 | Filter 3 | … | Last Filter |
---|---|---|---|---|---|
Fixed-Start Band Segmentation | 0–4 Hz | 0–8 Hz | 0–12 Hz | … | 0–36 Hz |
Equally Spaced Sliding Segmentation | 0–8 Hz | 4–12 Hz | 8–16 Hz | … | 28–36 Hz |
Subject | CSP | WC-CSP | FBCSP | SFB-CSP | ||||
---|---|---|---|---|---|---|---|---|
OVO | OVR | OVO | OVR | OVO | OVR | OVO | OVR | |
A01 | 0.433 | 0.365 | 0.495 | 0.469 | 0.592 | 0.627 | 0.622 | 0.639 |
A02 | 0.377 | 0.389 | 0.342 | 0.399 | 0.552 | 0.539 | 0.603 | 0.609 |
A03 | 0.484 | 0.455 | 0.554 | 0.532 | 0.672 | 0.627 | 0.662 | 0.677 |
A04 | 0.376 | 0.326 | 0.386 | 0.33 | 0.501 | 0.486 | 0.65 | 0.641 |
A05 | 0.59 | 0.531 | 0.637 | 0.605 | 0.693 | 0.672 | 0.631 | 0.647 |
A06 | 0.349 | 0.402 | 0.425 | 0.433 | 0.61 | 0.622 | 0.62 | 0.601 |
A07 | 0.495 | 0.421 | 0.503 | 0.485 | 0.599 | 0.603 | 0.671 | 0.693 |
A08 | 0.585 | 0.476 | 0.627 | 0.573 | 0.654 | 0.62 | 0.683 | 0.705 |
A09 | 0.312 | 0.291 | 0.328 | 0.246 | 0.532 | 0.55 | 0.649 | 0.662 |
Subject | CSP | WC-CSP | FBCSP | SFB-CSP | ||||
---|---|---|---|---|---|---|---|---|
OVO | OVR | OVO | OVR | OVO | OVR | OVO | OVR | |
LLS01 | 0.284 | 0.277 | 0.299 | 0.243 | 0.32 | 0.337 | 0.374 | 0.389 |
LLS02 | 0.297 | 0.305 | 0.351 | 0.328 | 0.49 | 0.423 | 0.472 | 0.485 |
LLS03 | 0.349 | 0.366 | 0.392 | 0.386 | 0.423 | 0.475 | 0.465 | 0.452 |
LLS04 | 0.331 | 0.324 | 0.345 | 0.336 | 0.375 | 0.356 | 0.397 | 0.421 |
LLS05 | 0.312 | 0.33 | 0.356 | 0.342 | 0.403 | 0.485 | 0.544 | 0.583 |
Subject | Time-Domain 3DEEG-CNN | PSD-3DEEG-CNN | EEGNET | |||
---|---|---|---|---|---|---|
Accuracy (%) | Kappa | Accuracy (%) | Kappa | Accuracy (%) | Kappa | |
LLS01 | 52.66 | 0.408 | 59.29 | 0.49 | 48.98 | 0.382 |
LLS02 | 60.24 | 0.504 | 65.85 | 0.573 | 54.3 | 0.43 |
LLS03 | 58.57 | 0.482 | 60.28 | 0.502 | 57.14 | 0.465 |
LLS04 | 57.86 | 0.473 | 61.67 | 0.52 | 60.34 | 0.509 |
LLS05 | 60.71 | 0.508 | 66.32 | 0.582 | 54.52 | 0.432 |
Average | 58.01 | 0.475 | 62.68 | 0.531 | 55.06 | 0.444 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ma, S.; Situ, Z.; Peng, X.; Li, Z.; Huang, Y. Multi-Class Classification Methods for EEG Signals of Lower-Limb Rehabilitation Movements. Biomimetics 2025, 10, 452. https://doi.org/10.3390/biomimetics10070452
Ma S, Situ Z, Peng X, Li Z, Huang Y. Multi-Class Classification Methods for EEG Signals of Lower-Limb Rehabilitation Movements. Biomimetics. 2025; 10(7):452. https://doi.org/10.3390/biomimetics10070452
Chicago/Turabian StyleMa, Shuangling, Zijie Situ, Xiaobo Peng, Zhangyang Li, and Ying Huang. 2025. "Multi-Class Classification Methods for EEG Signals of Lower-Limb Rehabilitation Movements" Biomimetics 10, no. 7: 452. https://doi.org/10.3390/biomimetics10070452
APA StyleMa, S., Situ, Z., Peng, X., Li, Z., & Huang, Y. (2025). Multi-Class Classification Methods for EEG Signals of Lower-Limb Rehabilitation Movements. Biomimetics, 10(7), 452. https://doi.org/10.3390/biomimetics10070452