A 31-year-old male presents due to excessive daytime somnolence affecting his ability to work. He states that he often sleeps at inappropriate times and alters his schedule to avoid being caught. He describes an episode yesterday where he felt almost paralyzed upon awakening from sleep. He denies any other neurologic symptoms, recent illness, or previous sleep testing. He denies depression symptoms. Which is the most appropriate diagnostic test to confirm the suspected diagnosis?