1. A system for deep brain stimulation, the system comprising: probe with an array of sensing electrodes for acquiring signals representing neuronal activity at corresponding positions in a brain and an array of stimulation electrodes for applying stimulation amplitudes to corresponding brain regions, a processor, operably coupled to the sensing electrodes and the stimulation electrodes, for: receiving the acquired signals from the sensing electrodes, processing the acquired signals to find at least one brain region with atypical neuronal activity, based on the acquired signals determining a spatial distribution of stimulation amplitudes over the array of stimulation electrodes, and applying the spatial distribution of stimulation amplitudes to the array of stimulation electrodes in order to stimulate the at least one region with atypical neuronal activity.