Brain-machine interface (BMI) systems give users direct neural control of robotic, communication, or functional electrical stimulation systems. As BMI systems begin transitioning from laboratory settings into activities of daily living, an important goal is to develop neural decoding algorithms that can be calibrated with a minimal burden on the user, provide stable control for long periods of time, and can be responsive to fluctuations in the decoder's neural input space (e.g. neurons appearing or being lost amongst electrode recordings). These are significant challenges for static neural decoding algorithms that assume stationary input/output relationships. Here we use an actor-critic reinforcement learning architecture to provide an adaptive BMI controller that can successfully adapt to dramatic neural reorganizations, can maintain its performance over long time periods, and which does not require the user to produce specific kinetic or kinematic activities to calibrate the BMI. Two marmoset monkeys used the Reinforcement Learning BMI (RLBMI) to successfully control a robotic arm during a two-target reaching task. The RLBMI was initialized using random initial conditions, and it quickly learned to control the robot from brain states using only a binary evaluative feedback regarding whether previously chosen robot actions were good or bad. The RLBMI was able to maintain control over the system throughout sessions spanning multiple weeks. Furthermore, the RLBMI was able to quickly adapt and maintain control of the robot despite dramatic perturbations to the neural inputs, including a series of tests in which the neuron input space was deliberately halved or doubled.
Optogenetic channels have greatly expanded neuroscience's experimental capabilities, enabling precise genetic targeting and manipulation of neuron subpopulations in awake and behaving animals. However, many barriers to entry remain for this technology - including low-cost and effective hardware for combined optical stimulation and electrophysiologic recording. To address this, we adapted the open-source NeuroRighter multichannel electrophysiology platform for use in awake and behaving rodents in both open and closed- loop stimulation experiments. Here, we present these cost-effective adaptations, including commercially available LED light sources; custom-made optical ferrules; 3D printed ferrule hardware and software to calibrate and standardize output intensity; and modifications to commercially available electrode arrays enabling stimulation proximally and distally to the recording target. We then demonstrate the capabilities and versatility of these adaptations in several open and closed-loop experiments, demonstrate spectrographic methods of analyzing the results, as well as discuss artifacts.