Techniques for detecting a value of a sensed patient parameter, and automatically delivering therapy to a patient according to therapy information previously associated with the detected value, are described. In exemplary embodiments, a medical device receives a therapy adjustment from the patient. In response to the adjustment, the medical device associates a sensed value of a patient parameter with therapy information determined based on the adjustment. Whenever the parameter value is subsequently detected, the medical device delivers therapy according to the associated therapy information. In this manner, the medical device may “learn” to automatically adjust therapy in the manner desired by the patient as the sensed parameter of the patient changes. Exemplary patient parameters that may be sensed for performance of the described techniques include posture, activity, heart rate, electromyography (EMG), an electroencephalogram (EEG), an electrocardiogram (ECG), temperature, respiration rate, and pH.