Getting enough good-quality sleep may help improve cognitive function in people with type 2 diabetes, heart disease or stroke—conditions collectively known as cardiometabolic diseases (CMD).

This is according to a major new study published in November in the Journal of the American Heart Association (JAHA).

The researchers examined more than 400,000 people, both with and without cardiometabolic diseases.

They found that better sleep among people with these conditions was associated with improved performance in areas such as cognitive function and processing speed.

Those with the aforementioned conditions who enjoyed better sleep also had larger overall brain volumes.

Although this was an observational study—and therefore cannot establish a direct link between sleep quality and cognitive abilities—the findings suggest that good-quality sleep may help reduce the impact of these conditions on the brain by supporting brain health and cognitive function.

People with CMD who experienced better-quality sleep achieved higher scores on cognitive tests.

The researchers analyzed data from 408,977 adults in the UK Biobank database, including more than 50,000 people who had at least one of the conditions mentioned above.

Sleep quality was assessed using self-reported information covering the following factors:

* Sleep duration

* Chronotype

* Insomnia symptoms

* Snoring

* Daytime sleepiness

The researchers also analyzed brain MRI scans from more than 34,000 participants.

Compared with individuals with common mental disorders and poor sleep patterns, those with common mental disorders and healthy sleep patterns demonstrated "significantly higher" performance in:

* Overall cognition

* Verbal and numerical reasoning

* Processing speed

Brain scans also revealed significantly larger total brain volumes, as well as greater gray matter and white matter volumes, among participants with CMD who enjoyed better sleep.