In response to input from a patient who is being treated by a sacral nerve stimulation therapy, an electronic diary is generated that includes a plurality of voiding responses of the patient over a period of time. The sacral nerve stimulation therapy includes electrical pulses delivered to the patient according to a first stimulation program and via a first subset of electrode contacts on a lead that is implanted in the patient. The lead has a plurality of electrode contacts that include the first subset. Based on the voiding responses in the electronic diary, a loss of efficacy of the sacral nerve stimulation therapy is detected. The sacral nerve stimulation therapy is automatically adjusted in response to the detected loss of efficacy. The automatically adjustment of the sacral nerve stimulation therapy may include either a program-based sweep or a contact-based sweep.