A Comparative Analysis of CNNs and RNNs for EEG-based Motor Imagery Classification in BCIs

Authors

  • Yat Hei Vanessa Lam Heep Yunn School
  • Leo Lui

DOI:

https://doi.org/10.47611/jsrhs.v12i4.5740

Keywords:

comparative analysis, CNN, RNN, EEG, motor imagery, classification, machine learning, brain computer interfaces

Abstract

EEG-based motor imagery (MI) classification plays a vital role in brain-computer interface systems (BCIs) to enable the control of external devices with the human brain. However, there is currently limited research focusing on the comparison between different machine learning models for this task. This research paper aims to present a comprehensive comparative analysis of two popular deep learning architectures, Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) for MI recognition with EEG data. The experiments utilised the EEG Motor Movement/Imagery Dataset v1.0.0 from PhysioNet, which contains EEG signals recorded during a variety of motor imagery tasks. The respective performances of the CNN and RNN architectures were subsequently evaluated and compared based on classification accuracy and computational efficiency. Various metrics and statistics, namely accuracy, precision, training speed, memory usage, etc., were used for assessment. The results revealed that CNN outperforms RNN in terms of accuracy, while RNN demonstrates superior computational efficiency. These findings potentially serve as a valuable guideline for researchers and practitioners in the field of BCIs, aiding them in selecting the most suitable neural network architecture for performing MI related tasks.

Downloads

Download data is not yet available.

References or Bibliography

Yamashita, R., Nishio, M., Do, R.K.G. et al. Convolutional neural networks: an overview and application in radiology. Insights Imaging 9, 611–629 (2018). https://doi.org/10.1007/s13244-018-0639-9. https://insightsimaging.springeropen.com/articles/10.1007/s13244-018-0639-9

Schirrmeister RT, Springenberg JT, Fiederer LDJ, Glasstetter M, Eggensperger K, Tangermann M, Hutter F, Burgard W, Ball T. Deep learning with convolutional neural networks for EEG decoding and visualization. Hum Brain Mapp. 2017 Nov;38(11):5391-5420. DOI: 10.1002/hbm.23730. Epub 2017 Aug 7. PMID: 28782865; PMCID: PMC5655781. https://pubmed.ncbi.nlm.nih.gov/28782865/

Chang Z, Zhang C, Li C. Motor Imagery EEG Classification Based on Transfer Learning and Multi-Scale Convolution Network. Micromachines (Basel). 2022 Jun 10;13(6):927. DOI: 10.3390/mi13060927. PMID: 35744539; PMCID: PMC9228168.

https://pubmed.ncbi.nlm.nih.gov/35744539/

T. Zhang, W. Zheng, Z. Cui, Y. Zong, and Y. Li, "Spatial–Temporal Recurrent Neural Network for Emotion Recognition," in IEEE Transactions on Cybernetics, vol. 49, no. 3, pp. 839-847, March 2019, DOI: 10.1109/ TCYB.2017.2788081.https://ieeexplore.ieee.org/document/8275511

Wang, Ping & Jiang, Aimin & Liu, Xiaofeng & Shang, Jing & Zhang, Li. (2018). LSTM-based EEG Classification in Motor Imagery Tasks. IEEE Transactions on Neural Systems and Rehabilitation Engineering. PP. 1-1. 10.1109/ TNSRE.2018.2876129. https://ieeexplore.ieee.org/document/8496885

C. Zhao, J. G. Han, and X. Xu, "CNN and RNN Based Neural Networks for Action Recognition," Journal of Physics: Conference Series, vol. 1087, no. 6, 2018, art. no. 062013. DOI: 10.1088/1742-6596/1087/6/062013. https://iopscience.iop.org/article/

1088/1742-6596/1087/6/062013#:~:text=In%20order%20to%20classify%20the,the%20extracted%20features%20by %20CNNs.

Wang X, Ren Y, Luo Z, He W, Hong J, Huang Y. Deep learning-based EEG emotion recognition: Current trends and future perspectives. Front Psychol. 2023 Feb 27;14:1126994. DOI: 10.3389/fpsyg.2023.1126994. PMID: 36923142; PMCID: PMC10009917.

https://www.frontiersin.org/articles/10.3389/fpsyg.2023.1126994/full

Hongli Li, Man Ding, Ronghua Zhang, Chunbo Xiu. Motor imagery EEG classification algorithm based on CNN-LSTM feature fusion network. Biomedical Signal Processing and Control, Volume 72, Part A, 2022, 103342, ISSN 1746-8094, https://doi.org/10.1016/j.bspc.2021.103342.

Schalk, G., McFarland, D.J., Hinterberger, T., Birbaumer, N., Wolpaw, J.R. BCI2000: A General-Purpose Brain-Computer Interface (BCI) System. IEEE Transactions on Biomedical Engineering 51(6):1034-1043, 2004. https://ieeexplore.ieee.org/document/1300799

Goldberger, A., Amaral, L., Glass, L., Hausdorff, J., Ivanov, P. C., Mark, R., ... & Stanley, H. E. (2000). PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation [Online]. 101 (23), pp. E215–e220.

https://physionet.org/content/eegmmidb/1.0.0/

Chollet, F. et al. (2015). Keras. https://keras.io/

Scikit-learn: Machine Learning in Python, Pedregosa et al., JMLR 12, pp. 2825-2830,2011. https://scikit-learn.org/stable/modules/generated/sklearn.metrics.classification_report.html

Published

11-30-2023

How to Cite

Lam, Y. H. V., & Lui, L. (2023). A Comparative Analysis of CNNs and RNNs for EEG-based Motor Imagery Classification in BCIs. Journal of Student Research, 12(4). https://doi.org/10.47611/jsrhs.v12i4.5740

Issue

Section

HS Research Articles