When you have a dominant mental state, like relaxation, hundreds and thousands of neurons are firing in the brain, creating concurrent electrical discharges in characteristic patterns that can be measured with electroencephalography, or EEG.