Apparatus is described, including a motion sensor configured to sense motion of a patient and to generate a motion signal in response thereto. The apparatus includes an output unit and a control unit. The control unit is configured to analyze the motion signal, to identify breathing of the patient as being shallow breathing in response to the analyzing, and to drive the output unit to generate an alert in response to identifying the breathing of the patient as being shallow breathing. Other applications are also described.