A persistent inability to sleep, remain asleep through the night, or feel refreshed by sleep is known as insomnia. Insomnia can be classified into: