A method can include providing (302) at least one parameter to control a therapy that is applied to at least one internal anatomical structure of a patient. Electrical data can be obtained from the patient (304), including electrical data acquired via a plurality of sensors during each of a plurality of iterations of the therapy. The electrical data can be analyzed (306) for a respective value of the at least one parameter of the therapy at each of the plurality of iterations of the applied therapy to compute an indication of at least one function of the at least one internal anatomical structure of the patient at each respective iteration of the applied therapy. The computed indication can be stored in memory (308). At least one parameter of the therapy can be adjusted (310) for delivery in a subsequent one of the plurality of iterations based on the indication of the at least one function.