EEG involves placing multiple electrodes on the scalp to detect electrical impulses generated by neurons in the brain. These impulses are recorded as waveforms, which can be analyzed to understand various aspects of brain function, such as sleep patterns, epilepsy, and other neurological disorders.