Sleep Restriction Therapy Algorithm Banner Image

Insomnia Algorithms

Scroll

Challenge

I was tasked to come up with the algorithm for calculating a recommended Sleep Restriction Therapy schedule that is continuously updated from the sleep that the user is logging throughout their experience with the Help4 Insomnia app. I was named on a patent for this work. You can view the patent here on google patents.

At the time I was excited to be able to apply and make use of my math degree in a creative way.

Logic flow detailing the calculation of the Sleep Restriction Therapy schedule

1 — Log Metrics

This document contains definitions of the log metrics being used in the calculation for the Sleep Restriction Therapy sleep schedule recommendation algorithm

2 — Inputs and Outputs

This document contains the inputs and outputs

 

3 — Calculating Sleep Restriction Therapy Total Sleep Time

This document details the final calculation for the total sleep time from the ongoing inputs and outputs from users