Overnight sleep study, often known as a polysomnogram, identifies sleep problems such as sleep apnea, insomnia, and restless leg syndrome. It entails spending the night in either a hospital’s sleep laboratory or an outpatient sleep clinic. Electrodes are affixed to a patient’s head and body to track brain waves, respiration, and movement as they sleep. A technician uses a camera to monitor patients as they sleep.