Skip to content

Tasks

Introduction

SleepKit provides several built-in sleep-monitoring related tasks. Each task is designed to address a unique aspect such as sleep staging and sleep apnea detection. The tasks are designed to be modular and can be used independently or in combination to address specific use cases. In addition to the built-in tasks, custom tasks can be created by extending the sk.Task base class and registering it with the task factory.

Task Diagram

Available Tasks

Detect

Sleep detection is the process of identifying sustained sleep/inactivity bouts. This task is useful for identifying long-term sleep patterns and for monitoring sleep quality.

Stage

Sleep stage classification is the process of identifying the different stages of sleep such as light, deep, and REM sleep. This task is useful for monitoring sleep quality and for identifying sleep disorders.

Apnea

Sleep apnea detection is the process of identifying hypopnea/apnea events. This task is useful for identifying sleep disorders and for monitoring sleep quality.

Bring-Your-Own-Task (BYOT)

Bring-Your-Own-Task (BYOT) is a feature that allows users to create custom tasks by extending the sk.Task base class and registering it with the task factory. This feature is useful for addressing specific use cases that are not covered by the built-in tasks.


Recap

Sleep Detection

Detect sustained sleep/inactivity bouts.
Refer to Sleep Detect for more details.

Sleep Stage Classification

Perform 2, 3, 4, or 5 stage sleep detection. Refer to Sleep Stages for more details.

Sleep Apnea Detection

Detect hypopnea/apnea events.
Refer to Sleep Apnea for more details.

Sleep Arousal Detection

Detect sleep arousal events.
Refer to Sleep Arousal for more details.