A recent study published by The Royal Society scientific journal explained that dogs also experience disturbed sleep patterns when they worry too much and become stressed.

The researchers measured the dogs’ sleep experiences. They were divided into two: those who had a positive emotional experience before sleeping (like playing well with their owners or touched affectionately by their owners) and those who had a negative one (like being approached by a weird or alarming stranger.)

Results of the experiment showed that the dogs who had positive experiences had a “deeper and more consistent sleep,” according to Vice. Meanwhile, those who had bad experiences were stressed were prone to waking up all throughout the night.

Vice also reported that on average, those dogs who had worse experiences often fall asleep faster than the others. Scientists and researchers of the study compared it with human behavior, which they say was very much alike, because human often just want to sleep off a terrible day.