1. A medical system configured for performing a medical function in a patient, comprising: at least one medical lead configured for being implanted adjacent a tissue region of the patient; at least one sensing element; monitoring circuitry configured for acquiring a plurality of physiological measurements from the at least one sensing element during one of a plurality of events respectively corresponding to a plurality of classes; a processor configured for deriving a set of data from the plurality of physiological measurements, performing a feature extraction technique on the data set to acquire at least one feature, analyzing the at least one feature, and classifying the data set into the one class corresponding to the one event; and a controller configured for performing a function based on the classified data set.