The diagnosis is made after a polygraphy, an examination of your sleep that records abnormal respiratory events.