TBC-TJU/MetaBCI
MetaBCI: China’s first open-source platform for non-invasive brain computer interface. The project of MetaBCI is led by Prof. Minpeng Xu from Tianjin University, China.
What is MetaBCI?
MetaBCI is an open-source software platform for non-invasive brain-computer interfaces (BCI) — systems that read brain activity from sensors placed on the scalp (no surgery) and use those signals to control computers or other devices. It's led by Prof. Minpeng Xu at Tianjin University in China.
The project is split into three main modules:
- brainda — handles importing datasets, cleaning/preprocessing EEG data, and running decoding algorithms that translate brain signals into commands.
- brainflow — a high-speed framework for processing EEG data in real time (needed for live, online experiments).
- brainstim — a simple module for designing BCI experiment paradigms (like motor imagery, P300, or SSVEP tests).
What problem does it solve?
BCI research is notoriously fiddly. The README lists four pain points:
- Datasets come in many formats — different labs use different standards, so researchers waste time figuring out how to load each one.
- Preprocessing is tedious — cleaning and preparing the data takes a lot of manual effort.
- Modern algorithms are missing — many recent decoding algorithms lack good Python implementations.
- Online experiments are hard — running a live BCI experiment (where the system responds in real time) is technically challenging.
MetaBCI's goal is to remove these barriers so researchers can focus on improving their own algorithms and running experiments, rather than reinventing the wheel.
What does it actually provide?
Based on the README, MetaBCI offers:
- Easy data loading — users can load datasets without knowing the internal details of each format.
- Flexible preprocessing — "hook functions" let you control the preprocessing pipeline step by step.
- Modern decoding algorithms — including decomposition methods (like CSP, CCA, TRCA), manifold learning (Riemannian geometry), deep learning models (EEGNet, ShallowConvNet), and transfer learning techniques.
- Experiment UI — ready-made interfaces for common BCI paradigms (motor imagery, P300, SSVEP).
- Online pipeline — a way to acquire and process EEG data in real time, and even plug in your own pre-trained models.
It also improves on the MOABB library (a well-known BCI benchmarking tool) by adding hook functions, speeding up data loading with joblib, adding proxy options for network issues, and enriching dataset metadata.
Supported datasets and algorithms
The README lists specific datasets for two common BCI types:
- Motor Imagery (MI) — e.g., PhysionetMI, BNCI2014001, Schirrmeister2017
- Steady-State Visual Evoked Potentials (SSVEP) — e.g., Wang2016, Nakanishi2015, BETA
Algorithms include decomposition methods (CSP, FBCSP, CCA variants, TRCA, etc.), Riemannian geometry tools, deep learning models (EEGNet, ConvCA, etc.), and transfer learning methods (MEKT, LST).
How do you install it?
There are several options:
- Quick install (everything):
pip install metabci[all] - Modular install — install only what you need:
pip install metabci(core only)pip install metabci[brainda](datasets + algorithms)pip install metabci[brainflow](signal acquisition)pip install metabci[brainstim](stimulus presentation)
- Development install — clone the repo and run
pip install -e .[all,dev,docs] - Conda — use the provided
environment.ymlfile - uv — a faster Python installer:
uv pip install metabci[all]
Who's behind it?
Researchers from:
- Academy of Medical Engineering and Translational Medicine, Tianjin University, China
- Tianjin Brain Center, China
How can you contribute?
The project explicitly asks for help in programming, user experience, software sustainability, documentation, technical writing, and project management. The contribution process is standard: fork the repo, create a feature branch, commit changes, push, and open a pull request. They especially welcome new BCI algorithms.
License and contact
- License: GNU General Public License v2.0
- Contact: TBC_TJU_2022@163.com (they'll send you a handbook if you provide your team leader's name and university/organization)
The project acknowledges several open-source libraries it builds on, including MNE, MOABB, pyRiemann, and EEGNet implementations.
One caveat
The README mentions a published paper (Mei et al., 2023, Computers in Biology and Medicine) and says the team will continue maintaining the repository, but it doesn't specify a version number or release date for this "first release." So treat the feature list as current as of the README's writing.
Related
- Project
- Project
- Dispatch
- Project
- Project