Neuroscientist J. Allan Hobson has hypothesized that the realization that one is dreaming may occur in the dorsolateral prefrontal cortex, which is one of the few areas deactivated during REM sleep, and which is involved in working memory.