Methods and systems for electrical stimulation can include obtaining a biosignal of the patient; altering at least one stimulation parameter of an electrical stimulation system in response to the biosignal; and delivering an electrical stimulation current to one or more selected electrodes of the electrical stimulation system using the at least one stimulation parameter. In some embodiments, a power spectrum is determined from the biosignal. In some embodiments, the biosignal is at least two different biosignals measured at the same or different locations on the patient and a coherence, correlation, or association between the two biosignal is determined.