It's no surprise that a change in our planet's climate would affect our coastlines, our weather patterns and our food supply. But here's something you may not have considered before: Global warming might also affect how well we sleep at night.

In a paper published in Science Advances, researchers show that when local temperatures get unusually high people don't sleep as well as they usually do. And if climate trends continue, we can expect to have more frequent heat waves that also last longer.

"There are going to be lots and lots of impacts of climate change and this is just another factor in a mosaic of negative factors," said Nick Obradovich, a postdoctoral fellow at the Harvard Kennedy School and a research scientist at the Massachusetts Institute of Technology media lab, who led the work.

If you've ever weathered a particularly sweaty summer in a stuffy apartment with no air conditioning, then you know how hard it can be to fall asleep when the temperature is sky high.