omi
AI that sees your screen, listens to your conversations and tells you what to do
- 14k
- Python
- MIT
- 2 h ago
Python Brain-Computer Interface Software
Repo CAMBI-tech/BciPy, read from GitHub 1 min ago. CAMBI-tech has not joined Take My Repo.
CAMBI-tech/BciPy is a public repo on GitHub by CAMBI-tech. Python Brain-Computer Interface Software. It declares the BSD-3-Clause license on GitHub. It is written mainly in Python, has 160 stars and last changed on 2026-07-30. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
BciPy is a library for conducting Brain-Computer Interface experiments in Python. It is designed to be modular and extensible, allowing researchers to easily add new paradigms, models, and processing methods. The focus of BciPy is on paradigms for communication and control, including Rapid Serial Visual Presentation (RSVP) and Matrix Speller. See our official documentation including affiliations and more context information here.
BciPy is released open-source under the BSD-3 clause. Please refer to LICENSE.md.
If you use BciPy in your research, please cite the following manuscript:
Memmott, T., Koçanaoğulları, A., Lawhead, M., Klee, D., Dudy, S., Fried-Oken, M., & Oken, B. (2021). BciPy: brain–computer interface software in Python. Brain-Computer Interfaces, 1-18.
This project requires Python 3.9, 3.10 or 3.11.
It will run on the latest windows (10, 11), linux (ubuntu 22.04) and macos (Sonoma). Other versions may work as well, but are not guaranteed. To see supported versions and operating systems as of this release see our GitHub builds: BciPy Builds. Please see notes below for additional OS specific dependencies before installation can be completed and reference our documentation here: https://bcipy.github.io/hardware-os-config/
You will need to install the prerequisites defined in scripts\shell\linux_requirements.sh as well as pip install attrdict3.
If you are using a Windows machine, you will need to install the Microsoft Visual C++ Build Tools.
If you are using a Mac, you will need to install XCode and enable command line tools. xcode-select --install. If using an m1/2 chip, you may need to use the install script in scripts/shell/m2chip_install.sh to install the prerequisites. You may also need to use the Rosetta terminal to run the install script, but this has not been necessary in our testing using m2 chips.
If using zsh, instead of bash, you may encounter a segmentation fault when running BciPy. This is due to an issue in a dependency of psychopy with no known fix as of yet. Please use bash instead of zsh for now.
In order to run BciPy on your computer, after ensuring the OS dependencies above are met, you can proceed to install the BciPy package.
If wanting to run the GUI or make changes to the code, you will need to install BciPy in editable mode. This will ensure that all dependencies are installed and the package is linked to your local directory. This will allow you to make changes to the code and see them reflected in your local installation without needing to reinstall the package.
pip install -e .If you do not want to run the GUI or make changes to the code, you can install BciPy from PyPi. This will install the package and all dependencies, but will not link it to your local directory. This means that any changes you make to the code will not be reflected in your local installation. This is the recommended installation method if wanting to use the modules without making changes to the BciPy code.
pip install bcipy
Alternately, if Make is installed, you may run the follow command to install:
# install in development mode with all testing and demo dependencies
make dev-installThe BciPy package may be used in two ways: via the command line interface (CLI) or via the graphical user interface (GUI). The CLI is useful for running experiments, training models, and visualizing data without needing to run the GUI. The GUI is useful for running experiments, editing parameters and training models with a more user-friendly interface.
To run the package, you will need to import the modules you want to use. For example, to run the the system info module, you can run the following:
from bcipy.helpers import system_utils system_utils.get_system_info()
Run the following command in your terminal to start the BciPy GUI:
python bcipy/gui/BCInterface.py
Alternately, if Make is installed, you may run the follow command to start the GUI from the BciPy root directory:
make bci-gui
Once BciPy is installed, it can be used via the command line interface. This is useful for running experiments, training models, and visualizing data without needing to run the GUI.
Use the help flag to explore all available options:
bcipy --help
You can invoke an experiment protocol or task directly using the bcipy command-line utility. This allows for flexible execution of tasks with various configurations.
# Run with a User ID and Task bcipy --user "bci_user" --task "RSVP Calibration" # Run with a User ID and Experiment Protocol bcipy --user "bci_user" --experiment "default" # Run with Simulated Data bcipy --fake # Run without Visualizations bcipy --noviz # Run with Alerts after Task Execution bcipy --alert # Run with Custom Parameters bcipy --parameters "path/to/valid/parameters.json"
These options provide flexibility for running experiments tailored to your specific needs.
To train a signal model (e.g., PCARDAKDE or GazeModels), use the bcipy-train command.
# Display help information bcipy-train --help # Train using data from a specific folder bcipy-train -d path/to/data # Display data visualizations (e.g., ERPs) bcipy-train -v # Save visualizations to a file without displaying them bcipy-train -s # Train with balanced accuracy metrics bcipy-train --balanced-acc # Receive alerts after each task execution bcipy-train --alert # Use a custom parameters file bcipy-train -p path/to/parameters.json
To visualize ERP data from a session with Target / Non-Target labels, use the bcipy-erp-viz command. This command allows you to visualize the data collected during a session and provides options for saving or displaying the visualizations.
# Display help information bcipy-erp-viz --help # Run without a window prompt for a data session folder bcipy-erp-viz -s path/to/data # Run with data visualizations (ERPs, etc.) bcipy-erp-viz --show # Run with data visualizations that do not show, but save to file bcipy-erp-viz --save # Run with custom parameters (default is in bcipy/parameters/parameters.json) bcipy-erp-viz -p "path/to/valid/parameters.json"
The BciPy simulator allows you to run simulations based on previously collected data. This is useful for testing and validating models and algorithms without needing to collect new data.
The simulator can be executed using the bcipy-sim command-line utility.
bcipy-sim --help
-d: Path to the data folder.-p: Path to the custom parameters file. [optional]-m: Path to the directory of trained model pickle files.-n: Number of iterations to run.bcipy-sim -d path/to/data -p path/to/parameters.json -m path/to/model.pkl/ -n 5
More comprehensive information can be found in the Simulator Module README.
Each module includes its own README, demo, and tests. Click on the module name to view its README for more information.
Captures data, returns desired time series, and saves to file at the end of a session.
Core data structures and methods essential for BciPy operation.
Manages the display of stimuli on the screen and records stimuli timing.
Provides feedback mechanisms for sound and visual stimuli.
End-user interface for registered BCI tasks and parameter editing.
Utility functions for interactions between modules and general-purpose tasks.
Handles data file operations such as loading, saving, and format conversion.
Provides symbol probability predictions during typing tasks.
Includes EEG signal models, gaze signal models, filters, processing tools, evaluators, and viewers.
Supports running simulations based on previously collected data.
Implements user tasks and actions for BCI experiments.
The main executor of experiments and the primary entry point into the application. See the Running Experiments section for more information.
Contains JSON configuration files:
parameters.json: Main experiment and application configuration.device.json: Device registry and configuration.experiments.json: Experiment / protocol registry and configuration.phrases.json: Phrase registry and configuration. This can be used to define a list of phrases used in the RSVP and Matrix Speller Copy phrase tasks. If not defined in parameters.json, the task_text parameter will be used.Holds configuration parameters for BciPy, including paths and default data filenames.
Includes resources such as:
See the Task README for more information on all supported paradigms, tasks, actions and modes. The major paradigms are listed below.
RSVP KeyboardTM is an EEG (electroencephalography) based BCI (brain computer interface) typing system. It utilizes a visual presentation technique called rapid serial visual presentation (RSVP). In RSVP, the options are presented rapidly at a single location with a temporal separation. Similarly in RSVP KeyboardTM, the symbols (the letters and additional symbols) are shown at the center of screen. When the subject wants to select a symbol, they await the intended symbol during the presentation and elicit a p300 response to a target symbol.
Orhan, U., Hild, K. E., 2nd, Erdogmus, D., Roark, B., Oken, B., & Fried-Oken, M. (2012). RSVP Keyboard: An EEG Based Typing Interface. Proceedings of the ... IEEE International Conference on Acoustics, Speech, and Signal Processing. ICASSP (Conference), 10.1109/ICASSP.2012.6287966. https://doi.org/10.1109/ICASSP.2012.6287966
Matrix Speller is an EEG (electroencephalography) based BCI (brain computer interface) typing system. It utilizes a visual presentation technique called Single Character Presentation (SCP). In matrix speller, the symbols are arranged in a matrix with fixed number of rows and columns. Using SCP, subsets of these symbols are intensified (i.e. highlighted) usually in pseudorandom order to produce an odd ball paradigm to induce p300 responses.
Farwell, L. A., & Donchin, E. (1988). Talking off the top of your head: toward a mental prosthesis utilizing event-related brain potentials. Electroencephalography and clinical Neurophysiology, 70(6), 510-523.
Ahani A, Moghadamfalahi M, Erdogmus D. Language-Model Assisted And Icon-based Communication Through a Brain Computer Interface With Different Presentation Paradigms. IEEE Trans Neural Syst Rehabil Eng. 2018 Jul 25. doi: 10.1109/TNSRE.2018.2859432.
Caution
Static offset determination and correction are critical steps before starting an experiment. BciPy uses LSL to acquire EEG data and Psychopy to present stimuli. The synchronization between the two systems is crucial for accurate data collection and analysis.
A static offset is the regular time difference between signals and stimuli presentation. This offset is determined through testing using a photodiode or another triggering mechanism. Once determined, the offset is corrected by shifting the EEG signal using the static_offset parameter in devices.json.
To determine the static offset, you can run a timing verification task (e.g., RSVPTimingVerification) with a photodiode attached to the display and connected to your device. After collecting the data, use the offset module to analyze the results and recommend an offset correction value.
To calculate the offset and display the results, use the following command:
python bcipy/helpers/offset.py -r
This will analyze the data and recommend an offset correction value, which will be displayed in the terminal.
Once you have the recommended offset value, you can apply it to verify system stability and display the results. For example, if the recommended offset value is 0.1, run the following command:
python bcipy/helpers/offset.py --offset "0.1" -pIf Make is installed, you can simplify the process by running the following command to determine the offset and display the results:
make offset-recommend
For more information on synchronization and timing, refer to the following documentation:
Stimuli: A single letter, tone or image shown (generally in an inquiry). Singular = stimulus, plural = stimuli.
Trial: A collection of data after a stimuli is shown. A----
Inquiry: The set of stimuli after a fixation cross in a spelling task to gather user intent. A ---- B --- C ----
Series: Each series contains at least one inquiry. A letter/icon decision is made after a series in a spelling task.
Session: Data collected for a task. Comprised of metadata about the task and a list of Series.
Protocol: A collection of tasks and actions to be executed in a session. This is defined for each experiment and can be registered in experiments.json via the BCI GUI.
Experiment: A protocol with a set of parameters. This is defined within experiments and can be registered in experiments.json via the BCI GUI.
Task: An experimental design with stimuli, trials, inquiries and series for use in BCI. For instance, "RSVP Calibration" is a task.
Action: A task without a paradigm. For instance, "RSVP Calibration" is a task, but "InterTaskAction" is an action. These are most often used to define the actions that take place in between tasks.
Mode: Common design elements between task types. For instance, Calibration and Free Spelling are modes.
Paradigm: Display paradigm with unique properties and modes. Ex. Rapid-Serial Visual Presentation (RSVP), Matrix Speller, Steady-State Visual Evoked Potential (SSVEP).
If you want to be added to the development team Discord or have additional questions, please reach out to us at support@cambi.tech!
We follow and will enforce the code of conduct outlined here. Please read it before contributing.
All contributions are greatly appreciated!
CAMBI-tech/BciPy is a public repo on GitHub by CAMBI-tech. Python Brain-Computer Interface Software.
It declares the BSD-3-Clause license on GitHub.
Its maker tagged it for macOS, Windows and Linux, or as Docker or cross-platform. That is declared by the maker; Take My Repo has not tested it.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-07-30. GitHub counts 7 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
AI that sees your screen, listens to your conversations and tells you what to do
BrainFlow is a library intended to obtain, parse and analyze EEG, EMG, ECG and other kinds of data from biosensors
MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python

A libre lightweight streaming front-end for Android.
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/CAMBI-tech/BciPyTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.