Various methods and apparatuses are disclosed that concern delivering electrical stimulation to a brain at a plurality of different stimulation frequencies, sensing one or more bioelectrical signals, and identifying a bioelectrical resonance response of the brain to the electrical stimulation. The bioelectrical resonance response may be identified based on a parameter of oscillation of the one or more bioelectrical signals and indicative of resonance of an area of the brain to one stimulation frequency of the plurality of stimulation frequencies. A stimulation frequency parameter for a therapy may be set based on the identified bioelectrical resonance response, wherein the stimulation frequency parameter is set at or near the one stimulation frequency.