When sleeplessness lasts for a short period, typically less than a week, it is classified as transient insomnia. It can be due to simple reasons like changes in sleep patterns like going to bed late, or due to changes in the sleep environment. However, it can also be due to severe depression, or by stress.