Sleep medicine physicians diagnose and treat sleep apnea, insomnia, narcolepsy, restless legs and other sleep disorders. Treatment usually starts with a sleep study, at home or in a lab, and for apnea often means a CPAP machine and follow-up visits to get the fit right.