The sleep period can be diagnosed, of course, automatically, either starting from the signal delivered by the sensor monitoring the respiration activity of the patient, or by a separate sensor, for example, an activity sensor which measures a parameter which is predominantly physical such as acceleration as may be measured by an internal sensor located within the case.