One or more stimulation electrodes may be selected based on a bioelectrical signal sensed in a brain of a patient with a sense electrode combination that comprises at least one electrode and a physiological model that indicates one or more anatomical structures of the brain of the patient that are proximate the implanted at least one electrode. In some examples, the bioelectrical brain signal indicates which electrodes are located closest to a target tissue site. The physiological model can be generated based on a location of implanted at least one electrode within a patient and patient anatomy data, which can, for example, indicate one or more characteristics of patient tissue proximate to the implanted at least one electrode. In some examples, the physiological model includes a therapy field model that represents a region of the tissue of the patient to which therapy is delivered via a selected set of electrodes.