Study of Algorithms for Implementation of Brain-Computer Interfaces in Embedded Systems

  • Conference paper
  • First Online:
IX Latin American Congress on Biomedical Engineering and XXVIII Brazilian Congress on Biomedical Engineering (CLAIB 2022, CBEB 2022)

Abstract

The implementation of a Brain-Computer Interface (BCI) system requires electroencephalography (EEG) signal processing that includes filtering, feature extraction, and classification algorithms. As such, the present work proposes to use the PocketBeagle embedded system to run algorithms for BCI using the Python language. This work aimed to explore some features of the embedded system to optimize performance and resource consumption, as well as the training time of the implemented algorithms, which used Linear Discriminant Analysis (LDA) and Support Vector Machine (SVM) classifiers, both with Common Spatial Patterns (CSP) filter. When comparing previous research results with the developed algorithms of this work embedded in the PocketBeagle, the training time increased by 42.98 s for LDA and 42.66 s for SVM. When analyzing the memory consumption of the implementations in the embedded system, the codes consumed less than half of the memory available in the 512 MB PocketBeagle. The consumption of the LDA classifier was 167 MB at its peak, and the SVM was 177 MB at the peak of its execution. Using the metrics resulting from the confusion matrix, it is clear that the SVM classifier had a better performance than the LDA since its accuracy is 83.14 % and its f-score is 0.8111, while for the LDA classifier, they are 66.29 % and 0.6940, respectively.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. BCI Competition III’s Data set IVa. https://www.bbci.de/competition/iii/desc/_IVa.html

  2. Pocket Beagle System Reference Manual. https://github.com/beagleboard/pocketbeagle/wiki/System-Reference-Manual

  3. Blankertz, B., et al.: The BCI competition iii: validating alternative approaches to actual BCI problems. IEEE Trans. Neural Syst. Rehabil. Eng. 14(2), 153–159 (2006)

    Article  Google Scholar 

  4. Dornhege, G., et al.: Boosting bit rates in non-invasive EEG single-trial classifications by feature combination and multi-class paradigms. IEEE Trans. Biomed. Eng. 51(6), 993–1002 (2004)

    Article  Google Scholar 

  5. Lotte, F.: A tutorial on EEG signal-processing techniques for mental-state recognition in brain–computer interfaces. In: Miranda, E.R., Castet, J. (eds.) Guide to Brain-Computer Music Interfacing, pp. 133–161. Springer, London (2014). https://doi.org/10.1007/978-1-4471-6584-2_7

    Chapter  Google Scholar 

  6. Lotte, F., Guan, C.: Regularizing common spatial patterns to improve BCI designs: unified theory and new algorithms. IEEE Trans. Biomed. Eng. 58(2), 355–362 (2011)

    Article  Google Scholar 

  7. Mokienko, O., et al.: Motor imagery and its practical application. Neurosci. Behav. Physiol. 44(5), 483–489 (2014)

    Article  Google Scholar 

  8. Molloy, D.: Exploring BeagleBone: Tools and Techniques for Building with Embedded Linux. Wiley, Hoboken (2019). ISBN 9781118935125

    Google Scholar 

  9. Monard, M.C., Baranauskas, J.A.: Conceitos sobre aprendizado de máquina. In: Sistemas Inteligentes Fundamentos e Aplicações, 1 edn, pp. 89–114. Manole Ltda, Barueri-SP (2003)

    Google Scholar 

  10. Mulder, T.: Motor imagery and action observation: cognitive tools for rehabilitation. J. Neural Transm. 114(10), 1265–1278 (2007)

    Article  Google Scholar 

  11. Pantic, M., et al.: Computer Based Coursework Manual Machine Learning (Course 395). Imperial College (2011)

    Google Scholar 

  12. Santos, C.C.F.: Estudo da implementação em sistemas embarcados de algoritmos para interfaces cérebro-máquina (2020). https://bdm.unb.br/handle/10483/27788

  13. Santos, C.J.: Avaliação do uso de classificadores para verificação de atendimento a critérios de seleção em programas sociais. Master’s thesis, Universidade Federal de Juiz de Fora, Departamento de Engenharia, Modelagem Computacional. Juiz de Fora, Março (2017)

    Google Scholar 

  14. Turi, F., Gayraud, N.T.H., Clerc, M.: Auto-calibration of c-vep bci by word prediction (2020). hal-02844024

    Google Scholar 

  15. Wang, A.I., Larsen, E.A.: Using brain-computer interfaces in an interactive multimedia application. In: Proceedings of the IASTED International Conference on Software Engineering and Applications (2012)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Camila Ferrer .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ferrer, C., Costa, M.V.C. (2024). Study of Algorithms for Implementation of Brain-Computer Interfaces in Embedded Systems. In: Marques, J.L.B., Rodrigues, C.R., Suzuki, D.O.H., Marino Neto, J., García Ojeda, R. (eds) IX Latin American Congress on Biomedical Engineering and XXVIII Brazilian Congress on Biomedical Engineering. CLAIB CBEB 2022 2022. IFMBE Proceedings, vol 99. Springer, Cham. https://doi.org/10.1007/978-3-031-49404-8_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-49404-8_9

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-49403-1

  • Online ISBN: 978-3-031-49404-8

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics

Navigation