Problems with sleeping, such as insomnia and sleep apnea, may be risk factors for depression and suicide. In some people, the sleep problem itself, not depression, may be what increases their risk for depression.