A method is provided for predicting an onset of a clinical episode, the method including sensing breathing of a subject, determining at least one breathing pattern of the subject responsively to the sensed breathing, comparing the breathing pattern with a baseline breathing pattern, and predicting the onset of the episode at least in part responsively to the comparison. Other embodiments are also described.