Skip to content
 
 

Repository files navigation

closedloop

Scripts for closed-loop stimulation based on real-time prediction of impending lapses in attention shifting. Published at https://doi.org/10.1038/s41593-026-02294-0

Usage: Once you have installed required dependencies, the closed-loop stimulation GUI is launched through the terminal with python GMICLES.py

This will launch the GUI. A participant-specific JSON file is then selected from the dropbown box to select the relevant machine learning classifiers used for real-time prediction.

The program runs in real-time while EEG data are streamed and is written to follow precise timing during an attentional flexiblity task (Oh et al., Brain and Cognition, 2014) running in Presentation Software. However, the code can be modified to work with other tasks and software if the core concept for closed-loop brain stimulation remains the same.

About

Scripts for real-time closed-loop stimulation

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages