Did you know? Â Have you ever watched your dog yelp, twitch, or run in her sleep? That's a sign of REM sleep, which is believed to 'unlearn' or erase stressful memories. Non-REM (deep sleep) is thought to help the brain rest, recover, and retain memory. Both are important for not only good health, but also for good recall.