Methods from optogenetics and machine learning should help improve treatment options for stroke patients. Researchers have now developed a computer vision technique to analyze the changes in motor skills that result from targeted stimulation of healthy areas of the brain.