By delivering small electrical pulses directly to the brain, deep brain stimulation (DBS) can ease tremors associated with Parkinson’s disease or help relieve chronic pain. The technique works well for many patients, but researchers would like to make DBS devices that are a little smarter by adding the capability to sense activity in the brain and adapt stimulation accordingly.