Spectrum analysis of the electroencephalogram