The scientists believe that your sleep is mostly regulated by circadian rhythm and sleep pressure. These two work seamlessly together to help us fall asleep, stay asleep, and wake up after a restorative sleep. When the circadian rhythm is out of sync, we suffer from poor sleep, such as difficulty falling asleep, waking up frequently in the middle of sleep, waking up earlier than we want, or waking up feeling groggy.