A Monash University research found that exercising four hours or less before bedtime was linked to falling asleep later and getting less and worse quality sleep. It can also cause higher resting heart rate and lower heart rate variability, it said. The research involved international sample of 14,689 people monitored across one year, resulting in four million nights of data.