It generally occurs in people who are experiencing one or more of the following:A life crisis or stressA change in the sleep environment, including factors such as noise, light, or temperatureSleep/wake schedule problems, such as those due to jet lag or temporary shift workSide effects of medicationChronic insomnia often results from a medical condition.