­­­­How Sleepme makes use of Amazon SageMaker for automated temperature management to maximise sleep high quality in actual time

It is a visitor put up co-written with Trey Robinson, CTO at Sleepme Inc.

Sleepme is an trade chief in sleep temperature administration and monitoring merchandise, together with an Web of Issues (IoT) enabled sleep monitoring sensor suite outfitted with coronary heart charge, respiration charge, mattress and ambient temperature, humidity, and strain sensors.

Sleepme gives a sensible mattress topper system that may be scheduled to chill or warmth your mattress utilizing the companion utility. The system may be paired with a sleep tracker that gathers insights comparable to coronary heart charge, respiration charge, humidity within the room, get up instances, and when the consumer was out and in of mattress. On the finish of a given sleep session, it would combination sleep tracker insights, together with sleep stage knowledge, to provide a sleep high quality rating.

This sensible mattress topper works like a thermostat on your mattress and offers clients management of their sleep local weather. Sleepme merchandise assist you to cool your physique temperature, which is linked with falling right into a deep sleep, whereas being scorching can cut back the probability of falling and staying asleep.

On this put up, we share how Sleepme used Amazon SageMaker to developed a machine studying (ML) mannequin proof of idea that recommends temperatures to maximise your sleep rating.

“The adoption of AI opens new avenues to enhance clients’ sleeping expertise. These modifications will probably be carried out within the Sleepme product line, permitting the consumer to leverage the technical and advertising and marketing worth of the brand new options throughout deployment.”

– Trey Robinson, Chief Expertise Officer of Sleepme.

Utilizing ML to enhance sleep in actual time

Sleepme is a science-driven group that makes use of scientific research, worldwide journals, and cutting-edge analysis to deliver clients the most recent in sleep well being and wellness. Sleepme offers sleep science data on their website.

Sleepme discusses how solely 44% of People report a restful night time’s sleep nearly each night time, and that 35% of adults sleep lower than 7 hours per night time. Getting a full night time’s sleep helps you’re feeling extra energized and has confirmed advantages to your thoughts, weight, and coronary heart. This represents an enormous inhabitants of individuals with alternatives to enhance their sleep and well being.

Sleepme noticed a chance to enhance the sleep of their customers by altering the consumer’s sleep atmosphere throughout the night time. By capturing atmosphere knowledge like temperature and humidity and connecting it with customized consumer knowledge like restlessness, coronary heart charge, and sleep cycle, Sleepme decided they had been in a position to change the consumer’s atmosphere to optimize their relaxation. This use case demanded an ML mannequin that served real-time inference.

Sleepme wanted a extremely accessible inference mannequin that gives low-latency suggestions. With a concentrate on delivering new options and merchandise for his or her clients, Sleepme wanted an out-of-the-box answer that doesn’t require infrastructure administration.

To handle these challenges, Sleepme turned to Amazon SageMaker.

Utilizing Amazon SageMaker to construct an ML mannequin for sleep temperature suggestions

SageMaker accelerates the deployment of ML workloads by simplifying the ML construct course of. It offers a set of ML capabilities that run on a managed infrastructure on AWS. This reduces the operational overhead and complexity related to ML growth.

Sleepme selected SageMaker due to the capabilities it offers in mannequin coaching, endpoint deployment course of, and infrastructure administration. The next diagram illustrates their AWS structure.

Solution Diagram

Sleepme is targeted on delivering new merchandise and options for his or her clients. They didn’t need to dedicate their sources to a prolonged ML mannequin coaching course of.

SageMaker’s Model Training allowed Sleepme to make use of their historic knowledge to rapidly develop a proprietary machine studying mannequin. SageMaker Mannequin Coaching offers dozens of built-in coaching algorithms and tons of of pre-trained fashions, growing Sleepme’s agility in mannequin creation. By managing the underlying compute cases, SageMaker Mannequin Coaching enabled Sleepme to concentrate on enhancing mannequin efficiency.

This ML mannequin wanted to make sleep atmosphere changes in actual time. To attain this, Sleepme used a SageMaker Real-time inference to handle the internet hosting of their mannequin. This endpoint receives knowledge from Sleepme’s sensible mattress topper and sleep tracker to make a temperature advice for the consumer’s sleep in actual time. Moreover, with the choice for computerized scaling of fashions, SageMaker inference provided Sleepme the choice so as to add or take away cases to satisfy demand.

SageMaker additionally offers Sleepme with helpful options as their workload evolves. They might use shadow tests to guage mannequin efficiency of latest variations earlier than they’re deployed to clients, SakeMaker Model Registry to handle mannequin variations and automate mannequin deployment, and SageMaker Model Monitoring to observe the standard of their mannequin in manufacturing. These options present Sleepme with the chance to take their ML use instances to subsequent stage, with out creating new capabilities on their very own.


With Amazon SageMaker, Sleepme was in a position to construct and deploy a customized ML mannequin in a matter of weeks that identifies the really helpful temperature adjustment, which the Sleepme units mirror to the consumer’s atmosphere.

Sleepme IoT units seize sleep knowledge and may now make changes to a buyer’s mattress in minutes. This functionality proved to be a enterprise differentiator. Now, customers sleep may be optimized to supply a higher-quality sleep in actual time.

To study extra about how one can rapidly construct ML fashions, discuss with the Train Models or get began on the SageMaker Console.

In regards to the Authors

Trey Robinson has been a cell and IoT-focused software program engineer main groups because the CTO of Sleepme Inc and Director of Engineering at Passport Inc. He has labored on dozens of cell apps, backends, and IoT initiatives over time. Earlier than shifting to Charlotte, NC, Trey grew up in Ninety Six, South Carolina, and studied Pc Science at Clemson College.

Benon Boyadjian is a Options Architect within the Non-public Fairness group at Amazon Internet Companies. Benon works immediately with Non-public Fairness Corporations and their portfolio corporations, serving to them leverage AWS to realize enterprise targets and improve enterprise worth.

Leave a Reply

Your email address will not be published. Required fields are marked *