A system for delivering electrical stimulation, the system comprising: a plurality of electrodes of an implantable medical device, IMD; electrical stimulation circuitry of the IMD; a sensing circuitry of the IMD being configured to sense, via one or more of the plurality of electrodes, a first plurality of electrical signals sensed at each of a plurality of different positions within a brain of the patient when electrical stimulation is not delivered at each of the positions; a controller comprising processing circuitry configured to: select, based on the first plurality of electrical signals sensed at each of the plurality of different positions within the brain of the patient when electrical stimulation is not delivered at each of the positions, a subset of the plurality of different positions within the brain of the patient; and control the electrical stimulation circuitry to deliver electrical stimulation at each of a plurality of different intensities at each position of the subset of the plurality of different positions via one or more of the plurality of electrodes; wherein the sensing circuitry is further configured to sense a second plurality of electrical signals at each position of the subset of the plurality of different positions in response to the electrical stimulation delivered at each position of the subset of the plurality of different intensities, and wherein the processing circuitry is further configured to: select one or more parameters of therapy to be delivered to the brain of a patient, wherein the parameters are selected based on: the sensed first and second plurality of electrical signals and the delivered electrical stimulation; and control the electrical stimulation circuitry to deliver the electrical stimulation therapy to the brain of the patient based on the selected parameters and via one or more electrodes of the plurality of electrodes. a plurality of electrodes of an implantable medical device, IMD; electrical stimulation circuitry of the IMD; a sensing circuitry of the IMD being configured to sense, via one or more of the plurality of electrodes, a first plurality of electrical signals sensed at each of a plurality of different positions within a brain of the patient when electrical stimulation is not delivered at each of the positions; a controller comprising processing circuitry configured to: select, based on the first plurality of electrical signals sensed at each of the plurality of different positions within the brain of the patient when electrical stimulation is not delivered at each of the positions, a subset of the plurality of different positions within the brain of the patient; and control the electrical stimulation circuitry to deliver electrical stimulation at each of a plurality of different intensities at each position of the subset of the plurality of different positions via one or more of the plurality of electrodes; select, based on the first plurality of electrical signals sensed at each of the plurality of different positions within the brain of the patient when electrical stimulation is not delivered at each of the positions, a subset of the plurality of different positions within the brain of the patient; and control the electrical stimulation circuitry to deliver electrical stimulation at each of a plurality of different intensities at each position of the subset of the plurality of different positions via one or more of the plurality of electrodes; wherein the sensing circuitry is further configured to sense a second plurality of electrical signals at each position of the subset of the plurality of different positions in response to the electrical stimulation delivered at each position of the subset of the plurality of different intensities, and wherein the processing circuitry is further configured to: select one or more parameters of therapy to be delivered to the brain of a patient, wherein the parameters are selected based on: the sensed first and second plurality of electrical signals and the delivered electrical stimulation; and control the electrical stimulation circuitry to deliver the electrical stimulation therapy to the brain of the patient based on the selected parameters and via one or more electrodes of the plurality of electrodes. select one or more parameters of therapy to be delivered to the brain of a patient, wherein the parameters are selected based on: the sensed first and second plurality of electrical signals and the delivered electrical stimulation; and control the electrical stimulation circuitry to deliver the electrical stimulation therapy to the brain of the patient based on the selected parameters and via one or more electrodes of the plurality of electrodes. the sensed first and second plurality of electrical signals and the delivered electrical stimulation; and control the electrical stimulation circuitry to deliver the electrical stimulation therapy to the brain of the patient based on the selected parameters and via one or more electrodes of the plurality of electrodes.