When Juan Martinez, a 68-year-old retired teacher in Madrid, started forgetting his granddaughter's name last year, he worried he was developing Alzheimer's. But researchers in a Madrid suburb may have found a way to catch the disease years before such memory loss even starts—simply by watching people sleep.

Scientists at Universidad Carlos III de Madrid and Hospital Universitario Severo Ochoa in Leganés have created an AI tool that analyzes brain waves recorded during sleep to spot early warning signs of Alzheimer's. Their work, published in the journal GeroScience, shows that this simple, painless approach can identify brain changes linked to the disease long before symptoms appear.

"Recording electrical activity during sleep provides us with a window into the biological processes taking place, which, over the years, can lead to forgetfulness and the characteristic symptoms of Alzheimer's," said Arrate Muñoz-Barrutia, the study's lead researcher and a professor of neuroscience at UC3M.

Alzheimer's is sneaky. The disease begins its damage up to 20 years before anyone notices memory problems. By the time symptoms show up, the brain has already suffered serious harm. Current treatments work best when started early, but most people don't get diagnosed until the disease is already advanced.

To solve this, the research team studied 42 patients with mild to moderate Alzheimer's and 58 healthy people of the same age. They recorded the participants' brain electrical activity overnight using electrodes placed on the scalp—a painless procedure called polysomnography. Then they fed that data into a machine learning program that looked for patterns.

The AI did more than just spot disease. It identified three distinct biological subgroups of patients, suggesting that Alzheimer's may affect people in different ways at the biological level. This could help doctors tailor treatments more precisely in the future.

"With our research, we seek a tool that enables early diagnosis of Alzheimer's, one that is noninvasive, affordable and capable of being extended to the majority of the population," said Dr. Anna Michela Gaeta, a pulmonology specialist who worked on the study.

Unlike expensive brain scans or invasive spinal taps—the current gold standard for Alzheimer's diagnosis—this sleep-based method could be used widely in regular doctor's offices. The team emphasizes that AI would not replace doctors but would help them catch the disease sooner, giving patients more time with treatments that work.

The research builds on an existing database that combines overnight brain recordings with protein markers found in spinal fluid, developed in earlier studies by teams in Lérida. The new AI analysis adds a layer of insight by connecting what happens during sleep to the biological signatures of the disease.

For millions of families facing Alzheimer's, the hope is that someday soon, a routine sleep study could catch the disease early enough to make a real difference—just by listening to the brain's nightly electrical chatter.