When a person is falling asleep there is a phenomenon called hypnagogic imagery, where a person can be aware of this electrical activity - a lucid dream, one where the person is aware that they are dreaming, is the same sort of phenomenon. the more intelligent a person is (the more structured access he has to his brain's activity) the more distracting that activity becomes.