Cargando…
An open-source human-in-the-loop BCI research framework: method and design
Brain-computer interfaces (BCIs) translate brain activity into digital commands for interaction with the physical world. The technology has great potential in several applied areas, ranging from medical applications to entertainment industry, and creates new conditions for basic research in cognitiv...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Frontiers Media S.A.
2023
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10335802/ https://www.ncbi.nlm.nih.gov/pubmed/37441434 http://dx.doi.org/10.3389/fnhum.2023.1129362 |
_version_ | 1785071073653424128 |
---|---|
author | Gemborn Nilsson, Martin Tufvesson, Pex Heskebeck, Frida Johansson, Mikael |
author_facet | Gemborn Nilsson, Martin Tufvesson, Pex Heskebeck, Frida Johansson, Mikael |
author_sort | Gemborn Nilsson, Martin |
collection | PubMed |
description | Brain-computer interfaces (BCIs) translate brain activity into digital commands for interaction with the physical world. The technology has great potential in several applied areas, ranging from medical applications to entertainment industry, and creates new conditions for basic research in cognitive neuroscience. The BCIs of today, however, offer only crude online classification of the user's current state of mind, and more sophisticated decoding of mental states depends on time-consuming offline data analysis. The present paper addresses this limitation directly by leveraging a set of improvements to the analytical pipeline to pave the way for the next generation of online BCIs. Specifically, we introduce an open-source research framework that features a modular and customizable hardware-independent design. This framework facilitates human-in-the-loop (HIL) model training and retraining, real-time stimulus control, and enables transfer learning and cloud computing for the online classification of electroencephalography (EEG) data. Stimuli for the subject and diagnostics for the researcher are shown on separate displays using web browser technologies. Messages are sent using the Lab Streaming Layer standard and websockets. Real-time signal processing and classification, as well as training of machine learning models, is facilitated by the open-source Python package Timeflux. The framework runs on Linux, MacOS, and Windows. While online analysis is the main target of the BCI-HIL framework, offline analysis of the EEG data can be performed with Python, MATLAB, and Julia through packages like MNE, EEGLAB, or FieldTrip. The paper describes and discusses desirable properties of a human-in-the-loop BCI research platform. The BCI-HIL framework is released under MIT license with examples at: bci.lu.se/bci-hil (or at: github.com/bci-hil/bci-hil). |
format | Online Article Text |
id | pubmed-10335802 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | Frontiers Media S.A. |
record_format | MEDLINE/PubMed |
spelling | pubmed-103358022023-07-12 An open-source human-in-the-loop BCI research framework: method and design Gemborn Nilsson, Martin Tufvesson, Pex Heskebeck, Frida Johansson, Mikael Front Hum Neurosci Human Neuroscience Brain-computer interfaces (BCIs) translate brain activity into digital commands for interaction with the physical world. The technology has great potential in several applied areas, ranging from medical applications to entertainment industry, and creates new conditions for basic research in cognitive neuroscience. The BCIs of today, however, offer only crude online classification of the user's current state of mind, and more sophisticated decoding of mental states depends on time-consuming offline data analysis. The present paper addresses this limitation directly by leveraging a set of improvements to the analytical pipeline to pave the way for the next generation of online BCIs. Specifically, we introduce an open-source research framework that features a modular and customizable hardware-independent design. This framework facilitates human-in-the-loop (HIL) model training and retraining, real-time stimulus control, and enables transfer learning and cloud computing for the online classification of electroencephalography (EEG) data. Stimuli for the subject and diagnostics for the researcher are shown on separate displays using web browser technologies. Messages are sent using the Lab Streaming Layer standard and websockets. Real-time signal processing and classification, as well as training of machine learning models, is facilitated by the open-source Python package Timeflux. The framework runs on Linux, MacOS, and Windows. While online analysis is the main target of the BCI-HIL framework, offline analysis of the EEG data can be performed with Python, MATLAB, and Julia through packages like MNE, EEGLAB, or FieldTrip. The paper describes and discusses desirable properties of a human-in-the-loop BCI research platform. The BCI-HIL framework is released under MIT license with examples at: bci.lu.se/bci-hil (or at: github.com/bci-hil/bci-hil). Frontiers Media S.A. 2023-06-27 /pmc/articles/PMC10335802/ /pubmed/37441434 http://dx.doi.org/10.3389/fnhum.2023.1129362 Text en Copyright © 2023 Gemborn Nilsson, Tufvesson, Heskebeck and Johansson. https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms. |
spellingShingle | Human Neuroscience Gemborn Nilsson, Martin Tufvesson, Pex Heskebeck, Frida Johansson, Mikael An open-source human-in-the-loop BCI research framework: method and design |
title | An open-source human-in-the-loop BCI research framework: method and design |
title_full | An open-source human-in-the-loop BCI research framework: method and design |
title_fullStr | An open-source human-in-the-loop BCI research framework: method and design |
title_full_unstemmed | An open-source human-in-the-loop BCI research framework: method and design |
title_short | An open-source human-in-the-loop BCI research framework: method and design |
title_sort | open-source human-in-the-loop bci research framework: method and design |
topic | Human Neuroscience |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10335802/ https://www.ncbi.nlm.nih.gov/pubmed/37441434 http://dx.doi.org/10.3389/fnhum.2023.1129362 |
work_keys_str_mv | AT gembornnilssonmartin anopensourcehumanintheloopbciresearchframeworkmethodanddesign AT tufvessonpex anopensourcehumanintheloopbciresearchframeworkmethodanddesign AT heskebeckfrida anopensourcehumanintheloopbciresearchframeworkmethodanddesign AT johanssonmikael anopensourcehumanintheloopbciresearchframeworkmethodanddesign AT gembornnilssonmartin opensourcehumanintheloopbciresearchframeworkmethodanddesign AT tufvessonpex opensourcehumanintheloopbciresearchframeworkmethodanddesign AT heskebeckfrida opensourcehumanintheloopbciresearchframeworkmethodanddesign AT johanssonmikael opensourcehumanintheloopbciresearchframeworkmethodanddesign |