Transactions on Machine Intelligence

Transactions on Machine Intelligence

Motor Imagery EEG Signal Processing Using Common Spatial Patterns (CSP) and Python-Based Artificial Intelligence

Document Type : Original Article

Author
Faculty Member, Chabahar Maritime University, Faculty of Marine Engineering, Department of Marine Electronics and Telecommunications, Chabahar, Iran
Abstract
Brain–Computer Interface (BCI) systems create a direct communication channel between the human brain and external devices, bypassing conventional neuromuscular pathways. These systems interpret brain activity typically captured via electroencephalography (EEG) to infer user intent and execute commands accordingly. In this study, we focus on the classification of motor imagery (MI) signals, a widely used paradigm in BCI applications, which involves users imagining specific limb movements without actual muscle activation. EEG data corresponding to these imagined movements were preprocessed and analyzed using the Common Spatial Patterns (CSP) algorithm, a spatial filtering method that enhances class-discriminative features by maximizing variance differences across mental tasks. Subsequently, these features were classified using machine learning techniques implemented in the Python 3.7 environment. The EEG datasets used for training and evaluation were obtained from PhysioNet, a widely recognized repository hosted by the Massachusetts Institute of Technology (MIT). The aim of this work is to support the development of real-time, non-invasive BCI systems, with potential applications ranging from neurorehabilitation to the control of assistive devices such as prosthetics and exoskeletons. Additionally, the results offer insight into the implementation of neural signal processing algorithms on embedded systems, paving the way for the development of brain-controlled microchips and next-generation human–machine interfaces.
Keywords

  • Koles, Z. J., Lazar, M. S., & Zhou, S. Z. (1990). Spatial patterns underlying population differences in the background EEG. Brain Topography, 2(4), 275–284. https://doi.org/10.1007/BF01129656
  • Blankertz, B., Tomioka, R., Lemm, S., Kawanabe, M., & Müller, K.-R. (2008). Optimizing spatial filters for robust EEG single-trial analysis. IEEE Signal Processing Magazine, 25(1), 41–56. https://doi.org/10.1109/MSP.2008.4408441
  • Zhang, Y., Zhou, G., Jin, J., Wang, X., & Cichocki, A. (2015). Optimizing spatial patterns with sparse filter bands for motor-imagery based brain–computer interface. Journal of Neuroscience Methods, 255, 85–91. https://doi.org/10.1016/j.jneumeth.2015.08.004
  • Kirar, J. S., & Agrawal, R. K. (2016). Optimal spatio-spectral variable size subbands filter for motor imagery brain computer interface. Procedia Computer Science, 84, 14–21. https://doi.org/10.1016/j.procs.2016.04.060
  • Grosse-Wentrup, M., & Buss, M. (2008). Multiclass common spatial patterns and information theoretic feature extraction. IEEE Transactions on Biomedical Engineering, 55(8), 1991–2000. https://doi.org/10.1109/TBME.2008.921154
  • Qiu, Z., Jin, J., Lam, H.-K., Zhang, Y., Wang, X., & Cichocki, A. (2016). Improved SFFS method for channel selection in motor imagery based BCI. Neurocomputing, 207, 519–527. https://doi.org/10.1016/j.neucom.2016.05.035
  • Wu, S.-L., Wu, C.-W., Pal, N. R., Chen, C.-Y., Chen, S.-A., & Lin, C.-T. (2013). Common spatial pattern and linear discriminant analysis for motor imagery classification. In 2013 IEEE Symposium on Computational Intelligence, Cognitive Algorithms, Mind, and Brain (CCMB) (pp. 146–151). https://doi.org/10.1109/CCMB.2013.6609178
  • Koles, Z. J. (1991). The quantitative extraction and topographic mapping of the abnormal components in the clinical EEG. Electroencephalography and Clinical Neurophysiology, 79(6), 440–447. https://doi.org/10.1016/0013-4694(91)90163-X
  • Schalk, G., McFarland, D. J., Hinterberger, T., Birbaumer, N., & Wolpaw, J. R. (2004). BCI2000: A general-purpose brain–computer interface (BCI) system. IEEE Transactions on Biomedical Engineering, 51(6), 1034–1043. https://doi.org/10.1109/TBME.2004.827072
  • Goldberger, A. L., Amaral, L. A. N., Glass, L., Hausdorff, J. M., Ivanov, P. C., Mark, R. G., Mietus, J. E., Moody, G. B., Peng, C.-K., & Stanley, H. E. (2000). PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation, 101(23), e215–e220. https://doi.org/10.1161/01.CIR.101.23.e215
  • Barachant, A., Bonnet, S., Congedo, M., & Jutten, C. (2010). Common spatial pattern revisited by Riemannian geometry. In 2010 IEEE International Workshop on Multimedia Signal Processing (pp. 472–476). https://doi.org/10.1109/MMSP.2010.5662067
  • Gordleeva, S. Y., Lobov, S. A., Grigorev, N. A., Savosenkov, A. O., Shamshin, M. O., Lukoyanov, M. V., Khoruzhko, M. A., & Kazantsev, V. B. (2020). Real-time EEG–EMG human–machine interface-based control system for a lower-limb exoskeleton. IEEE Access, 8, 84070–84081. https://doi.org/10.1109/ACCESS.2020.2991812
Volume 7, Issue 3
Spring 2024
Pages 161-169

  • Receive Date 07 March 2024
  • Revise Date 11 May 2024
  • Accept Date 15 August 2024