We present an open-source implementation of a closed-loop Brain-Computer Interface (BCI) system based on electrocorticographic (ECoG) recordings. Our setup integrates FieldTrip for interfacing with a Micromed acquisition system and PsychoPy for implementing experiments. We open-source three custom Python libraries (psychopylib, pymarkerlib, and pyfieldtriplib) each covering different aspects of a closed-loop BCI interface: designing interactive experiments, sending event information, and real-time signal processing. Our modules facilitate the design and operation of a transparent BCI system, promoting customization and flexibility in BCI research, and lowering the barrier for researchers to translate advances in ECoG decoding into BCI applications.
翻译:本文提出一种基于皮层脑电记录的闭环脑机接口系统的开源实现方案。该架构集成FieldTrip用于连接Micromed采集系统,并采用PsychoPy实现实验范式。我们开源了三个定制Python库(psychopylib、pymarkerlib与pyfieldtriplib),分别涵盖闭环脑机接口的不同层面:交互式实验设计、事件信息发送以及实时信号处理。这些模块有助于构建透明化的脑机接口系统,提升脑机接口研究的可定制性与灵活性,并为研究者将皮层脑电解码进展转化为脑机接口应用降低了技术门槛。