The measurement of the brain waves during sleep is called electroencelography or EEG. THis is a type of a cap with electrodes which measures the brain activity of a person who wears it on his or her head. This is also often used to measure brain activity during the sleeping period of people as well.