Could smart devices make us smarter sleepers? (iStock)

In the age of the quantified self, products that promise to track your habits and fix your behavior are a dime a dozen. Find out how much you walk; do that more. Find out how much junk you eat; do that less. Correct your posture in real time, and get feedback as you strengthen your pelvic floor muscles. More and more companies are built on the notion that any problem can be solved if you get enough numbers to find a pattern.

In that sense, Sense — a sleep tracker made by the start-up Hello — isn't all that unusual. But the company's new lead scientist is just getting his hands on two years of user sleep data, and he seems particularly passionate about using it for good.

Matthew Walker, a professor of neuroscience and psychology at the University of California in Berkeley, and director of the U.C. Berkeley Sleep and Neuroimaging Laboratory, does not mince words when it comes to snoozing.

"It’s very clear right now that the sleep-loss epidemic is the greatest public health crisis in First World nations of the 21st century," Walker told The Washington Post. "Every disease that is killing us, in First World countries, can be linked to loss of sleep."

Indeed, the Centers for Disease Control and Prevention states that lack of sleep — in addition to causing fatal accidents and injuries — has been linked to an increase risk of hypertension, diabetes, depression, obesity and even cancer. Just about all scientists and medical professionals agree that good sleep helps keep the body healthy.

But less than a third of American adults get the seven-hour minimum recommended by the American Academy of Sleep Medicine. Walker has spent his career trying to change that, and he was intrigued by the idea that he might help the masses understand the "bespoke nature of their sleep."

"Reuniting humanity with sleep is my big ambition," he said.

Sense consists of a spheroid environmental sensor that tracks temperature, light and air quality along with a sleep-movement tracker that clips onto a pillow. For instance, it will tell you your sleep was restless, and it will indicate that your room was too hot or too bright on a night you didn’t sleep well.

The technology already addresses some of the big issues Walker sees in struggling sleepers. Most of us are familiar with warnings that bright, blue-tinted light from screens can keep our bodies from winding down before bed, but temperature is more important for healthy sleep than many realize.

Anecdotally, it's easier to sleep in a cold room than a hot one. That, Walker explained, is because the body and brain need to drop about two degrees to fall into deep sleep. The advent of modern climate control has made that difficult, because most Americans keep their surroundings at the same, comfortable temperature all day. Without the natural cool of night vs. day, your body has difficulty adjusting.

"We dislocated ourselves from the natural ebb and flow of temperature," just as we dislocated ourselves from the natural cycle of daylight and darkness, Walker said.

Sleep inconsistency is another common culprit. Too many modern humans adjust their sleeping hours based on shifting daily schedules. The weekend is particularly tricky: Walker knows that many poor sleepers shift from going to sleep around 11 p.m. and waking up at 6 a.m. on a workday to going to sleep in the wee hours and waking up just in time for brunch on days off.

"Most people end up suffering from something called social jet lag," he said, with sleep and wake times shifted by three hours or more from one day to the next — a shift akin to flying from one coast to the other and back again every weekend. It doesn't help that alcohol is frequently involved in those late nights, either: Many think that a buzz helps put them to bed, but the sedative powers of alcohol interfere with real sleep.

Walker appreciates that Sense, which tracks poor choices and environmental factors, such as these, can help educate its users and empower them to control their own sleep conditions. But he also hopes that user data — which is collected by the company — will help him make new sleep discoveries.

"It's probably one of the largest data sets on human sleep on Homo sapiens; it’s remarkable," he said. Hello's CEO James Proud wouldn't confirm the number of active Sense users, but the company sold 21,000 units during its launch on Kickstarter two years ago. Since then the product has become available on Amazon, and it will be hitting mass retail shelves late this year. So far, Walker said, they have "millions of hours of recorded sleep."

"Here’s a wonderful paradox that we are now designing technology to fix the problems caused by technology," Walker said. "This is where I differ from many colleagues. They think the invasion of technology in the bedroom is the greatest enemy of sleep, and they’re right, but I also think it’s our potential salvation."

"I am desperately excited about what we can achieve," he added.

If Hello is truly able to turn its user data into solid sleep science, the company could help inform better bedtime practices around the world — even for those of us who won't choose to splurge on the Sense itself.

Read More: 

Dear Science: How do I stop snoring?

What a year of working the graveyard shift taught me about sleep

These strange, subterranean cities are eerily like our own. But they’re ruled by ants.

Gaia space telescope reveals the most complete 3-D map of our galaxy ever