Sleep apnea is typically diagnosed through a sleep study, also known as polysomnography. During a sleep study, various physiological parameters such as breathing patterns, oxygen levels, and brain activity are monitored while you sleep. This helps identify episodes of apnea and determine the severity of the condition.