There are several things to look at to determine if you have insomnia

To determine that you have insomnia, you need to look at 3 things: abnormal quality and/or quantity of sleep, duration of a certain amount of time, and impaired daytime functioning.
1. Abnormal quality of sleep: sometimes difficulty in falling asleep (can’t fall asleep for more than 30 minutes without doing anything), difficulty in maintaining sleep (waking up ≥2 times per night), or waking up earlier than usual. Or the quality of sleep decreases, the sleep is light, feels disoriented, has many dreams or even nightmares, or cannot fall asleep without adult supervision. Total sleep time is shorter than usual, usually less than 6 hours.
2. Duration: insomnia at least 3 times a week for ≥1 month;
3. The patient has at least 1 sleep-related impairment of daytime functioning: decreased ability to study, work, and/or socialize; difficulty concentrating and memory loss; fatigue or general malaise; irritability or mood swings; daytime thoughts of sleepiness; diminished interest and energy; excessive preoccupation with sleep; nervousness, headache, dizziness, or other somatic symptoms related to sleep deprivation; and an increase in errors at work or during driving.
It should also be noted that it is the occurrence of the above symptoms despite an environment suitable for sleep that is considered insomnia.
Insomnia should be actively consulted and regulated under the guidance of a doctor to avoid delays.