insomnia can be triggered or perpetuated by your behaviors and sleep patterns. Unhealthy lifestyles and sleep habits can create insomnia on their own (without any underlying psychiatric or medical problem), or they can make insomnia caused by another problem worse.