EEG involves placing electrodes on the scalp to record brain activity. In neonates, a cap with embedded electrodes is often used for comfort and ease of application. The test is typically conducted while the infant is asleep to minimize movement artifacts. The EEG can last from 20 minutes to several hours, depending on the clinical question.