Sleep Disorders Diagnosis Preparing for Testing and Avoiding Insomnia During a Sleep Study By Brandon Peters, MD Brandon Peters, MD Facebook Twitter Brandon Peters, MD, is a board-certified neurologist and sleep medicine specialist. Learn about our editorial process Updated on April 07, 2022 Medically reviewed by Sanja Jelic, MD Medically reviewed by Sanja Jelic, MD Sanja Jelic, MD is board-certified in pulmonary disease, sleep medicine, critical care medicine, and internal medicine. She is an assistant professor and attending physician at Columbia University College of Physicians and Surgeons in New York, NY. Learn about our Medical Expert Board Fact checked by Lisa Sullivan, MS Fact checked by Lisa Sullivan, MS Lisa Sullivan, MS, is a nutritionist and health and wellness educator with nearly 20 years of experience in the healthcare industry. Learn about our editorial process Print Table of Contents View All Table of Contents Preparing for a Test Day of the Study Reducing Insomnia Test Failures A Word From Verywell In anticipation of a sleep study, the last thing that anyone wants to experience is a night of insomnia. The time it takes to get evaluated, the expense, and the importance of the results to diagnose sleep disorders can lead to some performance anxiety. Whether in a testing center or at home, how can you avoid insomnia during a sleep test? Consider tips to prepare for a good night of sleep, how the test experience can be optimized, and what to do if you need more help, such as a sleeping pill. Oktay Ortakcioglu/iStockPhoto Preparing for a Test It is important to have a consultation with a board-certified sleep physician who can fully evaluate your symptoms, perform a comprehensive physical examination, and help to determine the appropriate testing for you. In some cases, such as restless legs syndrome (RLS) or insomnia caused by a circadian disorder, no testing may be required. Most sleep disorders require a diagnostic test to elucidate the cause. One of the considerations will be whether a home sleep apnea test (HSAT) is adequate or if a formal in-center diagnostic polysomnogram (PSG) will be needed. If mild sleep apnea is present, the HSAT may be inconclusive, especially in younger, healthy people of normal weight, and people assigned female at birth before the onset of menopause. This kind of testing is also not appropriate to diagnose central sleep apnea, narcolepsy, sleep-related behaviors called parasomnias, periodic limb movements of sleep, and some other disorders. In some cases, the PSG will be done if the HSAT fails. The testing should be performed during your typical sleep timing. If you are a night owl or work a night shift, the test should reflect these circadian preferences. Many centers can provide daytime PSG studies if these are needed. Make sure to ask all questions you have prior to the testing. It can be helpful to view the testing equipment and the space used for the in-center testing. This may identify necessary accommodations and relieve some anxiety about what to expect. Convenient Home Sleep Apnea Testing Costs Less Day of the Study To prepare for a test, try to optimize the conditions that will enhance sleep during the study. Consider waking a little earlier than usual. This will build sleep drive and make it easier to fall asleep that night. Do not take naps during the day. Avoid the consumption of all caffeine—skipping coffee, tea, soda, chocolate, energy drinks, and other caffeinated products. Caffeine has a half-life that can last up to six hours, blocking the adenosine signal for sleep, and it may make it hard to sleep. Be active, following your routine exercise regimen. Eat meals and snacks as you normally would. Eat dinner before coming to an in-center sleep study. If you normally consume alcohol in the evening, discuss with a sleep physician whether you should adhere to this routine. In most cases, you should. Spend the last one to two hours of the day relaxing, preparing your body and mind for sleep. Put away work. Avoid anything that might prompt anxiety or be upsetting (such as reading the news or social media). It can be a nice time to read a book, or listen to relaxing music. Minimize exposure to screen light, and go to bed close to your normal bedtime. Make sure that you have the feeling of sleepiness or drowsiness before preparing to start the test. Do not go to bed earlier than usual. If anything, stay up a little later. This will help you to fall asleep faster, even with the testing equipment applied. Tips to Reduce Insomnia Insomnia is a condition that commonly overlaps with other sleep disorders that require sleep testing, including sleep apnea and disruptive leg movements in sleep. Once settled into bed, it is common to have an unusual awareness of the need to fall asleep. Even people who normally do not experience insomnia may have some trouble. Rather than simply dozing off, as may often occur, more time may initially be spent awake. This can lead to a cascade of distressing and anxious thoughts. It may be important to redirect this thinking before it derails the testing experience. Try to lie in a typical sleep position. Don’t feel pressured to sleep on your back if this is not how you prefer to fall asleep. Do your best to ignore the wires, belts, nasal cannula, or other equipment. It can sometimes be helpful to engage the mind with a distraction technique. As needed, consider the use of relaxation techniques. Focused breathing, progressive muscle relaxation, and guided imagery may be helpful. Distract yourself by trying to recall the details of a recent dream or movie that you have seen. Counting sheep is a tried and true method, but counting down by repeatedly subtracting 6 starting from 300 may also be distracting. Trying to recall the presidents of the United States in order, the names of the states starting on the northwest coast, or your grade school teachers’ names can be equally mentally engaging. Any of these will give the mind a focus—and distract from the need to fall asleep. Then, almost as a surprise, sleep comes. If an awakening occurs during the night, avoid checking the clock or looking at a smartphone. Do not turn on the television or lights to read. Instead, roll over and try to fall back asleep by re-engaging the relaxation techniques. If needed, it is okay to get up to urinate, but keep the lights low. Medication If you are feeling particularly anxious about the test, it may be possible to use a sleeping pill. These can be over-the-counter options such as melatonin or those that contain diphenhydramine (Benadryl). Prescription sleep medications such as zolpidem (Ambien), eszopiclone (Lunesta), or zaleplon (Sonata) are often used. Discuss the use of a sleeping pill with the sleep physician well before the testing; prescriptions will not be available if you wait until the night of the study. These medications generally should not be taken in the middle of the night, as the morning hangover effects may make it unsafe to drive. In some cases, it may be important to prioritize insomnia treatment with cognitive behavioral therapy for insomnia (CBTI) prior to proceeding with testing. What to Do If a Test Fails How much data is needed with a sleep study? Surprisingly, a successful study can be completed with only a few hours of sleep. Prolonged wakefulness with home testing may lead to a false negative study, meaning that the test does not demonstrate sleep apnea because too much time is spent lying awake with normal breathing. This may prompt an in-center polysomnogram to be performed. If signals are lost, the duration of this interruption may determine whether a test may have to be repeated. The in-center PSG may be more technically successful, as the sleep technologist can come in to fix a wire that goes astray. In some cases, a failed test must be repeated in order to reach a diagnosis. Insurance will cover this repeat testing. This is an uncommon need. A Word From Verywell Set yourself up for success by getting your questions answered prior to the testing. This should help lay your fears and anxiety to rest. Follow the tips to avoid insomnia, including the advice to follow during the day of the study. If you worry that you won’t be able to sleep enough to successfully complete the test, ask the sleep physician about the possibility of using a sleeping pill. Otherwise, use the distraction techniques to relax and ease yourself into sleep. In the morning, the testing will be over, and soon you will have answers you need. 7 Diagnostic Tests for Sleep Disorders 4 Sources Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy. Cleveland Clinic. Sleep studies. Urry E, Landolt HP. Adenosine, caffeine, and performance: from cognitive neuroscience of sleep to sleep pharmacogenetics. Curr Top Behav Neurosci. 2015;25:331-66. doi:10.1007/7854_2014_274 Cleveland Clinic. Sleeping pills. Mitchell MD, Gehrman P, Perlis M, Umscheid CA. Comparative effectiveness of cognitive behavioral therapy for insomnia: a systematic review. BMC Fam Pract. 2012;13:40. doi:10.1186/1471-2296-13-40 By Brandon Peters, MD Brandon Peters, MD, is a board-certified neurologist and sleep medicine specialist. See Our Editorial Process Meet Our Medical Expert Board Share Feedback Was this page helpful? Thanks for your feedback! What is your feedback? Other Helpful Report an Error Submit