Electroencephalography (EEG) is used to measure brainwave activity. Along with EMG and EOG, EEG is used to determine which stage of sleep a person is in. When various physiological measures are taken at the same time to assess sleep stage, this is called polysomnography.