Psychologists have used brain scans to study both the structure and function of the brain. EEGs were an early method, measuring electrical activity via electrodes placed on the scalp. For example, Dement and Kleitman (1957) used EEGs to detect different stages of sleep, finding that REM sleep was linked with dreaming