In the psychology subfield of oneirology, a lucid dream is a type of dream wherein the dreamer realizes that they are dreaming during their dream. The capacity to have lucid dreams is a trainable cognitive skill. From Wikipedia
The largest-ever pooled EEG analysis reveals distinct brain activity patterns during lucid dreaming, challenging the traditional sleep-wake binary model.