Baby sleep tracker makes parents and babies more rested

Raspberry Pi uses machine learning to track baby sleep patterns to help parents set a schedule and make sure they also get enough rest. OK, make sure they also get at least some rest.

baby sleep monitor

An irregular sleep pattern isn’t just a nightmare for over-tired parents — it can also impact negatively on a baby’s health and development. Caleb Olson created his own baby sleep tracker with Raspberry Pi 4 to make it easier for those caring for babies to know when they themselves can get some sleep with less likelihood of being dragged painfully into wakefulness seven minutes later.

menacing owl baby sleep monitor
Placing the camera inside a menacing head-spinning owl isn’t a design choice we can get behind, however

Babies need around 15 hours sleep a day, but they don’t get that all in one go like most adults; it happens in several short naps during daylight hours and then, hopefully, a longer stretch at night. The jam is figuring out whether they actually need picking up and tending to when they make noise or move around in their sleep, or whether they are best left to settle themselves and continue getting the shut-eye they need. The last thing you want to do is dash to the baby’s cot in a desperate attempt to get to them before they get loud enough to wake the toddler too, when they really just needed a mid-dream gurgle and to go back to sleep.

How does it work?

A camera running Real Time Streaming Protocol wirelessly transmits images of the baby to a Raspberry Pi. Open source machine learning framework MediaPipe then determines when the baby is actually sleeping, based on their body position and eye movement.

Dad of the year, Caleb

Caleb isn’t like a regular dad, he’s a cool dad. So alongside the only-slightly-ominous owl that houses the camera watching over his baby, he also developed a web application that tracks when his baby wakes up and how long they slept for, and predicts when they’re likely to take their next nap. The app also tracks long-term sleep patterns, which, in theory, if you’re lucky, makes it possible to train the baby to take longer naps and better plan your day around their sleep schedule.

GitHub is home to all the code you need to build your own baby sleep tracker. Best of luck to all of you ploughing through the early years with young children. And kudos to Caleb — our favourite kind of dad, a a coding one.

Server Status

Aradippou Chat 1 Chat 2 Larnaca Limassol Nicosia

Chat Links

Official Links.

1. Chat 1.
2. Chat 2.

Alternative Mirror Links.

1. KiwiIRC 1.
2. KiwiIRC 2.

Other Web Clients.

1. IrcCloud.

Recent Posts

Related Posts:

Archives

Super Club Radio

Mighty Deals

CyIRC

CyIRC Tweets

Scroll Up
Fatal error: Uncaught WMAC\JSMin_UnterminatedStringException: WMAC\JSMin: Unterminated String at byte 1180: "+o.accessToken}}).then(e=>{if(!e.ok)throw e;return e});return a.catch(e=>{console.error(`Failed to logout chatrix session. deviceId: ${o.deviceId}`)}),a}})(); in /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php:215 Stack trace: #0 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php(157): WMAC\JSMin->action(2) #1 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php(96): WMAC\JSMin->min() #2 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/class-main.php(375): WMAC\JSMin::minify('(function(){"us...') #3 /home/bszucbfe/public_html/wp-includes/class-wp-hook.php(324): WMAC_PluginMain->jsSnippetcacher('(function(){"us...', '/home/bszucbfe/...') #4 /home/bszucbfe/public_h in /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php on line 215