1. A system for deep brain stimulation, the system comprising: a probe with an array of sensing electrodes and an array of stimulation electrodes, wherein the array of sensing electrodes and the array of stimulation electrodes are arranged on a common surface of the probe, wherein the probe is configured to be implanted into brain tissue, wherein the array of sensing electrodes is configured to acquire signals representing neuronal activity at corresponding positions in a brain, and wherein the array of stimulation electrodes is configured to apply stimulation amplitudes to corresponding brain regions; and a processor, operably coupled to the array of sensing electrodes and the array of stimulation electrodes, configured to: receive the acquired signals from the array of sensing electrodes, process the acquired signals to generate a second spatial derivative corresponding to the array of sensing electrodes, find an indication of at least one brain region with atypical neuronal activity, responsive to finding the indication, determine a spatial distribution of stimulation amplitudes over the array of stimulation electrodes based on the second spatial derivative, and apply the spatial distribution of stimulation amplitudes to the array of stimulation electrodes in order to stimulate the at least one brain region with atypical neuronal activity.