In some examples, a processor determines a patient state based on activity of a bioelectrical brain signal of a patient in one or more frequency sub-bands of a frequency band of interest. For example, a processor may determine a patient state based on the power level of a bioelectrical brain signal of the patient in one or more frequency sub-bands of a frequency band, or based on a spectral pattern of a bioelectrical brain signal in a frequency band, such as a shift in a power distribution between sub-bands, a change in the peak frequency within one or more sub-bands, a pattern of the power distribution over one or more frequency sub-bands, or a width or a variability of one or more sub-bands exhibiting a relatively high or low level of activity