In order to properly resolve your insomnia, you need to become a sleep detective. Emotional issues such as stress, anxiety, and depression cause about half of all insomnia cases. But your daytime habits, bedtime routine, and physical health can also play a major role.