Every 90 minutes, during REM sleep, a burst of electrical activity flows through your brainstem which also happens to be when you experience dreams.