Apparatus and methods are described, including a method for treating a clinical episode. The method comprises sensing at least one parameter of a subject without contacting or viewing the subject or clothes the subject is wearing, analyzing the parameter, detecting the clinical episode at least in part responsively to the analysis, and responsively to detecting the clinical episode, treating the clinical episode using a device implanted in the subject. Other applications are also described.