You might be advised to avoid food or drinking having caffeine or alcohol during the afternoon or evening before you are going for polysomnography. Caffeine or alcohol may change the sleep pattern, and might be responsible for worsening sleep disorders. And, you are also advised to avoid napping in the afternoon before you go for a sleep study analysis.