A pulse generator is programmed to generate electrical stimulation to target a sacral nerve or a pudendal nerve of the patient. The electrical stimulation being delivered at least in part via a lead. The electrical stimulation is applied by ramping up a stimulation parameter over time. A first, a second, and a third physiological response are detected from the patient as a result of the electrical stimulation. A first value, a second value, and a third value of the stimulation parameter associated with the first, second, and third physiological response are measured, respectively. A placement of the lead inside the patient is evaluated based on at least one of: a chronological sequence in which the first, second, and third physiological responses occurred, a comparison of the first value with a predetermined threshold, or respective deviations of the second value or the third value from the first value.