Skip to main content

Lund University Publications

LUND UNIVERSITY LIBRARIES

An open-source human-in-the-loop BCI research framework: method and design

Gemborn Nilsson, Martin LU orcid ; Tufvesson, Pex LU ; Heskebeck, Frida LU orcid and Johansson, Mikael LU orcid (2023) In Frontiers in Human Neuroscience 17.
Abstract
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... (More)
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). (Less)
Please use this url to cite or link to this publication:
author
; ; and
organization
publishing date
type
Contribution to journal
publication status
published
subject
keywords
Brain-Computer Interface (BCI), research framework, online, real-time, EEG
in
Frontiers in Human Neuroscience
volume
17
article number
1129362
pages
19 pages
publisher
Frontiers Media S. A.
external identifiers
  • pmid:37441434
  • scopus:85164823647
ISSN
1662-5161
DOI
10.3389/fnhum.2023.1129362
project
Optimizing the Next Generation Brain Computer Interfaces using Cloud Computing
language
English
LU publication?
yes
id
d508c166-214b-4e86-964e-f9191be88a53
date added to LUP
2023-08-07 11:42:28
date last changed
2024-01-05 03:55:02
@article{d508c166-214b-4e86-964e-f9191be88a53,
  abstract     = {{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).}},
  author       = {{Gemborn Nilsson, Martin and Tufvesson, Pex and Heskebeck, Frida and Johansson, Mikael}},
  issn         = {{1662-5161}},
  keywords     = {{Brain-Computer Interface (BCI); research framework; online; real-time; EEG}},
  language     = {{eng}},
  month        = {{07}},
  publisher    = {{Frontiers Media S. A.}},
  series       = {{Frontiers in Human Neuroscience}},
  title        = {{An open-source human-in-the-loop BCI research framework: method and design}},
  url          = {{http://dx.doi.org/10.3389/fnhum.2023.1129362}},
  doi          = {{10.3389/fnhum.2023.1129362}},
  volume       = {{17}},
  year         = {{2023}},
}