An active medical device comprising:
- means for collecting a heartbeat rate in at least one heart cavity;
- and
- means for analyzing the collected heartbeat rate and evaluating a value of heart rate as a function of the collected rate;
- wherein the means for analyzing the collected heartbeat rate further comprises means for discriminating in said collected heartbeat rate spontaneous events of a sinusal origin, means for evaluating the heartbeat rate as a function of said discriminated sinusal spontaneous events, and means for analyzing variations in time of said heartbeat rate and determining from said variations a presence of a sleep respiratory disorder.