The present disclosure pertains to determining timing of stimulation provided to a subject during sleep. The system receives a raw signal carrying information related to slow wave activity; buffers a portion of the raw signal; determines a timing of slow wave events in the buffered portion of the raw signal; filters the raw signal; determines a timing of slow wave events in the filtered raw signal; compares the timing of the slow wave events in the buffered portion of the raw signal to the timing of the slow wave events in the filtered raw signal; determines a first correction factor associated with reducing slow wave activity in the subject and a second correction factor associated with enhancing slow wave activity in the subject; and adjusts a timing of the stimulation provided to the subject during the sleep session based on the first and/or second correction factors.La présente invention concerne la détermination de synchronisation d'une stimulation appliquée à un sujet pendant le sommeil. Le système reçoit un signal brut transportant des informations relatives à une activité d'onde lente ; met en mémoire tampon une partie du signal brut ; détermine une synchronisation d'événements à onde lente dans la partie mise en mémoire tampon du signal brut ; filtre le signal brut ; détermine une synchronisation d'événements à onde lente dans le signal brut filtré ; compare la synchronisation des événements à onde lente dans la partie mise en mémoire tampon du signal brut à la synchronisation des événements à onde lente dans le signal brut filtré ; détermine un premier facteur de correction associé à la réduction de l'activité à onde lente chez le sujet et un deuxième facteur de correction associé à l'augmentation de l'activité à onde lente chez le sujet ; et ajuste la synchronisation de la stimulation appliquée au sujet pendant la session de sommeil sur la base des premier et/ou deuxième facteurs de correction.