For years, doctors knew the damage was there. They just couldn't see it.

In people with multiple sclerosis, certain brain damage has been hiding in plain sight — detectable only after death in tissue samples, but completely invisible on the MRI scans doctors use every day to monitor their patients. Now, researchers at the University at Buffalo have found a way to reveal these hidden lesions using artificial intelligence and the MRI scans patients have already had.

The team, working at the Buffalo Neuroimaging Analysis Center, applied their AI methods to existing brain scans from more than 700 patients with MS. They found that each patient had 15 to 20 hidden cortical lesions — totaling more than 11,000 that had never been visible before.

"There's a lot of ongoing damage that continues to happen in MS that you won't see with conventional MRI," said Michael G. Dwyer, Ph.D., one of the study's lead authors. "What this collaboration has been able to accomplish is a real success story for applying AI in the medical arena."

Multiple sclerosis damages two types of brain tissue: white matter, which shows up clearly on standard MRI, and gray matter, also called the cortex, which does not. The cortex plays a key role in thinking, memory, and coordination — and its damage is closely linked to cognitive decline and disability in MS patients. But because cortical lesions don't appear on normal MRI, doctors had no way to track them in living patients.

"We have all been very frustrated, knowing that these cortical lesions were there but not being able to see them," Dwyer said.

The researchers developed a new AI technique that examines relationships between multiple MRI images taken at different settings. By comparing these images side by side, the AI can detect tiny differences that hint at damaged tissue — even when each image alone looks normal.

"Generative AI is very powerful because it can look between the scans and detect tiny differences among them," Dwyer explained. "AI can reveal that there's something going wrong there, that the tissue is not behaving like healthy tissue."

The findings, published in the journal Communications Medicine, could change how MS research and care work. Doctors may be able to use existing scans to identify patients at higher risk for cognitive problems or disability progression. Researchers studying new MS drugs may also be able to measure whether treatments are reaching these hidden lesions.

"Detecting previously invisible cortical lesions on conventional legacy MRI scans has major implications for MS research and clinical care," said Robert Zivadinov, MD, Ph.D., the study's senior author.

The team is now working to make the AI method available for wider use in clinics and research.