Sleep medicine is a specialized medical field that focuses on diagnosing and treating sleep disorders such as insomnia, sleep apnea, and narcolepsy.