Sleep labs are specialized centers where sleep studies are conducted. A sleep study, also known as a polysomnogram, is a diagnostic test that records various aspects of your body's activity while you sleep. This includes brain waves, heart rate, breathing, blood oxygen levels, and body movements. A sleep study helps to diagnose sleep disorders such as obstructive sleep apnea (OSA) and narcolepsy.