Population Vector Decoding of Motor Cortex Spikes (2D)
Interactive 2D simulation of an intracortical brain-computer interface: a population of cosine-tuned motor-cortex neurons fires Poisson spikes for an intended reach direction, and a population-vector decoder reconstructs the direction from the spike counts in real time.
This 2D-canvas companion models the same core algorithm behind intracortical brain-computer interfaces as its 3D counterpart: a population of cosine-tuned motor-cortex neurons, each preferring a different reach direction, fires Poisson-distributed spikes whose rate depends on how close the intended movement direction is to the neuron's preferred direction. A population-vector decoder — the same weighted-sum algorithm from the landmark Georgopoulos motor-cortex studies, and the ancestor of every modern intracortical BCI decoder — reconstructs the intended direction purely from the spike counts, letting you see in real time how neuron count, tuning strength and neural noise trade off against decode accuracy, including a direct sweep of decode error versus population size.
Adjust neuron preferences and noise levels to decode intended reach direction from motor cortex spikes.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install