Electroencephalography or EEG is a procedure used to record the electrical activity of the brain in the form of waves.