A Taiwanese study analyzed medical records to identify the risk of developing dementia for people diagnosed with primary insomnia, reports Medical News Bulletin.

Insomnia is a disorder that is characterized by a difficulty initiating and maintaining a state of sleeping through the night. Insomnia can be a product of factors such as medical or mental illnesses, or the use and abuse of substances such as drugs and alcohol. However, primary insomnia is a condition which has no external or environmental cause.

The inability to sleep properly can severely affect a person’s daily functioning, but primary insomnia can also be an indicator of other potential medical problems. For example, it has been associated with a higher risk of hypertension, diabetes, and stroke.