What are the causes of difficulty in sleeping and dreaming and waking up easily?

Insomnia can be divided into primary and secondary types, primary insomnia is mainly affected by psychological factors, the diagnosis lacks specific indicators, mainly exclusionary diagnosis, secondary insomnia can be caused by environmental factors, disease factors, drug factors, etc.: 1, psychological factors: is the most common cause of insomnia, major events in life, the existence of tension, anxiety The most common cause of insomnia is the occurrence of major events in life, the presence of tension, anxiety, depression, usually cause insomnia. Excessive attention to these things, continued mental tension, it is easy to dream and wake up frequently; 2, environmental factors: usually caused by the environment is not suitable for sleep, such as indoor bright light, noisy sound, unsuitable temperature, sudden changes in the environment, unsuitable temperature, etc., thus causing difficulty in falling asleep, dreamy and easy to wake up; 3, disease factors: all kinds of physical diseases can cause physical discomfort, resulting in difficulty in falling asleep, when the symptoms persist Resulting in restless sleep, dreamy and easy to wake up, such as angina pectoris, heart failure, obstructive hypoventilation sleep apnea syndrome, etc.; 4, drug influence: some drugs have the effect of excitation of the central nervous system, drugs that excite the cerebral cortex, such as caffeine, drugs that excite the medulla oblongata respiratory center, such as Nicosamide, drugs that promote brain function recovery, such as Piracetam. In addition, coffee, cola and other beverages contain caffeine, drinking before bedtime can cause insomnia, manifested as difficulty falling asleep, dreamy and easy to wake up.